/* Heirloom Hardware + Home — design system */
:root {
  --ivory: #f7f3ec;
  --cream: #efe8dc;
  --linen: #e4dacb;
  --taupe: #b3a491;
  --stone: #8c8172;
  --walnut: #6b5440;
  --espresso: #2b241f;
  --ink: #1d1916;
  --rule: rgba(43, 36, 31, 0.16);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
main { overflow-x: clip; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--linen); color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--espresso); color: var(--ivory); padding: 10px 18px;
  text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 1px solid var(--walnut); outline-offset: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.08; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
.display { font-size: clamp(48px, 8.2vw, 132px); line-height: .98; letter-spacing: -0.02em; }
.h1 { font-size: clamp(42px, 6vw, 92px); }
.h2 { font-size: clamp(34px, 4.4vw, 64px); }
.h3 { font-size: clamp(26px, 2.6vw, 38px); }
em, .italic { font-style: italic; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 300; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase; color: var(--stone);
  margin: 0 0 28px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.no-rule::before { display: none; }
.lede { font-family: var(--serif); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.45; font-weight: 300; color: var(--espresso); }
p { margin: 0 0 1.2em; }
.muted { color: var(--stone); }
.small { font-size: 14px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(88px, 13vw, 200px) 0; }
.section-sm { padding: clamp(64px, 8vw, 120px) 0; }
.bg-cream { background: var(--cream); }
.bg-linen { background: var(--linen); }
.bg-dark { background: var(--espresso); color: var(--cream); }
.bg-dark h1, .bg-dark h2, .bg-dark h3 { color: var(--ivory); }
.bg-dark .eyebrow { color: var(--taupe); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); }
@media (max-width: 860px) {
  .grid-12 > [style*="grid-column"] { grid-column: 1 / -1 !important; }
  .mb-l { margin-bottom: 48px; }
}
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 34px; border: 1px solid var(--espresso);
  background: transparent; color: var(--espresso); cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--espresso); z-index: -1;
  transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.btn:hover, .btn:focus-visible { color: var(--ivory); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn .arrow { width: 22px; height: 1px; background: currentColor; position: relative; transition: width .4s var(--ease); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 32px; }
.btn-light { border-color: var(--ivory); color: var(--ivory); }
.btn-light::before { background: var(--ivory); }
.btn-light:hover, .btn-light:focus-visible { color: var(--espresso); }
.btn-solid { background: var(--espresso); color: var(--ivory); }
.btn-solid::before { background: var(--walnut); }

.text-link {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  text-decoration: none; padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.text-link:hover { background-size: 30% 1px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .5s var(--ease), color .5s var(--ease), transform .5s var(--ease), box-shadow .5s;
  color: var(--espresso);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 92px; transition: height .5s var(--ease); }
.site-header.is-over-hero { color: var(--ivory); }
.site-header.is-scrolled { background: rgba(247, 243, 236, .94); color: var(--espresso); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--rule); }
.site-header.is-scrolled .bar { height: 72px; }
.site-header.is-hidden { transform: translateY(-100%); }

.brand { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; gap: 6px; }
.brand-name { font-family: var(--serif); font-size: 25px; font-weight: 400; letter-spacing: .02em; }
.brand-name .amp { font-style: italic; font-weight: 300; padding: 0 2px; }
.brand-sub { font-size: 9.5px; letter-spacing: .38em; text-transform: uppercase; opacity: .75; }

.nav-primary ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(22px, 2.6vw, 44px); align-items: center; }
.nav-primary a {
  text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  padding: 6px 0; position: relative;
}
.nav-primary a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-primary a:not(.nav-cta):hover::after, .nav-primary a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { border: 1px solid currentColor; padding: 11px 20px !important; transition: background .4s, color .4s; }
.nav-cta:hover { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.is-over-hero:not(.is-scrolled) .nav-cta:hover { background: var(--ivory); color: var(--espresso); border-color: var(--ivory); }

.menu-toggle { display: none; background: none; border: 0; padding: 10px 0 10px 10px; cursor: pointer; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.menu-toggle .lines { width: 26px; height: 9px; position: relative; }
.menu-toggle .lines::before, .menu-toggle .lines::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.menu-toggle .lines::before { top: 0; }
.menu-toggle .lines::after { top: 8px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150; background: var(--espresso); color: var(--ivory);
  display: flex; flex-direction: column; padding: 0 var(--gutter) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s linear .8s;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.mobile-menu .bar { display: flex; align-items: center; justify-content: space-between; height: 80px; flex: none; }
.mobile-menu .menu-close { background: none; border: 0; color: inherit; cursor: pointer; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; padding: 10px 0 10px 10px; display: flex; gap: 12px; align-items: center; }
.mobile-menu .menu-close .x { width: 20px; height: 20px; position: relative; }
.mobile-menu .menu-close .x::before, .mobile-menu .menu-close .x::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.mobile-menu .menu-close .x::after { transform: rotate(-45deg); }
.mobile-menu nav { flex: 1; display: flex; align-items: center; }
.mobile-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; width: 100%; }
.mobile-menu li { counter-increment: m; border-top: 1px solid rgba(239, 232, 220, .14); overflow: hidden; }
.mobile-menu li:last-child { border-bottom: 1px solid rgba(239, 232, 220, .14); }
.mobile-menu li a {
  display: flex; align-items: baseline; gap: 18px; padding: 16px 0; text-decoration: none;
  font-family: var(--serif); font-size: clamp(34px, 9vw, 54px); font-weight: 300; line-height: 1.1;
  transform: translateY(105%); transition: transform .8s var(--ease);
}
.mobile-menu li a::before { content: "0" counter(m); font-family: var(--sans); font-size: 11px; letter-spacing: .2em; color: var(--taupe); }
.mobile-menu.is-open li a { transform: none; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .06s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .12s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .18s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .24s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .30s; }
.mobile-menu .menu-foot { font-size: 14px; line-height: 1.9; color: var(--linen); }
.mobile-menu .menu-foot a { text-decoration: none; }

@media (max-width: 960px) {
  .nav-primary { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header .bar { height: 76px; }
  .site-header.is-scrolled .bar { height: 64px; }
  .brand-name { font-size: 21px; }
}
body.menu-open { overflow: hidden; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--espresso); color: var(--ivory); }
.hero-media { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 9s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,25,22,.5) 0%, rgba(29,25,22,.08) 28%, rgba(29,25,22,.3) 58%, rgba(29,25,22,.85) 100%), linear-gradient(90deg, rgba(29,25,22,.45) 0%, rgba(29,25,22,0) 55%, rgba(29,25,22,.25) 100%); pointer-events: none; }
.hero-content { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(48px, 8vh, 96px); }
.hero-content .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
.hero h1 { color: var(--ivory); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: block; transform: translateY(110%); animation: rise 1.4s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .14s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .28s; }
.hero .eyebrow { color: var(--linen); opacity: 0; animation: fade 1.2s .6s var(--ease) forwards; }
.hero-aside { max-width: 300px; font-size: 15px; color: var(--linen); opacity: 0; animation: fade 1.2s .9s var(--ease) forwards; }
.hero-aside p { margin-bottom: 26px; }
.hero-meta { position: absolute; z-index: 2; right: var(--gutter); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.hero-dot { width: 28px; height: 18px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.hero-dot::before { content: ""; position: absolute; right: 0; top: 50%; height: 1px; width: 14px; background: rgba(247,243,236,.5); transition: width .5s var(--ease), background .5s; }
.hero-dot.is-active::before { width: 28px; background: var(--ivory); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; width: 1px; height: 56px; background: rgba(247,243,236,.25); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--ivory); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
@media (max-width: 760px) {
  .hero-content .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-meta { top: auto; bottom: 40px; transform: none; display: none; }
  .scroll-cue { display: none; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: clamp(150px, 20vw, 240px) 0 clamp(56px, 7vw, 100px); }
.page-hero .grid-12 > .ph-title { grid-column: 1 / span 8; }
.page-hero .grid-12 > .ph-intro { grid-column: 9 / span 4; align-self: end; }
@media (max-width: 860px) { .page-hero .grid-12 > .ph-title, .page-hero .grid-12 > .ph-intro { grid-column: 1 / -1; } }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; } .reveal-d2 { transition-delay: .24s; } .reveal-d3 { transition-delay: .36s; }
.img-reveal { overflow: hidden; position: relative; background: var(--linen); }
.img-reveal img { transform: scale(1.12); transition: transform 1.8s var(--ease), opacity 1s var(--ease); opacity: 0; }
.img-reveal.is-in img { transform: scale(1); opacity: 1; }
.img-reveal::after { content: ""; position: absolute; inset: 0; background: var(--cream); transform-origin: top; transition: transform 1.3s var(--ease); }
.img-reveal.is-in::after { transform: scaleY(0); }
.no-js .reveal, .no-js .img-reveal img { opacity: 1; transform: none; }
.no-js .img-reveal::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .img-reveal img { opacity: 1 !important; transform: none !important; transition: none !important; }
  .img-reveal::after { display: none; }
  .hero h1 .line > span, .hero .eyebrow, .hero-aside { animation: none; transform: none; opacity: 1; }
  .hero-slide img { transition: none; transform: none; }
}

/* ---------- Home: intro ---------- */
.intro .grid-12 { align-items: start; }
.intro-label { grid-column: 1 / span 3; }
.intro-body { grid-column: 4 / span 8; }
.intro-body .h2 { margin-bottom: 48px; }
.intro-body .h2 em { color: var(--walnut); }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 760px; color: var(--espresso); }
@media (max-width: 860px) { .intro-label, .intro-body { grid-column: 1 / -1; } .intro-cols { grid-template-columns: 1fr; gap: 0; } }

/* ---------- Home: featured projects ---------- */
.feature-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(48px, 6vw, 88px); flex-wrap: wrap; }
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); row-gap: clamp(64px, 9vw, 140px); }
.feature { text-decoration: none; display: block; }
.feature .img-reveal { aspect-ratio: 4 / 5; }
.feature .img-reveal img { width: 100%; height: 100%; object-fit: cover; }
.feature .inner-img { transition: transform 1.4s var(--ease); }
.feature:hover img { transform: scale(1.04) !important; }
.feature-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 18px; }
.feature-meta .num { font-size: 12px; letter-spacing: .2em; color: var(--stone); }
.feature-meta h3 { font-size: clamp(26px, 2.4vw, 36px); flex: 1; }
.feature-meta .go { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); transition: color .4s; white-space: nowrap; }
.feature:hover .go { color: var(--espresso); }
.f1 { grid-column: 1 / span 7; }
.f1 .img-reveal { aspect-ratio: 5 / 4; }
.f2 { grid-column: 9 / span 4; margin-top: 22vw; }
.f3 { grid-column: 2 / span 4; }
.f4 { grid-column: 7 / span 6; margin-top: 10vw; }
.f4 .img-reveal { aspect-ratio: 4 / 3; }
@media (max-width: 860px) {
  .f1, .f2, .f3, .f4 { grid-column: 1 / -1; margin-top: 0; }
  .f2, .f3 { width: 82%; }
  .f3 { margin-left: auto; }
}

/* ---------- Full-bleed image band ---------- */
.band { position: relative; height: clamp(420px, 82vh, 900px); overflow: hidden; }
.band img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.band-caption { position: absolute; left: var(--gutter); bottom: 32px; color: var(--ivory); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; text-shadow: 0 1px 12px rgba(0,0,0,.35); }

/* ---------- Philosophy / pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.pillar { padding: 48px 40px 8px 0; }
.pillar + .pillar { padding-left: 40px; border-left: 1px solid var(--rule); }
.pillar .n { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--walnut); display: block; margin-bottom: 26px; }
.pillar h3 { font-size: 30px; margin-bottom: 18px; }
.pillar p { color: var(--espresso); font-size: 16px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } .pillar, .pillar + .pillar { padding: 36px 0 4px; border-left: 0; } .pillar + .pillar { border-top: 1px solid var(--rule); } }

/* ---------- Geralyn intro (split) ---------- */
.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.split-media { grid-column: 1 / span 5; position: relative; }
.split-media .img-reveal { aspect-ratio: 3 / 4; }
.split-media .img-reveal img { width: 100%; height: 100%; object-fit: cover; }
.split-media.fam .img-reveal { aspect-ratio: 1 / 1; }
.split-media.fam .img-reveal img { object-position: 50% 0; transform-origin: 50% 0; height: 128%; }
.split-media figcaption { margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--stone); }
.split-body { grid-column: 7 / span 6; }
.split-body .h2 { margin-bottom: 36px; }
.split.reverse .split-media { grid-column: 8 / span 5; order: 2; }
.split.reverse .split-body { grid-column: 1 / span 6; order: 1; }
.signature { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--walnut); margin: 34px 0 40px; line-height: 1; }
@media (max-width: 860px) {
  .split-media, .split-body, .split.reverse .split-media, .split.reverse .split-body { grid-column: 1 / -1; order: initial; }
  .split-media { width: 88%; }
}

/* ---------- Quote ---------- */
.quote-feature { text-align: center; max-width: 1100px; margin: 0 auto; }
.quote-mark { font-family: var(--serif); font-size: 120px; line-height: .5; color: var(--taupe); display: block; height: 50px; }
.quote-feature blockquote { margin: 0; }
.quote-feature blockquote p { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.22; color: inherit; margin: 0 0 40px; }
.quote-feature cite { font-style: normal; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); }
.quote-carousel { position: relative; }
.quote-carousel .q { transition: opacity .9s var(--ease); }
.quote-carousel .q[hidden] { display: none; }
.q-controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 48px; }
.q-btn { background: none; border: 1px solid var(--taupe); width: 52px; height: 52px; border-radius: 50%; cursor: pointer; color: var(--espresso); display: grid; place-items: center; transition: background .4s, border-color .4s, color .4s; }
.q-btn:hover, .q-btn:focus-visible { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.q-count { font-size: 12px; letter-spacing: .2em; color: var(--stone); min-width: 60px; text-align: center; }
.quote-feature cite { color: var(--stone); }
.bg-dark .quote-feature cite { color: var(--taupe); }

/* ---------- Services list ---------- */
.service-list { border-top: 1px solid var(--rule); }
.service { display: grid; grid-template-columns: 80px 1.1fr 1.4fr; gap: clamp(20px, 3vw, 48px); padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--rule); align-items: start; }
.service .n { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--walnut); padding-top: 6px; }
.service h3 { font-size: clamp(32px, 3.4vw, 50px); }
.service .tag { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-top: 14px; }
.service-body p:last-of-type { margin-bottom: 26px; }
.service-body .thumb { aspect-ratio: 16 / 10; margin-bottom: 30px; }
.service-body .thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 14px; } }

/* compact services (home) */
.svc-index { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(239,232,220,.18); }
.svc-index a { padding: 34px 28px 34px 0; text-decoration: none; border-bottom: 1px solid rgba(239,232,220,.18); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; transition: padding .5s var(--ease), color .4s; }
.svc-index a:hover { padding-left: 14px; color: var(--ivory); }
.svc-index a span:first-child { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 36px); font-weight: 300; }
.svc-index a span:last-child { font-size: 11px; letter-spacing: .2em; color: var(--taupe); }
@media (min-width: 861px) { .svc-index a:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid rgba(239,232,220,.18); } .svc-index a:not(:nth-child(3n+1)):hover { padding-left: 42px; } }
@media (max-width: 860px) { .svc-index { grid-template-columns: 1fr; } }

/* ---------- Portfolio index ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--rule); padding-bottom: 22px; }
.filter-bar button { background: none; border: 0; padding: 4px 0; cursor: pointer; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); position: relative; transition: color .3s; }
.filter-bar button sup { font-size: 9px; letter-spacing: .1em; margin-left: 4px; }
.filter-bar button[aria-pressed="true"], .filter-bar button:hover { color: var(--espresso); }
.filter-bar button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -23px; height: 1px; background: var(--espresso); }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); row-gap: clamp(56px, 7vw, 110px); }
.project-card { text-decoration: none; display: block; grid-column: span 4; }
.project-card.wide { grid-column: span 8; }
.project-card .frame { aspect-ratio: 4 / 5; overflow: hidden; }
.project-card.wide .frame { aspect-ratio: 16 / 10; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity 1s var(--ease); }
.project-card:hover img { transform: scale(1.045) !important; }
.project-card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.project-card h2, .project-card h3 { font-size: clamp(24px, 2.2vw, 32px); }
.project-card .count { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); white-space: nowrap; }
.project-card p { font-size: 15px; color: var(--stone); margin: 8px 0 0; }
.project-card.is-hidden { display: none; }
@media (max-width: 960px) { .project-card, .project-card.wide { grid-column: span 6; } .project-card.wide .frame { aspect-ratio: 4 / 5; } }
@media (max-width: 620px) { .project-card, .project-card.wide { grid-column: 1 / -1; } }

/* ---------- Project / gallery page ---------- */
.project-hero { position: relative; height: 88vh; height: 88svh; min-height: 520px; overflow: hidden; background: var(--espresso); }
.project-hero img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: settle 2.4s var(--ease) forwards; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,25,22,.62) 0%, rgba(29,25,22,.18) 22%, rgba(29,25,22,.08) 45%, rgba(29,25,22,.72) 100%), linear-gradient(90deg, rgba(29,25,22,.35), rgba(29,25,22,0) 50%); }
.project-hero .ph-content { position: absolute; z-index: 2; inset: auto 0 0 0; padding-bottom: clamp(40px, 7vh, 80px); color: var(--ivory); }
.project-hero h1 { color: var(--ivory); }
.project-hero .eyebrow { color: var(--linen); }
@keyframes settle { to { transform: scale(1); } }
.project-facts { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); }
.project-facts .pf-body { grid-column: 1 / span 7; }
.project-facts .pf-list { grid-column: 9 / span 4; }
.pf-list dl { margin: 0; border-top: 1px solid var(--rule); }
.pf-list div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.pf-list dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); padding-top: 3px; }
.pf-list dd { margin: 0; text-align: right; }
@media (max-width: 860px) { .project-facts .pf-body, .project-facts .pf-list { grid-column: 1 / -1; } }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 2vw, 28px); }
.gallery figure { margin: 0; cursor: zoom-in; position: relative; }
.gallery figure .img-reveal { height: 100%; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.03) !important; }
.gallery figure button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery figure button:focus-visible { outline: 1px solid var(--walnut); outline-offset: 4px; }
.gallery figcaption { margin-top: 12px; font-size: 13px; color: var(--stone); letter-spacing: .02em; }
.g-full { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.g-half { grid-column: span 6; aspect-ratio: 4 / 5; }
.g-wide { grid-column: span 7; aspect-ratio: 4 / 3; }
.g-narrow { grid-column: span 5; aspect-ratio: 4 / 5; align-self: end; }
.g-third { grid-column: span 4; aspect-ratio: 3 / 4; }
.gallery figure.has-cap { aspect-ratio: auto; }
.gallery figure.has-cap .img-reveal { height: auto; }
.g-full .img-reveal, .g-half .img-reveal, .g-wide .img-reveal, .g-narrow .img-reveal, .g-third .img-reveal { height: 100%; }
@media (max-width: 760px) {
  .g-half, .g-wide, .g-narrow, .g-third { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .g-full { aspect-ratio: 4 / 3; }
}

.project-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--rule); }
.project-nav a { text-decoration: none; padding: clamp(40px, 6vw, 80px) 0; display: flex; flex-direction: column; gap: 10px; transition: background .5s; }
.project-nav a:last-child { text-align: right; border-left: 1px solid var(--rule); padding-left: 24px; align-items: flex-end; }
.project-nav a:first-child { padding-right: 24px; }
.project-nav small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.project-nav span { font-family: var(--serif); font-size: clamp(26px, 3.2vw, 48px); font-weight: 300; transition: color .4s; }
.project-nav a:hover span { color: var(--walnut); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(23, 20, 17, .97); color: var(--cream); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s linear .5s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .5s var(--ease), visibility 0s; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--gutter); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.lb-close { background: none; border: 0; color: inherit; cursor: pointer; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 clamp(16px, 8vw, 120px); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; transform: scale(.985); transition: opacity .5s var(--ease), transform .7s var(--ease); }
.lb-stage img.is-loaded { opacity: 1; transform: none; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 1px solid rgba(239,232,220,.3); color: inherit; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .4s, color .4s; }
.lb-prev:hover, .lb-next:hover { background: var(--cream); color: var(--espresso); }
.lb-prev { left: var(--gutter); } .lb-next { right: var(--gutter); }
.lb-caption { text-align: center; padding: 20px var(--gutter) 28px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--linen); min-height: 72px; }
@media (max-width: 760px) { .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; width: 44px; height: 44px; } .lb-stage { padding: 0 8px; } .lb-caption { padding-bottom: 70px; } }

/* ---------- Testimonials page ---------- */
.testimonial-lead { max-width: 1100px; }
.testimonial-lead blockquote { margin: 0; }
.testimonial-lead p { font-family: var(--serif); font-size: clamp(30px, 3.8vw, 58px); line-height: 1.2; font-weight: 300; color: var(--ink); }
.testimonial-lead cite, .t-card cite { font-style: normal; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); display: block; margin-top: 28px; }
.t-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); row-gap: clamp(56px, 6vw, 96px); }
.t-card { margin: 0; border-top: 1px solid var(--rule); padding-top: 32px; }
.t-card p { font-family: var(--serif); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.3; font-weight: 300; color: var(--ink); margin: 0; }
.t-card .n { font-family: var(--serif); font-style: italic; color: var(--walnut); font-size: 18px; display: block; margin-bottom: 22px; }
.t-a { grid-column: 1 / span 6; } .t-b { grid-column: 8 / span 5; margin-top: 120px; }
.t-c { grid-column: 2 / span 5; } .t-d { grid-column: 8 / span 5; margin-top: 60px; }
.t-e { grid-column: 1 / span 5; } .t-f { grid-column: 7 / span 6; margin-top: 90px; }
@media (max-width: 860px) { .t-a, .t-b, .t-c, .t-d, .t-e, .t-f { grid-column: 1 / -1; margin-top: 0; } }

/* ---------- Press / recognition ---------- */
.press-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.press-list li { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.press-list .yr { font-size: 12px; letter-spacing: .2em; color: var(--stone); }
.press-list .what { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
@media (max-width: 560px) { .press-list li { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Timeline (about) ---------- */
.story-cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); }
.story-cols .sc-head { grid-column: 1 / span 4; }
.story-cols .sc-body { grid-column: 6 / span 7; columns: 2; column-gap: 48px; }
.story-cols .sc-body p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 88px; line-height: .8; padding: 8px 12px 0 0; color: var(--walnut); }
@media (max-width: 860px) { .story-cols .sc-head, .story-cols .sc-body { grid-column: 1 / -1; columns: 1; } }

.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 2vw, 28px); align-items: end; }
.collage .c1 { grid-column: 1 / span 5; aspect-ratio: 3 / 4; }
.collage .c2 { grid-column: 6 / span 4; aspect-ratio: 1; margin-bottom: 12%; }
.collage .c3 { grid-column: 10 / span 3; aspect-ratio: 3 / 4; }
.collage .img-reveal { height: 100%; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage figure { margin: 0; }
.collage figcaption { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--stone); margin-top: 12px; }
@media (max-width: 760px) { .collage .c1 { grid-column: 1 / -1; } .collage .c2 { grid-column: 1 / span 7; margin: 0; } .collage .c3 { grid-column: 8 / span 5; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: p; }
.step { border-top: 1px solid var(--rule); padding-top: 28px; counter-increment: p; }
.step::before { content: "0" counter(p); display: block; font-size: 12px; letter-spacing: .2em; color: var(--stone); margin-bottom: 40px; }
.step h3 { font-size: 28px; margin-bottom: 14px; }
.step p { font-size: 15px; }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; row-gap: 48px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; color: var(--ivory); background: var(--espresso); }
.cta-bg { position: absolute; inset: 0; opacity: .38; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta .wrap { position: relative; text-align: center; padding-top: clamp(110px, 15vw, 220px); padding-bottom: clamp(110px, 15vw, 220px); }
.cta h2 { color: var(--ivory); margin-bottom: 40px; }
.cta .eyebrow { color: var(--linen); justify-content: center; }
.cta .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); }
.contact-info { grid-column: 1 / span 4; }
.contact-form-wrap { grid-column: 6 / span 7; }
@media (max-width: 960px) { .contact-info, .contact-form-wrap { grid-column: 1 / -1; } .contact-info { order: 2; } }
.info-block { border-top: 1px solid var(--rule); padding: 24px 0 28px; }
.info-block h2 { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); font-weight: 400; margin-bottom: 10px; }
.info-block a, .info-block p { font-family: var(--serif); font-size: 26px; line-height: 1.3; text-decoration: none; margin: 0; word-break: break-word; }
.info-block a:hover { color: var(--walnut); }

.form[hidden] { display: none; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 32px; }
.field { display: flex; flex-direction: column; position: relative; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; font-weight: 400; padding: 0; }
.field label .req, .field legend .req { color: var(--walnut); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 18px; color: var(--ink); font-family: var(--serif);
  background: transparent; border: 0; border-bottom: 1px solid var(--taupe); border-radius: 0;
  padding: 10px 0 12px; width: 100%; transition: border-color .3s; -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--stone) 50%), linear-gradient(135deg, var(--stone) 50%, transparent 50%); background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; cursor: pointer; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--espresso); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { box-shadow: 0 1px 0 0 var(--espresso); }
.field .err { font-size: 13px; color: #8a3b26; margin-top: 8px; min-height: 0; display: none; }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-bottom-color: #8a3b26; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 10px 18px; border: 1px solid var(--taupe); font-size: 13px; letter-spacing: .06em; cursor: pointer; transition: background .3s, color .3s, border-color .3s; user-select: none; }
.chip input:checked + span { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.chip input:focus-visible + span { outline: 1px solid var(--walnut); outline-offset: 3px; }
.chip span:hover { border-color: var(--espresso); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 8px; }
.form-foot .small { max-width: 340px; margin: 0; color: var(--stone); }
.form-status { grid-column: 1 / -1; font-size: 15px; color: #8a3b26; margin: 0; }
.form-status:empty { display: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.form-success { display: none; padding: clamp(40px, 5vw, 72px); background: var(--cream); border-top: 1px solid var(--walnut); }
.form-success.is-visible { display: block; animation: fade .8s var(--ease) both; }
.form-success h2 { margin-bottom: 20px; }
@media (max-width: 620px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--linen); padding: clamp(80px, 10vw, 140px) 0 36px; }
.footer-top { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); padding-bottom: clamp(56px, 7vw, 100px); }
.footer-statement { grid-column: 1 / span 6; }
.footer-statement p { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.6vw, 54px); line-height: 1.1; color: var(--ivory); margin: 0 0 36px; }
.footer-col { grid-column: span 2; }
.footer-col:first-of-type { grid-column: 8 / span 2; }
.footer-col h2 { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); font-weight: 400; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; font-size: 15px; }
.footer-col a { text-decoration: none; transition: color .3s; }
.footer-col a:hover { color: var(--ivory); }
.footer-col.wide { grid-column: span 3; }
.footer-bottom { border-top: 1px solid rgba(228,218,203,.14); padding-top: 30px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; letter-spacing: .08em; color: var(--stone); }
.site-footer { overflow: hidden; }
.footer-wordmark { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 8.4vw, 136px); line-height: .9; letter-spacing: -0.02em; color: rgba(247,243,236,.92); margin: 0 0 clamp(40px, 5vw, 72px); white-space: nowrap; }
.footer-wordmark em { color: var(--taupe); }
@media (max-width: 960px) { .footer-statement { grid-column: 1 / -1; } .footer-col, .footer-col:first-of-type, .footer-col.wide { grid-column: span 4; } }
@media (max-width: 620px) { .footer-col, .footer-col:first-of-type, .footer-col.wide { grid-column: span 6; } .footer-col.wide { grid-column: 1 / -1; } .footer-wordmark { white-space: normal; } }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
.nf-media { position: relative; overflow: hidden; background: var(--linen); }
.nf-media img { width: 100%; height: 100%; object-fit: cover; }
.nf-body { display: flex; flex-direction: column; justify-content: center; padding: 140px var(--gutter) 80px; }
.nf-body .big { font-family: var(--serif); font-style: italic; font-size: clamp(90px, 14vw, 220px); line-height: .8; color: var(--taupe); margin-bottom: 30px; font-weight: 300; }
@media (max-width: 860px) { .nf { grid-template-columns: 1fr; } .nf-media { height: 42vh; order: 2; } }

/* ---------- GSAP-driven mode: GSAP owns reveal transforms ---------- */
.gsap .reveal, .gsap .img-reveal img { transition: none; }
.gsap .img-reveal img { opacity: 1; transform: none; }
.gsap .img-reveal::after { display: none; }
.gsap .project-card img, .gsap .gallery figure img, .gsap .feature img { transition: transform 1.4s var(--ease); }
.split-line { padding-bottom: .08em; margin-bottom: -.08em; }
html.lenis, html.lenis body { height: auto; }

/* ---------- Justified gallery (no cropping, equal row heights) ---------- */
.jgal { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 28px); }
.jrow { display: flex; gap: clamp(14px, 2vw, 28px); align-items: flex-start; }
.jrow figure { margin: 0; min-width: 0; }
.jrow button { all: unset; display: block; width: 100%; cursor: zoom-in; }
.jrow button:focus-visible { outline: 1px solid var(--walnut); outline-offset: 4px; }
.jrow .img-reveal { display: block; }
.jrow img { width: 100%; height: auto; transition: transform 1.4s var(--ease); }
.jrow button:hover img { transform: scale(1.03); }
.jrow figcaption { margin-top: 12px; font-size: 13px; letter-spacing: .04em; color: var(--stone); }
@media (max-width: 760px) { .jrow { flex-direction: column; } .jrow figure { flex: none !important; width: 100%; } }

.crumbs { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); margin-bottom: clamp(36px, 5vw, 64px); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--espresso); }
.crumbs span[aria-hidden] { margin: 0 10px; }

/* ---------- Utilities ---------- */
.mt-s { margin-top: 24px; } .mt-m { margin-top: 48px; } .mt-l { margin-top: 88px; }
.mb-0 { margin-bottom: 0; } .mb-m { margin-bottom: 48px; } .mb-l { margin-bottom: 88px; }
.center { text-align: center; }
.max-640 { max-width: 640px; } .max-760 { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =====================================================================
   REFINEMENT LAYER: details, transitions & micro-interactions
   ===================================================================== */
:root { --io: cubic-bezier(.76, 0, .24, 1); --expo: cubic-bezier(.16, 1, .3, 1); }
h1, h2, h3, .lede, blockquote p { font-feature-settings: "kern", "liga", "dlig"; hanging-punctuation: first; }
body { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---- Intro loader ---- */
.loader { display: none; }
.show-loader .loader {
  display: flex; position: fixed; inset: 0; z-index: 700; background: var(--ivory); color: var(--espresso);
  align-items: flex-end; padding: 0 var(--gutter) clamp(40px, 8vh, 90px);
  animation: loader-safety 1s var(--io) 4.2s forwards;
}
@keyframes loader-safety { to { transform: translateY(-100%); } }
.loader-inner { width: 100%; }
.loader-mark { font-family: var(--serif); font-weight: 300; font-size: clamp(48px, 9vw, 150px); line-height: .95; letter-spacing: -.02em; margin: 0 0 28px; color: var(--ink); }
.loader-mark span { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.loader-mark em { color: var(--walnut); }
.loader-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--stone); margin-bottom: 16px; }
.loader-count { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--espresso); }
.loader-line { display: block; height: 1px; background: var(--rule); overflow: hidden; }
.loader-line i { display: block; height: 100%; background: var(--espresso); transform: scaleX(0); transform-origin: left; }
.loading .hero * { animation-play-state: paused !important; }

/* ---- Page transition curtain ---- */
.curtain {
  position: fixed; inset: 0; z-index: 650; background: var(--espresso); color: var(--ivory);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  transform: translateY(101%);
}
.curtain-mark { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 40px); opacity: 0; transform: translateY(14px); }
.curtain-mark em { color: var(--taupe); }
.is-entering .curtain { transform: translateY(0); animation: curtain-out .95s var(--io) .12s forwards; }
.is-entering .curtain-mark { opacity: 1; transform: none; animation: mark-out .4s ease forwards; }
.is-leaving .curtain { animation: curtain-in .45s var(--io) forwards; }
.is-leaving .curtain-mark { animation: mark-in .5s var(--expo) .25s forwards; }
@keyframes curtain-out { to { transform: translateY(-101%); } }
@keyframes curtain-in { from { transform: translateY(101%); } to { transform: translateY(0); } }
@keyframes mark-in { to { opacity: 1; transform: none; } }
@keyframes mark-out { to { opacity: 0; transform: translateY(-14px); } }
.reduce .curtain, .reduce .loader { display: none !important; }

/* ---- Scroll progress + paper grain ---- */
.progress { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 160; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--walnut); transform: scaleX(0); transform-origin: left; }
.grain {
  position: fixed; inset: 0; z-index: 590; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Custom cursor ---- */
.cursor { display: none; }
.has-cursor .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 800; pointer-events: none; transition: opacity .3s; }
.has-cursor .cursor.is-hidden { opacity: 0; }
/* Native pointer stays visible everywhere; the custom cursor only appears as a "View" bubble over photographs */
.has-cursor .cursor-dot { display: none; }
.has-cursor .cursor-ring { opacity: 0; transform-origin: center; }
.has-cursor .cursor.is-view .cursor-ring { opacity: 1; }
.has-cursor .cursor.is-link .cursor-ring, .has-cursor .cursor.is-text .cursor-ring { opacity: 0; }
.cursor-dot { position: fixed; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; transition: opacity .3s; }
.cursor-ring {
  position: fixed; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.9); mix-blend-mode: difference; display: grid; place-items: center;
  transition: width .5s var(--expo), height .5s var(--expo), margin .5s var(--expo), background-color .4s, border-color .4s;
}
.cursor-label { font-family: var(--sans); font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--ivory); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--expo); }
.cursor.is-link .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255,255,255,.95); }
.cursor.is-link .cursor-dot { opacity: 0; }
.cursor.is-view .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; background: var(--espresso); border-color: var(--espresso); }
.cursor.is-view .cursor-label { opacity: 1; transform: none; }
.cursor.is-view .cursor-dot, .cursor.is-text .cursor-dot { opacity: 0; }
.cursor.is-text .cursor-ring { width: 4px; height: 28px; margin: -14px 0 0 -2px; border-radius: 2px; }
.cursor.is-down .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

/* ---- Text roll on hover ---- */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; line-height: inherit; }
.roll > span { display: block; transition: transform .6s var(--expo); }
.roll > span::after { content: attr(data-text); content: attr(data-text) / ""; position: absolute; left: 0; top: 100%; white-space: nowrap; }
a:hover .roll > span, button:hover .roll > span, a:focus-visible .roll > span { transform: translateY(-100%); }
.btn .roll, .text-link .roll { padding: .1em 0; margin: -.1em 0; }
.btn .roll > span::after { top: calc(100% + .1em); }
.nav-primary a:not(.nav-cta)::after { bottom: -2px; }

/* ---- Header refinements ---- */
.site-header .bar { position: relative; }
.site-header.is-scrolled .bar::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: transparent; }
.brand-name { transition: letter-spacing .6s var(--expo); }
.brand:hover .brand-name { letter-spacing: .04em; }
.nav-cta { border-radius: 0; }
.menu-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.menu-tag { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--taupe); }

/* ---- Hero: clip-path wipes + numbered progress ---- */
.hero-slide { opacity: 1; clip-path: inset(0 0 0 100%); transition: clip-path 1.6s var(--io); z-index: 1; }
.hero-slide.is-active { clip-path: inset(0 0 0 0); z-index: 3; }
.hero-slide.was-active { clip-path: inset(0 0 0 0); z-index: 2; transition: none; }
.hero-slide.was-active img { transform: scale(1); transition: none; }
.gsap .hero-content { visibility: hidden; animation: vis-safety 0s 3.5s forwards; }
.gsap.show-loader .hero-content { animation-delay: 6s; }
@keyframes vis-safety { to { visibility: visible; } }
.gsap .hero h1 .line > span, .gsap .hero .eyebrow, .gsap .hero-aside { animation: none; opacity: 1; transform: none; }
.hero h1 .line { padding-top: .04em; }
.hero-meta { gap: 6px; align-items: flex-end; }
.hero-index { font-size: 11px; letter-spacing: .2em; color: rgba(247,243,236,.7); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.hero-index b { font-weight: 400; color: var(--ivory); }
.hero-dot { width: auto; height: auto; display: flex; align-items: center; gap: 12px; padding: 6px 0; color: rgba(247,243,236,.55); font-size: 11px; letter-spacing: .18em; font-family: var(--sans); transition: color .4s; }
.hero-dot::before { position: relative; right: auto; top: auto; order: 2; width: 26px; height: 1px; background: rgba(247,243,236,.35); transition: width .6s var(--expo); }
.hero-dot::after { content: ""; position: absolute; right: 0; top: 50%; height: 1px; width: 56px; background: var(--ivory); transform: scaleX(0); transform-origin: left; }
.hero-dot { position: relative; }
.hero-dot.is-active { color: var(--ivory); }
.hero-dot.is-active::before { width: 56px; background: rgba(247,243,236,.3); }
.hero-dot.is-active::after { animation: dot-fill 6.5s linear forwards; }
.hero-dot:hover { color: var(--ivory); }
@keyframes dot-fill { to { transform: scaleX(1); } }
.loading .hero-dot.is-active::after { animation-play-state: paused; }
.scroll-cue { width: auto; height: auto; background: none; overflow: visible; display: flex; flex-direction: column; align-items: center; gap: 12px; transform: translateX(-50%); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(247,243,236,.75); }
.scroll-cue::after { position: relative; top: 0; width: 1px; height: 48px; background: linear-gradient(var(--ivory), var(--ivory)) 0 -48px / 1px 48px no-repeat, rgba(247,243,236,.25); animation: cue2 2.4s var(--io) infinite; }
@keyframes cue2 { to { background-position: 0 48px, 0 0; } }
@media (max-width: 1100px) { .scroll-cue { display: none !important; } }

/* ---- Marquee ---- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--ivory); padding: clamp(22px, 3vw, 36px) 0; }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee-item { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 4.4vw, 68px); line-height: 1; color: var(--ink); white-space: nowrap; padding: 0 clamp(18px, 2.4vw, 40px); }
.marquee-item:nth-child(4n+3) { font-style: italic; color: var(--walnut); }
.marquee-star { width: 14px; height: 14px; flex: none; color: var(--taupe); }
.no-js .marquee-track, .reduce .marquee-track { animation: none; }
html:not(.gsap):not(.reduce) .marquee-track { animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- Horizontal gallery ---- */
.hscroll { position: relative; background: var(--ink); color: var(--cream); overflow: hidden; }
.hscroll-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: clamp(90px, 12vh, 140px) 0 clamp(50px, 8vh, 90px); }
.hscroll-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: clamp(32px, 5vh, 60px); flex-wrap: wrap; }
.hscroll-head .h2 { color: var(--ivory); }
.hscroll-head .eyebrow { color: var(--taupe); }
.hscroll-hint { display: flex; align-items: center; gap: 16px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--taupe); margin: 0; }
.hint-m { display: none; }
@media (max-width: 860px) { .hint-d { display: none; } .hint-m { display: inline; } }
.hscroll-bar { display: inline-block; width: 120px; height: 1px; background: rgba(239,232,220,.2); overflow: hidden; }
.hscroll-bar i { display: block; height: 100%; background: var(--ivory); transform: scaleX(0); transform-origin: left; }
.hscroll-track { display: flex; gap: clamp(16px, 2.4vw, 36px); padding: 0 var(--gutter); width: max-content; align-items: flex-end; }
.hs-item { display: block; flex: none; text-decoration: none; color: inherit; }
.hs-frame { overflow: hidden; height: min(58vh, 560px); background: #2a2420; }
.hs-item.hs-short .hs-frame { height: min(44vh, 420px); }
.hs-item img { height: 100%; width: auto; max-width: none; transition: filter .6s; }
.hs-item:hover img { filter: brightness(1.06); }
.hs-cap { display: flex; gap: 14px; align-items: baseline; margin-top: 16px; font-size: 13px; letter-spacing: .04em; color: var(--linen); }
.hs-cap b { font-weight: 400; font-size: 11px; letter-spacing: .2em; color: var(--taupe); }
.hs-cap span:last-child { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ivory); }
@media (max-width: 860px) {
  .hscroll-pin { min-height: 0; }
  .hscroll-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hscroll-track::-webkit-scrollbar { display: none; }
  .hs-item { scroll-snap-align: start; }
  .hs-frame, .hs-item.hs-short .hs-frame { height: 54vh; max-height: 440px; }
  .hscroll-bar { display: none; }
}

/* ---- Hairlines that draw themselves ---- */
.pillars, .step, .t-card, .info-block, .feature-meta, .press-list, .service-list, .pf-list dl {
  border-top-color: transparent !important;
  background-image: linear-gradient(var(--rule), var(--rule)); background-repeat: no-repeat;
  background-position: left top; background-size: calc(var(--line, 1) * 100%) 1px;
}
.press-list li, .service, .pf-list div {
  border-bottom-color: transparent !important;
  background-image: linear-gradient(var(--rule), var(--rule)); background-repeat: no-repeat;
  background-position: left bottom; background-size: calc(var(--line, 1) * 100%) 1px;
}
.press-list li { transition: padding .6s var(--expo); }
.press-list li:hover { padding-left: 14px; }
.press-list li:hover .what { color: var(--walnut); }
.press-list .what { transition: color .4s; }

/* ---- Feature cards: richer hover ---- */
.feature .img-reveal, .project-card .frame { position: relative; }
.feature .img-reveal::before, .project-card .frame::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(29,25,22,0) 50%, rgba(29,25,22,.35)); opacity: 0; transition: opacity .8s var(--expo);
}
.feature:hover .img-reveal::before, .project-card:hover .frame::before { opacity: 1; }
.feature-meta h3, .project-card h2 { transition: transform .7s var(--expo), color .4s; }
.feature:hover .feature-meta h3, .project-card:hover h2 { transform: translateX(10px); color: var(--walnut); }
.feature-meta .go { display: inline-flex; align-items: center; gap: 10px; }
.feature-meta .go::after { content: ""; width: 0; height: 1px; background: currentColor; transition: width .6s var(--expo); }
.feature:hover .feature-meta .go::after { width: 28px; }

/* ---- Portfolio index view ---- */
.portfolio-tools { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--rule); }
.portfolio-tools .filter-bar { margin: 0; border: 0; padding-bottom: 22px; }
.view-toggle { display: flex; gap: 4px; padding-bottom: 16px; }
.view-toggle button { background: none; border: 1px solid transparent; padding: 8px 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: color .3s, border-color .3s; }
.view-toggle button[aria-pressed="true"] { color: var(--espresso); border-color: var(--rule); }
.view-toggle svg { width: 12px; height: 12px; }
.pindex { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.pindex li.is-hidden { display: none; }
.pi-row { display: grid; grid-template-columns: 70px 1fr 1fr 120px 40px; align-items: center; gap: 20px; padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--rule); text-decoration: none; position: relative; transition: padding .6s var(--expo), color .4s; }
.pi-row::before { content: ""; position: absolute; inset: 0; background: var(--cream); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--expo); z-index: -1; }
.pi-row:hover::before { transform: scaleY(1); }
.pi-row:hover { padding-left: 18px; padding-right: 18px; }
.pi-n { font-size: 12px; letter-spacing: .2em; color: var(--stone); }
.pi-title { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 52px); font-weight: 300; line-height: 1.05; color: var(--ink); }
.pi-kicker { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--stone); }
.pi-count { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); text-align: right; }
.pi-arrow { width: 26px; height: 1px; background: var(--espresso); justify-self: end; position: relative; transform: translateX(-10px); opacity: 0; transition: transform .6s var(--expo), opacity .4s; }
.pi-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--espresso); border-right: 1px solid var(--espresso); transform: rotate(45deg); }
.pi-row:hover .pi-arrow { transform: none; opacity: 1; }
.pi-thumb { display: none; }
.pi-preview { position: fixed; left: 0; top: 0; z-index: 140; width: 300px; aspect-ratio: 4 / 5; margin: -190px 0 0 40px; pointer-events: none; overflow: hidden; opacity: 0; visibility: hidden; transform: scale(.9); box-shadow: 0 30px 60px -30px rgba(29,25,22,.45); }
.pi-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .pi-row { grid-template-columns: 64px 1fr auto; gap: 14px; }
  .pi-kicker, .pi-arrow { display: none; }
  .pi-count { grid-column: 2; grid-row: 2; text-align: left; margin-top: -8px; }
  .pi-n { display: none; }
  .pi-thumb { display: block; grid-row: 1 / span 2; grid-column: 1; width: 64px; height: 80px; object-fit: cover; }
  .pi-title { font-size: 28px; }
}

/* ---- Gallery captions ---- */
.cap-n { font-size: 10px; letter-spacing: .2em; color: var(--taupe); margin-right: 12px; font-variant-numeric: tabular-nums; }
.jrow figcaption { transition: color .4s, transform .6s var(--expo); }
.jrow figure:hover figcaption { color: var(--espresso); transform: translateX(6px); }

/* ---- Lightbox close ---- */
.lb-x { width: 18px; height: 18px; position: relative; display: inline-block; transition: transform .6s var(--expo); }
.lb-x::before, .lb-x::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.lb-x::after { transform: rotate(-45deg); }
.lb-close:hover .lb-x { transform: rotate(90deg); }
.lb-count { font-variant-numeric: tabular-nums; }

/* ---- Form micro-interactions ---- */
.field input, .field textarea {
  background-image: linear-gradient(var(--espresso), var(--espresso)); background-repeat: no-repeat;
  background-position: left bottom; background-size: 0% 1px; transition: background-size .7s var(--expo), border-color .3s;
}
.field input:focus, .field textarea:focus { background-size: 100% 1px; }
.field label { transition: color .3s; }
.field:focus-within label { color: var(--espresso); }
.chip span { transition: background .4s var(--expo), color .4s, border-color .4s, transform .4s var(--expo); }
.chip input:checked + span { transform: translateY(-2px); }
.form-success h2 { color: var(--ink); }

/* ---- Footer details ---- */
.footer-bottom { align-items: center; }
.footer-time { display: inline-flex; align-items: center; gap: 10px; font-variant-numeric: tabular-nums; }
.footer-time .dot { width: 6px; height: 6px; border-radius: 50%; background: #8fa67a; box-shadow: 0 0 0 0 rgba(143,166,122,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(143,166,122,0); } 100% { box-shadow: 0 0 0 0 rgba(143,166,122,0); } }
.totop { position: relative; width: 84px; height: 84px; border: 0; background: none; color: var(--linen); cursor: pointer; padding: 0; flex: none; }
.totop svg { width: 100%; height: 100%; animation: spin 18s linear infinite; }
.totop text { font-family: var(--sans); font-size: 8.4px; letter-spacing: .32em; fill: currentColor; }
.totop-arrow { position: absolute; left: 50%; top: 50%; width: 1px; height: 22px; margin: -11px 0 0 0; background: currentColor; transition: transform .6s var(--expo); }
.totop-arrow::before { content: ""; position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-left: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); }
.totop:hover .totop-arrow { transform: translateY(-4px); }
.totop:hover { color: var(--ivory); }
@keyframes spin { to { transform: rotate(360deg); } }
.footer-col a { display: inline-block; }
.footer-wordmark .split-char, .footer-wordmark > div { display: inline-block; }

/* ---- Small typographic details ---- */
.eyebrow::before { transform-origin: left; }
.reveal.is-in .eyebrow::before, .eyebrow.is-in::before { animation: none; }
blockquote p::first-letter { }
.split-media figcaption::before { content: "\2014\00a0"; color: var(--taupe); }
.collage figcaption::before { content: "\2014\00a0"; color: var(--taupe); }
::selection { background: var(--espresso); color: var(--ivory); }

/* =====================================================================
   STRUCTURE v3: short pages, tabs, room-index hero
   ===================================================================== */

/* ---- Hero with "Explore by room" index (signature moment) ---- */
.hero-rooms::after { background: linear-gradient(180deg, rgba(29,25,22,.55) 0%, rgba(29,25,22,.12) 26%, rgba(29,25,22,.38) 55%, rgba(29,25,22,.88) 100%), linear-gradient(90deg, rgba(29,25,22,.6) 0%, rgba(29,25,22,.1) 55%, rgba(29,25,22,.45) 100%); }
.hero-rooms .hero-content .wrap { grid-template-columns: 1fr minmax(240px, 300px); align-items: end; gap: clamp(32px, 6vw, 96px); }
.hero-sub { font-size: 16px; color: var(--linen); margin: 26px 0 30px; max-width: 360px; }
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.text-link-light { color: var(--ivory); }
.room-index { padding-bottom: 6px; }
.room-index-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(247,243,236,.65); margin: 0 0 18px; }
.room-index ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(247,243,236,.22); }
.room-index li { border-bottom: 1px solid rgba(247,243,236,.22); }
.room-index a { display: flex; align-items: baseline; gap: 16px; padding: 13px 0; text-decoration: none; color: rgba(247,243,236,.6); transition: color .5s, padding .7s var(--expo); position: relative; }
.room-index a::after { content: ""; position: absolute; right: 0; top: 50%; width: 0; height: 1px; background: currentColor; transition: width .7s var(--expo); }
.room-index a.is-active, .room-index a:hover, .room-index a:focus-visible { color: var(--ivory); padding-left: 10px; }
.room-index a.is-active::after, .room-index a:hover::after { width: 24px; }
.ri-n { font-size: 10px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.ri-t { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 25px); font-weight: 300; line-height: 1.1; }
.room-progress { display: block; height: 1px; margin-top: 18px; background: rgba(247,243,236,.18); overflow: hidden; }
.room-progress i { display: block; height: 100%; background: var(--ivory); transform: scaleX(0); transform-origin: left; }
.room-progress i.run { animation: dot-fill 6.5s linear forwards; }
@media (max-width: 860px) {
  .hero-rooms .hero-content .wrap { grid-template-columns: 1fr; }
  .room-index { display: none; }
}

/* ---- Doors: three clear next steps ---- */
.doors-section { padding-top: clamp(80px, 11vw, 160px); }
.doors-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); margin-bottom: clamp(48px, 6vw, 88px); align-items: end; }
.doors-head .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.doors-head .h2 { grid-column: 1 / span 7; }
.doors-intro { grid-column: 9 / span 4; margin: 0; color: var(--espresso); }
.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 36px); }
.door { display: block; text-decoration: none; }
.door .door-img { aspect-ratio: 4 / 5; }
.door .door-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--expo); }
.door:hover .door-img img { transform: scale(1.05); }
.door-meta { display: flex; align-items: baseline; gap: 14px; padding: 20px 0 8px; border-bottom: 1px solid var(--rule); }
.door-n { font-size: 11px; letter-spacing: .2em; color: var(--stone); }
.door-t { font-family: var(--serif); font-size: clamp(26px, 2.3vw, 34px); font-weight: 300; flex: 1; transition: transform .7s var(--expo), color .4s; }
.door:hover .door-t { transform: translateX(8px); color: var(--walnut); }
.door-arrow { width: 22px; height: 1px; background: var(--espresso); position: relative; transition: width .6s var(--expo); align-self: center; }
.door-arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--espresso); border-right: 1px solid var(--espresso); transform: rotate(45deg); }
.door:hover .door-arrow { width: 38px; }
.door-d { display: block; padding-top: 12px; font-size: 15px; color: var(--stone); }
@media (max-width: 860px) {
  .doors-head .h2, .doors-intro { grid-column: 1 / -1; }
  .doors { grid-template-columns: 1fr; gap: 40px; }
  .door .door-img { aspect-ratio: 16 / 11; }
}

/* ---- CTA band led by a testimonial ---- */
.cta-testimonial { margin: 0 auto 44px; max-width: 640px; }
.cta-testimonial blockquote { margin: 0; }
.cta-testimonial p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; color: var(--linen); margin: 0 0 14px; }
.cta-testimonial figcaption { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); }
.cta-testimonial a { color: var(--linen); text-underline-offset: 4px; }
.cta-quote .h1 { margin-bottom: 40px; }
.cta-quote .wrap { padding-top: clamp(96px, 12vw, 170px); padding-bottom: clamp(96px, 12vw, 170px); }

/* ---- Compact page heroes ---- */
.page-hero-compact { padding-bottom: clamp(32px, 4vw, 56px); }

/* ---- Tabs ---- */
.tabs-section { padding-top: clamp(24px, 3vw, 40px); }
.tablist { position: relative; display: flex; gap: clamp(22px, 3vw, 46px); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tablist::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; padding: 18px 0 20px; font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 10px; align-items: baseline; transition: color .4s; flex: none; }
.tab-n { font-size: 10px; color: var(--taupe); font-variant-numeric: tabular-nums; transition: color .4s; }
.tab:hover, .tab[aria-selected="true"] { color: var(--espresso); }
.tab[aria-selected="true"] .tab-n { color: var(--walnut); }
.tab:focus-visible { outline: 1px solid var(--walnut); outline-offset: -4px; }
.tab-ink { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--espresso); transition: transform .8s var(--expo), width .8s var(--expo); pointer-events: none; }
.tabpanels { padding-top: clamp(40px, 5vw, 72px); }
.tabpanel { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.tabpanel:focus-visible { outline: 1px solid var(--walnut); outline-offset: 8px; }
.tp-media { grid-column: 1 / span 6; aspect-ratio: 5 / 6; overflow: hidden; background: var(--linen); }
.tp-media img { width: 100%; height: 100%; object-fit: cover; }
.tp-body { grid-column: 8 / span 5; }
.tp-body.tp-wide { grid-column: 1 / -1; }
.tp-tag { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); margin: 0 0 18px; }
.tp-title { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 4vw, 60px); line-height: 1.04; color: var(--ink); margin: 0 0 24px; }
.tp-title em { color: var(--walnut); }
.tp-lede { font-family: var(--serif); font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; color: var(--espresso); margin-bottom: 20px; }
.tp-body .btn { margin-top: 14px; }
.tabpanel-process .process { list-style: none; padding: 0; margin: 40px 0 44px; }
.tp-text { display: block; max-width: 680px; }
.tp-quote { margin: 0 0 22px; padding-left: 22px; border-left: 1px solid var(--taupe); }
.tp-quote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.4; color: var(--espresso); margin: 0; }
.tp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.tp-pair figure { margin: 0; }
.tp-pair img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.tp-pair figcaption { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--stone); margin-top: 10px; }
.tp-pair-single { grid-template-columns: 1fr; max-width: 520px; }
.fam-crop img { aspect-ratio: 4 / 3; object-position: 50% 0; }
.tp-text .press-list { margin-top: 12px; }

/* About: portrait beside the tabs */
.about-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.about-portrait { grid-column: 1 / span 4; margin: 0; position: sticky; top: 110px; }
.about-portrait .img-reveal { aspect-ratio: 3 / 4; }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait figcaption { margin-top: 14px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone); }
.about-layout .tabs { grid-column: 6 / span 7; }
@media (max-width: 860px) {
  .tabpanel { grid-template-columns: 1fr; }
  .tp-media, .tp-body { grid-column: 1 / -1; }
  .tp-media { aspect-ratio: 4 / 3; }
  .about-layout { grid-template-columns: 1fr; }
  .about-portrait { grid-column: 1; position: static; width: 70%; }
  .about-layout .tabs { grid-column: 1; }
  .tablist { margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
}

/* =====================================================================
   v4: projects, cities, contact details
   ===================================================================== */
.project-grid-2 { grid-template-columns: repeat(2, 1fr); column-gap: clamp(20px, 3vw, 48px); row-gap: clamp(56px, 7vw, 110px); }
.project-grid-2 .project-card { grid-column: auto; }
.project-grid-2 .project-card .frame { aspect-ratio: 4 / 3; }
.project-grid-2 .project-card:nth-child(even) { margin-top: clamp(0px, 9vw, 140px); }
.project-grid-2 .project-card .count { letter-spacing: .18em; }
@media (max-width: 760px) { .project-grid-2 { grid-template-columns: 1fr; } .project-grid-2 .project-card:nth-child(even) { margin-top: 0; } }

.cities { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin-top: clamp(56px, 7vw, 96px); padding-top: 26px; border-top: 1px solid var(--rule); }
.cities-label { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--stone); }
.cities ul { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.cities li { font-family: var(--serif); font-size: clamp(20px, 1.7vw, 26px); font-weight: 300; color: var(--ink); }
.cities li + li::before { content: "\00b7"; color: var(--taupe); margin: 0 14px; }
.cities-note { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--walnut); }
.cities { flex-direction: column; gap: 12px; }
.cities-text { margin: 0; max-width: 860px; font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.35; color: var(--ink); }
.cities-text em { color: var(--walnut); }

@media (min-width: 961px) {
  .footer-statement { grid-column: 1 / span 4; }
  .footer-col:first-of-type { grid-column: 6 / span 2; }
  .footer-col.wide { grid-column: 8 / span 3; }
  .footer-col:not(.wide):not(:first-of-type) { grid-column: 11 / span 2; }
}
.footer-cities { grid-column: 1 / -1; border-top: 1px solid rgba(228,218,203,.14); padding-top: 28px; margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.footer-cities h2 { font-family: var(--sans); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--taupe); font-weight: 400; margin: 0; }
.footer-cities p { margin: 0; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 26px); color: var(--ivory); font-weight: 300; }
.footer-cities p span { color: var(--taupe); margin: 0 6px; }
.footer-cities .footer-anywhere { font-style: italic; font-size: 18px; color: var(--linen); }

.city-list { list-style: none; margin: 28px 0 36px; padding: 0; border-top: 1px solid var(--rule); }
.city-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.cl-city { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); font-weight: 300; color: var(--ink); }
.cl-city em { color: var(--walnut); }
.cl-note { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }

.info-block .info-note { font-family: var(--sans); font-size: 15px; color: var(--stone); margin-top: 8px; line-height: 1.5; }
.info-social { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.info-block .info-social a { font-size: 22px; }

.crumb-back { display: inline-flex; align-items: center; gap: 10px; }
.crumb-arrow { width: 16px; height: 1px; background: currentColor; position: relative; transition: width .5s var(--expo); }
.crumb-arrow::before { content: ""; position: absolute; left: 0; top: -3px; width: 7px; height: 7px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.crumb-back:hover .crumb-arrow { width: 26px; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .totop svg, .footer-time .dot, .hero-dot.is-active::after, .room-progress i.run { animation: none !important; }
  .hero-slide, .tab-ink { transition: none; }
}

@media (max-width: 520px) { .bs-more { display: none; } }

