/* On Point Tech Solutions — Seasons prototype
   Design system: navy base, purple identity, one seasonal accent at a time.
   Serif = seasons / timeless. Mono = systems / precision. Two families, ever. */

@font-face {
  font-family: 'Fraunces';
  src: url('../vendor/fonts/fraunces-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../vendor/fonts/fraunces-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JBMono';
  src: url('../vendor/fonts/jbmono-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JBMono';
  src: url('../vendor/fonts/jbmono-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --bg: #070b14;
  --navy: #0f1729;
  --ink: #ece9f4;
  --ink-dim: rgba(236, 233, 244, 0.62);
  --ink-soft: rgba(236, 233, 244, 0.55);
  --ink-faint: rgba(236, 233, 244, 0.32); /* hairline decoration ONLY, never text */
  --purple: #955eba;
  --accent: #7f6ce0;
  --season: #9d8bff;
  --hairline: rgba(236, 233, 244, 0.14);
  --radius: 6px;
  --serif: 'Fraunces', 'Georgia', serif;
  --mono: 'JBMono', 'Consolas', monospace;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
}
body.season-spring { --season: #9d8bff; }
body.season-summer { --season: #e6b96e; }
body.season-fall   { --season: #d98a4a; }
body.season-winter { --season: #8fc3e8; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.has-cursor, html.has-cursor * { cursor: none !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

:is(a, button, summary):focus-visible {
  outline: 1px solid var(--season);
  outline-offset: 3px;
  border-radius: 2px;
}
.pill:focus-visible { border-radius: 99px; }

.mono {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- fixed world (the one scene that turns) ---------- */

.world { position: fixed; inset: 0; z-index: 0; background: var(--bg); }
.world img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  opacity: 0;
}
.world picture:first-child img { opacity: 1; }
.world video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 38%;
  opacity: 0; transition: opacity 0.9s ease;
}
.world video.on { opacity: 1; }
#morph {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.35s ease;
}
#morph.on { opacity: 1; }
.world::after {
  /* gentle bottom grade so copy always sits on something */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7,11,20,0.32) 0%, transparent 30%, transparent 62%, rgba(7,11,20,0.66) 100%);
  pointer-events: none;
}
.world .dim {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(7, 11, 20, 0.82);
  opacity: 0; transition: opacity 0.8s ease;
  pointer-events: none;
}
.world.is-dimmed .dim { opacity: 1; }

/* ---------- atmosphere layers ---------- */

#particles { position: fixed; inset: 0; z-index: 3; pointer-events: none; }

.vignette {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 45%, transparent 52%, rgba(4, 6, 12, 0.52) 100%);
}
.grain {
  /* background-image = small canvas-generated noise tile (set by JS); jitter is transform-only */
  position: fixed; inset: -100%; z-index: 41; pointer-events: none;
  background-repeat: repeat;
  opacity: 0.06; mix-blend-mode: overlay;
  animation: grainShift 1.1s steps(10) infinite;
}
@keyframes grainShift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-3%, -4%); }
  20% { transform: translate(-6%, 2%); }
  30% { transform: translate(4%, -8%); }
  40% { transform: translate(-3%, 9%); }
  50% { transform: translate(-7%, 5%); }
  60% { transform: translate(7%, 0); }
  70% { transform: translate(0, 7%); }
  80% { transform: translate(2%, 12%); }
  90% { transform: translate(-5%, 5%); }
}

/* ---------- chrome: nav, rail, cursor ---------- */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 2.2rem;
}
.nav::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(7, 11, 20, 0.9), rgba(7, 11, 20, 0));
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.nav.nav--scrolled::before { opacity: 1; }
.nav > * { position: relative; z-index: 1; }
.nav .wordmark { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.22em; font-weight: 500; display: inline-flex; align-items: center; gap: 0.65rem; }
.nav-icon { width: 26px; height: 26px; border-radius: 50%; }
.nav .navlinks { display: flex; align-items: center; gap: 1.6rem; }
.nav .navlink { font-size: 0.6875rem; color: var(--ink-soft); transition: color 0.3s ease; padding: 0.5rem 0.2rem; }
.nav .navlink:hover { color: var(--ink); }
.nav .wordmark em { font-style: normal; color: var(--season); transition: color 1.2s ease; }

.pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 0.78rem 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: 99px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  background: rgba(7, 11, 20, 0.45);
  transition: border-color 0.4s ease, background 0.4s ease, color 0.4s ease;
  will-change: transform;
}
.pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--season); transition: background 1.2s ease; }
.pill:hover { border-color: var(--season); background: rgba(7, 11, 20, 0.65); }
.pill--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.pill--solid:hover { background: var(--purple); border-color: var(--purple); }
.pill--solid .dot { background: #fff; }

.rail {
  position: fixed; right: 2rem; top: 50%; transform: translateY(-50%);
  z-index: 55; display: flex; align-items: center; gap: 1.1rem;
}
.rail .track { width: 1px; height: 130px; background: var(--hairline); position: relative; overflow: hidden; }
.rail .track .fill {
  position: absolute; inset: 0; background: var(--season);
  transform-origin: top; transform: scaleY(0); transition: background 1.2s ease;
}
.rail ol { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; }
.rail button {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); transition: color 0.5s ease;
}
.rail button[aria-current="true"] { color: var(--season); }
.rail button:hover { color: var(--ink); }

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  border-radius: 50%; transform: translate(-50%, -50%);
  opacity: 0; /* fades in on first mousemove */
}
.cursor-dot { width: 5px; height: 5px; background: var(--season); }
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid rgba(236, 233, 244, 0.35);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out), border-color 0.35s ease;
}
.cursor-ring.is-hover { width: 62px; height: 62px; border-color: var(--season); }
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- preloader ---------- */

.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem;
}
.loader .wordmark { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.34em; }
.loader .count { font-family: var(--serif); font-size: 3.2rem; font-weight: 500; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.loader .bar { width: 120px; height: 1px; background: var(--hairline); overflow: hidden; }
.loader .bar span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

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

main { position: relative; z-index: 10; }

.chapter { position: relative; height: 120vh; }
.chapter .hold {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 2.2rem;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
}

.eyebrow { display: flex; align-items: center; gap: 0.9rem; color: var(--season); transition: color 1.2s ease; margin-bottom: 1.4rem; }
.eyebrow .line { width: 42px; height: 1px; background: currentColor; }

h1, h2 { font-weight: 600; line-height: 1.04; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 7.4vw, 7.6rem); max-width: 12ch; }
.chapter h2 { font-size: clamp(2.4rem, 6.4vw, 6.4rem); max-width: 14ch; }

.sub {
  font-family: var(--mono); font-weight: 400;
  font-size: clamp(0.8125rem, 1vw, 0.9375rem); line-height: 1.75; letter-spacing: 0.02em;
  color: var(--ink-dim); max-width: 44ch; margin-top: 1.6rem;
}
#hero .sub { font-size: clamp(0.9rem, 1.1vw, 1.0625rem); color: rgba(236, 233, 244, 0.78); }

.tags { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.8rem; }
.tags span {
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.5rem 0.95rem; border: 1px solid var(--hairline); border-radius: 99px;
  color: var(--ink-dim);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  background: rgba(7, 11, 20, 0.4);
}

.hero-ctas { display: flex; align-items: center; gap: 1rem; margin-top: 2.4rem; }

.scroll-cue {
  position: absolute; bottom: 2.2rem; right: 2.4rem;
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--ink-soft);
}
.scroll-cue .tick { width: 1px; height: 34px; background: var(--ink-soft); overflow: hidden; position: relative; }
.scroll-cue .tick::after {
  content: ''; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--season); animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { 0% { top: -100%; } 55% { top: 100%; } 100% { top: 100%; } }

/* macro detail card floating in chapters */
.detail {
  position: absolute; right: 6vw; top: 16vh;
  width: clamp(180px, 20vw, 300px);
  border: 1px solid var(--hairline);
  padding: 0.55rem; background: rgba(7, 11, 20, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  will-change: transform;
}
.detail img { aspect-ratio: 4 / 3; object-fit: cover; }
.detail figcaption { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); padding: 0.65rem 0.25rem 0.2rem; display: flex; justify-content: space-between; }

/* harvest proof cards (fall) */
.harvest { display: flex; gap: 0.9rem; margin-top: 2rem; flex-wrap: wrap; }
.harvest .card {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.15rem 1.3rem; min-width: 200px;
  background: rgba(7, 11, 20, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.harvest .num { font-family: var(--serif); font-size: 2rem; color: var(--season); transition: color 1.2s ease; }
.harvest .lbl { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); margin-top: 0.45rem; line-height: 1.6; }

/* ---------- conversion block ---------- */

.after {
  position: relative; z-index: 10;
  background: var(--bg);
}
.after::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../assets/t1-texture.webp');
  background-repeat: repeat;
  background-size: 900px auto;
  opacity: 0.22; pointer-events: none;
}
.after > section { position: relative; padding: 9rem 2.2rem; max-width: 1200px; margin: 0 auto; }
.after .kicker { color: var(--accent); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.9rem; }
.after .kicker .line { width: 42px; height: 1px; background: currentColor; }
.after h3 { font-size: clamp(2rem, 4.6vw, 4.2rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.015em; max-width: 16ch; }
.after .pill .dot { background: var(--accent); }

/* serif reading register for longer prose */
.faq .a, .founder-copy p, .quote p {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink-dim); max-width: 58ch;
}

.proof-note { font-family: var(--serif); font-weight: 500; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-dim); max-width: 58ch; margin-top: 1.4rem; }
.clients { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 3rem; }
.client {
  display: flex; flex-direction: column; gap: 0.9rem;
  border: 1px solid var(--hairline); border-radius: var(--radius); padding: 1.8rem 2rem;
  background: rgba(15, 23, 41, 0.5);
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out);
}
.client:hover { border-color: var(--accent); transform: translateY(-3px); }
.client-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.client h4 { font-size: 1.45rem; font-weight: 600; }
.client .visit { color: var(--ink-soft); letter-spacing: 0.16em; text-transform: uppercase; transition: color 0.3s ease; }
.client:hover .visit { color: var(--accent); }
.client .what { font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--ink-soft); text-transform: none; }
.client .tags { margin-top: 0.2rem; }
.clients .client:nth-child(odd):last-child { grid-column: 1 / -1; }
.more-builds { margin-top: 2.6rem; }
.more-label { color: var(--ink-soft); margin-bottom: 1.2rem; }
.clients-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--hairline); }
.clients-more > * {
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 0.9rem 0.4rem; border-bottom: 1px solid var(--hairline);
}
.clients-more span:first-child { font-family: var(--serif); font-weight: 500; font-size: 0.9875rem; color: var(--ink-dim); transition: color 0.3s ease; }
.clients-more .mono { font-size: 0.5938rem; letter-spacing: 0.12em; color: var(--ink-soft); text-transform: uppercase; }
.clients-more a:hover span:first-child { color: var(--accent); }
@media (max-width: 1023px) { .clients-more { grid-template-columns: 1fr; } }
@media (max-width: 1023px) { .clients { grid-template-columns: 1fr; } .clients .client:nth-child(odd):last-child { grid-column: auto; } }

.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 3.2rem; }
.path {
  border: 1px solid var(--hairline); border-radius: var(--radius); padding: 2.2rem;
  background: rgba(15, 23, 41, 0.5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 1.3rem;
  transition: border-color 0.4s ease, transform 0.4s var(--ease-out);
}
.path:hover { border-color: var(--accent); transform: translateY(-4px); }
.path .path-n { color: var(--accent); }
.path h4 { font-size: 1.7rem; font-weight: 500; }
.path ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.path li { font-family: var(--mono); font-weight: 400; font-size: 0.75rem; line-height: 1.6; color: var(--ink-dim); padding-left: 1.2rem; position: relative; }
.path li::before { content: '+'; position: absolute; left: 0; color: var(--accent); }
.path .pill { align-self: flex-start; margin-top: auto; }

.own-list { margin-top: 3rem; display: flex; flex-direction: column; }
.own-list .row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 2rem;
  padding: 1.6rem 0; border-bottom: 1px solid var(--hairline);
}
.own-list .row:first-child { border-top: 1px solid var(--hairline); }
.own-list .what { font-size: clamp(1.4rem, 3vw, 2.4rem); font-weight: 500; transition: color 0.35s ease; }
.own-list .row:hover .what { color: var(--accent); }
.own-list .who { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }

.founder-grid { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: center; margin-top: 3rem; }
.portrait {
  aspect-ratio: 4 / 5; border: 1px solid var(--hairline); border-radius: var(--radius);
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(160deg, rgba(149, 94, 186, 0.22), rgba(15, 23, 41, 0.75));
  overflow: clip;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.builton { display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; color: var(--ink-soft); }
.chip { display: inline-flex; align-items: center; }
.chip img { height: 38px; width: auto; display: block; }
.chip img[src*="claude"] { height: 36px; border-radius: 8px; }
.stack-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; color: var(--ink-soft); }
.founder-copy p { margin-top: 1.1rem; }
.founder-copy .name { font-size: 2rem; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; max-width: none; }
.founder-copy .pill { margin-top: 1.6rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 3.2rem; }
.step { border-top: 1px solid var(--hairline); padding-top: 1.3rem; transition: border-color 0.4s ease; }
.step:hover { border-color: var(--accent); }
.step-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  margin-bottom: 1.2rem;
  filter: saturate(0.85);
  transition: filter 0.5s ease, transform 0.5s var(--ease-out);
}
.step:hover .step-img { filter: saturate(1.15); transform: translateY(-3px); }
.step .n { font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.2em; color: var(--accent); }
.step h4 { font-size: 1.25rem; font-weight: 500; margin: 0.7rem 0 0.5rem; }
.step p { font-family: var(--mono); font-weight: 400; font-size: 0.6875rem; line-height: 1.7; color: var(--ink-dim); }

.faq { margin-top: 3rem; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 0; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 500;
  transition: color 0.3s ease;
}
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--accent); font-size: 1.2rem; transition: transform 0.3s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding-bottom: 1.6rem; overflow: clip; }

.book-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.book-wrap h3 { max-width: 22ch; }

/* ---------- application gate (one question at a time) ---------- */

.apply {
  width: 100%; max-width: 680px; margin-top: 1.5rem; text-align: left;
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: rgba(15, 23, 41, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 2.4rem 2.6rem 2.2rem;
}
.apply-head { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 2.2rem; }
.apply-head .step-count { color: var(--accent); white-space: nowrap; }
.apply-bar { flex: 1; height: 1px; background: var(--hairline); overflow: hidden; }
.apply-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0.167); transition: transform 0.5s var(--ease-out); }

.apply fieldset { border: none; display: none; }
.apply fieldset.is-active { display: block; animation: stepIn 0.5s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.apply .q {
  display: block; font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.25; margin-bottom: 1.5rem;
}
.apply input {
  width: 100%; background: transparent; border: none; outline: none;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--serif); font-weight: 500; font-size: 1.35rem;
  color: var(--ink); padding: 0.7rem 0 0.8rem;
  transition: border-color 0.35s ease;
  border-radius: 0;
}
.apply input:focus { border-color: var(--accent); }
.apply input::placeholder { color: var(--ink-faint); }
.ferr { display: block; margin-top: 0.8rem; color: #ef8383; }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.choices button {
  text-align: left; font-family: var(--serif); font-weight: 500; font-size: 1.05rem;
  padding: 1.05rem 1.2rem; border: 1px solid var(--hairline); border-radius: var(--radius);
  color: var(--ink-dim); background: rgba(7, 11, 20, 0.35);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.choices button:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-2px); }
.choices button.picked { border-color: var(--accent); color: var(--ink); background: rgba(127, 108, 224, 0.16); }

.apply-nav { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.4rem; }
.apply-nav .ghost { color: var(--ink-soft); letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.3s ease; }
.apply-nav .ghost:hover { color: var(--ink); }
.apply-nav .hint { color: var(--ink-faint); margin-left: auto; }
/* the label sits truly centered: no dot, symmetric padding, fixed min width */
.apply-nav .pill { justify-content: center; min-width: 150px; }
.apply-nav .pill .dot { display: none; }
.apply.is-last .apply-nav .pill, .apply.is-last .apply-nav .hint { visibility: hidden; }

.cal-wrap { width: 100%; max-width: 900px; }
.cal-note { font-family: var(--serif); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--ink-dim); margin-bottom: 2rem; }
#cal-embed { min-height: 700px; border-radius: var(--radius); overflow: clip; background: rgba(15, 23, 41, 0.4); }
#cal-embed iframe { min-height: 700px; }

footer {
  position: relative; z-index: 10; background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 4.5rem 2.2rem 2.4rem;
}
footer .sign {
  font-size: clamp(2rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 2.6rem;
}
footer .entity-line {
  font-family: var(--serif); font-weight: 500; font-size: 0.9375rem; line-height: 1.7;
  color: var(--ink-soft); max-width: 72ch; margin-bottom: 2.6rem;
}
footer .entity-line a { color: var(--ink-dim); text-decoration: underline; text-underline-offset: 3px; }
footer .entity-line a:hover { color: var(--ink); }
footer .foot-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  color: var(--ink-soft);
}
footer a:hover, footer .to-top:hover { color: var(--ink); }
footer .foot-row a, footer .to-top { padding: 0.55rem 0.7rem; margin: -0.55rem -0.7rem; }
footer .to-top { letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.3s ease; }

/* ---------- reveal states (JS adds .is-in) ---------- */

.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.fade-up.is-in { opacity: 1; transform: none; }
.split-parent .line { overflow: clip; }

/* ---------- responsive ---------- */

@media (max-width: 1023px) {
  .rail { display: none; }
  .chapter { height: 120vh; }
  .chapter .hold { padding: 0 1.4rem; padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
  .detail { top: 10vh; right: 1.4rem; width: 150px; }
  .paths-grid, .founder-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .after > section { padding: 5.5rem 1.4rem; }
  .nav { padding: 1.1rem 1.4rem; }
  .scroll-cue { display: none; }
  /* backdrop blur is the most expensive per-frame effect on mobile GPUs — drop it */
  .pill, .tags span, .detail, .harvest .card, .path {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}

@media (max-width: 700px) {
  /* nav must be one clean row on phones: icon + wordmark + pill; text links live in the footer */
  .navlink { display: none; }
  .nav .wordmark { font-size: 0.5938rem; letter-spacing: 0.14em; gap: 0.45rem; }
  .nav-icon { width: 20px; height: 20px; }
  .nav .pill { padding: 0.6rem 1rem; font-size: 0.625rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .scroll-cue .tick::after { animation: none; }
  .grain { animation: none; }
}
