/* On Point Architecture. Cinematic Editorial. Mobile first, min-width queries only. */

:root {
  --ink: #0B0B0A;
  --char: #161614;
  --bone: #E9E4DA;
  --putty: #B8AFA0;
  --brass: #B88A44;
  --stone: #5C564B;          /* muted text on bone, 5.9:1 */
  --line: rgba(233, 228, 218, .12);
  --line-ink: rgba(11, 11, 10, .16);
  --ui-line: #8C8476;        /* form and chip borders on dark, 4.9:1 on ink */

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --fs-hero: clamp(2.6rem, 9vw, 8.5rem);
  --fs-h1: clamp(2.5rem, 7.2vw, 6.4rem);
  --fs-h2: clamp(2rem, 4.8vw, 4rem);
  --fs-h3: clamp(1.4rem, 2.4vw, 2rem);
  --fs-body: 1.05rem;
  --fs-small: .92rem;
  --fs-mono: .75rem;

  --gut: clamp(1rem, 4vw, 3.5rem);
  --sec: clamp(5rem, 12vw, 11rem);
  --head: 64px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

@media (min-width: 900px) { :root { --head: 84px; } }

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; background: var(--char); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }
main { display: block; outline: none; }
[hidden] { display: none !important; }
::selection { background: var(--brass); color: var(--ink); }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.section--light :focus-visible, .light-ground :focus-visible { outline-color: var(--ink); }

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 200;
  padding: .8rem 1.1rem; background: var(--bone); color: var(--ink);
  font-family: var(--mono); font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: .12em;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; outline-color: var(--ink); }

.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;
}

/* ---------- Type ---------- */
.mono, .label {
  font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .12em;
  text-transform: uppercase; font-weight: 400; line-height: 1.6;
}
.label { display: flex; align-items: center; gap: .7rem; color: var(--putty); margin: 0 0 1.4rem; }
.label::before { content: ""; width: 1.6rem; height: 1px; background: var(--brass); flex: none; }
.section--light .label { color: var(--stone); }
.serif { font-family: var(--serif); }
.display-1 {
  font-family: var(--serif); font-size: var(--fs-h1); line-height: .98; letter-spacing: -.025em;
}
.display-2 {
  font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.02em;
}
.display-3 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -.01em; }
.display-1 em, .display-2 em, .display-3 em, .statement__text em, .footer__big em { font-style: italic; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--putty); max-width: 38ch; }
.section--light .lede { color: var(--stone); }
.muted { color: var(--putty); }
.section--light .muted { color: var(--stone); }
.prose { max-width: 62ch; }
.prose h2 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.15; margin: 2.4em 0 .7em; }
.prose h3 { font-family: var(--sans); font-weight: 500; font-size: 1.05rem; margin: 1.8em 0 .5em; }
.prose ul { padding-left: 1.1rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.line { padding-bottom: .04em; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); position: relative; }
.section--tight { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--light { background: var(--bone); color: var(--ink); }
.section--char { background: var(--char); }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }
.section--light .hairline { border-top-color: var(--line-ink); }

.split { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .split--even { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .9rem 1.6rem; border-radius: 999px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--bone); cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn--primary { background: var(--bone); color: var(--ink); }
.btn--primary:hover { background: transparent; color: var(--bone); }
.btn--ghost { background: transparent; color: var(--bone); }
.btn--ghost:hover { background: var(--bone); color: var(--ink); }
.section--light .btn--primary { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.section--light .btn--primary:hover { background: transparent; color: var(--ink); }
.btn__arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-top: .4rem;
}
.link-arrow::after { content: "\2192"; transition: transform .4s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--bone);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--gut); clip-path: inset(0 0 0 0);
  animation: preloaderFailsafe .01s linear 6s forwards;
}
.intro-seen .preloader, .reduce .preloader { display: none !important; }
@keyframes preloaderFailsafe { to { visibility: hidden; opacity: 0; } }
.preloader__mark {
  position: absolute; top: var(--gut); left: var(--gut); margin: 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.8rem);
}
.preloader__count {
  font-family: var(--mono); font-size: clamp(3.4rem, 12vw, 9rem); line-height: .9;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.preloader__line { position: relative; height: 1px; margin-top: 1.4rem; background: var(--line); }
.preloader__line i { position: absolute; inset: 0; background: var(--brass); transform-origin: left; transform: scaleX(0); }
.preloader__meta { display: flex; justify-content: space-between; margin-top: .9rem; color: var(--putty); }

/* ---------- Custom cursor (additive) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none;
    width: 0; height: 0; opacity: 0; transition: opacity .3s;
  }
  .js .cursor.is-on { opacity: 1; }
  .cursor__ring {
    position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px;
    border: 1.5px solid var(--brass); border-radius: 50%;
    transition: transform .35s var(--ease), opacity .25s;
  }
  .cursor__disc {
    position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
    background: var(--brass); color: var(--ink); display: grid; place-items: center;
    transform: scale(.19); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
  }
  .cursor__label { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
  .cursor.is-label .cursor__disc { transform: scale(1); opacity: 1; }
  .cursor.is-label .cursor__ring { opacity: 0; transform: scale(2); }
  .cursor.is-down .cursor__ring { transform: scale(.7); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--head);
  display: flex; align-items: center; gap: 1rem; padding-inline: var(--gut);
  color: var(--bone); background: transparent;
  transition: transform .5s var(--ease), background-color .4s;
}
.site-header.is-solid { background: var(--ink); border-bottom: 1px solid var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--bone); text-decoration: none; margin-right: auto; }
.brand__svg { width: 118px; height: auto; overflow: visible; }
.brand__name { font-family: var(--serif); font-size: 30px; fill: currentColor; letter-spacing: -.5px; }
.brand__sub { font-family: var(--mono); font-size: 8.6px; letter-spacing: 2.6px; fill: var(--putty); }
.brand__rule { stroke: var(--brass); stroke-width: 1; }
.site-header__cta {
  display: none; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; min-height: 44px; align-items: center;
  border-bottom: 1px solid var(--brass);
}
@media (min-width: 700px) { .site-header__cta { display: inline-flex; } .brand__svg { width: 136px; } }
.menu-btn {
  display: inline-flex; align-items: center; gap: .8rem; min-height: 44px; min-width: 44px;
  padding: 0 .2rem 0 .6rem; background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase;
}
.menu-btn__bars { position: relative; width: 26px; height: 10px; }
.menu-btn__bars i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .45s var(--ease); }
.menu-btn__bars i:first-child { top: 0; }
.menu-btn__bars i:last-child { bottom: 0; }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars i:last-child { transform: translateY(-4.5px) rotate(-45deg); }
.no-js .menu-btn { display: none; }

/* ---------- Menu overlay ---------- */
.menu { background: var(--ink); }
.no-js .menu { padding: calc(var(--head) + 1rem) var(--gut) 2rem; border-bottom: 1px solid var(--line); }
.js .menu {
  position: fixed; inset: 0; z-index: 90; overflow-y: auto;
  padding: calc(var(--head) + 2rem) var(--gut) 2.5rem;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease), visibility 0s linear .7s;
}
.js .menu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease), visibility 0s; }
.menu__inner { display: grid; gap: 2.5rem; max-width: 1480px; margin-inline: auto; }
.menu__list { list-style: none; border-top: 1px solid var(--line); }
.menu__list li { border-bottom: 1px solid var(--line); }
.menu__list a {
  display: flex; align-items: baseline; gap: 1rem; padding: .7rem 0; text-decoration: none;
  font-family: var(--serif); font-size: clamp(2rem, 7vw, 4.6rem); line-height: 1.05; letter-spacing: -.02em;
  transition: color .3s, transform .5s var(--ease);
}
.menu__list a:hover { transform: translateX(.5rem); }
.menu__list a[aria-current="page"] { font-style: italic; }
.menu__num { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .12em; color: var(--putty); min-width: 2.2em; }
.menu__list a[aria-current="page"] .menu__num { color: var(--brass); }
.menu__aside { color: var(--putty); }
.menu__aside a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) { .menu__inner { grid-template-columns: 8fr 4fr; align-items: end; } }

/* ---------- Home hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; color: var(--bone); }
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 60%; }
.hero__scrim { position: absolute; inset: 0; background: rgba(11, 11, 10, .6); }
.hero__content {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gut) clamp(1.5rem, 5vw, 3.5rem);
  display: grid; gap: 1.4rem;
}
.hero__title { font-family: var(--serif); font-size: var(--fs-hero); line-height: .94; letter-spacing: -.03em; max-width: 11ch; }
.hero__title em { font-style: italic; }
.hero__foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; }
.hero__lede { max-width: 34ch; margin: 0; color: var(--bone); }
.hero__meta { color: var(--putty); }
.hero__datum {
  position: absolute; left: 0; right: 0; top: 38%; height: 1px; background: rgba(184, 138, 68, .55);
  transform-origin: left;
}
.hero__datum span { position: absolute; right: var(--gut); top: -1.9rem; color: var(--bone); }

/* ---------- Statement ---------- */
.statement__text {
  font-family: var(--serif); font-size: clamp(1.75rem, 3.9vw, 3.4rem); line-height: 1.12;
  letter-spacing: -.015em; max-width: 24ch; margin: 0;
}
.facts-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); padding-top: 1.5rem; }
.facts-row div { display: grid; gap: .3rem; }
.facts-row dt { order: 2; color: var(--putty); }
.facts-row dd { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.section--light .facts-row { border-top-color: var(--line-ink); }
.section--light .facts-row dt { color: var(--stone); }
@media (min-width: 700px) { .facts-row { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(1.4rem, 3vw, 2.4rem); }
.marquee__track { display: flex; }
.marquee__group { display: flex; flex-wrap: wrap; list-style: none; padding-inline: var(--gut); }
.marquee__group li {
  font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.1; padding-inline: 0 .5em; display: flex; align-items: center; gap: .5em;
}
.marquee__group li::after { content: "/"; font-style: normal; color: var(--brass); }
.marquee__group li:last-child::after { content: none; }
.marquee__group + .marquee__group { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js:not(.reduce) .marquee__track { width: max-content; animation: marquee 60s linear infinite; }
  .js:not(.reduce) .marquee__group { flex-wrap: nowrap; padding-inline: 0; }
  .js:not(.reduce) .marquee__group li { white-space: nowrap; padding-inline: .5em; gap: 1em; }
  .js:not(.reduce) .marquee__group li:last-child::after { content: "/"; }
  .js:not(.reduce) .marquee { padding-bottom: calc(clamp(1.4rem, 3vw, 2.4rem) + 2.6rem); }
  .js:not(.reduce) .marquee__group + .marquee__group { display: flex; }
  .js .marquee.is-paused .marquee__track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__toggle {
  position: absolute; right: var(--gut); bottom: .4rem; z-index: 2; display: none;
  min-height: 44px; padding: 0 .9rem; background: var(--ink); border: 1px solid var(--ui-line); border-radius: 999px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) { .js:not(.reduce) .marquee__toggle { display: inline-flex; align-items: center; } }
@media (min-width: 900px) { .js:not(.reduce) .marquee { padding-bottom: clamp(1.4rem, 3vw, 2.4rem); } .marquee__toggle { bottom: 50%; transform: translateY(50%); } }

/* ---------- Projects rail ---------- */
.rail { position: relative; padding-top: var(--sec); padding-bottom: clamp(3rem, 8vw, 6rem); }
.rail__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: clamp(2rem, 5vw, 4rem); }
.rail__track { display: grid; gap: 3.5rem; list-style: none; }
.rail__card { scroll-snap-align: start; scroll-margin-top: calc(var(--head) + 1rem); }
.rail__link { display: block; text-decoration: none; }
.rail__media { overflow: hidden; aspect-ratio: 16 / 10; background: var(--char); }
.rail__img { width: 100%; height: 100%; object-fit: cover; }
.rail__body { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.rail__name { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.05; }
.rail__meta { color: var(--putty); text-align: right; }
.rail__count { color: var(--putty); }
html:has(.rail) { scroll-snap-type: y proximity; }
.rail__count { display: none; }
@media (min-width: 900px) {
  html:has(.rail) { scroll-snap-type: none; }
  /* Fallback (reduced motion, no GSAP): a native horizontal scroller. */
  .rail__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding-bottom: 1rem; }
  .rail__track { display: flex; gap: 4vw; width: max-content; }
  .rail__card { width: min(64vw, 1000px); }
  /* Pinned cinema mode, switched on by site.js only when the pin is live. */
  .rail.is-pinned { height: 100svh; padding: calc(var(--head) + 2rem) 0 2.5rem; display: flex; flex-direction: column; overflow: hidden; }
  .rail.is-pinned .rail__count { display: block; }
  .rail.is-pinned .rail__head { margin-bottom: 2rem; }
  .rail.is-pinned .rail__viewport { flex: 1; min-height: 0; overflow: visible; padding-bottom: 0; scroll-snap-type: none; }
  .rail.is-pinned .rail__track { height: 100%; }
  .rail.is-pinned .rail__card { height: 100%; display: flex; }
  .rail.is-pinned .rail__link { display: flex; flex-direction: column; width: 100%; }
  .rail.is-pinned .rail__media { flex: 1; aspect-ratio: auto; min-height: 0; }
  .rail.is-pinned .rail__img { width: 116%; max-width: none; }
}

/* ---------- Service rows ---------- */
.rows { list-style: none; border-top: 1px solid var(--line); }
.section--light .rows { border-top-color: var(--line-ink); }
.rows > li { border-bottom: 1px solid var(--line); }
.section--light .rows > li { border-bottom-color: var(--line-ink); }
.row {
  display: grid; gap: .4rem 2rem; padding: 1.6rem 0; text-decoration: none; align-items: baseline;
  transition: padding .5s var(--ease);
}
.row__name { font-family: var(--serif); font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.02em; }
.row__desc { color: var(--putty); max-width: 46ch; margin: 0; }
.section--light .row__desc { color: var(--stone); }
.row__tag { color: var(--putty); }
.section--light .row__tag { color: var(--stone); }
a.row:hover .row__name { font-style: italic; }
@media (min-width: 900px) { .row { grid-template-columns: 5fr 5fr 2fr; } .row__tag { text-align: right; } }

/* ---------- Process steps teaser ---------- */
.steps { list-style: none; display: grid; border-top: 1px solid var(--line-ink); margin-top: clamp(2rem, 5vw, 4rem); }
.steps li { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.2rem 0; border-bottom: 1px solid var(--line-ink); }
.steps__num { color: var(--stone); }
.steps__name { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1; }
.steps__time { color: var(--stone); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); border-top: 0; }
  .steps li { grid-template-columns: 1fr; border-bottom: 0; border-top: 1px solid var(--ink); padding: 1.2rem 1.2rem 0 0; gap: .6rem; }
}

/* ---------- Quote ---------- */
.quote { margin: 0; max-width: 1100px; }
.quote__text { font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4.2vw, 3.6rem); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 2rem; }
.quote__by { color: var(--putty); }

/* ---------- Teasers (journal, related) ---------- */
.teaser { display: grid; gap: 1.5rem 3rem; text-decoration: none; }
.teaser__title { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.12; margin-bottom: .8rem; }
a.teaser:hover .teaser__title { font-style: italic; }
@media (min-width: 900px) { .teaser { grid-template-columns: 5fr 7fr; align-items: center; } }

.teasers { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-ink); }
.teasers li { border-bottom: 1px solid var(--line-ink); }
.teasers a { display: grid; gap: .3rem 2rem; padding: 1.5rem 0; text-decoration: none; }
.teasers a:hover .teaser__title { font-style: italic; }
.teasers .teaser__title { margin: 0; }
@media (min-width: 900px) { .teasers a { grid-template-columns: 2fr 7fr 3fr; align-items: baseline; } .teasers .mono:last-child { text-align: right; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; min-height: 80svh; display: flex; align-items: flex-end; }
.cta-band__media { position: absolute; inset: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 10, .62); }
.cta-band__content { position: relative; padding-block: var(--sec) clamp(2.5rem, 6vw, 5rem); }
.cta-band__content p { max-width: 40ch; }

/* ---------- Image reveal ---------- */
.reveal { overflow: hidden; margin: 0; background: var(--char); }
.reveal img { width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
figcaption { margin-top: .8rem; color: var(--putty); }
.section--light figcaption { color: var(--stone); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: calc(var(--head) + clamp(3rem, 9vw, 8rem)) 0 clamp(3rem, 7vw, 6rem); }
.page-hero__title { font-family: var(--serif); font-size: var(--fs-h1); line-height: .98; letter-spacing: -.025em; max-width: 14ch; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-hero__title em { font-style: italic; }
.page-hero__row { display: grid; gap: 1.5rem 3rem; align-items: end; }
@media (min-width: 900px) { .page-hero__row { grid-template-columns: 7fr 5fr; } }
.page-hero__media { margin-top: clamp(2.5rem, 6vw, 5rem); aspect-ratio: 16 / 9; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .6rem; color: var(--putty); margin-bottom: 1.6rem; }
.crumbs li + li::before { content: "/"; margin-right: .6rem; color: var(--brass); }
.crumbs a { text-decoration: none; display: inline-flex; min-height: 44px; align-items: center; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { display: inline-flex; min-height: 44px; align-items: center; color: var(--bone); }

/* ---------- Stacking process cards ---------- */
.stack { list-style: none; display: grid; gap: 1.5rem; padding-bottom: 6vh; }
.stack__card {
  position: sticky; top: calc(var(--head) + 1rem + var(--i, 0) * 14px);
  background: var(--ink); color: var(--bone); border: 1px solid rgba(11, 11, 10, .9);
  padding: clamp(1.5rem, 4vw, 3.5rem); min-height: min(76svh, 640px);
  display: grid; gap: 1.2rem 3rem; align-content: start; transform-origin: 50% 0; overflow: hidden;
}
.stack__shade { position: absolute; inset: 0; background: var(--ink); opacity: 0; pointer-events: none; }
.stack__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.stack__num { color: var(--brass); }
.stack__time { color: var(--putty); }
.stack__name { font-family: var(--serif); font-size: clamp(3rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.03em; }
.stack__body p { color: var(--putty); max-width: 52ch; }
.stack__gets { list-style: none; border-top: 1px solid var(--line); }
.stack__gets li { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-small); }
@media (min-width: 900px) {
  .stack__card { grid-template-columns: 6fr 6fr; grid-template-rows: auto 1fr; }
  .stack__top { grid-column: 1 / -1; }
  .stack__name { align-self: end; }
}

/* ---------- Timeline ---------- */
.timeline { list-style: none; border-left: 1px solid var(--line); margin-left: .3rem; }
.timeline li { position: relative; padding: 0 0 2.2rem 1.6rem; display: grid; gap: .3rem; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: .55rem; width: 7px; height: 7px; background: var(--brass); }
.timeline__when { color: var(--putty); }
.timeline__what { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; }
.timeline p { margin: 0; color: var(--putty); max-width: 52ch; }
@media (min-width: 900px) { .timeline li { grid-template-columns: 12rem 1fr; gap: .3rem 2rem; } .timeline p { grid-column: 2; } }

/* ---------- Services hub ---------- */
.service-grid { list-style: none; display: grid; gap: 3rem 2rem; }
.service-card { display: grid; gap: 1rem; text-decoration: none; }
.service-card .reveal { aspect-ratio: 4 / 3; }
.service-card__title { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; }
a.service-card:hover .service-card__title { font-style: italic; }
.service-card__meta { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; color: var(--putty); }
@media (min-width: 900px) { .service-grid { grid-template-columns: 1fr 1fr; } .service-grid li:nth-child(even) { margin-top: 8rem; } }

/* ---------- Data tables (title block) ---------- */
.titleblock { border: 1px solid var(--line); display: grid; margin: 0; }
.titleblock div { display: grid; gap: .25rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .titleblock div { grid-template-columns: 12rem 1fr; gap: 1rem; } }
.titleblock div:last-child { border-bottom: 0; }
.titleblock dt { color: var(--putty); }
.titleblock dd { margin: 0; }
.section--light .titleblock, .section--light .titleblock div { border-color: var(--line-ink); }
.section--light .titleblock dt { color: var(--stone); }
@media (min-width: 900px) { .titleblock--wide { grid-template-columns: repeat(4, 1fr); } .titleblock--wide div { grid-template-columns: 1fr; border-bottom: 0; border-right: 1px solid var(--line); gap: .3rem; } .titleblock--wide div:last-child { border-right: 0; } }

.included { list-style: none; display: grid; gap: 0 3rem; border-top: 1px solid var(--line); }
.included li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.section--light .included, .section--light .included li { border-color: var(--line-ink); }
@media (min-width: 700px) { .included { grid-template-columns: 1fr 1fr; } }

.pair { display: grid; gap: 2.5rem 2rem; list-style: none; }
.pair a { display: grid; gap: .9rem; text-decoration: none; }
.pair .reveal { aspect-ratio: 16 / 10; }
.pair__name { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; }
.pair a:hover .pair__name { font-style: italic; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }

.related { list-style: none; display: flex; flex-wrap: wrap; gap: .8rem; }
.related a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.1rem;
  border: 1px solid var(--ui-line); border-radius: 999px; text-decoration: none; font-size: var(--fs-small);
}
.related a:hover { border-color: var(--bone); }
.section--light .related a { border-color: var(--stone); }
.section--light .related a:hover { border-color: var(--ink); }

/* ---------- Projects grid ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.5rem; }
.chip {
  min-height: 44px; padding: 0 1.1rem; border-radius: 999px; background: transparent;
  border: 1px solid var(--ui-line); cursor: pointer;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
}
.chip[aria-pressed="true"] { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.project-grid { list-style: none; display: grid; gap: 3.5rem 2rem; }
.project-grid li[hidden] { display: none; }
.project-card { display: grid; gap: 1rem; text-decoration: none; }
.project-card .reveal { aspect-ratio: 16 / 10; }
.project-card__name { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1; }
a.project-card:hover .project-card__name { font-style: italic; }
.project-card__meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--putty); border-top: 1px solid var(--line); padding-top: .8rem; }
@media (min-width: 900px) { .project-grid { grid-template-columns: 1fr 1fr; } .project-grid li:nth-child(even) { margin-top: 6rem; } }

/* ---------- Case study ---------- */
.case-images { display: grid; gap: 1.5rem; }
.case-images .reveal:first-child { aspect-ratio: 4 / 5; }
.case-images .reveal:last-child { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .case-images { grid-template-columns: 5fr 7fr; align-items: end; } }
.next-project { display: grid; gap: .6rem; text-decoration: none; padding-block: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.next-project__name { font-family: var(--serif); font-size: var(--fs-h1); line-height: .95; letter-spacing: -.025em; }
.next-project:hover .next-project__name { font-style: italic; }

/* ---------- Article ---------- */
.article { max-width: 70ch; }
.article__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: var(--stone); margin-bottom: 2rem; }
.cost-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: var(--fs-small); }
.cost-table caption { text-align: left; font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); padding-bottom: .8rem; }
.cost-table th, .cost-table td { text-align: left; padding: .75rem .5rem .75rem 0; border-bottom: 1px solid var(--line-ink); vertical-align: top; }
.cost-table th { font-weight: 500; }
.cost-table td:last-child, .cost-table th:last-child { text-align: right; white-space: nowrap; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.map-block {
  position: relative; aspect-ratio: 4 / 3; background: var(--char); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; padding: 1.2rem; overflow: hidden;
}
.map-block__grid { position: absolute; inset: 0; opacity: .5; }
.map-block__grid line { stroke: var(--line); stroke-width: 1; }
.map-block__road { stroke: rgba(233, 228, 218, .28) !important; stroke-width: 6 !important; }
.map-block__pin { position: absolute; left: 58%; top: 46%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 1.5px solid var(--brass); border-radius: 50%; }
.map-block__pin::after { content: ""; position: absolute; inset: 5px; background: var(--brass); border-radius: 50%; }
.map-block > p { position: relative; }
.hours { display: grid; margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--putty); }
.hours dd { margin: 0; }

/* ---------- Form ---------- */
.form { display: grid; gap: 1.6rem; }
.form__row { display: grid; gap: 1.6rem; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field__label { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--putty); }
.field__hint { font-size: .85rem; color: var(--putty); margin: 0; }
.field__input {
  width: 100%; min-height: 48px; padding: .7rem 0; background: transparent; border: 0; border-radius: 0;
  border-bottom: 1px solid var(--ui-line); font-size: 1.05rem;
}
.field__input:focus-visible { outline-offset: 4px; }
.field__input[aria-invalid="true"] { border-bottom-color: #E0866B; }
select.field__input { appearance: none; background-image: none; padding-right: 2rem; cursor: pointer; }
.field--select { position: relative; }
.field--select::after { content: "\2193"; position: absolute; right: .2rem; bottom: .85rem; pointer-events: none; color: var(--putty); }
select.field__input option { background: var(--char); color: var(--bone); }
textarea.field__input { min-height: 120px; resize: vertical; }
.field__error { margin: 0; font-size: .9rem; color: #F0A48C; }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.form__note { font-size: .85rem; color: var(--putty); margin: 0; max-width: 34ch; }
.form__success { border-top: 1px solid var(--brass); padding-top: 1.6rem; }
.form__success h3 { font-family: var(--serif); font-size: var(--fs-h3); margin-bottom: .8rem; }
.form__success p { color: var(--putty); }
.form__success:focus { outline: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding-top: clamp(4rem, 10vw, 8rem); }
.footer__cta { display: grid; gap: 1.4rem; justify-items: start; padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.footer__big { font-family: var(--serif); font-size: clamp(3rem, 10vw, 9rem); line-height: .92; letter-spacing: -.03em; margin: 0; }
.footer__sub { color: var(--putty); max-width: 40ch; margin: 0; }
.footer__grid { display: grid; gap: 2.5rem; border-top: 1px solid var(--line); padding-top: 2.5rem; padding-bottom: 2.5rem; }
.footer__col p, .footer__address { color: var(--putty); margin: 0 0 1rem; font-size: var(--fs-small); }
.footer__col a, .footer__nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--bone); }
.footer__col a:hover, .footer__nav a:hover { text-decoration: underline; }
.footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.footer__nav ul { list-style: none; }
.footer__nav li { font-size: var(--fs-small); }
.footer__clock { font-size: clamp(1.4rem, 3vw, 2rem) !important; color: var(--bone) !important; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.footer__coords { line-height: 1.9; }
.footer__legal { color: var(--putty); font-size: .8rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); margin: 0; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 3fr 6fr 3fr; }
  .footer__nav { grid-template-columns: repeat(3, 1fr); }
  .footer__cta { grid-template-columns: 1fr auto; align-items: end; }
  .footer__big { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; align-content: center; padding-block: calc(var(--head) + 3rem) 4rem; }
.nf__code { color: var(--putty); }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: clamp(2.5rem, 5vw, 4rem); }
.mb-0 { margin-bottom: 0; }
.stack-sm > * + * { margin-top: 1rem; }
.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-169 { aspect-ratio: 16 / 9; }
.ratio-11 { aspect-ratio: 1 / 1; }
.grid-2 { display: grid; gap: 2.5rem 3rem; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2--top { align-items: start; } }
.soon { color: var(--stone); }

/* ---------- Cross-page transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none !important; transform: none !important; }
}

/* ---------- Late additions ---------- */
html.menu-open { overflow: hidden; }
.no-js .chips { display: none; }
.rail__head, .rail__track { padding-inline: var(--gut); }
.cta-band .lede { color: var(--bone); }
.teaser .reveal { max-width: 560px; }
.stack__card .label { color: var(--putty); }
.case-body { display: grid; gap: 2.5rem 4rem; align-items: start; }
@media (min-width: 900px) {
  .case-body { grid-template-columns: 5fr 7fr; }
  .case-figure { position: sticky; top: calc(var(--head) + 2rem); }
}
.prose .article__h { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h3); line-height: 1.15; margin: 2.2em 0 .6em; }
.article .prose a { text-decoration-color: var(--brass); }
