/* ==========================================================================
   AURELIA — interior design portfolio
   Design system + components. Single stylesheet, no build step.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------
   Gramercy Fine is a commercial typeface and is NOT bundled. Drop the licensed
   webfont files into /fonts (see fonts/README.md) and these rules pick them up
   automatically. Until then Instrument Serif is used — same role, free licence.
   ------------------------------------------------------------------------ */
@font-face {
  font-family: 'Gramercy Fine';
  src: url('../fonts/GramercyFine-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gramercy Fine';
  src: url('../fonts/GramercyFine-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens ---------------------------------------------------------------
   Two palettes, same token names. Dark is the site default and the only
   palette the chrome ever uses — the fixed header, the mobile menu and the
   footer stay dark on every page, so the frame of the site never moves.

   The warm light palette is a *surface*, not a page theme: it is redefined on
   <main> only, and switched on by putting .theme-light on <html>. That is what
   private-interior pages use — the project page for a residential project, and
   the portfolio grid while the Private interiors filter is active.
   ------------------------------------------------------------------------ */
:root {
  color-scheme: dark;
  /* Dark — warm near-black, not pure black, so it sits with the wood accent. */
  --bg:        #0E0D0B;
  --bg-sand:   #17150F;
  --bg-clay:   #24211B;
  --ink:       #F5F2ED;
  --ink-soft:  #A9A197;
  --ink-faint: #8A8177;
  --line:      #302B24;
  --line-soft: #201D18;
  --wood:      #C9A67C;
  --error:     #D07A60;
  --btn-hover: #E2DCD2;
  --white:     #FFFFFF;
}

.theme-light main {
  color-scheme: light;
  /* Light — plaster, linen, light oak. */
  --bg:        #FBFAF8;
  --bg-sand:   #F3EFE8;
  --bg-clay:   #EAE4DB;
  --ink:       #17150F;
  --ink-soft:  #6E675D;
  --ink-faint: #7A7267;
  --line:      #E3DDD3;
  --line-soft: #EFEAE2;
  --wood:      #8F6B42;
  --error:     #A8412A;
  --btn-hover: #2E2A22;

  background: var(--bg);
  color: var(--ink);
}
/* The header is position:fixed and out of flow, so <main> already starts at the
   top of the document — the light surface runs up behind the opaque dark
   header and the seam is the header edge itself. */

:root {
  --font-display: 'Gramercy Fine', 'Instrument Serif', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* Fluid type — 360px → 1600px viewport */
  --fs-display: clamp(2.75rem, 1.1rem + 7.4vw, 8rem);
  --fs-h1:      clamp(2.25rem, 1.2rem + 4.6vw, 5rem);
  --fs-h2:      clamp(1.75rem, 1.1rem + 2.8vw, 3.25rem);
  --fs-h3:      clamp(1.25rem, 1rem + 1.1vw, 1.75rem);
  --fs-lead:    clamp(1.0625rem, 0.98rem + 0.45vw, 1.375rem);
  --fs-body:    clamp(0.9375rem, 0.9rem + 0.18vw, 1.0625rem);
  --fs-small:   0.8125rem;
  /* Section labels. Deliberately larger than --fs-micro: at 11px, tracked out
     and uppercase, they were close to unreadable. */
  --fs-label:   0.8125rem;
  /* Reserved for genuinely incidental text — the language switch, the
     copyright line. Anything a visitor needs to read uses --fs-label. */
  --fs-micro:   0.6875rem;

  --page-x: clamp(1.25rem, 4.5vw, 4.5rem);
  --maxw: 1680px;
  --sec-y: clamp(4.5rem, 9vw, 11rem);
  --header-h: 88px;
  /* Logo height. Change these to resize it — everything else follows. */
  --logo-h: 60px;
  --logo-h-footer: 72px;

  --ease: cubic-bezier(0.22, 0.68, 0.28, 1);
  --dur: 0.55s;
}

/* --- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, picture, svg, video { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

::selection { background: var(--bg-clay); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* --- Typography ---------------------------------------------------------- */
.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.01em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  font-weight: 300;
  color: var(--ink);
  max-width: 34ch;
  text-wrap: pretty;
}

.body-text { max-width: 62ch; color: var(--ink-soft); text-wrap: pretty; }
.body-text p + p { margin-top: 1.15em; }

/* Section label — the only "decorative" device on the site */
.eyebrow {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.2;
}

.muted { color: var(--ink-soft); }

/* --- Layout -------------------------------------------------------------- */
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--page-x);
}
.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 6rem); }

.rule { height: 1px; background: var(--line); border: 0; }

/* --- Links --------------------------------------------------------------- */
.link {
  display: inline-block;
  font-size: var(--fs-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 4px;
  position: relative;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.link:hover::after { transform: scaleX(0); }

.link-arrow::before {
  content: '↗';
  margin-right: 0.5em;
  font-size: 0.9em;
}

/* --- Header -------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
/* Home page: header floats over the full-bleed hero until scrolled */
body.has-hero .site-header {
  background: transparent;
  border-bottom-color: transparent;
  color: var(--white);
}
body.has-hero .site-header.is-stuck {
  background: var(--bg);
  border-bottom-color: var(--line-soft);
  color: var(--ink);
}

.site-header .wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.brand .brand-text span { display: block; font-size: var(--fs-micro); letter-spacing: 0.16em; font-weight: 300; opacity: 0.6; margin-top: 2px; }

/* Footer lockup: the same logo, a little smaller, with its own line under it. */
.footer-grid .brand-logo { height: var(--logo-h-footer); }
.brand-caption {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* --- Logo ----------------------------------------------------------------
   Hidden until js/main.js confirms the files actually load, so the wordmark
   stays in place until logos are dropped into images/logo/ — and no
   broken-image icon ever shows.

   The rule: the logo follows the surface it sits on, never the page. A dark
   surface gets the white logo, a light surface gets the black one. Light
   surfaces only ever occur inside <main>, so the selector is anchored there —
   the header and footer are outside it and stay dark, and therefore white.
   ------------------------------------------------------------------------ */
.brand-logo { display: none; height: var(--logo-h); width: auto; }
.brand.has-logo .brand-text { display: none; }

.brand.has-logo .brand-logo--on-dark { display: block; }
.brand.has-logo .brand-logo--on-light { display: none; }

.theme-light main .brand.has-logo .brand-logo--on-dark { display: none; }
.theme-light main .brand.has-logo .brand-logo--on-light { display: block; }

.nav { display: flex; align-items: center; gap: clamp(1.5rem, 2.6vw, 2.75rem); }
.nav a {
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.06em;
  position: relative;
  padding-block: 4px;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-right { display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2rem); }

/* Language switch */
.lang { display: flex; align-items: center; gap: 0.45rem; font-size: var(--fs-micro); letter-spacing: 0.12em; }
.lang button {
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: inherit;
  opacity: 0.45;
  transition: opacity var(--dur) var(--ease);
}
.lang button:hover { opacity: 0.8; }
.lang button.is-active { opacity: 1; }
.lang i { font-style: normal; opacity: 0.25; }

/* Burger */
.burger { display: none; width: 26px; height: 14px; position: relative; }
.burger span {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform var(--dur) var(--ease), opacity 0.2s;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { bottom: 0; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: calc(var(--header-h) + 3rem) var(--page-x) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
body.menu-open .mobile-nav { opacity: 1; visibility: visible; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 0.35em; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mobile-nav a[aria-current="page"] { color: var(--ink-faint); }
.mobile-nav .meta { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav .meta a {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* The home-page header sits on the hero in white; over the open menu it needs
   the normal ink colour again. */
body.menu-open .site-header,
body.has-hero.menu-open .site-header {
  color: var(--ink);
  background: transparent;
  border-bottom-color: transparent;
}

/* --- Media / images ------------------------------------------------------ */
.media {
  position: relative;
  overflow: hidden;
  background: var(--bg-clay);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}
.media img.is-loaded { opacity: 1; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--3x2 { aspect-ratio: 3 / 2; }

a:hover > .media img,
.card:hover .media img { transform: scale(1.028); }

/* --- Reveal on scroll (subtle, one-shot, honours reduced motion) ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

/* --- Hero (home) --------------------------------------------------------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero .media { position: absolute; inset: 0; background: var(--bg-clay); }
.hero .media::after {
  content: '';
  position: absolute; inset: 0;
  /* Scrim sized so white type stays legible over a pale photograph too. */
  background: linear-gradient(to bottom,
    rgba(23,21,15,.42) 0%,
    rgba(23,21,15,.10) 24%,
    rgba(23,21,15,.06) 46%,
    rgba(23,21,15,.42) 76%,
    rgba(23,21,15,.66) 100%);
}
.hero-inner {
  position: relative;
  width: 100%;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero h1 {
  font-size: var(--fs-display);
  line-height: 0.95;
  letter-spacing: -0.025em;
  max-width: 26ch;
}
.hero .hero-sub {
  font-size: var(--fs-lead);
  font-weight: 300;
  max-width: 26ch;
  line-height: 1.5;
  padding-bottom: 0.6rem;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%);
  font-size: var(--fs-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* --- Statement ----------------------------------------------------------- */
.statement { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.statement h2 { font-size: var(--fs-h2); max-width: 26ch; }
.statement .col-text { max-width: 58ch; }
.statement .col-text p { color: var(--ink-soft); font-size: var(--fs-lead); font-weight: 300; line-height: 1.55; }
.statement .col-text p + p { margin-top: 1.2em; }

/* --- Featured work (home) ------------------------------------------------ */
.featured { display: flex; flex-direction: column; gap: clamp(4rem, 8vw, 8rem); }
.work-item { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 2rem); align-items: end; }
/* Both cells are pinned to the same row. Without this the mirrored rows break:
   the image claims the right-hand columns, auto-placement will not step back to
   an earlier column, and the text is pushed onto a second row below the image. */
.work-item .media-col,
.work-item .info-col { grid-row: 1; }
.work-item .media-col { grid-column: 1 / 9; }
.work-item .info-col { grid-column: 10 / 13; padding-bottom: 0.5rem; }
.work-item:nth-child(even) .media-col { grid-column: 5 / 13; }
.work-item:nth-child(even) .info-col { grid-column: 1 / 4; }
.work-item h3 { margin-top: 0; }
.work-item .info-col .eyebrow { margin-bottom: 0.9rem; }
.work-item .info-col p { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 0.6rem; }
.work-item .info-col .link { margin-top: 1.5rem; }

/* --- Section head -------------------------------------------------------- */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
  flex-wrap: wrap;
}

/* --- Filters ------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.filters button {
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding-block: 4px;
  position: relative;
  transition: color var(--dur) var(--ease);
}
.filters button::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.filters button:hover { color: var(--ink-soft); }
.filters button.is-active { color: var(--ink); }
.filters button.is-active::after { transform: scaleX(1); }
.filters .count { font-size: var(--fs-micro); vertical-align: super; margin-left: 3px; opacity: 0.5; }

/* --- Project grid -------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem) clamp(1.25rem, 3vw, 3rem);
}
.card { display: block; }
.card.is-hidden { display: none; }
.card .card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
}
.card h3 { font-size: var(--fs-h3); }
.card .card-sub { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 0.25rem; }
.card .card-year { font-size: var(--fs-small); color: var(--ink-faint); white-space: nowrap; }
/* Every third card gets more room — keeps the grid from reading as a template */
.grid .card:nth-child(6n+1) .media,
.grid .card:nth-child(6n+4) .media { aspect-ratio: 4 / 5; }
.grid .card:nth-child(6n+2) .media,
.grid .card:nth-child(6n+3) .media,
.grid .card:nth-child(6n+5) .media,
.grid .card:nth-child(6n+6) .media { aspect-ratio: 3 / 4; }

.grid-empty { grid-column: 1 / -1; padding-block: 4rem; color: var(--ink-faint); }

/* --- Awards -------------------------------------------------------------- */
.awards-list { display: flex; flex-direction: column; }
.award-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 5fr) minmax(0, 7fr) auto;
  gap: 1rem 2rem;
  align-items: baseline;
  padding-block: clamp(1.15rem, 2vw, 1.65rem);
  border-top: 1px solid var(--line);
}
.awards-list .award-row:last-child { border-bottom: 1px solid var(--line); }

.award-year {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.award-name { font-weight: 500; }
.award-cat { color: var(--ink-soft); text-wrap: pretty; }
.award-cat a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.award-cat a:hover { color: var(--ink); border-bottom-color: var(--ink); }

.award-result {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  text-align: right;
}
/* Wins are the only place a colour is used to rank something. */
.award-result[data-result="winner"] { color: var(--wood); }

/* --- Page head (inner pages) --------------------------------------------- */
.page-head { padding-top: calc(var(--header-h) + clamp(3.5rem, 8vw, 8rem)); padding-bottom: clamp(2rem, 5vw, 4rem); }
.page-head h1 { max-width: 16ch; }
.page-head .lead { margin-top: clamp(1.25rem, 2.5vw, 2rem); max-width: 44ch; }

/* --- Project page -------------------------------------------------------- */
.project-hero { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); }
.project-title { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: end; padding-bottom: clamp(2rem, 4vw, 3rem); }
.project-title h1 { max-width: 14ch; }
.project-title .lead { max-width: 38ch; font-size: var(--fs-lead); color: var(--ink-soft); }

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-meta dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.55rem; }
.project-meta dd { font-size: var(--fs-body); margin: 0; }

.concept { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }
.concept .col-text p { font-size: var(--fs-lead); font-weight: 300; line-height: 1.55; color: var(--ink-soft); max-width: 58ch; }
.concept .col-text p + p { margin-top: 1.2em; }

.ts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); }
.ts-block { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.ts-block:nth-child(2) { border-top-color: var(--wood); }
.ts-block h3 { font-size: var(--fs-h3); margin-bottom: 1rem; }
.ts-block ul { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.25rem; }
.ts-block li { display: flex; gap: 0.9rem; font-size: var(--fs-body); color: var(--ink-soft); line-height: 1.55; }
.ts-block li::before { content: '—'; color: var(--ink-faint); flex: none; }

/* Gallery: full-bleed and paired rows */
.gallery { display: flex; flex-direction: column; gap: clamp(1rem, 2.5vw, 2rem); }
.gallery .row-1 { display: block; }
.gallery .row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.gallery figcaption { font-size: var(--fs-small); color: var(--ink-faint); padding-top: 0.75rem; }

.next-project { border-top: 1px solid var(--line); }
.next-project a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); }
.next-project h2 { font-size: var(--fs-h2); }
.next-project .media { aspect-ratio: 16 / 9; }

/* --- About --------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.about-grid .col-text p { color: var(--ink-soft); font-size: var(--fs-lead); font-weight: 300; line-height: 1.55; max-width: 56ch; }
.about-grid .col-text p + p { margin-top: 1.2em; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.facts dt { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.7rem; }
.facts dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.75rem); line-height: 1; }
.facts dd small { display: block; font-family: var(--font-sans); font-size: var(--fs-small); color: var(--ink-soft); margin-top: 0.5rem; letter-spacing: 0; }

/* Two columns rather than four: these are paragraphs, not captions, and at a
   quarter of the page width they read as a cramped column of single words. */
.process { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4.5rem) clamp(2rem, 5vw, 5rem); }
.process li { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.process .num { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.13em; color: var(--wood); display: block; margin-bottom: 0.9rem; }
.process h3 { font-size: var(--fs-h3); margin-bottom: 0.9rem; }
.process p { font-size: var(--fs-body); color: var(--ink-soft); line-height: 1.65; max-width: 52ch; text-wrap: pretty; }

/* --- Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }

.contact-list { display: flex; flex-direction: column; gap: 2rem; }
.contact-list .eyebrow { margin-bottom: 0.5rem; }
.contact-list a { font-size: var(--fs-lead); font-weight: 300; }
.contact-list a:hover { color: var(--ink-soft); }
.contact-list address { font-style: normal; font-size: var(--fs-lead); font-weight: 300; line-height: 1.5; }

.socials { display: flex; gap: 1.5rem; flex-wrap: wrap; }
/* Same size and weight as the email above it — a handle is a name, not a shout,
   so no uppercase and no letter-spacing here. */
.socials a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.socials a:hover { color: var(--ink-soft); border-bottom-color: var(--ink-soft); }

/* Form */
.form { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: inherit; }
.field { position: relative; display: flex; flex-direction: column; }
.field label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.7rem; }
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0 0.7rem;
  font-size: var(--fs-body);
  font-weight: 300;
  border-radius: 0;
  transition: border-color var(--dur) var(--ease);
  appearance: none;
}
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%); background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 7rem; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); opacity: 1; }
.field.has-error input, .field.has-error textarea { border-bottom-color: var(--error); }
.field .err { font-size: var(--fs-small); color: var(--error); margin-top: 0.55rem; min-height: 1em; letter-spacing: 0.02em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.05rem 2.5rem;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background var(--dur) var(--ease), opacity var(--dur) var(--ease);
  justify-self: start;
}
.btn:hover { background: var(--btn-hover); }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

.form-note { font-size: var(--fs-small); color: var(--ink-faint); max-width: 46ch; }
.form-status { font-size: var(--fs-body); padding: 1rem 1.25rem; border-left: 2px solid var(--wood); background: var(--bg-sand); display: none; }
.form-status.is-visible { display: block; }
.form-status.is-error { border-left-color: var(--error); }

/* --- CTA strip ----------------------------------------------------------- */
.cta { background: var(--bg-sand); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { max-width: 20ch; }

/* --- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; }
.footer-grid .eyebrow { margin-bottom: 1.1rem; }
.footer-grid ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a { font-size: var(--fs-small); color: var(--ink-soft); transition: color var(--dur) var(--ease); }
.footer-grid a:hover { color: var(--ink); }
.footer-grid address { font-style: normal; font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.8; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
  font-size: var(--fs-micro); letter-spacing: 0.08em; color: var(--ink-faint);
}

/* --- Skip link ----------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 0.85rem 1.25rem; font-size: var(--fs-small);
}
.skip:focus { left: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .work-item .media-col, .work-item:nth-child(even) .media-col { grid-column: 1 / 10; }
  .work-item .info-col, .work-item:nth-child(even) .info-col { grid-column: 10 / 13; }
  .project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; --logo-h: 44px; --logo-h-footer: 54px; }

  .nav { display: none; }
  .burger { display: block; }

  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero .hero-sub { padding-bottom: 0; }
  .scroll-cue { display: none; }

  .statement,
  .concept,
  .about-grid,
  .contact-grid,
  .project-title { grid-template-columns: minmax(0, 1fr); }

  .work-item { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  /* Stacked on phones, so the shared row is released and they flow normally. */
  .work-item .media-col, .work-item:nth-child(even) .media-col,
  .work-item .info-col, .work-item:nth-child(even) .info-col { grid-column: 1 / -1; grid-row: auto; padding-bottom: 0; }

  .grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .grid .card .media { aspect-ratio: 4 / 5 !important; }

  .award-row {
    grid-template-columns: auto 1fr;
    gap: 0.4rem 1.5rem;
    align-items: start;
  }
  .award-year { grid-area: 1 / 1; }
  .award-result { grid-area: 1 / 2; justify-self: end; }
  .award-name { grid-area: 2 / 1 / auto / -1; }
  .award-cat { grid-area: 3 / 1 / auto / -1; font-size: var(--fs-small); }

  .ts-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery .row-2 { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .facts dd { font-size: 2rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .next-project a { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .btn { width: 100%; }
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .project-meta { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}

/* --- Motion / print ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  a:hover > .media img, .card:hover .media img { transform: none; }
}

@media print {
  .site-header, .mobile-nav, .scroll-cue, .cta, .site-footer { display: none; }
  body { color: #000; background: #fff; }
  .reveal { opacity: 1; transform: none; }
}
