/* Poetry Homes — site styles */
:root {
  --ink: #1b1d1e;
  --ink-soft: #3d4143;
  --muted: #6c7174;
  --paper: #ffffff;
  --sand: #f5f3ef;
  --line: #e3e0da;
  --aqua: #7ccfdf;      /* from the Poetry logo */
  --aqua-deep: #2f8697; /* accessible on white */
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Mulish", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.7 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Type */
h1, h2, h3, h4, .eyebrow, .btn, .nav a {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 500; line-height: 1.08; }
h1 { font-size: clamp(40px, 6.4vw, 84px); letter-spacing: .06em; }
h2 { font-size: clamp(32px, 4.2vw, 54px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); }
h4 { font-size: 18px; letter-spacing: .14em; }
.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--aqua-deep);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .28em;
}
.lede { font-size: 19px; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid currentColor;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .2em;
  text-decoration: none;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.light { color: #fff; }
.btn.light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.solid { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.solid:hover { background: var(--aqua-deep); border-color: var(--aqua-deep); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s, box-shadow .35s, padding .35s;
  padding: 22px 0;
  color: #fff;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.solid, body.no-hero .site-header {
  background: rgba(255,255,255,.97);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.logo { display: block; width: 128px; transition: width .35s; }
.logo img { width: 100%; height: auto; }
.logo .lg-d { display: none; }
.site-header.solid .logo, body.no-hero .logo { width: 104px; }
.site-header.solid .logo .lg-w, body.no-hero .logo .lg-w { display: none; }
.site-header.solid .logo .lg-d, body.no-hero .logo .lg-d { display: block; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav > li { position: relative; list-style: none; }
.nav { margin: 0; padding: 0; }
.nav a { font-size: 16px; font-weight: 500; letter-spacing: .18em; text-decoration: none; padding: 8px 0; display: block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--aqua); }
.site-header.solid .nav a:hover, body.no-hero .nav a:hover,
.site-header.solid .nav a[aria-current="page"], body.no-hero .nav a[aria-current="page"] { color: var(--aqua-deep); }
.nav .sub {
  position: absolute; top: 100%; left: -22px; min-width: 230px;
  margin: 0; padding: 14px 22px; list-style: none;
  background: #fff; color: var(--ink);
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav li:hover > .sub, .nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { font-size: 15px; padding: 7px 0; }
.nav .sub a:hover { color: var(--aqua-deep); }
.nav .cta a { border: 1px solid currentColor; padding: 8px 18px; }

.menu-toggle {
  display: none; background: none; border: 0; color: inherit; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
}
.menu-toggle span { display: block; height: 2px; background: currentColor; margin: 6px 0; transition: transform .3s, opacity .3s; }

@media (max-width: 960px) {
  .menu-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 6px;
    background: var(--ink); color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    overflow-y: auto; padding: 90px 24px 40px;
  }
  .nav a { font-size: 22px; text-align: center; }
  .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; background: none; color: rgba(255,255,255,.7); box-shadow: none; padding: 0 0 8px; text-align: center; min-width: 0; }
  .nav .sub a { font-size: 16px; }
  .nav .cta a { display: inline-block; margin-top: 12px; }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open .site-header { color: #fff; }
  body.menu-open .site-header .logo .lg-w { display: block; }
  body.menu-open .site-header .logo .lg-d { display: none; }
  body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center; overflow: hidden; background: #111;
}
.hero.short { min-height: 72vh; }
.hero > video, .hero > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.08) 40%, rgba(0,0,0,.42) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 120px var(--gutter) 80px; max-width: 1100px; }
.hero h1 { margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.25); }
.hero .sub-head { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero .eyebrow { color: #c9eef5; text-shadow: 0 1px 10px rgba(0,0,0,.65), 0 0 2px rgba(0,0,0,.4); }
.hero .sub-head {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .3em;
  font-size: clamp(15px, 1.6vw, 20px); font-weight: 500; margin-bottom: 34px;
}
.hero .rule { width: 70px; height: 1px; background: var(--aqua); margin: 0 auto 22px; border: 0; }
.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; z-index: 1; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.7); border-radius: 14px;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

/* Page title band (inner pages without media hero) */
.page-title { padding: 170px 0 70px; background: var(--sand); text-align: center; }
.page-title .lede { margin: 0 auto; }

/* Sections */
section { position: relative; }
.pad { padding: clamp(72px, 10vw, 140px) 0; }
.pad-sm { padding: clamp(48px, 6vw, 80px) 0; }
.sand { background: var(--sand); }
.dark { background: var(--ink); color: #fff; }
.dark .lede, .dark p { color: rgba(255,255,255,.78); }
.dark .eyebrow { color: var(--aqua); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: center; }
.split.wide-img { grid-template-columns: 1.25fr 1fr; }
.split.flip > :first-child { order: 2; }
.split img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.split.wide-img img { aspect-ratio: 3 / 2; }
@media (max-width: 860px) {
  .split, .split.wide-img { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .split img { aspect-ratio: 3 / 2; }
}

/* Full-bleed image band */
.band {
  position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden;
}
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.25) 60%, rgba(0,0,0,0) 100%); z-index: 1; }
.band .wrap { position: relative; z-index: 2; width: 100%; }
.band .card { max-width: 540px; }
.band p { color: rgba(255,255,255,.86); }

/* Feature trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: 56px; }
.trio .num { font-family: var(--head); font-size: 54px; color: var(--aqua); line-height: 1; margin-bottom: 12px; font-weight: 400; }
.trio p { color: var(--ink-soft); }
@media (max-width: 860px) { .trio { grid-template-columns: 1fr; } }

.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; }
.grid-6 > div { background: #fff; padding: 38px 34px; }
.grid-6 p { color: var(--ink-soft); margin: 0; font-size: 16px; }
@media (max-width: 860px) { .grid-6 { grid-template-columns: 1fr; } }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.projects.two { grid-template-columns: repeat(2, 1fr); }
.project-card { position: relative; display: block; overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 4 / 5; background: #222; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.project-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); transition: background .4s; }
.project-card .info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 30px; }
.project-card h3 { margin: 0 0 4px; }
.project-card .loc { font-family: var(--head); text-transform: uppercase; letter-spacing: .22em; font-size: 14px; color: var(--aqua); }
.project-card .more { display: inline-block; margin-top: 14px; font-family: var(--head); text-transform: uppercase; letter-spacing: .22em; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.6); padding-bottom: 3px; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; }
.project-card:hover img, .project-card:focus-visible img { transform: scale(1.06); }
.project-card:hover::after { background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, rgba(0,0,0,.8) 100%); }
.project-card:hover .more, .project-card:focus-visible .more { opacity: 1; transform: none; }
@media (hover: none) { .project-card .more { opacity: 1; transform: none; } }
@media (max-width: 960px) { .projects, .projects.two { grid-template-columns: 1fr; } .project-card { aspect-ratio: 4 / 3; } }

/* Featured property (Patterson-style) */
.featured { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.featured > img, .featured > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.05) 35%, rgba(0,0,0,.7) 100%); }
.featured .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(48px, 8vw, 100px); }
.featured .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* Film block */
.film { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; cursor: pointer; }
.film video, .film img { width: 100%; height: 100%; object-fit: cover; }
.film .play {
  position: absolute; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85); background: rgba(0,0,0,.25); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .25s, transform .25s;
}
.film .play::before { content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.film:hover .play { background: rgba(124,207,223,.55); transform: scale(1.05); }
.film.playing .play, .film.playing > img { display: none; }
.film-label { margin-top: 16px; font-family: var(--head); text-transform: uppercase; letter-spacing: .22em; font-size: 15px; color: var(--muted); }
.dark .film-label { color: rgba(255,255,255,.6); }

/* Testimonials */
.quotes { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.quote { display: none; }
.quote.active { display: block; animation: fade .6s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.quote blockquote { margin: 0 0 26px; font-size: clamp(20px, 2.3vw, 27px); line-height: 1.55; font-weight: 300; font-style: italic; }
.quote cite { font-style: normal; font-family: var(--head); text-transform: uppercase; letter-spacing: .24em; font-size: 15px; color: var(--aqua); }
.quote-mark { font-family: Georgia, serif; font-size: 90px; line-height: .6; color: var(--aqua); display: block; margin-bottom: 18px; }
.dots { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid currentColor; background: none; padding: 0; cursor: pointer; color: inherit; opacity: .6; }
.dots button[aria-current="true"] { background: currentColor; opacity: 1; }

.quote-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }
.quote-list figure { margin: 0; padding: 40px; background: #fff; border: 1px solid var(--line); }
.quote-list blockquote { margin: 0 0 22px; font-size: 16.5px; color: var(--ink-soft); }
.quote-list figcaption { font-family: var(--head); text-transform: uppercase; letter-spacing: .2em; font-size: 15px; color: var(--aqua-deep); }
@media (max-width: 860px) { .quote-list { grid-template-columns: 1fr; } .quote-list figure { padding: 28px; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { margin-bottom: 32px; }

/* Project detail */
.facts { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(36px, 6vw, 90px); }
.facts dl { margin: 0; border-top: 1px solid var(--line); }
.facts dl div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--head); text-transform: uppercase; letter-spacing: .16em; font-size: 15px; color: var(--muted); padding-top: 2px; }
.facts dd { margin: 0; }
.features { columns: 2; column-gap: 32px; padding: 0; margin: 0 0 1.2em; list-style: none; }
.features li { break-inside: avoid; padding: 7px 0 7px 22px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 1px; background: var(--aqua-deep); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } .features { columns: 1; } .facts dl div { grid-template-columns: 120px 1fr; } }

.gallery { columns: 3 320px; column-gap: 14px; }
.gallery a { display: block; margin: 0 0 14px; break-inside: avoid; overflow: hidden; background: #eee; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.gallery a:hover img { transform: scale(1.04); }

.reel-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.reel-row .lede { max-width: 42ch; }
.reel-row .reel { aspect-ratio: 9 / 16; height: min(78vh, 720px); max-width: 100%; background: #000; margin: 0 auto; }
.reel-row .reel video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .reel-row { grid-template-columns: 1fr; } .reel-row .reel { max-width: 360px; width: 100%; height: auto; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { padding: 40px var(--gutter); text-decoration: none; transition: background .25s; }
.pager a:hover { background: var(--sand); }
.pager a + a { text-align: right; border-left: 1px solid var(--line); }
.pager small { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .22em; color: var(--muted); font-size: 14px; }
.pager strong { font-family: var(--head); text-transform: uppercase; letter-spacing: .08em; font-size: clamp(20px, 2.4vw, 30px); font-weight: 500; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12,13,14,.96);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: 300 40px/1 var(--body); padding: 18px; opacity: .8; }
.lightbox button:hover { opacity: 1; color: var(--aqua); }
.lightbox .lb-close { top: 8px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 54px; }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 54px; }
.lightbox .lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-family: var(--head); letter-spacing: .2em; font-size: 14px; }

/* Process steps */
.steps { counter-reset: step; margin-top: 56px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 110px 300px 1fr; gap: 28px; padding: 38px 0; border-bottom: 1px solid var(--line); align-items: start; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--head); font-size: 48px; line-height: 1; color: var(--aqua); }
.step h3 { margin: 6px 0 0; }
.step p { margin: 0; color: var(--ink-soft); }
@media (max-width: 860px) { .step { grid-template-columns: 1fr; gap: 10px; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
.team div { border-top: 2px solid var(--aqua); padding-top: 22px; }
.team h3 { margin-bottom: 4px; }
.team p { color: var(--muted); font-family: var(--head); text-transform: uppercase; letter-spacing: .16em; font-size: 15px; margin: 0; }
@media (max-width: 960px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .team { grid-template-columns: 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 56px; }
.service { background: #fff; }
.service img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.service .body { padding: 30px 0 0; }
.service p { color: var(--ink-soft); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(36px, 6vw, 90px); }
.contact-info h4 { margin: 28px 0 6px; color: var(--aqua-deep); }
.contact-info p { margin: 0; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { color: var(--aqua-deep); }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form label { display: block; margin-bottom: 18px; font-family: var(--head); text-transform: uppercase; letter-spacing: .16em; font-size: 14px; color: var(--muted); }
form input, form select, form textarea {
  display: block; width: 100%; margin-top: 8px; padding: 14px 16px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 400 16px/1.5 var(--body); border-radius: 0;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--aqua); outline-offset: -1px; border-color: var(--aqua); }
form textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } form .row { grid-template-columns: 1fr; gap: 0; } }

/* Footer */
.site-footer { background: #121314; color: rgba(255,255,255,.72); padding: 80px 0 30px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .flogo { width: 150px; height: auto; margin-bottom: 20px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .26em; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--aqua); }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color .2s, color .2s; }
.social a:hover { border-color: var(--aqua); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.legal { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.5); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 10px; top: 10px; }

/* Past projects */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 40px 0 36px; }
.filters button {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .18em; font-size: 14px; font-weight: 600;
  padding: 10px 20px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters button:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
.past { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; margin-top: 56px; }
.past-card { display: block; text-decoration: none; color: var(--ink); }
.past-card[hidden] { display: none; }
.past-card .thumb { overflow: hidden; aspect-ratio: 3 / 2; background: #ddd; margin-bottom: 18px; }
.past-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.past-card:hover img, .past-card:focus-visible img { transform: scale(1.05); }
.past-card .tag { display: block; font-family: var(--head); text-transform: uppercase; letter-spacing: .22em; font-size: 13px; color: var(--aqua-deep); margin-bottom: 6px; }
.past-card h3 { margin: 0 0 2px; transition: color .2s; }
.past-card:hover h3 { color: var(--aqua-deep); }
.past-card .loc { font-size: 15px; color: var(--muted); }
@media (max-width: 960px) { .past { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .past { grid-template-columns: 1fr; } }
.past-quote { margin: 0; padding: 44px clamp(24px, 5vw, 64px); background: var(--sand); text-align: center; }
.past-quote blockquote { margin: 0 0 20px; font-size: clamp(18px, 2vw, 22px); font-weight: 300; font-style: italic; line-height: 1.6; }
.past-quote figcaption { font-family: var(--head); text-transform: uppercase; letter-spacing: .22em; font-size: 15px; color: var(--aqua-deep); }

.tagline { font-family: var(--head); text-transform: uppercase; letter-spacing: .16em; font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; color: var(--aqua-deep); margin: -4px 0 22px; }
.img-stack { display: grid; gap: 14px; }
.split .img-stack img { aspect-ratio: 1 / 1; }
@media (max-width: 860px) { .split .img-stack img { aspect-ratio: 3 / 2; } }

.contact-info .directions { margin-top: 16px; }
.contact-info .directions .btn { padding: 12px 26px; font-size: 14px; }
.contact-info .directions .btn:hover { color: #fff; }

/* For sale */
.listings { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px; margin-top: 56px; }
.listing { background: #fff; border: 1px solid var(--line); }
.listing .thumb { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.listing .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.listing .thumb:hover img { transform: scale(1.04); }
.listing .status { position: absolute; top: 16px; left: 16px; background: var(--ink); color: #fff; padding: 7px 14px; font-family: var(--head); text-transform: uppercase; letter-spacing: .2em; font-size: 13px; font-weight: 600; }
.listing .body { padding: 28px 30px 32px; }
.listing .loc { font-family: var(--head); text-transform: uppercase; letter-spacing: .22em; font-size: 13px; color: var(--aqua-deep); }
.listing h3 { margin: 6px 0 8px; }
.listing .price { font-family: var(--head); font-size: 26px; letter-spacing: .04em; margin: 0 0 4px; }
.listing .facts { color: var(--muted); margin: 0 0 14px; }
.listing .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.listing .actions .btn { padding: 12px 24px; font-size: 14px; }
.no-listings { max-width: 640px; margin: 56px auto 0; padding: 48px clamp(24px, 5vw, 56px); text-align: center; background: var(--sand); }
.no-listings h3 { margin-bottom: 12px; }
.no-listings p { color: var(--ink-soft); margin-bottom: 26px; }
@media (max-width: 860px) { .listings { grid-template-columns: 1fr; } }
.listings.single { grid-template-columns: 1fr; }
.listings.single .listing { display: grid; grid-template-columns: 1.5fr 1fr; }
.listings.single .thumb { aspect-ratio: auto; min-height: 420px; }
.listings.single .body { padding: 40px; align-self: center; }
@media (max-width: 860px) {
  .listings.single .listing { grid-template-columns: 1fr; }
  .listings.single .thumb { aspect-ratio: 3 / 2; min-height: 0; }
  .listings.single .body { padding: 28px; }
}

/* Client login link in the header */
.nav .login a { display: inline-flex; align-items: center; gap: 7px; }
.nav .login a::before {
  content: ""; width: 11px; height: 13px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 13'%3E%3Cpath d='M5.5 0A3.5 3.5 0 0 0 2 3.5V5H1a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H9V3.5A3.5 3.5 0 0 0 5.5 0Zm-2 3.5a2 2 0 1 1 4 0V5h-4Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 13'%3E%3Cpath d='M5.5 0A3.5 3.5 0 0 0 2 3.5V5H1a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h9a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H9V3.5A3.5 3.5 0 0 0 5.5 0Zm-2 3.5a2 2 0 1 1 4 0V5h-4Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (max-width: 960px) { .nav .login a { justify-content: center; } }
