/* ==========================================================================
   NoMind Pictures — site styles
   Design: approved mockup v1 (dark, minimal, generous open space).
   Tokens are the exact values from PROJECT-BRIEF.md §8.2–8.4.
   ========================================================================== */

/* Fonts — self-hosted (Geist + Geist Mono, SIL Open Font License). Variable: one file per script covers every weight. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../assets/fonts/geist-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: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../assets/fonts/geist-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../assets/fonts/geist-mono-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: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../assets/fonts/geist-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #0A0A0A;
  --ink: #EDEBE6;
  --ink-hover: #FFFFFF;
  --muted: #8E8A83;
  --muted-2: #85817A;
  --dim: #6E6A64;
  --line: #222222;
  --border: #333333;
  --row-line: #1A1A1A;
  --play-bg: #050505;
  --hero-placeholder: #15130F;

  /* FONT — Geist, self-hosted (see @font-face above). Swap the families here only. */
  --font: 'Geist', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  --max: 1440px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 9vw, 140px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --slow: 2s;
  --calm: cubic-bezier(.4, .05, .15, 1);   /* eases in gently, settles slowly — for scroll moments */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-hover); }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ink); color: var(--bg); }

/* Focus: subtle but present (§9.6) */
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.lnk { transition: opacity .5s ease, color .9s ease; }
.lnk:hover { opacity: .55; color: var(--ink); }
.arrow { display: inline-block; transition: transform .5s var(--ease); }
a:hover .arrow { transform: translateX(4px); }

/* Copy that still needs writing. Remove the class when final copy lands. */
.tbd { color: var(--muted-2); }

/* --------------------------------------------------------------------------
   Page transition — soft crossfade (§8.6)
   -------------------------------------------------------------------------- */
body { animation: page-in 1.3s var(--calm) both; }
body.is-leaving { opacity: 0; transition: opacity .6s ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* Scroll reveal — gentle fade / rise */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity var(--slow) var(--calm), transform var(--slow) var(--calm); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .35s; }
.reveal[data-delay="2"] { transition-delay: .7s; }
.reveal[data-delay="3"] { transition-delay: 1.05s; }

/* --------------------------------------------------------------------------
   Media slots — tinted placeholders until real files are dropped in.
   Each slot names the exact file it is waiting for (data-img / data-video).
   site.js swaps the real file in automatically once it exists.
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--tint, #17140F);
  width: 100%;
}
.media > img, .media > video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: grayscale(var(--gs, 1)) saturate(var(--sat, 1)) contrast(var(--con, 1));
  transition: opacity 2s var(--calm), filter .9s var(--ease);
}
.media.loaded > img, .media.loaded > video.playing { opacity: 1; }
.media .ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 0 24px; text-align: center;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted-2);
  transition: opacity .6s ease;
}
.media .ph small { font-size: 11px; color: var(--dim); letter-spacing: 0.02em; word-break: break-all; }
.media.loaded .ph { opacity: 0; }
.r-16x9 { aspect-ratio: 16 / 9; }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-3x2 { aspect-ratio: 3 / 2; }

.tile-wrap { overflow: hidden; }
.tile-wrap .media { transition: transform .8s var(--ease); }
a:hover .tile-wrap .media, a:focus-visible .tile-wrap .media { transform: scale(1.015); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  padding: 36px var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  position: relative; z-index: 20;
}
.site-header.overlay { position: absolute; top: 0; left: 0; right: 0; }
.nav { display: flex; flex-direction: column; gap: 4px; font-size: 20px; line-height: 1.3; }
.nav a[aria-current="page"] { color: var(--muted); }
.wordmark { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; display: inline-flex; align-items: center; }
.wordmark img { height: 22px; width: auto; }
.menu-btn {
  display: none;
  background: none; border: 0; padding: 0; min-height: 44px; min-width: 44px;
  font-size: 18px; cursor: pointer; text-align: right;
}

/* Phone menu overlay */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  padding: 28px var(--gutter) 40px;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity .5s ease; }
.menu-top { display: flex; justify-content: space-between; align-items: center; }
.menu-links { margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; gap: 6px; }
.menu-links a { font-size: 52px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; }
.menu.open .menu-links a { animation: rise .8s var(--ease) both; }
.menu.open .menu-links a:nth-child(2) { animation-delay: .07s; }
.menu.open .menu-links a:nth-child(3) { animation-delay: .14s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 700px) {
  .site-header { padding-top: 24px; padding-bottom: 24px; align-items: center; }
  .site-header .nav { display: none; }
  .site-header .menu-btn { display: block; }
  .site-header .wordmark { order: -1; font-size: 18px; }
}

/* --------------------------------------------------------------------------
   Hero (home + project)
   -------------------------------------------------------------------------- */
.hero { position: relative; height: 860px; max-height: 100svh; min-height: 560px; background: var(--hero-placeholder); overflow: hidden; }
.hero.project { height: 760px; }
.hero > .media { position: absolute; inset: 0; height: 100%; }
.hero::after {
  /* soft scrim so overlaid text stays legible on real footage */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10,10,10,.35) 0%, rgba(10,10,10,0) 22%, rgba(10,10,10,0) 60%, rgba(10,10,10,.55) 100%);
}
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 36px; z-index: 2;
  padding: 0 var(--gutter);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap;
}
.hero-intro { max-width: 470px; font-size: 18px; line-height: 1.55; }
.hero-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 16px; line-height: 1.5; text-align: right; }
.hero-links a:first-child { font-weight: 500; }
.hero .hero-foot > * { animation: rise 2.2s var(--calm) .7s both; }
.hero .hero-foot > *:last-child { animation-delay: 1.1s; }

@media (max-width: 700px) {
  .hero { height: 680px; }
  .hero-links { align-items: flex-start; text-align: left; }
  .hero-intro { font-size: 17px; }
}

/* --------------------------------------------------------------------------
   Home sections
   -------------------------------------------------------------------------- */
.definition { padding-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(96px, 12vw, 180px); }
.definition .mono { margin-bottom: 32px; }
.definition-text { max-width: 1080px; font-size: clamp(34px, 5vw, 72px); font-weight: 300; line-height: 1.08; letter-spacing: -0.025em; }
.definition-sub { margin-top: 48px; font-size: 18px; color: var(--muted); }
@media (max-width: 700px) { .definition-sub { display: none; } }

.selected { padding-bottom: clamp(96px, 10vw, 160px); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2 { font-size: 20px; font-weight: 500; }
.sec-head a { font-size: 16px; }
.card { display: block; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 16px; flex-wrap: wrap; }
.card-meta .title { font-size: 20px; }
.featured { margin-bottom: 64px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 3vw, 40px); }
.pair > :nth-child(2) { margin-top: clamp(0px, 8vw, 120px); }
@media (max-width: 700px) { .pair > :nth-child(2) { margin-top: 0; } .featured { margin-bottom: 48px; } }

.spec-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; margin-left: 10px; vertical-align: middle;
}

/* Numbered StoryBrand sections */
.numbered { border-top: 1px solid var(--line); padding-top: var(--section); padding-bottom: var(--section); display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 4vw, 64px); }
.numbered > .label { flex: 1 1 240px; }
.numbered > .content { flex: 999 1 560px; min-width: 0; }
.statement { font-size: clamp(28px, 3.6vw, 52px); font-weight: 300; line-height: 1.15; letter-spacing: -0.02em; max-width: 920px; }
.statement-sub { margin-top: 32px; max-width: 620px; color: var(--muted-2); }

.guide { display: flex; flex-wrap: wrap; gap: clamp(32px, 4vw, 64px); align-items: flex-end; }
.guide .portrait { flex: 1 1 280px; max-width: 420px; }
.guide .words { flex: 1 1 320px; }
.manifesto { font-size: clamp(26px, 2.6vw, 38px); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; }
.guide .body { margin-top: 28px; color: var(--muted-2); max-width: 520px; }
.guide .more { display: inline-block; margin-top: 32px; font-size: 17px; }

.plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(28px, 3vw, 48px); }
.step { border-top: 1px solid var(--ink); padding-top: 24px; }
.step h3 { margin: 16px 0 12px; font-size: 32px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.1; }
.step p { color: var(--muted-2); font-size: 17px; }
.makes { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 72px; align-items: center; }
.makes .mono { margin-right: 8px; }
.tag-pill { border: 1px solid var(--border); border-radius: 999px; padding: 10px 20px; font-size: 16px; line-height: 1.4; }

/* 04 — what changes (StoryBrand: stakes + success) */
.change { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(28px, 4vw, 64px); }
.change h3 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); font-weight: 400; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.change ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.change li { font-size: clamp(20px, 1.8vw, 26px); font-weight: 300; line-height: 1.3; letter-spacing: -0.01em; }
.change .without li { color: var(--muted-2); }

.trusted { border-top: 1px solid var(--line); padding-top: 64px; padding-bottom: 64px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.trusted[hidden] { display: none; }

.closing { border-top: 1px solid var(--line); padding-top: clamp(110px, 13vw, 200px); padding-bottom: clamp(110px, 13vw, 200px); }
.closing .success { margin-bottom: 40px; max-width: 640px; }
.closing h2 { font-size: clamp(44px, 7.4vw, 116px); font-weight: 300; line-height: 1.0; letter-spacing: -0.035em; }
.cta-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-top: 56px; font-size: 17px; }
.cta-row .alt { color: var(--muted); }

/* Pills / buttons */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink); font-size: 17px; cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.pill:hover, .pill:focus-visible { background: var(--ink); color: var(--bg); }
.pill.filled { background: var(--ink); color: var(--bg); }
.pill.filled:hover { background: var(--ink-hover); }
/* one quiet focus ring for keyboard users, the same everywhere; none for mouse or touch */
.pill:focus { outline: none; }
.pill:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-top: 56px; padding-bottom: 48px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.mark-name { display: flex; align-items: center; gap: 16px; font-size: 16px; font-weight: 500; }
/* MARK SLOT — empty until Axel's new minimal mark arrives (§8.5). Drop the file at assets/logo/mark.svg */
.mark-slot { width: 44px; height: 44px; display: inline-flex; }
.mark-slot:empty { border: 1px dashed var(--border); border-radius: 50%; }
.mark-slot img { width: 100%; height: 100%; object-fit: contain; }
.foot-cols { display: flex; gap: clamp(32px, 6vw, 96px); flex-wrap: wrap; font-size: 15px; line-height: 1.7; }
.foot-cols .muted { display: block; }

/* --------------------------------------------------------------------------
   Work index
   -------------------------------------------------------------------------- */
.page-title { font-size: clamp(56px, 9vw, 140px); font-weight: 300; letter-spacing: -0.045em; line-height: 0.95; }
.work-top { padding-top: clamp(48px, 6vw, 96px); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.fbtn {
  min-height: 44px; padding: 0 22px; border-radius: 999px; font-size: 16px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--ink);
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.fbtn:hover { border-color: var(--muted); }
.fbtn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.work-body { padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(96px, 10vw, 160px); display: flex; gap: clamp(32px, 5vw, 80px); align-items: flex-start; flex-wrap: wrap; }
.work-list { flex: 999 1 560px; min-width: 0; }
.group { margin-bottom: 64px; transition: opacity .5s ease; }
.group[hidden] { display: none; }
.group { border-top: 1px solid var(--line); }
.row[hidden] { display: none; }
.row .tw { display: flex; flex-direction: column; gap: 8px; }
.row .brand, .card-meta .brand { display: block; font-size: 15px; color: var(--muted); letter-spacing: 0; transition: color .9s ease; }
.card-meta .brand { margin-top: 6px; }
.row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding: 22px 0; border-bottom: 1px solid var(--row-line);
  color: var(--ink); transition: color .35s ease;
}
.work-list.has-active .row:not(.active) { color: var(--dim); }
.row .t { font-size: clamp(30px, 3.6vw, 52px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.1; }
.row .mono { white-space: nowrap; }
.preview { flex: 1 1 380px; position: sticky; top: 40px; opacity: 0; transform: translateY(12px); transition: opacity 1.2s var(--calm), transform 1.6s var(--calm); pointer-events: none; }
.preview.show { opacity: 1; transform: none; pointer-events: auto; }
.preview .media { transition: background-color .5s ease; }
.preview .media > img { transition: opacity 1.6s var(--calm), filter .9s var(--ease); }
.preview-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; }
@media (max-width: 860px) { .preview { display: none; } }


/* --------------------------------------------------------------------------
   Project template
   -------------------------------------------------------------------------- */
.p-intro { padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(72px, 8vw, 120px); }
.p-title { font-size: clamp(52px, 8vw, 128px); font-weight: 400; letter-spacing: -0.045em; line-height: 0.95; }
.p-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin: 56px 0 0; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.p-meta dt { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.p-meta dd { margin: 6px 0 0; font-size: 17px; }
.p-story { margin-top: clamp(56px, 7vw, 104px); max-width: 980px; font-size: clamp(24px, 2.6vw, 38px); font-weight: 300; line-height: 1.3; letter-spacing: -0.015em; color: var(--muted-2); }

.film { padding-bottom: clamp(72px, 8vw, 120px); }
.film-frame { position: relative; aspect-ratio: 16 / 9; background: var(--play-bg); overflow: hidden; }
.film-frame .media { position: absolute; inset: 0; height: 100%; }
.film-frame iframe, .film-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  background: transparent; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.play .disc {
  width: 96px; height: 96px; border-radius: 50%; background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s var(--ease);
}
.play:hover .disc, .play:focus-visible .disc { transform: scale(1.06); }
.play .disc svg { margin-left: 4px; }
.play .dur { position: absolute; left: 24px; bottom: 20px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--ink); }

.approach { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(72px, 8vw, 120px); }
.approach .note { flex: 1 1 280px; max-width: 420px; }
.approach .note p { margin-top: 20px; color: var(--muted-2); }
.approach .still { flex: 2 1 480px; }
.verticals { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(20px, 3vw, 40px); padding-bottom: clamp(72px, 8vw, 120px); }
.fullbleed .media { height: 720px; max-height: 80vh; }
@media (max-width: 700px) { .fullbleed .media { height: 420px; } }

.credits { padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(72px, 8vw, 120px); display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 4vw, 64px); }
.credits .label { flex: 1 1 240px; }
.credits dl { flex: 999 1 560px; margin: 0; display: grid; gap: 14px; }
.credits dl > div { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--row-line); flex-wrap: wrap; }
.credits dt { color: var(--muted); }
.credits dd { margin: 0; }

.next { display: block; border-top: 1px solid var(--line); padding-top: clamp(72px, 8vw, 120px); padding-bottom: clamp(72px, 8vw, 120px); }
.next .t { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 16px; font-size: clamp(44px, 7vw, 112px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */
.contact { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(96px, 10vw, 160px); display: flex; flex-wrap: wrap; gap: clamp(56px, 7vw, 120px); align-items: flex-start; }
.contact .left { flex: 1 1 380px; }
.contact .right { flex: 1.2 1 440px; min-width: 0; }
.contact h1 { font-size: clamp(44px, 6vw, 92px); font-weight: 300; line-height: 1.0; letter-spacing: -0.04em; }
.contact .next-steps { margin-top: 36px; max-width: 440px; }
.contact .email-alt { margin-top: 48px; }
.contact .email-alt a { font-size: 17px; }

.form { display: grid; gap: 36px; }
.field { display: grid; gap: 6px; position: relative; }
.field label, .field legend { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--border); border-radius: 0;
  padding: 10px 0 12px; font: inherit; font-size: 18px; outline: none;
  transition: border-color .4s ease;
  -webkit-appearance: none; appearance: none;
}
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg); color: var(--ink); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field.invalid input, .field.invalid textarea { border-bottom-color: var(--muted); }
.field .err { font-size: 14px; color: var(--muted); min-height: 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--ink); font-size: 16px; cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

.success-state { display: none; padding-top: 24px; }
.success-state.show { display: block; animation: rise 1s var(--ease) both; }
.success-state h2 { margin-top: 32px; font-size: clamp(32px, 3.6vw, 52px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.success-state p { margin-top: 24px; max-width: 480px; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Project hero media fills the hero */
#project-hero .media { position: absolute; inset: 0; height: 100%; }

/* About */
.about-lede { margin-top: 40px; padding-bottom: var(--section); }
.values { list-style: none; margin: 0; padding: 0; }
.values li { font-size: clamp(30px, 3.6vw, 52px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.1; padding: 22px 0; border-bottom: 1px solid var(--row-line); }
.values li:first-child { padding-top: 0; }
.values span { color: var(--dim); }

/* --------------------------------------------------------------------------
   Black & white → colour. Every image and video sits in black and white and
   eases into its true colour on hover (desktop) or when it reaches the middle
   of the screen (touch — see initColorOnScroll in site.js).
   -------------------------------------------------------------------------- */
.media:hover > img, .media:hover > video,
a:hover .media > img, a:hover .media > video,
a:focus-visible .media > img, a:focus-visible .media > video,
.hero:hover .media > img, .hero:hover .media > video,
.film-frame:hover .media > img,
.work-list:hover ~ .preview .media > img,
.work-list:focus-within ~ .preview .media > img,
.media.in-color > img, .media.in-color > video { --gs: 0; }

/* Header orb — top centre (desktop), links home */
.header-orb { position: absolute; left: 50%; top: 32px; transform: translateX(-50%); display: inline-flex; transition: opacity .3s ease; }
.header-orb:hover { opacity: .7; }
.header-orb .mark-slot { width: 34px; height: 34px; }
.header-orb .mark-slot:empty { border: 0; }
@media (max-width: 700px) { .header-orb { display: none; } }

/* Bigger wordmark */
.wordmark img { height: 30px; }
@media (max-width: 700px) { .wordmark img { height: 22px; } }

/* Footer: orb + logo */
.mark-name { color: var(--ink); }
.foot-logo img { height: 20px; width: auto; display: block; }



/* Bigger portrait — holds its own against the selected-work images above */
.guide .portrait { flex: 0 1 644px; max-width: 644px; }  /* same width as the selected-work tiles */
.guide .words { flex: 1 1 260px; }
@media (max-width: 1100px) { .guide .portrait { flex: 1 1 100%; } }

/* Split lines — each sentence on its own row */
.statement-sub + .statement-sub { margin-top: 16px; }
.contact .next-steps.second { margin-top: 12px; }

/* Contact: "write to us" matches the "prefer email?" label size */
.contact .email-alt a.email-link { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; }
/* About: multi-paragraph founder story */
.guide .body + .body { margin-top: 16px; }

/* --------------------------------------------------------------------------
   Pill scale — one system (review pass 3)
   tag   : display-only labels (what we make), as small as reads well
   button: actions (start a project, send inquiry, filters, chips) — compact, still easy to tap
   -------------------------------------------------------------------------- */
.tag-pill { padding: 5px 14px; font-size: 14px; line-height: 1.4; }
.makes { gap: 8px; }
.pill { min-height: 40px; padding: 0 22px; font-size: 15px; }
.fbtn, .chip { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Footer orb pulse — smaller reach, stronger ring */
.mark-slot.pulse { position: relative; }
.mark-slot.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 2.5px rgba(79, 178, 225, .55);   /* thicker ring, softer peak */
  animation: orb-pulse 6s ease-out infinite;   /* ~3.3s soft bloom, ~2.7s rest */
  pointer-events: none;
}
@keyframes orb-pulse {
  /* one soft pulse per beat, then rest */
  0%   { transform: scale(1);    opacity: 0; }
  10%  { transform: scale(1.04); opacity: .85; }
  55%  { transform: scale(1.2);  opacity: 0; }
  100% { transform: scale(1.2);  opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .mark-slot.pulse::after { animation: none; } }

/* Hero scrim — deeper at the top so the overlaid nav stays legible on bright frames */
.hero::after {
  background: linear-gradient(to bottom, rgba(10,10,10,.62) 0%, rgba(10,10,10,.28) 18%, rgba(10,10,10,0) 34%, rgba(10,10,10,0) 60%, rgba(10,10,10,.55) 100%);
}

/* Standard footer */
.site-footer .mark-name { display: flex; align-items: center; gap: 16px; }
.orb-link { display: inline-flex; transition: opacity .3s ease; }
.orb-link:hover { opacity: .75; }
.foot-logo { display: inline-flex; font-size: 16px; font-weight: 500; }
.foot-cols > div { display: flex; flex-direction: column; }
.legal { flex-basis: 100%; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.legal a { color: var(--muted); }

/* Project story — one sentence per row */
.p-story .line { display: block; }
.p-story .line + .line { margin-top: .35em; }

/* Skip link — hidden until a keyboard user tabs to it */
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; transition: top .2s ease; }
.skip:focus { top: 16px; color: var(--bg); }

/* Privacy */
.legal-doc { max-width: 720px; margin-top: 40px; padding-bottom: var(--section); }
.legal-doc h2 { font-size: 20px; font-weight: 400; margin: 48px 0 10px; letter-spacing: -0.01em; }
.legal-doc p { color: var(--muted-2); }
.legal-doc a { color: var(--ink); }

/* 404 */
.notfound { padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(110px, 13vw, 200px); }
.notfound h1 { margin-top: 24px; font-size: clamp(44px, 7.4vw, 116px); font-weight: 300; line-height: 1; letter-spacing: -0.035em; }

/* About: letter sign-off */
.guide .body.signoff { margin-top: 16px; }  /* same colour, size, font and spacing as the letter paragraphs */

/* Placeholder labels appear only when a file is actually missing — never while an image is loading */
.media .ph { opacity: 0; }
.media.missing .ph { opacity: 1; }

/* --------------------------------------------------------------------------
   Slim header — appears on scroll-up. Faint blurred shade, no hard bar.
   -------------------------------------------------------------------------- */
.compact-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: 64px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 10, 10, .62);
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  transform: translateY(-100%); opacity: 0;
  transition: transform .55s var(--ease), opacity .4s ease;
}
.compact-bar.shown { transform: none; opacity: 1; }
.compact-nav { display: flex; gap: 24px; font-size: 16px; }
.compact-nav a[aria-current="page"] { color: var(--muted); }
.compact-orb { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; transition: opacity .3s ease; }
.compact-orb:hover { opacity: .7; }
.compact-orb .mark-slot { width: 26px; height: 26px; }
.compact-orb .mark-slot:empty { border: 0; }
.compact-bar .wordmark img { height: 22px; }
.compact-bar .compact-menu { display: none; }
@media (max-width: 700px) {
  .compact-bar { height: 56px; }
  .compact-nav, .compact-orb { display: none; }
  .compact-bar .compact-menu { display: block; }
  .compact-bar .wordmark img { height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .compact-bar { transform: none; } }

/* Orb sizes — midway between the first and second passes (review pass 7) */
.header-orb .mark-slot { width: 40px; height: 40px; }
.header-orb { top: 30px; }
.compact-orb .mark-slot { width: 30px; height: 30px; }
.site-footer .mark-slot { width: 49px; height: 49px; }

/* --------------------------------------------------------------------------
   Orb (vector). Colours and geometry match Orb(v2) exactly; only the ring
   weight is tuned for screen. Original artwork = 1.23.
   -------------------------------------------------------------------------- */
:root { --orb-ring: 4; }  /* chosen by Axel, 8 Oct 2026 */
.orb { width: 100%; height: 100%; display: block; overflow: visible; }
.orb-ring { fill: none; stroke-width: var(--orb-ring); }
.orb-outer { stroke: #4FB2E1; }
.orb-inner { stroke: #6CD3EB; }
.orb-dot { fill: #FFFEFF; }

/* Home hero line doubles as the page's main heading — keep its paragraph look */
h1.hero-intro { font-size: 18px; font-weight: 400; line-height: 1.55; letter-spacing: 0; }
@media (max-width: 700px) { h1.hero-intro { font-size: 17px; } }

/* Contact: send failure message */
.form-error { color: var(--muted-2); font-size: 15px; max-width: 480px; }
.form-error a { color: var(--ink); }

/* FAQ */
.faq { padding-top: clamp(40px, 5vw, 72px); padding-bottom: var(--section); }
.faq-item { display: flex; flex-wrap: wrap; gap: 12px clamp(32px, 4vw, 64px); padding: 32px 0; border-top: 1px solid var(--row-line); }
.faq-item:last-of-type { border-bottom: 1px solid var(--row-line); }
.faq-item h2 { flex: 1 1 320px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 300; letter-spacing: -0.015em; line-height: 1.2; }
.faq-item p { flex: 999 1 420px; color: var(--muted-2); max-width: 720px; }
.faq-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(56px, 6vw, 96px); }
.field .hint { font-size: 12px; color: var(--dim); }
.field .hint a { color: var(--muted); }
.email-alt .email-link { display: inline-block; }
/* Logo images carry width/height for layout stability; keep their proportions at every size */
.wordmark img, .foot-logo img { width: auto; }
.faq-item p .line { display: block; }
.faq-item p .line + .line { margin-top: .5em; }
.faq-item .faq-link { display: inline-block; margin-top: 14px; color: var(--ink); }

/* "native" media: shown exactly as graded (e.g. the black-and-white home film) — no B&W filter, no hover colour */
.media.native > img, .media.native > video { filter: none !important; }

/* Full-bleed keeps a 2:1 shape (taller on wider screens) so a vertical photo's subject is never cut */
.fullbleed .media { height: auto; aspect-ratio: 2 / 1; max-height: 85vh; }
@media (max-width: 700px) { .fullbleed .media { aspect-ratio: auto; height: 420px; } }


/* ==========================================================================
   the mirror — a free reading, one step at a time
   ========================================================================== */
.mirror { position: relative; padding: clamp(24px, 4vw, 56px) 0 clamp(64px, 8vw, 120px); }
.mirror-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.mirror-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #4FB2E1, #6CD3EB); transition: width .8s var(--ease); }
.mirror-grid { display: grid; grid-template-columns: minmax(260px, 5fr) 7fr; gap: clamp(40px, 6vw, 112px); align-items: center; min-height: min(78svh, 760px); }

/* the orb as mirror */
.mirror-visual { position: sticky; top: 96px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.mirror-orb { width: min(420px, 100%); height: auto; overflow: visible; }
.mirror-orb .track { fill: none; stroke: #1E1E1E; stroke-width: 1.5; }
.mirror-orb .arc { fill: none; stroke-width: 4.5; stroke-linecap: round; stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: 100px 100px;
  transition: stroke-dasharray 1.1s var(--ease), opacity .6s ease, filter .6s ease; }
.mirror-orb .arc-hero { stroke: #4FB2E1; }
.mirror-orb .arc-hub { stroke: #6CD3EB; }
.mirror-orb .arc-help { stroke: #EDEBE6; }
.mirror-orb .core { fill: #FFFEFF; }
@keyframes core-breathe { 0%, 100% { transform: scale(1); opacity: .95; } 50% { transform: scale(1.06); opacity: 1; } }
.mirror[data-area="hero"] .arc:not(.arc-hero), .mirror[data-area="hub"] .arc:not(.arc-hub), .mirror[data-area="help"] .arc:not(.arc-help) { opacity: .35; }
.mirror[data-area="hero"] .arc-hero, .mirror[data-area="hub"] .arc-hub, .mirror[data-area="help"] .arc-help { filter: drop-shadow(0 0 6px rgba(108, 211, 235, .45)); }
.orb-legend { display: flex; gap: 18px; }
.orb-legend span { display: inline-flex; align-items: center; gap: 8px; transition: color .5s ease; }
.orb-legend span::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: currentColor; }
.orb-legend .l-hero { color: #4FB2E1; } .orb-legend .l-hub { color: #6CD3EB; } .orb-legend .l-help { color: var(--ink); }
.mirror[data-step="intro"] .orb-legend { opacity: .6; }

/* steps */
.mirror.is-live .step { display: none; }
.mirror.is-live .step.is-active { display: block; animation: step-in 1s var(--calm) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.mirror .step { border: 0; margin: 0; padding: 0; min-width: 0; }
.mirror .step:focus { outline: none; }
.mirror .step .mono { margin-bottom: 20px; }
.step.intro .page-title { font-size: clamp(64px, 10vw, 150px); }
.intro-lede { margin-top: 28px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 300; line-height: 1.3; letter-spacing: -0.015em; max-width: 620px; }
.step.intro .pill, .step.chapter .pill { margin-top: 40px; }
.intro-note { margin-top: 28px !important; color: var(--dim); }
.chapter h2, .gate h2, .results h2, .sent h2 { margin: 0; font-size: clamp(56px, 8vw, 120px); font-weight: 300; letter-spacing: -0.045em; line-height: .95; }
.chapter-sub { margin-top: 14px; font-size: clamp(20px, 2vw, 26px); font-weight: 300; color: var(--muted); }
.chapter-teach { margin-top: 28px; max-width: 560px; color: var(--muted-2); font-size: 18px; }

/* questions */
.q legend { display: block; padding: 0; }
.q .q-text { display: block; font-size: clamp(28px, 3.4vw, 48px); font-weight: 300; line-height: 1.15; letter-spacing: -0.025em; max-width: 720px; }
.q .opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 40px; max-width: 480px; }
.q .opt { position: relative; cursor: pointer; }
.q .opt input { position: absolute; opacity: 0; }
.q .opt span { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; font-size: 15px;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s var(--ease); }
.q .opt kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; transition: inherit; }
.q .opt:hover span { border-color: var(--muted); transform: translateY(-1px); }
.q .opt input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.q .opt input:checked + span kbd { color: var(--bg); border-color: rgba(10,10,10,.3); }
.q .opt input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }

/* gate */
.gate-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin: 40px 0 36px; max-width: 620px; }
.gate-fields .field:last-child { grid-column: 1 / -1; }
.opt-label { color: var(--dim); }
.gate-note { margin-top: 20px !important; color: var(--dim); }

/* the reading */
.results h2, .sent h2 { font-size: clamp(44px, 6vw, 88px); }
.sent .lnk { display: inline-block; margin-top: 32px; }
#results-list { margin-top: 48px; display: grid; gap: 0; }
.reading { position: relative; padding: 32px 0 32px 24px; border-top: 1px solid var(--line); }
.reading::before { content: ""; position: absolute; left: 0; top: 34px; bottom: 34px; width: 2px; border-radius: 2px; background: var(--border); }
.reading-hero::before { background: #4FB2E1; } .reading-hub::before { background: #6CD3EB; } .reading-help::before { background: var(--ink); }
.reading header { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.reading h3 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; letter-spacing: -0.02em; }
.reading h3 span { color: var(--muted); font-size: .6em; letter-spacing: 0; }
.reading .level { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.reading.is-focus .level { color: #6CD3EB; border-color: rgba(108, 211, 235, .55); }
.reading-head { margin-top: 18px; font-size: 21px; }
.reading-body { color: var(--muted-2); margin-top: 4px; }
.reading .mono { margin: 22px 0 8px; }
.reading ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted-2); }
.reading ol li::marker { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.results-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 48px; }
.results-cta button.lnk { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.results-cta button.lnk:hover { color: var(--ink); }

/* nav */
.mirror-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; min-height: 24px; }
.mirror-nav .back { background: none; border: 0; padding: 0; font: inherit; font-size: 15px; color: var(--muted); cursor: pointer; }
.mirror-nav .back:hover { color: var(--ink); }
.mirror-nav .hint { color: var(--dim); }
.mirror:not([data-step="flow"]) .mirror-nav .hint { visibility: hidden; }

@media (max-width: 900px) {
  .mirror-grid { grid-template-columns: 1fr; gap: 32px; min-height: 0; align-items: start; }
  .mirror-visual { position: static; flex-direction: row; justify-content: flex-start; gap: 20px; }
  .mirror-orb { width: 120px; }
  .orb-legend { flex-direction: column; gap: 6px; }
  .q .opts, .gate-fields { grid-template-columns: 1fr; }
  .mirror-nav .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mirror-orb .core { animation: none; } }

.mirror[data-step="results"] .mirror-grid { align-items: start; }

/* Home: the mirror, presented as a tool */
.mirror-teaser { display: flex; align-items: center; gap: clamp(32px, 5vw, 80px); flex-wrap: wrap; color: var(--ink); }
.mirror-teaser:hover { color: var(--ink); }
.teaser-orb { flex: 0 0 auto; width: clamp(160px, 18vw, 240px); }
.teaser-orb .arc { transform: rotate(calc(-90deg + var(--spin, 0deg))); }
.mirror-teaser:hover .teaser-orb .arc-hero { --spin: 50deg; }
.mirror-teaser:hover .teaser-orb .arc-hub { --spin: -70deg; }
.mirror-teaser:hover .teaser-orb .arc-help { --spin: 110deg; }
.teaser-words { flex: 1 1 360px; }
.teaser-words .mono { margin-bottom: 16px; }
.teaser-words .statement-sub { margin-top: 16px; }
.teaser-words .pill { margin-top: 32px; }
.mirror-teaser:hover .pill { background: var(--ink); color: var(--bg); }
.intro-lede .line { display: block; }
.intro-lede .line + .line { margin-top: .4em; }

/* ==========================================================================
   Motion — slow, calm, filmic (js/motion.js + the rules below).
   All of it is switched off for prefers-reduced-motion at the end.
   ========================================================================== */

/* 1 · headlines rise word by word */
.split.reveal { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split .wi { display: inline-block; transform: translateY(105%); transition: transform 2.1s var(--calm) calc(var(--i) * 95ms); }
.split.in .wi { transform: none; }

/* 2 · images open like a rising curtain, then settle */
/* the curtain is a page-coloured panel that lifts away (a transform, so its edge never lands
   between pixels and flickers, as a moving clip-path edge did) */
.reveal .media::after, .reveal.media::after {
  content: ""; position: absolute; inset: -2px; z-index: 2; pointer-events: none;
  background: var(--bg); transform-origin: 50% 0; transform: scaleY(1);
  transition: transform 2.8s var(--calm); will-change: transform;
}
.reveal.in .media::after, .reveal.in.media::after { transform: scaleY(0); }
.reveal .media > img { transform: scale(1.1); transition: opacity 2s var(--calm), filter .9s var(--ease), transform 4.2s var(--calm); }
.reveal.in .media > img { transform: none; }
.preview .media::after { display: none; }

/* 3 · heroes settle in: a slow push-out on arrival */
.hero .media > img, .hero .media > video, #project-hero .media > img, #project-hero .media > video { animation: hero-settle 5s var(--calm) both; }
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: none; } }

/* 4 · the plan: lines draw left to right, one after another */
.plan .step { border-top: 0; position: relative; }
.plan .step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 2.4s var(--calm); }
.plan .step.in::before { transform: scaleX(1); }
.plan .step[data-delay="1"]::before { transition-delay: 1.3s; }
.plan .step[data-delay="2"]::before { transition-delay: 2.6s; }

/* 5 · what changes: a rack focus you can toggle (tap either side) */
.change .focus-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; text-align: left; }
.change .focus-btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.change .without, .change .with { cursor: pointer; }
.change .without li, .change .with li, .change h3 { transition: filter 1.6s var(--calm), opacity 1.6s var(--calm), color 1.6s var(--calm); }
.change[data-focus="with"] .without li, .change[data-focus="without"] .with li { filter: blur(1.1px); opacity: .38; }
.change[data-focus="with"] .without h3, .change[data-focus="without"] .with h3 { color: var(--dim); }
.change[data-focus="with"] .with h3, .change[data-focus="without"] .without h3 { color: var(--ink); }
.change .with li { color: var(--ink); }
.change .without li { color: var(--muted-2); }
.change[data-focus="without"] .without li { color: var(--ink); }

/* 6 · about · values: a fine line through what's left behind */
.values .lose { position: relative; font-style: normal; transition: color 2s ease .8s; }
.values .lose::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 1px; background: var(--muted);
  transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--calm) 1s; }
.values li.chosen .lose { color: #4a4743; }
.values li.chosen .lose::after { transform: scaleX(1); }

/* 7 · the orb arrives (first page of a visit, and the contact thank-you): the white core settles,
   then each ring is released from it and comes to rest. Chosen by Axel (A), 9 Oct 2026. */
.orb.draw circle { transform-box: view-box; transform-origin: 50px 50px; }
.orb.draw .orb-dot { opacity: 0; transform: scale(.7); animation: orb-core-in 1.4s var(--calm) forwards; }
.orb.draw .orb-ring { opacity: 0; animation: orb-ring-out 2.6s var(--calm) forwards; }
.orb.draw .orb-inner { --from: .42; animation-delay: .6s; }
.orb.draw .orb-outer { --from: .34; animation-delay: 1.1s; }
@keyframes orb-core-in { to { opacity: 1; transform: scale(1); } }
@keyframes orb-ring-out { from { opacity: 0; transform: scale(var(--from)); } 35% { opacity: 1; } to { opacity: 1; transform: scale(1); } }

/* 8 · the window teaser: rings fill when seen */
.teaser-orb .arc { stroke-dasharray: 0 100; stroke-opacity: 0; }
.mirror-teaser.filled .teaser-orb .arc { stroke-dasharray: var(--to) 100; stroke-opacity: 1; transition: stroke-dasharray 3.2s var(--calm), stroke-opacity .5s ease, transform 2.6s var(--calm); }
.mirror-teaser.filled .teaser-orb .arc-hub { transition-delay: .6s; }
.mirror-teaser.filled .teaser-orb .arc-help { transition-delay: 1.2s; }

/* 9 · work: the hovered cover drifts closer, slowly */
.preview.show .media > img { animation: slow-push 9s linear both; }
@keyframes slow-push { from { transform: scale(1); } to { transform: scale(1.05); } }

/* 10 · contact: rows rise in turn, and each underline draws from the left */
.form.settle > .two, .form.settle > .field, .form.settle > .form-foot {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.8s var(--calm), transform 1.8s var(--calm);
  transition-delay: calc(.6s + var(--i, 0) * .22s);
}
.form.settle .field input, .form.settle .field select, .form.settle .field textarea {
  border-bottom-color: transparent;
  background-image: linear-gradient(var(--border), var(--border)); background-repeat: no-repeat;
  background-position: 0 100%; background-size: 0 1px;
  transition: border-color .4s ease, background-size 2.2s var(--calm);
  transition-delay: 0s, calc(.9s + var(--i, 0) * .22s);
}
.form.settle .field select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%), linear-gradient(var(--border), var(--border)); background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%, 0 100%; background-size: 5px 5px, 5px 5px, 0 1px; }
.reveal.in .form.settle > .two, .reveal.in .form.settle > .field, .reveal.in .form.settle > .form-foot { opacity: 1; transform: none; }
.reveal.in .form.settle .field input, .reveal.in .form.settle .field textarea { background-size: 100% 1px; }
.reveal.in .form.settle .field select { background-size: 5px 5px, 5px 5px, 100% 1px; }
.reveal.in .form.settle .field input:focus, .reveal.in .form.settle .field select:focus, .reveal.in .form.settle .field textarea:focus { border-bottom-color: var(--ink); }

/* 11 · project story: each line rises in turn, like the headlines */
.p-story.reveal { opacity: 1; transform: none; }
.p-story.reveal .line { opacity: 0; transform: translateY(22px); transition: opacity 1.8s var(--calm), transform 1.8s var(--calm); transition-delay: calc(var(--i, 0) * .45s); }
.p-story.reveal.in .line { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .p-story.reveal .line { opacity: 1 !important; transform: none !important; }
  .split .wi, .reveal .media > img { transform: none !important; }
  .reveal .media::after, .reveal.media::after { display: none; }
  .plan .step::before, .values .lose::after { transform: scaleX(1) !important; }
  .teaser-orb .arc { stroke-dasharray: var(--to) 100; stroke-opacity: 1; }
  .hero .media > *, #project-hero .media > *, .preview.show .media > img { animation: none !important; }
}
.teaser-lines .line { display: block; }
.teaser-lines .line + .line { margin-top: .4em; }

/* Whole frame on a matching fill (data-fit="contain"), for stills and clips alike */
.media[data-fit="contain"] > img, .media[data-fit="contain"] > video { object-fit: contain; }
.reveal.in .form.settle .field.invalid input, .reveal.in .form.settle .field.invalid textarea { border-bottom-color: var(--muted); }

/* ==========================================================================
   the window · the reading (/the-window/reading/) — a calm, printable report
   ========================================================================== */
.steps-slot { display: contents; }
.report { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(96px, 10vw, 160px); }
.report[data-state="loading"] > *, .report[data-state="empty"] > :not(.report-empty), .report[data-state="ready"] > .report-empty { display: none; }
.report-empty { max-width: 640px; padding: clamp(48px, 8vw, 120px) 0; }
.report-empty h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 300; letter-spacing: -0.03em; margin: 0 0 16px; }
.report-empty .pill { margin-top: 32px; }
.report-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.report-hero { display: grid; grid-template-columns: minmax(220px, 4fr) 7fr; gap: clamp(32px, 6vw, 112px); align-items: center; padding: clamp(48px, 7vw, 112px) 0; }
.report-orb { width: min(360px, 100%); }
.report-orb .arc { transition: stroke-dasharray 3.2s var(--calm), stroke-opacity .6s ease; }
.report-orb .core { animation: none; }
.report-words h1 { font-size: clamp(44px, 6vw, 92px); font-weight: 300; letter-spacing: -0.04em; line-height: 1; margin: 12px 0 20px; }
.report-sub { color: var(--muted-2); font-size: clamp(18px, 1.6vw, 21px); max-width: 32em; }
.report-scores { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; max-width: 460px; }
.report-scores li { display: grid; grid-template-columns: 92px 1fr 52px; gap: 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--row-line); }
.report-scores .s-name { font-size: 17px; } .report-scores .s-name small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.report-scores .s-bar { height: 3px; background: var(--line); position: relative; }
.report-scores .s-bar span { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); background: var(--ink); }
.report-scores .s-hero .s-bar span { background: #4FB2E1; } .report-scores .s-hub .s-bar span { background: #6CD3EB; }
.report-scores .s-num { font-family: var(--mono); font-size: 13px; text-align: right; }
.report-scores .s-overall { grid-template-columns: 1fr auto; border-top: 0; padding-top: 0; }
.report-scores .s-overall .s-name { font-family: var(--mono); font-size: 12px; color: var(--muted); align-self: end; }
.report-scores .s-overall .s-num { font-family: inherit; font-size: 40px; font-weight: 300; letter-spacing: -0.03em; color: var(--ink); }
.report-area { display: grid; grid-template-columns: minmax(220px, 4fr) 7fr; gap: clamp(32px, 6vw, 112px); padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.area-side h2 { font-size: clamp(36px, 4vw, 56px); font-weight: 300; letter-spacing: -0.03em; margin: 8px 0 4px; }
.area-sub { color: var(--muted); }
.report-area .level { display: inline-block; margin-top: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.report-area.is-focus .level { color: #6CD3EB; border-color: rgba(108, 211, 235, .55); }
.area-bar { margin-top: 20px; height: 2px; background: var(--line); max-width: 220px; }
.area-bar span { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--ink); }
.area-hero .area-bar span { background: #4FB2E1; } .area-hub .area-bar span { background: #6CD3EB; }
.area-main .reading-head { font-size: clamp(24px, 2.4vw, 32px); font-weight: 300; letter-spacing: -0.015em; line-height: 1.25; margin: 0; }
.area-main .reading-body { color: var(--muted-2); margin-top: 10px; font-size: 18px; }
.area-main > .mono { margin: 36px 0 12px; }
.report .actions { margin: 0; padding: 0; list-style: none; counter-reset: act; display: grid; }
.report .actions li { counter-increment: act; display: grid; grid-template-columns: 40px 1fr; padding: 14px 0; border-top: 1px solid var(--row-line); font-size: 18px; }
.report .actions li::before { content: "0" counter(act); font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 5px; }
.told { margin-top: 32px; }
.told summary { cursor: pointer; list-style: none; color: var(--muted); transition: color .5s ease; }
.told summary::-webkit-details-marker { display: none; }
.told summary::after { content: " +"; } .told[open] summary::after { content: " –"; }
.told summary:hover { color: var(--ink); }
.told ul { list-style: none; margin: 16px 0 0; padding: 0; }
.told li { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; border-top: 1px solid var(--row-line); color: var(--muted-2); font-size: 15px; }
.told-a { color: var(--muted); white-space: nowrap; }
.report-note { border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 88px); max-width: 640px; margin-left: auto; }
.report-note #r-note p { font-size: clamp(19px, 1.7vw, 22px); margin: 0 0 14px; }
.report-note #r-note p:first-child { color: var(--ink); } .report-note #r-note p + p { color: var(--muted-2); }
.report-note .signoff { margin-top: 28px; } .report-note .signoff p { margin: 0 0 16px; }
.report-cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-top: 48px; }
.report-cta button.lnk { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
@media (max-width: 760px) {
  .report-hero, .report-area { grid-template-columns: 1fr; gap: 28px; }
  .report-orb { width: 180px; }
  .report-scores { gap: 10px; }
}
.report-foot, .pdf-talk { display: none; }
@media print { .pdf-talk { display: inline-block; } }
.report-cta .lnk { font-size: 17px; }
/* the PDF: rendered from this page (?print) — one dark letter-size page */
.report-top .report-brand, .report-top .t-label { display: none; }
@media print {
  @page { size: letter; margin: 0; }
  html, body { background: #0A0A0A !important; margin: 0; animation: none !important; opacity: 1 !important; }
  body[data-page="reading"] * { -webkit-print-color-adjust: exact; print-color-adjust: exact; transition: none !important; animation: none !important; }
  body[data-page="reading"] .site-header, body[data-page="reading"] .compact-bar, body[data-page="reading"] .site-footer,
  body[data-page="reading"] .skip, .report-cta, .told, #rv-bar { display: none !important; }
  .report { position: relative; box-sizing: border-box; width: 8.5in; height: 10.98in; overflow: hidden; margin: 0; max-width: none;
    padding: 0.55in 0.6in 0.5in !important; background: #0A0A0A; display: flex; flex-direction: column; }
  /* header: the orb and wordmark, centred on one line */
  .report-top { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; padding-bottom: 16px; font-size: 10px; }
  .report-top .report-brand { display: flex; align-items: center; gap: 10px; }
  .report-top .report-brand .mark-slot { display: block; width: 22px; height: 22px; }
  .report-top .report-brand .mark-slot svg { display: block; width: 22px; height: 22px; }
  .report-top .report-brand img { display: block; height: 13px; width: auto; }
  .report-top .t-label { display: inline; }
  /* the reading at a glance */
  .report-hero { padding: 0.3in 0 0.28in; grid-template-columns: 1.85in 1fr; gap: 0.45in; }
  .report-orb { width: 1.85in; }
  .report-words .mono { font-size: 10px; }
  .report-words h1 { font-size: 44px; margin: 6px 0 10px; }
  .report-sub { font-size: 14px; }
  .report-scores { margin-top: 12px; max-width: none; }
  .report-scores li { padding: 3px 0; grid-template-columns: 80px 1fr 44px; }
  .report-scores .s-name small { display: inline; margin: 0 0 0 6px; }
  .report-scores .s-name { font-size: 14px; } .report-scores .s-name small { font-size: 10px; } .report-scores .s-num { font-size: 10px; }
  .report-scores .s-overall .s-num { font-size: 26px; }
  .report-words h1 { margin-bottom: 6px; }
  /* the three areas, side by side — rows shared across the columns (subgrid), so every line starts level */
  #r-areas { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(7, auto); column-gap: 0.3in; border-top: 1px solid var(--line); padding: 0.3in 0 0.3in; }
  .report-area { display: grid; grid-row: span 7; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); row-gap: 0; padding: 0; border: 0; align-items: start; }
  .report-area .area-side > *, .report-area .area-main > * { grid-column: 1; }
  .report-area .area-side, .report-area .area-main { display: contents; }
  .report-area .level { justify-self: start; }
  .report-area .area-side > .mono, .report-area .area-sub { display: none; }
  .report-area .area-side h2 { font-size: 26px; margin: 0; }
  .report-area .level { margin-top: 8px; font-size: 9px; padding: 3px 9px; white-space: nowrap; }
  .area-bar { margin: 10px 0 16px; max-width: none; }
  .area-main .reading-head { font-size: 15px; line-height: 1.35; font-weight: 400; }
  .area-main .reading-body { font-size: 12px; margin-top: 6px; }
  .area-main > .mono { margin: 16px 0 4px; font-size: 9px; }
  .report .actions li { grid-template-columns: 22px 1fr; padding: 7px 0; font-size: 11.5px; line-height: 1.4; }
  .report .actions li::before { font-size: 9px; padding-top: 2px; }
  /* the note, then the footer */
  .report-note { margin: auto 0 0; max-width: none; padding-top: 0.25in; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.85in 1fr; column-gap: 0.45in; row-gap: 0; }
  .report-note > .mono { margin: 3px 0 0; font-size: 9px; }
  .report-note #r-note p { font-size: 12.5px; margin: 0 0 5px; }
  .pdf-talk { grid-column: 2; justify-self: start; margin-top: 12px; font-size: 13px; color: #EDEBE6 !important; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
  .report-foot { display: flex; justify-content: space-between; margin: 0.3in 0 0; color: var(--dim); font-size: 9px; }
  .reveal { opacity: 1 !important; transform: none !important; }
  /* explicit colour: WebKit darkens inherited light text when printing */
  .report-words h1, .area-side h2, .area-main .reading-head, .report .actions li, .report-scores .s-name, .report-area .level { color: #EDEBE6 !important; }
  .report-area.is-focus .level { color: #6CD3EB !important; }
  .report-orb .track { stroke: #1E1E1E !important; } .report-orb .core { fill: #FFFEFF !important; } .report-orb .arc-help { stroke: #EDEBE6 !important; }
}
.report-note > .mono { margin-bottom: 24px; }

/* Loading (slow connections only — see initLoader in site.js) */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  animation: page-in .8s var(--calm) both; transition: opacity 1.2s var(--calm); }
.loader.done { opacity: 0; pointer-events: none; }
.loader-orb .orb { width: 72px; height: 72px; display: block; }
.loader .mono { margin: 0; color: var(--muted); }
