/* ============================================================
   The Look. by Lina — design system
   Palette drawn from her rooms: plaster walls, espresso dusk,
   cognac leather, white oak, brass. Type: Prata (fashion Didone),
   Jost (geometric, matches her wordmark sans), Mrs Saint Delafield
   (her "by Lina" script). Signature device: the full stop.
   ============================================================ */

/* ---------- fonts, self-hosted ----------
   Jost ships as a variable font, so one file covers 300 through 500.
   Latin subsets only: the copy is English, and Prata has no latin-ext cut. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../assets/fonts/jost-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../assets/fonts/jost-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Prata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/prata-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mrs Saint Delafield";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/mrssaintdelafield-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* surfaces */
  --plaster: #f3f1ec;
  --plaster-deep: #e6e2d8;
  --linen: #ebe7dc;
  --espresso: #241b12;
  --espresso-soft: #2f251a;

  /* ink */
  --ink: #251e16;
  --ink-soft: #5d5546;
  --ink-on-dark: #f2ede4;
  --ink-on-dark-soft: rgba(242, 237, 228, 0.68);

  /* brass. --camel is the display mark and the hairline rule;
     --camel-ink is the same note darkened to clear 4.5:1 for
     small text on plaster; --camel-bright is its dark-surface twin. */
  --camel: #a5813f;
  --camel-ink: #755620;
  --camel-bright: #c39f58;

  --hairline: rgba(37, 30, 22, 0.14);
  --hairline-light: rgba(242, 237, 228, 0.22);

  /* contextual accent: overridden on dark surfaces */
  --accent: var(--camel);
  --accent-text: var(--camel-ink);

  /* fallbacks chosen for metric proximity: Futura is Jost's model, and
     Snell Roundhand is the closest shipped script to Mrs Saint Delafield */
  --font-display: "Prata", "Times New Roman", Times, serif;
  --font-sans: "Jost", Futura, "Century Gothic", system-ui, sans-serif;
  --font-script: "Mrs Saint Delafield", "Snell Roundhand", "Brush Script MT", cursive;

  /* letterspacing: two steps, not eleven */
  --track-ui: 0.22em;
  --track-wide: 0.28em;

  /* motion: a long exponential for entrances, a short one for touch */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-micro: cubic-bezier(0.2, 0, 0, 1);
  --dur-micro: 0.22s;
  --dur-move: 0.45s;
  --dur-reveal: 0.7s;

  /* spacing scale */
  --sp-2: 0.7rem;
  --sp-3: 1.1rem;
  --sp-4: 1.6rem;
  --sp-5: 2.2rem;
  --sp-6: 3rem;
  --sp-section: clamp(5rem, 11vw, 9.5rem);
  --sp-section-tight: clamp(4rem, 8vw, 6.5rem);

  --pad: clamp(1.25rem, 4vw, 4rem);
  --measure: 34em;

  /* the one drawn icon in the system */
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 12' fill='none' stroke='%23000' stroke-width='1.1' stroke-linecap='square'%3E%3Cpath d='M0 6h23.4M18.6 1.2 23.8 6l-5.2 4.8'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--camel-ink);
  scrollbar-color: var(--camel) var(--plaster-deep);
  scrollbar-width: thin;
}

/* the parts we did not draw still belong to the palette */
::selection { background: var(--camel); color: var(--plaster); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--plaster-deep); }
::-webkit-scrollbar-thumb { background: var(--camel); border: 3px solid var(--plaster-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--camel-ink); }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.section--dark a:focus-visible,
.section--dark button:focus-visible,
.menu a:focus-visible,
.menu button:focus-visible,
.footer a:focus-visible { outline-color: var(--camel-bright); }

/* dark surfaces re-point the accent so brass stays legible on espresso */
.section--dark,
.menu,
.footer,
.stage,
.nav:not(.solid) { --accent: var(--camel-bright); --accent-text: var(--camel-bright); }

/* ---------- type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

/* the stop is an inline-block so it can be animated, which also makes it a
   line-break opportunity; .nb keeps it welded to the word it punctuates */
.nb { white-space: nowrap; }

.stop {
  color: var(--accent);
  display: inline-block;
  transform-origin: center bottom;
}
@keyframes place-the-stop {
  0% { opacity: 0; transform: translateY(-0.32em) scale(0.35); }
  62% { opacity: 1; transform: translateY(0.05em) scale(1.4); }
  100% { opacity: 1; transform: none; }
}
.js .display.reveal.in .stop {
  animation: place-the-stop 0.72s var(--ease-out) 0.24s both;
}
.wordmark .stop,
.menu-links .stop { transition: transform var(--dur-move) var(--ease-out); }
.wordmark:hover .stop,
.wordmark:focus-visible .stop,
.menu-links a:hover .stop,
.menu-links a:focus-visible .stop { transform: translateY(-0.08em) scale(1.35); }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 0.9;
}

/* section heading: the label IS the heading, never a kicker above one */
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--hairline);
}
.section--dark .section-title { border-bottom-color: var(--hairline-light); }

/* small caps metadata */
.meta-line {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.section--dark .meta-line { color: var(--ink-on-dark-soft); }

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  font-weight: 300;
  line-height: 1.66;
  max-width: var(--measure);
}

/* ---------- the arrow, drawn once ---------- */

.icon {
  display: inline-block;
  flex: none;
  width: 1.55rem;
  height: 0.72rem;
  background: currentColor;
  -webkit-mask: var(--icon-arrow) no-repeat center / contain;
  mask: var(--icon-arrow) no-repeat center / contain;
  transition: transform var(--dur-micro) var(--ease-micro);
}
.icon--back { rotate: 180deg; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  padding: 1.05rem 2.1rem;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
  isolation: isolate; /* keeps the ::after fill inside the button */
  overflow: hidden;
  transition: color var(--dur-move) var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--espresso);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--dur-move) var(--ease-out);
  z-index: -1;
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleY(1); }
.btn:hover, .btn:focus-visible { color: var(--plaster); }

.btn--light { color: var(--plaster); }
.btn--light::after { background: var(--plaster); }
.btn--light:hover, .btn--light:focus-visible { color: var(--espresso); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--accent);
  transition: color var(--dur-micro) var(--ease-micro);
}
.text-link:hover .icon { transform: translateX(0.32rem); }
.text-link:hover { color: var(--accent-text); }
.section--dark .text-link:hover,
.footer .text-link:hover { color: var(--camel-bright); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 1.1rem var(--pad);
  transition: background var(--dur-move) var(--ease-out), color var(--dur-move) var(--ease-out), box-shadow var(--dur-move);
  color: var(--plaster);
}
/* legibility wash for the transparent state over bright hero frames */
.nav::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 220%;
  background: linear-gradient(to bottom, rgba(28, 21, 14, 0.58), rgba(28, 21, 14, 0));
  pointer-events: none;
  z-index: -1;
  transition: opacity var(--dur-move) var(--ease-out);
}
.nav.solid::before { opacity: 0; }
.nav.solid {
  background: rgba(242, 237, 228, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--hairline);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.wordmark .script { font-size: 1.5rem; transform: translateY(0.18em); }

.nav-links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  list-style: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 0.4rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-micro) var(--ease-micro);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  padding: 0.5rem 0;
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--espresso);
  color: var(--plaster);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-move) var(--ease-out), visibility 0s linear var(--dur-move);
}
.menu.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.menu-close {
  position: absolute;
  top: 1.35rem;
  right: var(--pad);
  background: none; border: 0; color: inherit; cursor: pointer;
  font-size: 0.72rem; font-weight: 500; letter-spacing: var(--track-ui); text-transform: uppercase;
  font-family: var(--font-sans);
  padding: 0.5rem 0;
}
.menu-links { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.menu-links a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  display: inline-flex;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.menu-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--camel-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}
.menu.open .menu-links a { opacity: 1; transform: none; }
.menu.open .menu-links li:nth-child(1) a { transition-delay: 0.08s; }
.menu.open .menu-links li:nth-child(2) a { transition-delay: 0.14s; }
.menu.open .menu-links li:nth-child(3) a { transition-delay: 0.2s; }
.menu.open .menu-links li:nth-child(4) a { transition-delay: 0.26s; }
.menu.open .menu-links li:nth-child(5) a { transition-delay: 0.32s; }
.menu-foot {
  margin-top: var(--sp-6);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--ink-on-dark-soft);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- hero scrub ---------- */

.scrub { position: relative; height: 460vh; background: var(--espresso); }
.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.scrub-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.scrub-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28, 21, 14, 0.22), rgba(28, 21, 14, 0.04) 32%, rgba(28, 21, 14, 0.1) 68%, rgba(28, 21, 14, 0.52));
  pointer-events: none;
}

.stage {
  position: absolute;
  inset: 0;
  isolation: isolate; /* holds the ::before wash between canvas and copy */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--pad);
  color: var(--plaster);
  opacity: 0;
  pointer-events: none;
}
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 78% 58% at 50% 50%, rgba(28, 21, 14, 0.56), rgba(28, 21, 14, 0.28) 52%, rgba(28, 21, 14, 0) 80%);
  z-index: -1;
  pointer-events: none;
}
.stage p.big {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6.2vw, 5.2rem);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: -0.02em;
  max-width: 15em;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(28, 21, 14, 0.4);
}
.stage .sub {
  margin-top: var(--sp-4);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.88);
  text-shadow: 0 1px 3px rgba(28, 21, 14, 0.45);
}
.stage .script { color: var(--camel-bright); }

.stage--brand .wordmark-hero {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9.6vw, 7.8rem);
  line-height: 1;
  letter-spacing: -0.022em;
  text-shadow: 0 1px 3px rgba(28, 21, 14, 0.4);
}
.stage--brand .wordmark-hero .script {
  display: block;
  font-size: clamp(2.6rem, 7.2vw, 5.9rem);
  letter-spacing: 0;
  margin-top: var(--sp-3);
  color: var(--camel-bright);
  text-shadow: 0 1px 10px rgba(28, 21, 14, 0.55);
}

.stage--final .cta-row { pointer-events: auto; }
.cta-row { display: flex; gap: 1rem; margin-top: var(--sp-5); flex-wrap: wrap; justify-content: center; }

.scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  color: rgba(242, 237, 228, 0.82);
  font-size: 0.64rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  transition: opacity 0.4s;
}
.scroll-hint::after {
  content: "";
  width: 1px;
  height: 3.4rem;
  background: linear-gradient(to bottom, var(--camel-bright), transparent);
  animation: hintline 2.2s var(--ease-out) infinite;
}
@keyframes hintline {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-skip {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: rgba(242, 237, 228, 0.78);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(28, 21, 14, 0.55);
  transition: color var(--dur-micro) var(--ease-micro);
}
.hero-skip::before {
  content: "";
  width: 1.8rem;
  height: 1px;
  background: var(--camel-bright);
  transform-origin: left;
  transition: transform var(--dur-micro) var(--ease-micro);
}
.hero-skip:hover,
.hero-skip:focus-visible { color: var(--plaster); }
.hero-skip:hover::before,
.hero-skip:focus-visible::before { transform: scaleX(1.45); }

.scrub-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 100%;
  background: rgba(242, 237, 228, 0.14);
}
.scrub-progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--camel-bright);
  transform: scaleX(0);
  transform-origin: left;
}

@media (max-width: 560px) {
  .hero-skip { bottom: 1.4rem; letter-spacing: 0.18em; }
  .stage .sub { font-size: 0.6rem; letter-spacing: 0.2em; white-space: nowrap; }
}

/* static hero fallback (reduced motion / no JS) */
[hidden] { display: none !important; }
.hero-static {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--plaster);
  background: var(--espresso);
}
.hero-static img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.hero-static::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 76% 56% at 50% 50%, rgba(28, 21, 14, 0.58), rgba(28, 21, 14, 0.3) 52%, rgba(28, 21, 14, 0.1) 80%),
    linear-gradient(to bottom, rgba(28, 21, 14, 0.42), rgba(28, 21, 14, 0) 28%);
  pointer-events: none;
}
.hero-static-copy { position: relative; z-index: 1; padding: var(--pad); text-shadow: 0 1px 3px rgba(28, 21, 14, 0.45); }
.hero-static .wordmark-hero {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 1;
  letter-spacing: -0.022em;
}
.hero-static .script {
  display: block;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  color: var(--camel-bright);
}
.hero-static .sub {
  margin-top: var(--sp-4);
  font-size: 0.72rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}

/* ---------- sections ---------- */

.section { padding: var(--sp-section) var(--pad); }
.section[id] { scroll-margin-top: 5rem; }
.section--tight { padding-block: var(--sp-section-tight); }
.section--dark { background: var(--espresso); color: var(--ink-on-dark); }
.section--linen { background: var(--linen); }

.container { max-width: 82rem; margin-inline: auto; }
.section-flush { padding-inline: var(--pad); }
.pb-lg { padding-bottom: clamp(5rem, 10vw, 8rem); }
.mt-section { margin-top: clamp(4rem, 8vw, 7rem); }

/* spacing helpers, so pages stop carrying inline margins */
.after-title { margin-top: var(--sp-6); }
.section-lede { margin-top: var(--sp-4); color: var(--ink-soft); max-width: 28em; }
.section--dark .section-lede { color: var(--ink-on-dark-soft); }

/* manifesto */
.manifesto .display {
  font-size: clamp(2.4rem, 5.8vw, 5.2rem);
  max-width: 11em;
  margin-bottom: var(--sp-6);
}
.manifesto-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .manifesto-grid { grid-template-columns: 1.4fr 1fr; }
}
.manifesto-aside {
  border-left: 1px solid var(--hairline);
  padding-left: clamp(1.4rem, 3vw, 2.6rem);
  max-width: 26em;
}
.manifesto-aside .script { font-size: 2.4rem; color: var(--camel); display: block; margin-bottom: var(--sp-3); }
.manifesto-aside p { color: var(--ink-soft); }

/* featured projects */
.feature { display: grid; gap: clamp(3.5rem, 9vw, 8rem); }
.feature-item {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .feature-item { grid-template-columns: repeat(12, 1fr); }
  .feature-item .feature-media { grid-column: 1 / span 8; }
  .feature-item .feature-text { grid-column: 9 / span 4; padding-bottom: 1rem; }
  .feature-item:nth-child(even) .feature-media { grid-column: 5 / span 8; grid-row: 1; }
  .feature-item:nth-child(even) .feature-text { grid-column: 1 / span 4; grid-row: 1; }
}
.feature-media {
  display: block;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}
.feature-media:focus-visible { outline-offset: -3px; }
.feature-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.75s var(--ease-out), transform 1.2s var(--ease-out);
}
.feature-media .media-alt { opacity: 0; transform: scale(1.045); }
.feature-item:hover .media-primary,
.feature-media:focus-visible .media-primary { transform: scale(1.025); }
.feature-item:hover .media-alt,
.feature-media:focus-visible .media-alt { opacity: 1; transform: scale(1.01); }
.feature-text .meta-line { display: block; margin-bottom: var(--sp-3); }
.feature-text h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
  margin-bottom: 0.55rem;
}
.feature-text p { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: var(--sp-4); max-width: 24em; }

/* the three goals: an editorial sequence, not three equal cards.
   The section title's rule opens the list, so no border-top here. */
.goal {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--hairline);
}
.goal:first-child { padding-top: 0; }
@media (min-width: 820px) {
  .goal {
    grid-template-columns: 6rem minmax(0, 18rem) minmax(0, 34em);
    column-gap: clamp(2rem, 5vw, 4.5rem);
    align-items: baseline;
  }
}
.goal .num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1;
  color: var(--accent-text); /* informational, so it clears 4.5:1 on linen */
  letter-spacing: -0.01em;
}
.goal h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.goal p { color: var(--ink-soft); }

/* services strip */
.services-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .services-grid { grid-template-columns: 1fr 1.2fr; } }
.services-grid h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 9em; }
.services-list { list-style: none; columns: 1; }
@media (min-width: 600px) { .services-list { columns: 2; column-gap: 3rem; } }
.services-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  break-inside: avoid;
}
.section--dark .services-list li { border-color: var(--hairline-light); }

/* testimonial */
.quote { text-align: center; max-width: 52rem; margin-inline: auto; }
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  line-height: 1.32;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.quote figcaption {
  margin-top: var(--sp-5);
  font-size: 0.72rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-on-dark-soft);
}
.quote .script { font-size: clamp(2.4rem, 4.6vw, 3.4rem); color: var(--camel-bright); display: block; margin-bottom: var(--sp-4); }

/* about teaser */
.about-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.1fr; } }
.about-grid h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.about-grid .portrait { position: relative; }
.about-grid .portrait img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 18%; }
.portrait-caption {
  position: absolute;
  bottom: -1.4rem;
  right: -0.5rem;
  font-family: var(--font-script);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--camel);
  transform: rotate(-4deg);
}

/* CTA */
.cta { text-align: center; }
.cta .display {
  font-size: clamp(2.6rem, 7.4vw, 6.4rem);
  max-width: 13em;
  margin: 0 auto var(--sp-3);
}
.cta .script { font-size: clamp(2.4rem, 5.6vw, 4.2rem); color: var(--camel-bright); }
.cta-contacts {
  margin-top: var(--sp-6);
  display: flex;
  gap: clamp(1.5rem, 5vw, 4rem);
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}
.cta-contacts a {
  border-bottom: 1px solid var(--hairline-light);
  padding-bottom: 0.3rem;
  transition: color var(--dur-micro) var(--ease-micro), border-color var(--dur-micro) var(--ease-micro);
}
.cta-contacts a:hover { border-color: var(--camel-bright); color: var(--camel-bright); }
.cta .cta-row { margin-top: var(--sp-6); }

/* footer */
.footer {
  background: var(--espresso);
  color: rgba(242, 237, 228, 0.78);
  padding: clamp(3rem, 7vw, 5rem) var(--pad) 2.4rem;
  border-top: 1px solid var(--hairline-light);
}
.footer-grid {
  max-width: 82rem;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-end;
}
.footer .wordmark { color: var(--plaster); font-size: 1.7rem; }
.footer-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  list-style: none;
  font-size: 0.72rem;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
}
.footer-links a { transition: color var(--dur-micro) var(--ease-micro); }
.footer-links a:hover { color: var(--camel-bright); }
.footer-meta {
  max-width: 82rem;
  margin: var(--sp-6) auto 0;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--hairline-light);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-on-dark-soft);
}

/* ---------- interior pages ---------- */

.page-head {
  padding: clamp(9rem, 18vw, 13rem) var(--pad) var(--sp-section-tight);
}
.page-head .display { font-size: clamp(2.6rem, 6.6vw, 5.4rem); max-width: 12em; }
.page-head .meta-line { display: block; margin-top: var(--sp-4); }
.page-head .lede { margin-top: var(--sp-4); }

/* portfolio grid */
.plist { display: grid; gap: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(5rem, 10vw, 8rem); }
@media (min-width: 900px) {
  .plist {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(1.6rem, 3.6vw, 4rem);
    row-gap: clamp(5rem, 10vw, 9rem);
    align-items: start;
  }
  .pcard:nth-child(6n + 1) { grid-column: 1 / span 7; }
  .pcard:nth-child(6n + 2) { grid-column: 9 / span 4; margin-top: clamp(4rem, 9vw, 8rem); }
  .pcard:nth-child(6n + 3) { grid-column: 2 / span 4; }
  .pcard:nth-child(6n + 4) { grid-column: 7 / span 6; margin-top: clamp(2rem, 5vw, 4rem); }
  .pcard:nth-child(6n + 5) { grid-column: 1 / span 7; }
  .pcard:nth-child(6n + 6) { grid-column: 9 / span 4; margin-top: clamp(5rem, 10vw, 9rem); }
}
.pcard { position: relative; display: block; }
.pcard .pcard-media { overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.pcard--tall .pcard-media { aspect-ratio: 4 / 5; }
.pcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.75s var(--ease-out), transform 1.2s var(--ease-out);
}
.pcard .media-alt { opacity: 0; transform: scale(1.045); }
.pcard:hover .media-primary,
.pcard:focus-visible .media-primary { transform: scale(1.025); }
.pcard:hover .media-alt,
.pcard:focus-visible .media-alt { opacity: 1; transform: scale(1.01); }
.pcard h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.012em;
  margin-top: var(--sp-3);
}
.pcard .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.9rem;
  margin-top: 0.5rem;
}
.pcard .meta span + span::before { content: "·"; margin-right: 0.9rem; color: var(--camel-ink); }
@media (max-width: 560px) {
  .pcard .meta { display: grid; gap: 0.15rem; letter-spacing: 0.19em; }
  .pcard .meta span + span::before { display: none; }
}

/* project detail */
.gallery { display: grid; gap: clamp(1.2rem, 2.5vw, 2.2rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { position: relative; overflow: hidden; }
.gallery figure.wide { grid-column: 1 / -1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figure.wide img { aspect-ratio: 16 / 9.5; }
.gallery figure:not(.wide) img { aspect-ratio: 4 / 3; }
.gallery figure.gallery-shot--portrait:not(.wide) img { aspect-ratio: 3 / 4; }
.gallery figure.gallery-shot--square:not(.wide) img { aspect-ratio: 1; }
.gallery figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 1.4rem 1.1rem;
  color: var(--plaster);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  background: linear-gradient(to top, rgba(28, 21, 14, 0.72), transparent);
  opacity: 0;
  transition: opacity var(--dur-move) var(--ease-out);
  display: grid;
  gap: 0.35rem;
}
.gallery-room {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  color: var(--camel-bright);
}
.gallery figure:hover figcaption,
.gallery figure:focus-within figcaption { opacity: 1; }
@media (max-width: 759px) {
  /* keep declared ratios on mobile so the column does not shift while loading */
  .gallery figure.wide img,
  .gallery figure:not(.wide) img { aspect-ratio: 4 / 3; }
  .gallery figure.gallery-shot--portrait img { aspect-ratio: 3 / 4; }
  .gallery figure.gallery-shot--square img { aspect-ratio: 1; }
  .gallery figcaption {
    position: static;
    opacity: 1;
    padding: 0.8rem 0 0;
    background: none;
    color: var(--ink);
  }
  .gallery figure { overflow: visible; }
  .gallery-caption { display: none; }
  .gallery-room { color: var(--camel-ink); }
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}

/* services page */
.svc-hero-image {
  max-width: 82rem;
  margin: 0 auto clamp(5rem, 10vw, 8rem);
  aspect-ratio: 16 / 6.8;
}
.svc-hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }

/* capabilities: label-and-list rows, not a 2x2 of cards */
.service-capabilities { border-top: 1px solid var(--hairline); }
.capability {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 700px) {
  .capability { grid-template-columns: 8rem minmax(0, 1fr); column-gap: clamp(1.5rem, 4vw, 3.5rem); align-items: baseline; }
}
.capability h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.008em;
}
.capability ul { list-style: none; display: grid; gap: 0.3rem; }
/* each capability holds exactly three items, so three tracks stay even */
@media (min-width: 1000px) { .capability ul { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--sp-4); align-items: start; } }
.capability li { color: var(--ink-soft); font-size: 0.92rem; }

.svc-block { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; margin-bottom: clamp(4rem, 8vw, 7rem); }
.svc-block > * { min-width: 0; }
@media (min-width: 900px) { .svc-block { grid-template-columns: 1fr 1.3fr; } }
.svc-block h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 10em;
}
.svc-block .svc-note { font-size: 0.95rem; color: var(--ink-soft); margin-top: var(--sp-3); max-width: 30em; }

.steps { list-style: none; border-top: 1px solid var(--hairline); }
.steps li {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  align-items: baseline;
  gap: var(--sp-2);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.steps li .num { font-family: var(--font-display); color: var(--camel-ink); }
.steps + .svc-note { margin-top: var(--sp-5); }

@media (max-width: 759px) {
  .svc-hero-image { aspect-ratio: 4 / 3.5; margin-inline: var(--pad); }
}

/* 404 */
.error-actions { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 2.5rem); flex-wrap: wrap; }
.error-visual { max-width: 82rem; margin-inline: auto; aspect-ratio: 16 / 7.5; }
.error-visual img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) { .error-visual { aspect-ratio: 4 / 3; } }

/* about page */
.bio-grid { display: grid; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
@media (min-width: 900px) {
  .bio-grid { grid-template-columns: 1fr 1.15fr; }
  .bio-grid .sticky { position: sticky; top: 6rem; }
}
.bio-portrait { width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; object-position: 50% 14%; }
.bio-copy p { margin-bottom: var(--sp-3); max-width: var(--measure); }
.bio-copy .script { font-size: 2.6rem; color: var(--camel); display: block; margin: var(--sp-5) 0 0.6rem; }

/* contact page */
.contact-hero { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; }
.contact-layout { display: grid; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.contact-copy .display { font-size: clamp(3.2rem, 6.6vw, 5.6rem); }
.contact-list { margin-top: var(--sp-6); display: grid; gap: 0; max-width: 46rem; border-top: 1px solid var(--hairline); }
.contact-list a, .contact-list .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-variant-numeric: tabular-nums;
}
.contact-list .label {
  font-size: 0.7rem;
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-list a { transition: color var(--dur-micro) var(--ease-micro); }
.contact-list a:hover { color: var(--camel-ink); }
.contact-visual {
  min-height: 34rem;
  position: relative;
}
.contact-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.contact-visual figcaption {
  position: absolute;
  z-index: 2;
  right: 1.4rem;
  bottom: 1.2rem;
  color: var(--plaster);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  --accent: var(--camel-bright);
  text-shadow: 0 1px 14px rgba(28, 21, 14, 0.85);
}
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1.05fr 0.95fr; } }
@media (max-width: 899px) {
  .contact-hero { min-height: 0; }
  .contact-visual { min-height: 0; aspect-ratio: 4 / 3.5; }
}
@media (max-width: 560px) {
  .contact-list a, .contact-list .row {
    display: grid;
    justify-content: stretch;
    gap: 0.35rem;
    padding: 1.2rem 0;
    overflow-wrap: anywhere;
  }
}

/* ---------- reveals ---------- */

.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out);
}
.js .reveal.in { opacity: 1; transform: none; }


.reveal-media { position: relative; overflow: hidden; }
.reveal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--plaster-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.1s var(--ease-out);
  z-index: 3;
  pointer-events: none;
}
.js .reveal-media::after { transform: scaleX(1); }
.section--dark .reveal-media::after { background: var(--espresso-soft); }
.js .reveal-media.in::after { transform: scaleX(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-media { opacity: 1; transform: none; transition: none; }
  .reveal-media::after { display: none; }
  .btn::after { transition: none; }
  .scroll-hint::after { animation: none; }
  .feature-media img, .pcard img { transition: none; }
  .menu, .menu-links a { transition: none; }
  .stop { animation: none !important; transition: none !important; }
  .hero-skip, .hero-skip::before, .icon { transition: none; }
}
@media (hover: none) {
  .media-alt { display: none; }
}
