/* base.css — palette, reset, page frame, nav, footer. Owner piece: "grid / layout" */

:root {
  --paper: #f1efea;
  --paper-2: #e7e4dd;
  --ink: #14140f;
  --ink-2: #3d3c35;
  --muted: #86837a;
  --rule: rgba(20, 20, 15, 0.16);
  --rule-strong: rgba(20, 20, 15, 0.34);
  --hair: rgba(20, 20, 15, 0.1);
  --hair-dark: rgba(241, 239, 234, 0.16);

  --sans: "Helvetica Neue", Helvetica, "Inter", -apple-system, BlinkMacSystemFont, Arial, sans-serif;

  /* One declared margin for the whole site. Everything registers to it. */
  --pad: clamp(22px, 6.2vw, 108px);
  /* How far the frame's hairlines stand OUTSIDE the text they frame. Drawn on
     --pad exactly, they ran under the left edge of every heading and through the
     right edge of every right-hung figure — the timeline's "01 / 04", the unit
     prices — so a tracked grey numeral appeared to be resting on the line rather
     than sitting inside a field. The margin is still the same margin; the line
     that declares it just stops touching the type. */
  --frame-out: clamp(12px, 1.5vw, 24px);
  --nav-h: clamp(62px, 5.6vw, 84px);
  --max: 1680px;

  /* The 12-column field the page is drawn on. */
  --cols: 12;
  --gutter: clamp(14px, 1.6vw, 26px);
  --col: calc((100% - (var(--cols) - 1) * var(--gutter)) / var(--cols));

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* The page frame: two fixed hairlines standing exactly on the content margin,
   so the margin is a drawn decision instead of leftover space. Sits under
   everything, so any full-bleed block simply covers it. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: min(100%, var(--max)); margin-inline: auto;
  background-image:
    linear-gradient(to bottom, var(--hair), var(--hair)),
    linear-gradient(to bottom, var(--hair), var(--hair));
  background-size: 1px 100%, 1px 100%;
  background-position:
    calc(var(--pad) - var(--frame-out)) 0,
    calc(100% - var(--pad) + var(--frame-out)) 0;
  background-repeat: no-repeat;
}
@media (max-width: 900px) { body::before { display: none; } }

main { position: relative; z-index: 1; flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
img, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

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

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

/* ── Nav ─────────────────────────────────────────────────────────────────── */
/* Two poles, nothing in the middle: mark on the left margin, everything else
   packed on the right one. Small type, wide tracking, a lot of air around it. */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  color: var(--paper);
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
/* Over the hero the bar carries its own ink ground. It used to be transparent
   and rely on whatever sat behind it, which held only at scroll 0: the hero's
   drawing panel is white, and the moment the page moves at all that panel rides
   up under the bar and every paper-coloured link on it disappears — the wordmark
   and burger on a phone, the right-hand links on a desktop. At scroll 0 this
   paints exactly the ink that was already there, so nothing about the first
   frame changes; it only stops the bar from depending on the frame below it.
   `:not(.solid)` is only ever true over the hero — motion.js solidifies the bar
   on sight on every other page. */
.nav:not(.solid) { background: var(--ink); }

.nav.solid {
  background: var(--paper); color: var(--ink);
  border-bottom-color: var(--hair);
}
.nav-inner {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 0;
}
.brand {
  font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 500;
  margin-right: auto;
}
.brand .thin { opacity: .42; }

.nav-main { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 30px); }
.nav-main a {
  font-size: 10px; letter-spacing: 0.19em; text-transform: uppercase;
  opacity: .55; transition: opacity .25s var(--ease); position: relative; padding: 6px 0;
}
/* Over a moving image the same grey stops being legible. */
.nav:not(.solid) .nav-main a { opacity: .72; }
.nav-main a:hover, .nav-main a[aria-current="page"] { opacity: 1; }
.nav-main a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
}

/* Not a pill. A labelled action set off the link row by a single rule. */
.nav-cta {
  position: relative;
  font-size: 10px; letter-spacing: .19em; text-transform: uppercase;
  border: 0; border-radius: 0; background: none;
  margin-left: clamp(22px, 2.8vw, 44px);
  padding: 6px 0 6px clamp(22px, 2.8vw, 44px);
  opacity: .78; transition: opacity .3s var(--ease);
}
.nav-cta::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 13px; background: currentColor; opacity: .3;
}
.nav-cta span { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.nav-cta:hover { opacity: 1; }

.burger { display: none; width: 26px; height: 14px; position: relative; }
.burger i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
.burger i:first-child { top: 0; }
.burger i:last-child { bottom: 0; }
.nav.open .burger i:first-child { transform: translateY(6px) rotate(45deg); }
.nav.open .burger i:last-child { transform: translateY(-7px) rotate(-45deg); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
/* A colophon, not a sitemap: the studio's name at scale on the left five
   columns, the lists sitting on their own column rules to the right. */

.footer {
  position: relative; z-index: 1;
  background: var(--ink); color: var(--paper);
  padding: clamp(52px, 7.5vw, 108px) 0 34px;
  /* The last section already pays its own bottom pad; this only has to
     separate paper from ink, not open a second hole. */
  margin-top: clamp(40px, 5vw, 76px);
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 3vw, 44px);
  padding-bottom: clamp(52px, 7vw, 96px);
  border-bottom: 1px solid var(--hair-dark);
}
.footer-brand .name {
  font-size: clamp(30px, 5.4vw, 82px); letter-spacing: -0.035em; line-height: 0.94;
  margin-bottom: clamp(16px, 2vw, 28px);
}
.footer-brand p { color: rgba(241, 239, 234, .58); max-width: 34ch; font-size: 14px; }
.footer-col h4 {
  font-size: 10px; letter-spacing: .19em; text-transform: uppercase;
  color: rgba(241, 239, 234, .42); font-weight: 400; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a, .footer-col li { font-size: 14px; color: rgba(241, 239, 234, .8); }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; font-size: 11px; letter-spacing: .05em;
  color: rgba(241, 239, 234, .42);
}

@media (min-width: 901px) {
  .footer-inner { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
  .footer-brand { grid-column: 1 / span 5; }
  .footer-col {
    grid-column: span 2;
    border-left: 1px solid var(--hair-dark);
    padding-left: clamp(14px, 1.5vw, 24px);
  }
  .footer-col:nth-child(2) { grid-column: 7 / span 2; }
  .footer-col:nth-child(3) { grid-column: 9 / span 2; }
  .footer-col:nth-child(4) { grid-column: 11 / span 2; }
}

/* 2026-09-23: longer wordmark, offer list in the footer. */
.brand { letter-spacing: .12em; white-space: nowrap; }
.footer-offer { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.footer-offer li { font-size: 13px; color: rgba(241, 239, 234, .58); }
