/* ============================================================
   NATHAN ZIEMANSKI — v2 (2026 redesign)
   Collins' palette + editorial structure × Rachel Chen's tiles + quiet motion. Light first.
   Tokens → base → components → homepage sections → breakpoints
   ============================================================ */

:root {
  /* Collins palette (wearecollins.com) */
  --off-white: #F8F8F7;
  --off-black: #140700;
  --mid-black: #5E5855;
  --mid-white: #D0D0C8;
  --white: #FFFFFF;
  --orange: #FF7600;

  /* semantic — light is the default theme */
  --bg: var(--off-white);
  --fg: var(--off-black);
  --mid: var(--mid-black);
  --faint: rgba(20, 7, 0, .36);
  --line: rgba(20, 7, 0, .12);
  --line-strong: rgba(20, 7, 0, .28);
  --card: var(--white);
  --tint: #ECECE8;
  --hover: rgba(20, 7, 0, .03);
  --frost: rgba(255, 255, 255, .72);
  --accent: var(--orange);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Arial, sans-serif;

  --gutter: 40px;
  --max: 1440px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* dark sections (Collins off-black) */
.theme-dark {
  --bg: var(--off-black);
  --fg: var(--off-white);
  --mid: var(--mid-white);
  --faint: rgba(248, 248, 247, .4);
  --line: rgba(248, 248, 247, .14);
  --line-strong: rgba(248, 248, 247, .32);
  --card: rgba(248, 248, 247, .06);
  --tint: rgba(248, 248, 247, .06);
  --hover: rgba(248, 248, 247, .04);
  --frost: rgba(248, 248, 247, .08);
  background: var(--bg); color: var(--fg);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, blockquote, figure, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--off-black); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 999px; font-size: 14px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.serif { font-family: var(--serif); font-weight: 300; }
.label { font-size: 13px; line-height: 18px; color: var(--mid); letter-spacing: .01em; }
.dot { width: 8px; height: 8px; background: var(--accent); display: inline-block; flex: none; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, opacity .3s ease;
}
.pill--solid { background: var(--fg); color: var(--bg); }
.pill--solid:hover { opacity: .86; }
.pill--ghost { border: 1px solid var(--line-strong); color: var(--fg); }
.pill--ghost:hover { border-color: var(--fg); }

/* ---------- caption ( Title / tags ) ---------- */
.cap { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; line-height: 20px; margin-top: 14px; }
.cap .sl { color: var(--faint); }
.cap .tg { color: var(--mid); }

/* ---------- media resolve (tint → blur → sharp) ---------- */
.media { position: relative; overflow: hidden; background: var(--tint); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.js .media img, .js .media video { opacity: 0; filter: blur(6px); transition: opacity .3s ease-in-out, filter .3s ease-in-out; }
.js .media video { transition-duration: .5s; }
.js .media .is-loaded { opacity: 1; filter: none; }

/* ---------- enter (fade + blur 6px → 0) ---------- */
.js [data-in] { opacity: 0; filter: blur(6px); transition: opacity .4s ease-out, filter .4s ease-out; transition-delay: var(--d, 0s); }
.js [data-in].is-in { opacity: 1; filter: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(248, 248, 247, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; justify-self: start; }
.nav__links { position: relative; display: flex; gap: 32px; font-size: 14px; color: var(--mid); }
.nav__links a { position: relative; transition: color .25s ease; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--fg); }
.nav__links sup { font-size: 10px; margin-left: 2px; color: var(--faint); }
.nav__marker {
  position: absolute; top: 50%; left: 0; width: 6px; height: 6px; margin-top: -3px; background: var(--accent);
  opacity: 0; transform: translateX(var(--mx, 0)); pointer-events: none;
  transition: transform .35s var(--ease-out), opacity .2s ease;
}
.nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; font-size: 13px; color: var(--mid); justify-self: end; }
.nav__clock { font-variant-numeric: tabular-nums; }
.nav__menu { display: none; width: 44px; height: 44px; margin-right: -12px; align-items: center; justify-content: center; }
.nav__menu span { display: block; width: 20px; height: 1.5px; background: var(--fg); position: relative; transition: transform .3s var(--ease-out); }
.nav__menu span + span { margin-top: 5px; }
.nav__menu { flex-direction: column; }
.menu-open .nav__menu span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .nav__menu span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 60px 0 0 0; z-index: 39; background: var(--bg);
  padding: 32px 20px 40px; display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.menu-open .sheet { opacity: 1; visibility: visible; }
.sheet nav { display: flex; flex-direction: column; font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 54px; letter-spacing: -0.02em; }
.sheet .pill { width: 100%; height: 48px; }
.sheet__ctas { display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 168px 0 120px; text-align: center; }
.hero__label { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 32px; }
.hero h1 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 6.4vw, 92px); line-height: 1.045; letter-spacing: -0.028em;
  max-width: 1240px; margin: 0 auto; text-wrap: balance;
}
.hero h1 em { font-style: italic; }
.hero__lede { font-size: 19px; line-height: 30px; color: var(--mid); max-width: 700px; margin: 36px auto 0; text-wrap: pretty; }
.hero__ctas { display: flex; gap: 12px; justify-content: center; margin-top: 44px; }
.meta { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 104px auto 0; border-top: 1px solid var(--line); text-align: left; }
.meta > div { padding: 20px 24px 0 0; font-size: 15px; line-height: 22px; }
.meta .label { display: block; margin-bottom: 6px; }

/* ============================================================
   FEATURED (Midseason)
   ============================================================ */
.feat { padding-bottom: 140px; }
.feat__media { display: block; aspect-ratio: 1360 / 640; }
.feat__tags { position: absolute; left: 24px; top: 24px; display: flex; gap: 8px; z-index: 2; }
.chip { height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(20, 7, 0, .6); color: var(--off-white); font-size: 12px; line-height: 28px; font-weight: 500; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.feat__body { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 80px; margin-top: 72px; }
.feat__body h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.feat__body p { font-size: 17px; line-height: 27px; color: var(--mid); max-width: 620px; }
.feat__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.impact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.impact > div { background: var(--card); padding: 28px 28px 30px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.impact b { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.03em; display: block; font-variant-numeric: lining-nums; }
.impact span { font-size: 14px; line-height: 20px; color: var(--mid); }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.shead { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 28px; border-top: 1px solid var(--line); margin-bottom: 56px; }
.shead h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -0.022em; }
.shead .label { text-align: right; max-width: 320px; }

/* ============================================================
   SELECTED WORK — two hand-curated masonry columns
   ============================================================ */
.work { padding-bottom: 120px; }
.grid { display: flex; gap: 20px; align-items: flex-start; }
.col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.tile { display: block; }
.tile .media { outline: 1px solid var(--line); outline-offset: -1px; }
.tile .media::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .3); opacity: 0; transition: opacity .3s ease-in-out; pointer-events: none; }
.tile:hover .media::after, .tile:focus-visible .media::after { opacity: 1; }

/* ============================================================
   FULL INDEX
   ============================================================ */
.index { padding-bottom: 140px; }
.row { display: grid; grid-template-columns: 56px minmax(0, 340px) minmax(0, 1fr) 240px 24px; align-items: center; min-height: 72px; border-top: 1px solid var(--line); font-size: 14px; transition: background-color .3s ease; }
.list li:last-child .row { border-bottom: 1px solid var(--line); }
.row:hover { background: var(--hover); }
.row .n { color: var(--faint); font-size: 13px; padding-left: 4px; }
.row .t { font-family: var(--serif); font-size: 24px; line-height: 28px; letter-spacing: -0.01em; }
.row .d { color: var(--mid); padding-right: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .g { color: var(--mid); text-align: right; padding-right: 24px; }
.row .a { color: var(--mid); text-align: right; transition: transform .3s var(--ease-out), color .3s ease; }
.row:hover .a { color: var(--fg); transform: translate(2px, -2px); }

/* ============================================================
   LOGOS
   ============================================================ */
.logos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos__in { padding-top: 56px; padding-bottom: 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.logos__row { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 28px 64px; opacity: .72; }
.logos__row img { width: auto; }

/* ============================================================
   HOW I WORK — dark band (Collins off-black)
   ============================================================ */
.band__in { padding-top: 140px; padding-bottom: 140px; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 120px; }
.band h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -0.022em; margin-top: 20px; }
.band__intro p { font-size: 17px; line-height: 27px; color: var(--mid); margin-top: 28px; max-width: 440px; }
.band__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.prow { display: grid; grid-template-columns: 64px 1fr; padding: 32px 0 34px; border-top: 1px solid var(--line); }
.prow:last-child { border-bottom: 1px solid var(--line); }
.prow .n { font-size: 13px; color: var(--mid); padding-top: 8px; }
.prow h3 { font-family: var(--serif); font-weight: 300; font-size: 36px; line-height: 42px; letter-spacing: -0.015em; }
.prow p { font-size: 16px; line-height: 25px; color: var(--mid); margin-top: 8px; max-width: 620px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { font-size: 12px; line-height: 24px; height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--mid); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { padding-top: 160px; padding-bottom: 140px; }
.bigq { text-align: center; max-width: 1140px; margin: 0 auto; }
.bigq blockquote { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.9vw, 56px); line-height: 1.14; letter-spacing: -0.02em; text-wrap: balance; }
.who { font-size: 14px; line-height: 20px; margin-top: 36px; font-style: normal; display: block; }
.who span { display: block; color: var(--mid); }
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 120px; }
.q { background: var(--card); padding: 32px 32px 30px; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; }
.q p { font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 32px; letter-spacing: -0.005em; }
.q .who { margin-top: 28px; }

/* ============================================================
   OUTSIDE OF WORK
   ============================================================ */
.outside { padding-bottom: 140px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px 20px; }
.ph .media { aspect-ratio: 4 / 5; }
.ph .c1 { font-size: 14px; line-height: 20px; margin-top: 14px; }
.ph .c2 { font-size: 14px; line-height: 20px; color: var(--mid); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding-bottom: 160px; display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 80px; align-items: end; }
.about .media { aspect-ratio: 4 / 5; }
.about h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 3vw, 44px); line-height: 1.18; letter-spacing: -0.018em; max-width: 700px; margin-top: 20px; text-wrap: pretty; }
.about .pill { margin-top: 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line); }
.foot__in { padding-top: 160px; text-align: center; }
.foot h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(52px, 8.4vw, 120px); line-height: .97; letter-spacing: -0.035em; }
.foot__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 52px; }
.fnav { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 140px; font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 48px; letter-spacing: -0.015em; }
.fnav a { color: var(--fg); transition: color .25s ease; }
.fnav:hover a { color: var(--faint); }
.fnav a:hover { color: var(--fg); }
.fbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 140px; min-height: 76px; border-top: 1px solid var(--line); font-size: 13px; color: var(--mid); }
.fbar div { display: flex; gap: 28px; }
.fbar a:hover { color: var(--fg); }

/* ============================================================
   HERO MANIFESTO — word-by-word reveal + inline chips
   (after america.gov: blur 6px + 8px rise + .95 scale per word)
   ============================================================ */
.manifesto { --cs: .74em; }
.manifesto .w { display: inline-block; }
.manifesto em { font-style: italic; }
.js .manifesto[data-in] { opacity: 1; filter: none; }
.js .manifesto .w {
  opacity: 0; filter: blur(6px); transform: translateY(8px) scale(.95);
  transition: opacity .5s ease-out, filter .5s ease-out, transform .7s var(--ease-out);
  transition-delay: calc(var(--i) * 45ms + 100ms);
}
.js .manifesto.is-in .w { opacity: 1; filter: none; transform: none; }

.hchip {
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  position: relative; top: -.07em; height: var(--cs); margin: 0 .05em;
  border-radius: 999px; font-size: inherit; line-height: 1;
}
.js .hchip {
  opacity: 0; transform: scale(.6);
  transition: opacity .4s ease-out, transform .75s cubic-bezier(.34, 1.56, .64, 1);
  transition-delay: calc(var(--i) * 45ms + 160ms);
}
.js .manifesto.is-in .hchip { opacity: 1; transform: none; }
.js .manifesto.is-settled .hchip { transition-delay: 0s; }
.hchip:focus-visible { outline-offset: 4px; border-radius: 999px; }

/* lens — frosted circle, aperture draws itself in, turns on hover (saved hero v1: research/saved/hero-manifesto-v1.html) */
.hchip--lens {
  width: var(--cs); color: var(--fg);
  background: var(--frost); border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(20, 7, 0, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hchip--lens svg { width: 58%; height: 58%; transition: transform 1.4s var(--ease-out); transition-delay: calc(var(--i) * 45ms + 200ms); }
.js .hchip--lens svg { transform: rotate(-120deg); }
.js .manifesto.is-in .hchip--lens svg { transform: rotate(0deg); }
.js .hchip--lens svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + 260ms); }
.js .manifesto.is-in .hchip--lens svg * { stroke-dashoffset: 0; }
.manifesto.is-settled .hchip--lens:hover svg { transform: rotate(60deg); transition-delay: 0s; transition-duration: .9s; }

/* avatar — Nathan's headshot; tilts hello on hover */
.hchip--avatar { width: var(--cs); border-radius: 50%; overflow: hidden; box-shadow: 0 6px 18px rgba(20, 7, 0, .14), inset 0 0 0 1px rgba(20, 7, 0, .08); }
.hchip--avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); }
.manifesto.is-settled .hchip--avatar:hover img { transform: rotate(-8deg) scale(1.08); }

/* spark — frosted circle, orange sparkle draws in and turns on hover */
.hchip--spark {
  width: var(--cs); color: var(--accent);
  background: var(--frost); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20, 7, 0, .08);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hchip--spark svg { width: 56%; height: 56%; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 45ms + 200ms); }
.js .hchip--spark svg { transform: rotate(-90deg) scale(.7); }
.js .manifesto.is-in .hchip--spark svg { transform: none; }
.js .hchip--spark svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + 240ms); }
.js .manifesto.is-in .hchip--spark svg * { stroke-dashoffset: 0; }
.manifesto.is-settled .hchip--spark:hover svg { transform: rotate(90deg) scale(1.08); transition-delay: 0s; transition-duration: .8s; }

/* client seals — stacked, fan out on enter, cycle on click */
.hchip--stack { width: calc(var(--cs) * 2.1); cursor: pointer; }
.manifesto .nw { white-space: nowrap; }
.manifesto .nw-d { white-space: nowrap; }
@media (max-width: 767px) { .manifesto .nw-d { white-space: normal; } }
.seal {
  --p: 0; position: absolute; top: 0; left: 0; width: var(--cs); height: var(--cs); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: #fff; box-shadow: 0 6px 18px rgba(20, 7, 0, .14), inset 0 0 0 1px rgba(20, 7, 0, .08);
  transform: translateX(calc(var(--cs) * .55 * var(--p)));
  transition: transform .6s var(--ease-out);
}
.seal[data-pos="0"] { --p: 0; z-index: 1; }
.seal[data-pos="1"] { --p: 1; z-index: 2; }
.seal[data-pos="2"] { --p: 2; z-index: 3; }
.js .manifesto:not(.is-in) .seal { transform: translateX(calc(var(--cs) * .55)); }
.manifesto:not(.is-settled) .seal { transition-delay: calc(var(--i) * 45ms + 380ms); }
.manifesto.is-settled .hchip--stack:hover .seal { transform: translateX(calc(var(--cs) * .6 * var(--p))); }
.seal svg, .seal img { width: 54%; height: 54%; object-fit: contain; }
.seal--kraken { background: var(--off-black); box-shadow: 0 6px 18px rgba(20, 7, 0, .18), inset 0 0 0 1px rgba(248, 248, 247, .16); }
.seal--kraken img { width: 46%; height: 58%; }
.seal--lpga img { width: 66%; height: 66%; }

/* arrow (saved hero v1) — orange button, arrow loops out top-right and back in on hover */
.hchip--arrow { width: var(--cs); background: var(--accent); color: var(--off-black); overflow: hidden; transition-property: opacity, transform, background-color; }
.hchip--arrow:hover { background: #FF8B2E; }
.manifesto.is-in .hchip--arrow:active { transform: scale(1.05); }
.hchip--arrow .arr { position: relative; width: 44%; height: 44%; }
.hchip--arrow .arr svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .45s var(--ease-out); }
.hchip--arrow .arr svg + svg { transform: translate(-130%, 130%); }
.hchip--arrow:hover .arr svg:first-child { transform: translate(130%, -130%); }
.hchip--arrow:hover .arr svg + svg { transform: translate(0, 0); }

@media (max-width: 767px) {
  .manifesto { --cs: .8em; }
}
@media (prefers-reduced-motion: reduce) {
  .js .manifesto .w, .js .hchip, .js .hchip--lens svg, .js .hchip--spark svg, .js .seal { opacity: 1; filter: none; transform: none; transition: none; }
  .js .hchip--lens svg *, .js .hchip--spark svg * { stroke-dashoffset: 0; transition: none; }
  .seal { transform: translateX(calc(var(--cs) * .55 * var(--p))) !important; }
}

/* ============================================================
   CASE STUDY TEMPLATE
   Rachel Chen's structure × Collins' case pages, one light background.
   A rail · B hero · C TL;DR+impact · D section · E frame gallery
   F decision · G pull quote · H outcomes+voices · I reflection · J next
   ============================================================ */
.cs-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); column-gap: 40px; }
.cs-content { min-width: 0; max-width: 1060px; padding-bottom: 40px; }
[data-toc-section] { scroll-margin-top: 110px; }

/* A — sticky rail */
.cs-rail { position: relative; }
.cs-rail__in { position: sticky; top: 76px; padding-top: 72px; padding-bottom: 40px; }
.crumb { display: flex; gap: 6px; font-size: 14px; line-height: 20px; }
.crumb a { color: var(--mid); transition: color .25s ease; }
.crumb a:hover { color: var(--fg); }
.crumb .sl { color: var(--faint); }
.toc { position: relative; margin-top: 48px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 20px; }
.toc a { color: var(--mid); padding-left: 18px; transition: color .25s ease; }
.toc a:hover, .toc a.is-on { color: var(--fg); }
.toc a.sub { padding-left: 36px; font-size: 13px; color: var(--faint); }
.toc a.sub.is-on, .toc a.sub:hover { color: var(--fg); }
.toc__marker { position: absolute; left: 0; top: 0; width: 8px; height: 8px; background: var(--accent); transform: translateY(var(--ty, 6px)); transition: transform .35s var(--ease-out); }
.rail-foot { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); width: 200px; font-size: 13px; line-height: 20px; color: var(--mid); }

/* mobile "on this page" bar */
.cs-bar { display: none; }

/* B — hero */
.cs-hero { padding-top: 72px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.cs-hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(42px, 5.3vw, 76px); line-height: 1.05; letter-spacing: -0.028em; max-width: 980px; text-wrap: balance; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.cs-chips li { height: 28px; line-height: 26px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--mid); }
.metarow { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; border-top: 1px solid var(--line); }
.metarow > div { padding: 18px 20px 0 0; font-size: 15px; line-height: 22px; }
.metarow dt { margin-bottom: 6px; }
.metarow dd { margin: 0; }
.cs-hero__media { margin-top: 56px; aspect-ratio: 1060 / 560; }
.cs-cap { font-size: 13px; line-height: 18px; color: var(--mid); margin-top: 12px; }

/* C — TL;DR + impact */
.tldr { margin-top: 96px; background: var(--card); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; }
.tldr__head { grid-column: 1 / -1; padding: 22px 28px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.tldr__head a { color: var(--mid); } .tldr__head a:hover { color: var(--fg); }
.tldr__cell { padding: 28px 28px 32px; }
.tldr__cell + .tldr__cell { border-left: 1px solid var(--line); }
.tldr h4, .listcard h4, .drow h4 { font-size: 13px; font-weight: 500; color: var(--mid); margin-bottom: 10px; }
.tldr p { font-family: var(--serif); font-weight: 300; font-size: 22px; line-height: 30px; }
.impact--ink { margin-top: 12px; gap: 12px; }
.impact--ink > div { background: var(--off-black); color: var(--off-white); min-height: 188px; padding: 24px 24px 26px; }
.impact--ink b { font-size: clamp(40px, 3.9vw, 56px); }
.impact--ink span { color: var(--mid-white); font-size: 13px; line-height: 18px; }

/* D — section */
.cs-sec { margin-top: 140px; }
.cs-shead { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.cs-sec h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -0.022em; max-width: 900px; text-wrap: balance; }
.cs-body { max-width: 700px; margin-top: 28px; }
.cs-body p { font-size: 18px; line-height: 30px; color: var(--mid); text-wrap: pretty; }
.cs-body p + p { margin-top: 18px; }
.cs-body b, .drow b { color: var(--fg); font-weight: 500; }

.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.listcard { background: var(--card); border: 1px solid var(--line); padding: 28px; }
.listcard li { font-family: var(--serif); font-weight: 300; font-size: 22px; line-height: 30px; padding: 10px 0; border-top: 1px solid var(--line); }

/* E — framed gallery */
.frame { margin-top: 44px; background: var(--tint); padding: 56px 24px 40px; display: flex; justify-content: center; gap: 28px; }
.phone { width: 220px; flex: none; }
.phone__scr { width: 220px; aspect-ratio: 220 / 476; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 40px rgba(20, 7, 0, .10); }
.phone__scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone figcaption { font-size: 12px; line-height: 17px; color: var(--mid); margin-top: 14px; }
.phone figcaption b { font-weight: 500; color: var(--fg); }

.learn .n { font-size: 13px; color: var(--mid); }
.learn h3 { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 34px; letter-spacing: -0.01em; margin-top: 14px; }
.learn p { font-size: 15px; line-height: 24px; color: var(--mid); margin-top: 12px; }

/* D+ — points list (section bullets) */
.cs-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-top: 32px; max-width: 900px; border-top: 1px solid var(--line); }
.cs-points li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 22px; display: flex; gap: 10px; align-items: baseline; }
.cs-points li::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; transform: translateY(-2px); }

/* E+ — photo gallery (project imagery, natural ratios) */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 44px; align-items: start; }
.shots--1 { grid-template-columns: minmax(0, 1fr); }
.shots .media { outline: 1px solid var(--line); outline-offset: -1px; }

/* hero variants */
.cs-hero__media--contain { background: var(--tint); }
.cs-hero__media--contain img { object-fit: contain; padding: 8% 12%; }
.cs-hero__media--ink { background: #000; }
.cs-hero__media--ink img { object-fit: contain; }

/* typographic tile — projects without imagery */
.media--type { display: flex; align-items: flex-end; padding: 28px; background: var(--tint); }
.media--type span { font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 1.05; letter-spacing: -0.02em; color: var(--fg); }

.media.is-contain { background: var(--tint); }
.media.is-contain img { object-fit: contain; padding: 10% 14%; }
.phone__scr--tall { aspect-ratio: 760 / 1524; }
.tldr--3 { grid-template-columns: repeat(3, 1fr); }
.tldr--3 .tldr__cell p { font-size: 19px; line-height: 27px; }
.listcard p { font-size: 16px; line-height: 26px; color: var(--mid); }
.listcard h3 { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 32px; margin-bottom: 12px; }

/* concept note (spec work disclosure) */
.cs-note { margin-top: 32px; padding: 18px 20px; border: 1px solid var(--line); background: var(--card); max-width: 900px; font-size: 14px; line-height: 22px; color: var(--mid); display: grid; grid-template-columns: 80px 1fr; gap: 16px; }
.cs-note b { color: var(--fg); font-weight: 500; }

/* F — decision block */
.dwrap { margin-top: 40px; }
.drow { display: grid; grid-template-columns: 200px minmax(0, 700px); padding: 24px 0; border-top: 1px solid var(--line); }
.drow h4 { padding-top: 5px; margin: 0; }
.drow p { font-size: 17px; line-height: 28px; color: var(--mid); }
.drow--tight { padding-bottom: 16px; }
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 24px 200px; max-width: 860px; }
.options--2 { grid-template-columns: 1fr 1fr; }
.opt { background: var(--card); border: 1px solid var(--line); padding: 22px 22px 24px; min-height: 196px; display: flex; flex-direction: column; justify-content: space-between; }
.opt__k { font-size: 12px; color: var(--mid); display: flex; justify-content: space-between; }
.opt h5 { font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 30px; margin: 10px 0 0; }
.opt em { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 17px; line-height: 24px; color: var(--mid); margin-top: 18px; display: block; }
.opt--chosen { background: var(--off-black); color: var(--off-white); border-color: var(--off-black); }
.opt--chosen .opt__k { color: var(--mid-white); }
.opt--chosen .opt__k span:last-child { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.opt--chosen em { color: var(--off-white); }
.statline { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.statline b { font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 48px; letter-spacing: -0.03em; }

/* G — pull quote */
.pull { margin: 40px 0 0 200px; padding-left: 28px; border-left: 2px solid var(--accent); max-width: 760px; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 36px; line-height: 44px; letter-spacing: -0.015em; }



.sys { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 48px; margin-top: 44px; align-items: start; }
.sys .cs-body { margin-top: 0; }
.sys__panel { background: var(--tint); padding: 40px; display: flex; justify-content: center; }
.sys__panel img { width: 300px; height: auto; }

.pull-note { margin: 16px 0 0 230px; }
.pull-note p { font-size: 16px; line-height: 26px; }

/* H — outcomes + voices */
.voice { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; }
.voice__big { background: var(--card); border: 1px solid var(--line); padding: 40px; }
.voice__big p { font-family: var(--serif); font-weight: 300; font-size: 30px; line-height: 40px; letter-spacing: -0.01em; margin-top: 20px; }
.voice .who { margin-top: 28px; }
.voice .who span { color: var(--mid); }
.dm { background: var(--off-black); color: var(--off-white); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.dm .label, .dm .who span { color: var(--mid-white); }
.bubble { background: #2E2118; border-radius: 18px 18px 18px 4px; padding: 14px 16px; font-size: 15px; line-height: 22px; }
.cs-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* I — reflection */
.learn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.learn li { background: var(--card); border: 1px solid var(--line); padding: 28px 28px 30px; }
.learn h3 { margin-top: 12px; }
.learn p { margin-top: 10px; }

/* J — next case study (same background as the page) */
.cs-next__in { padding-top: 140px; padding-bottom: 160px; }
.cs-next__top { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 24px; }
.cs-next__top h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 64px); line-height: 1.06; letter-spacing: -0.022em; }
.ngrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; margin-top: 48px; }
.ngrid .media { aspect-ratio: auto; height: 450px; outline: 1px solid var(--line); outline-offset: -1px; }

@media (max-width: 1199px) {
  .cs-layout { grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; }
  .options { margin-left: 0; }
  .pull { margin-left: 0; }
  .pull-note { margin-left: 30px; }
  .drow { grid-template-columns: 160px minmax(0, 1fr); }
  .sys { grid-template-columns: 1fr; }
  .voice { grid-template-columns: 1fr; }
  .frame { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding-left: 28px; padding-right: 28px; scroll-padding-inline: 28px; }
  .phone { scroll-snap-align: start; }
}
@media (max-width: 1023px) {
  .cs-layout { grid-template-columns: 1fr; }
  .cs-rail { display: none; }
  .cs-bar { display: block; position: sticky; top: 76px; z-index: 30; background: var(--card); border-bottom: 1px solid var(--line); }
  .cs-bar__btn { width: 100%; height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter); font-size: 13px; }
  .cs-bar__btn span { display: inline-flex; align-items: center; gap: 8px; }
  .cs-bar__btn .label { transition: transform .3s var(--ease-out); }
  .cs-bar[data-open] .cs-bar__btn .label { color: var(--fg); }
  .cs-bar__prog { height: 2px; background: var(--line); }
  .cs-bar__prog i { display: block; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
  .cs-bar__list { display: none; padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); max-height: 60vh; overflow: auto; }
  .cs-bar[data-open] .cs-bar__list { display: flex; flex-direction: column; gap: 12px; }
  .cs-bar__list a { font-size: 15px; color: var(--mid); }
  .cs-bar__list a.sub { padding-left: 16px; font-size: 14px; }
  .cs-bar__list a.is-on { color: var(--fg); }
  [data-toc-section] { scroll-margin-top: 140px; }
}
@media (max-width: 767px) {
  .cs-bar { top: 60px; }
  .crumb-m { display: block; font-size: 13px; color: var(--mid); margin-top: 28px; }
  .cs-hero { padding-top: 36px; }
  .eyebrow { margin-bottom: 16px; font-size: 12px; }
  .cs-hero h1 { font-size: 42px; line-height: 46px; letter-spacing: -0.025em; }
  .cs-chips { margin-top: 20px; }
  .cs-chips li { height: 26px; line-height: 24px; padding: 0 10px; }
  .metarow { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .metarow > div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
  .cs-hero__media { margin: 28px calc(var(--gutter) * -1) 0; aspect-ratio: 390 / 300; }
  .cs-points { grid-template-columns: 1fr; margin-top: 24px; }
  .shots { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .cs-note { grid-template-columns: 1fr; gap: 4px; }
  .media--type span { font-size: 30px; }
  .tldr { margin-top: 40px; grid-template-columns: 1fr; }
  .tldr__head { padding: 14px 18px; }
  .tldr__head a { display: none; }
  .tldr__cell { padding: 18px; }
  .tldr__cell + .tldr__cell { border-left: 0; border-top: 1px solid var(--line); }
  .tldr--3 { grid-template-columns: 1fr; }
  .tldr--3 .tldr__cell p { font-size: 17px; line-height: 25px; }
  .tldr p { font-size: 19px; line-height: 26px; }
  .impact--ink { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .impact--ink > div { min-height: 124px; padding: 16px; }
  .impact--ink b { font-size: 36px; }
  .impact--ink span { font-size: 12px; line-height: 16px; }
  .cs-sec { margin-top: 80px; }
  .cs-shead { padding-top: 14px; margin-bottom: 18px; }
  .cs-shead .label + .label { display: none; }
  .cs-sec h2 { font-size: 34px; line-height: 38px; }
  .cs-body p { font-size: 16px; line-height: 26px; }
  .two-up, .learn { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .listcard, .learn li { padding: 20px; }
  .listcard li { font-size: 19px; line-height: 26px; }
  .learn h3 { font-size: 23px; line-height: 28px; }
  .drow { grid-template-columns: 1fr; padding: 18px 0; }
  .drow h4 { margin-bottom: 6px; }
  .drow p { font-size: 15px; line-height: 24px; }
  .options, .options--2 { grid-template-columns: 1fr; gap: 8px; margin: 4px 0 12px; }
  .opt { min-height: 0; padding: 18px; }
  .opt h5 { font-size: 21px; line-height: 26px; }
  .opt em { font-size: 16px; line-height: 22px; margin-top: 10px; }
  .pull { margin-top: 28px; padding-left: 18px; font-size: 26px; line-height: 32px; }
  .frame { margin: 28px calc(var(--gutter) * -1) 0; padding: 28px var(--gutter) 22px; gap: 10px; scroll-padding-inline: var(--gutter); }
  .phone, .phone__scr { width: 200px; }
  .statline b { font-size: 40px; line-height: 40px; }
  .sys__panel { padding: 28px; }
  .sys__panel img { width: 100%; max-width: 280px; }
  .voice__big { padding: 22px; }
  .voice__big p { font-size: 21px; line-height: 28px; }
  .cs-next__in { padding-top: 80px; padding-bottom: 88px; }
  .cs-next__top h2 { font-size: 36px; line-height: 40px; }
  .ngrid { grid-template-columns: 1fr; margin-top: 24px; }
  .ngrid .media { height: 200px; }
  .ngrid > :nth-child(2) { display: none; }
}
@media (min-width: 768px) { .crumb-m { display: none; } }
@media (prefers-reduced-motion: reduce) { .toc__marker, .cs-bar__prog i { transition: none; } }

/* ============================================================
   PAGES — Work, About, Contact
   ============================================================ */
.page-head { padding: 140px 0 72px; }
.page-head .eyebrow { margin-bottom: 28px; }
.page-head h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(56px, 8.4vw, 120px); line-height: .98; letter-spacing: -0.035em; text-wrap: balance; }
.page-head__aside { display: inline-block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: .42em; letter-spacing: -0.01em; color: var(--accent); vertical-align: middle; margin-left: .2em; }
.page-head__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; }
.page-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-head__row .label { text-align: right; max-width: 320px; }

/* Work */
.work-page { padding-bottom: 120px; }
.media.is-type { display: flex; align-items: flex-end; padding: 28px; background: var(--tint); }
.media.is-type span { font-family: var(--serif); font-weight: 300; font-size: 44px; line-height: 1.04; letter-spacing: -0.02em; }

/* About */
.about-page { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 80px; align-items: start; padding-bottom: 120px; }
.about-page .media { aspect-ratio: 4 / 3; }
.about-page__copy p { font-size: 19px; line-height: 31px; color: var(--mid); text-wrap: pretty; }
.about-page__copy p + p { margin-top: 20px; }
.about-page__copy p b { color: var(--fg); font-weight: 500; }
.about-page__copy .pill { margin-top: 36px; }
.about-page .meta { margin: 48px 0 0; max-width: none; grid-template-columns: 1fr; }
.about-page .meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.about-page .meta > div dt { margin: 0; }
.about-page .meta > div dd { margin: 0; text-align: right; }

.foot--compact .foot__in { padding-top: 96px; }
.foot--compact .fnav { margin-top: 0; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; padding-bottom: 140px; }
.contact h2 { font-family: var(--serif); font-weight: 300; font-size: 36px; line-height: 42px; letter-spacing: -0.015em; margin: 14px 0 32px; }
.form-v2 { display: grid; gap: 20px; }
.form-v2 label { display: grid; gap: 8px; font-size: 13px; color: var(--mid); }
.form-v2 input, .form-v2 textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 24px; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: 2px; padding: 14px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-v2 textarea { min-height: 160px; resize: vertical; }
.form-v2 input::placeholder, .form-v2 textarea::placeholder { color: var(--faint); }
.form-v2 input:focus, .form-v2 textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px rgba(255, 118, 0, .18); }
.form-v2 .pill { justify-self: start; height: 48px; padding: 0 24px; border: 0; cursor: pointer; }
.form-v2 .pill[disabled] { opacity: .5; }
.form-ok { padding: 28px; background: var(--card); border: 1px solid var(--line); }
.form-ok p { font-family: var(--serif); font-weight: 300; font-size: 26px; line-height: 34px; margin-top: 12px; }
.cal-v2 { background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.cal-v2 .calendly-inline-widget { min-width: 300px; height: 700px; }

@media (max-width: 1199px) {
  .about-page { gap: 48px; }
  .contact { gap: 48px; }
}
@media (max-width: 899px) {
  .about-page, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .page-head { padding: 64px 0 40px; }
  .page-head h1 { font-size: 56px; line-height: 56px; letter-spacing: -0.03em; }
  .page-head__row { flex-direction: column; align-items: flex-start; }
  .page-head__row .label { text-align: left; }
  .page-head__ctas { flex-direction: column; }
  .page-head__ctas .pill { height: 44px; }
  .work-page, .about-page { padding-bottom: 72px; }
  .about-page__copy p { font-size: 17px; line-height: 27px; }
  .contact { padding-bottom: 88px; }
  .media.is-type span { font-size: 32px; }
}

/* ============================================================
   NateLLM — hero prompt, nav trigger, chat panel (after RacheLLM)
   ============================================================ */
.ask {
  display: flex; align-items: center; gap: 12px; max-width: 640px; height: 60px; margin: 44px auto 0;
  padding: 0 8px 0 20px; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(20, 7, 0, .06); transition: border-color .25s ease, box-shadow .25s ease;
}
.ask:focus-within { border-color: var(--fg); box-shadow: 0 0 0 4px rgba(255, 118, 0, .16), 0 10px 30px rgba(20, 7, 0, .06); }
.ask__icon { color: var(--accent); display: flex; flex: none; }
.ask__icon svg, .nav__ask svg, .natellm__mark svg { width: 20px; height: 20px; }
.ask input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 17px; color: var(--fg); }
.ask input::placeholder { color: var(--mid); }
.ask__btn { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; transition: background-color .25s ease; }
.ask__btn:hover { background: var(--accent); color: var(--off-black); }
.ask__btn svg { width: 18px; height: 18px; }
.ask__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px auto 0; max-width: 760px; }
.ask__chips button { height: 32px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--mid); transition: color .2s ease, border-color .2s ease; }
.ask__chips button:hover { color: var(--fg); border-color: var(--fg); }

.nav__ask { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--fg); transition: border-color .2s ease; }
.nav__ask:hover { border-color: var(--fg); }
.nav__ask svg { width: 16px; height: 16px; color: var(--accent); }

.natellm {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: 420px; max-width: 100vw;
  display: flex; flex-direction: column; background: var(--card); color: var(--fg);
  border-left: 1px solid var(--line); box-shadow: -24px 0 60px rgba(20, 7, 0, .10);
  transform: translateX(104%); visibility: hidden; transition: transform .45s var(--ease-out), visibility 0s linear .45s;
}
.natellm.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease-out), visibility 0s; }
.natellm__head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.natellm__mark { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.natellm__head h2 { font-family: var(--serif); font-weight: 300; font-size: 24px; line-height: 28px; }
.natellm__head p { font-size: 12px; line-height: 16px; color: var(--mid); margin-top: 2px; }
.natellm__close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--mid); }
.natellm__close:hover { color: var(--fg); background: var(--tint); }
.natellm__log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; overscroll-behavior: contain; }
.msg { font-size: 15px; line-height: 24px; max-width: 92%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--user { align-self: flex-end; max-width: 85%; background: var(--off-black); color: var(--off-white); padding: 10px 14px; border-radius: 16px 16px 4px 16px; }
.msg--bot { align-self: flex-start; }
.msg--bot a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--accent); }
.msg--note { color: var(--mid); }
.msg .tok { animation: tokIn .35s ease-out both; }
@keyframes tokIn { from { opacity: .2; filter: blur(1.5px); } to { opacity: 1; filter: none; } }
.msg__dots { display: inline-flex; gap: 4px; padding: 6px 0; }
.msg__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: dot 1s ease-in-out infinite; }
.msg__dots i:nth-child(2) { animation-delay: .15s; } .msg__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.natellm__chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.natellm__chips button { text-align: left; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; font-size: 14px; line-height: 20px; color: var(--mid); }
.natellm__chips button:hover { color: var(--fg); border-color: var(--fg); }
.natellm__form { display: flex; align-items: flex-end; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.natellm__form textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; padding: 11px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); font: inherit; font-size: 15px; line-height: 20px; color: var(--fg); outline: none; }
.natellm__form textarea:focus { border-color: var(--fg); }
.natellm__send { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent); color: var(--off-black); display: flex; align-items: center; justify-content: center; }
.natellm__send[disabled] { opacity: .45; }
.natellm__send svg { width: 18px; height: 18px; }
.natellm__fine { padding: 0 16px 12px; font-size: 11px; line-height: 15px; color: var(--faint); }

@media (max-width: 860px) {
  .nav__ask span { display: none; }
  .nav__ask { width: 40px; padding: 0; justify-content: center; }
}
@media (max-width: 767px) {
  .ask { margin: 28px 0 0; height: 54px; padding-left: 16px; }
  .ask input { font-size: 16px; }
  .ask__chips { justify-content: flex-start; margin-left: 0; }
  .natellm { width: 100vw; border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .natellm, .natellm.is-open { transition: none; }
  .msg .tok, .msg__dots i { animation: none; }
}

/* ============================================================
   CURSOR (desktop, fine pointer only)
   ============================================================ */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; display: none; align-items: center; gap: 8px; will-change: transform; }
.cursor i { display: block; width: 12px; height: 12px; background: var(--accent); transition: width .12s ease-out, height .12s ease-out, transform .1s ease-out; }
.cursor b { font-size: 13px; font-weight: 500; line-height: 1; background: var(--off-black); color: var(--off-white); padding: 6px 9px; border-radius: 2px; white-space: nowrap; opacity: 0; transition: opacity .15s ease; }
.cursor { opacity: 0; transition: opacity .2s ease; }
.cursor.is-active { opacity: 1; }
.cursor.has-label b { opacity: 1; }
.cursor.is-link i { width: 8px; height: 8px; }
.cursor.is-down i { transform: scale(.75); }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: flex; }
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */
@media (max-width: 1199px) {
  .hero { padding-top: 128px; }
  .feat__body { grid-template-columns: 1fr; gap: 28px; }
  .impact { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 48px minmax(0, 1fr) 220px 24px; }
  .row .d { display: none; }
  .band__in { grid-template-columns: 1fr; gap: 64px; }
  .qgrid { grid-template-columns: repeat(2, 1fr); }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr 1fr; gap: 48px; }
  .logos__in { flex-direction: column; align-items: flex-start; }
  .logos__row { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .nav__links, .nav__clock, .nav__right .pill { display: none; }
  .nav__menu { display: inline-flex; }
  .nav__in { grid-template-columns: 1fr auto; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .nav__in { height: 60px; }
  .sheet { inset: 60px 0 0 0; }
  .hero { padding: 88px 0 64px; text-align: left; }
  .hero__label { justify-content: flex-start; margin-bottom: 24px; font-size: 12px; }
  .hero h1 { font-size: 46px; line-height: 48px; letter-spacing: -0.025em; }
  .hero__lede { font-size: 16px; line-height: 25px; margin: 24px 0 0; }
  .hero__ctas { flex-direction: column; margin-top: 32px; }
  .hero__ctas .pill { height: 44px; }
  .meta { grid-template-columns: 1fr; margin-top: 56px; }
  .meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
  .meta > div .label { margin: 0; flex: none; }
  .meta > div span:last-child { text-align: right; }

  .feat { padding-bottom: 88px; }
  .feat__media { aspect-ratio: 350 / 300; }
  .feat__tags { left: 12px; top: 12px; }
  .feat__body { margin-top: 36px; gap: 16px; }
  .feat__body h2 { font-size: 36px; line-height: 40px; }
  .feat__body p { font-size: 15px; line-height: 24px; }
  .feat__links { flex-direction: column; }
  .feat__links .pill { height: 44px; }
  .impact { gap: 10px; margin-top: 40px; }
  .impact > div { padding: 18px; min-height: 136px; }
  .impact b { font-size: 38px; }
  .impact span { font-size: 12px; line-height: 16px; }

  .shead { padding-top: 20px; margin-bottom: 28px; }
  .shead h2 { font-size: 36px; line-height: 40px; }
  .shead .label { display: none; }
  .work, .index { padding-bottom: 88px; }
  .grid { flex-direction: column; gap: 32px; }
  .col { display: contents; }
  .tile { order: var(--o, 0); }
  .cap { font-size: 13px; margin-top: 10px; }

  .row { grid-template-columns: minmax(0, 1fr) auto; min-height: 56px; }
  .row .n, .row .a { display: none; }
  .row .t { font-size: 20px; }
  .row .g { padding-right: 0; font-size: 12px; }
  .row .g::after { content: " ↗"; }

  .logos__in { padding-top: 36px; padding-bottom: 36px; gap: 24px; }
  .logos__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 12px; justify-items: center; width: 100%; }
  .logos__row img { transform: scale(.8); }
  .logos__row img:nth-child(7) { display: none; }

  .band__in { padding-top: 88px; padding-bottom: 88px; gap: 36px; }
  .band h2 { font-size: 36px; line-height: 40px; margin-top: 14px; }
  .band__intro p { font-size: 15px; line-height: 24px; margin-top: 16px; }
  .band__ctas { flex-direction: column; }
  .band__ctas .pill { height: 44px; }
  .prow { grid-template-columns: 36px 1fr; padding: 22px 0; }
  .prow .n { font-size: 12px; padding-top: 6px; }
  .prow h3 { font-size: 26px; line-height: 30px; }
  .prow p { font-size: 14px; line-height: 21px; }

  .quotes { padding-top: 88px; padding-bottom: 88px; }
  .bigq { text-align: left; }
  .bigq blockquote { font-size: 32px; line-height: 38px; }
  .bigq .who { margin-top: 20px; }
  .qgrid { grid-template-columns: 1fr; gap: 10px; margin-top: 40px; }
  .q { padding: 22px; min-height: 0; }
  .q p { font-size: 20px; line-height: 27px; }
  .q .who { margin-top: 18px; font-size: 13px; }

  .outside { padding-bottom: 88px; }
  .pgrid { gap: 22px 10px; }
  .ph .c1, .ph .c2 { font-size: 13px; line-height: 18px; }
  .ph .c1 { margin-top: 8px; }

  .about { grid-template-columns: 1fr; gap: 28px; padding-bottom: 88px; }
  .about h3 { font-size: 28px; line-height: 34px; }
  .about .pill { margin-top: 24px; }

  .foot__in { padding-top: 88px; text-align: left; }
  .foot h2 { font-size: 54px; line-height: 54px; letter-spacing: -0.03em; }
  .foot__ctas { flex-direction: column; justify-content: flex-start; margin-top: 32px; }
  .foot__ctas .pill { height: 44px; }
  .fnav { align-items: flex-start; margin-top: 64px; font-size: 30px; line-height: 38px; }
  .fbar { margin-top: 64px; padding: 20px 0 28px; flex-wrap: wrap; font-size: 12px; }
  .fbar > span:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-in], .js .media img, .js .media video { transition: none; filter: none; opacity: 1; }
  .tile .media::after, .nav__marker, .row .a { transition: none; }
}
