/* ============================================================
   THE VOID — "First Light"
   The scroll is the journey out of the void: warm near-black
   at the hero, warm off-white at the contact section.
   All colors oklch; never pure #000/#fff.
   ============================================================ */

/* ---------- self-hosted fonts (latin subset, woff2 only) ---------- */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 500; /* variable font — one file covers 300/400/500 */
  font-display: swap;
  src: url("/fonts/outfit-latin-300-500.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: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-400.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: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-latin-500.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;
}

/* ---------- tokens ---------- */
:root {
  /* palette — the dark-to-light arc, warm throughout (hue ~76–92, toward candlelight) */
  --void-0: oklch(16% 0.008 80);   /* hero — darkest        (~#0e0d0b) */
  --void-1: oklch(20% 0.011 78);   /* the problem                       */
  --void-2: oklch(25% 0.013 76);   /* what we do                        */
  --void-3: oklch(31% 0.015 74);   /* how it works — last dark step     */
  --dawn:   oklch(88% 0.013 85);   /* the work — first light            */
  --light:  oklch(95.5% 0.011 92); /* start — brightest     (~#f4f1ea)  */
  --light-2:oklch(93% 0.012 90);   /* footer                            */

  --ink:      oklch(21% 0.009 80); /* text on light         (~#171512)  */
  --paper:    oklch(94.5% 0.012 92);/* text on dark                      */
  --dim-dark: oklch(76% 0.012 85); /* secondary text on dark — ≥4.5:1 vs --void-3 */
  --dim-light:oklch(44% 0.014 80); /* secondary text on light — ≥4.5:1 vs --light  */

  /* the accent is light itself */
  --glow:      oklch(97% 0.02 90 / 0.35);
  --glow-soft: oklch(96% 0.03 88 / 0.12);
  --corona:    oklch(96% 0.04 85);

  /* type — Outfit stands in for PP Neue Montreal / Switzer (see index.html note) */
  --font-sans: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "Cascadia Mono", monospace;

  /* fluid type scale, ratio ~1.33 between levels */
  --fs-hero: clamp(2.75rem, 7.5vw + 1rem, 6.75rem);
  --fs-h2:   clamp(1.9rem, 3.2vw + 0.9rem, 3.4rem);
  --fs-h3:   clamp(1.35rem, 1.4vw + 1rem, 1.9rem);
  --fs-lede: clamp(1.1rem, 0.9vw + 0.9rem, 1.35rem);
  --fs-body: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  --fs-mono: 0.8125rem;

  /* spacing */
  --space-section: clamp(6.5rem, 20vh, 12rem);
  --wrap-max: 72rem;
  --wrap-pad: clamp(1.25rem, 5vw, 4rem);

  /* motion tokens — 3 durations, 2 easings, used everywhere */
  --t-fast: 180ms;                              /* micro-interactions   */
  --t-med:  450ms;                              /* small transitions    */
  --t-slow: 900ms;                              /* reveals, emergence   */
  --ease-emerge: cubic-bezier(0.16, 1, 0.3, 1); /* things surfacing     */
  --ease-drift:  cubic-bezier(0.65, 0, 0.35, 1);/* symmetric movement   */
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.6;
  background: var(--void-0);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* grain — texture beats flatness; the dark reads warm, not dead */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, canvas { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--wrap-pad);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

/* text color scoping per half of the journey */
.on-dark  { color: var(--paper); }
.on-light { color: var(--ink); }
.on-dark  .label, .on-dark  .kicker { color: var(--dim-dark); }
.on-light .label { color: var(--dim-light); }

/* ---------- focus: the glow IS the focus style ---------- */
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 2px;
  box-shadow: 0 0 0 8px var(--glow-soft), 0 0 24px 4px var(--glow);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--wrap-pad);
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus-visible { top: 1rem; }

::selection { background: oklch(90% 0.05 85); color: oklch(18% 0.01 80); }

/* ---------- typography ---------- */
h1, h2, h3 { font-weight: 300; text-wrap: balance; }

h1 {
  font-size: var(--fs-hero);
  line-height: 1.02;
  letter-spacing: -0.025em; /* display sizes designed, not scaled */
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 18ch;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 400;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  max-width: 46ch;
}

.label {
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

/* ---------- links & buttons ---------- */
a { color: currentColor; }

.quiet-link {
  text-decoration-line: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in oklab, currentColor 40%, transparent);
  transition: text-decoration-color var(--t-fast) var(--ease-drift),
              text-shadow var(--t-fast) var(--ease-drift);
  /* ≥44px touch target via padding-block on an inline-block box */
  display: inline-block;
  padding-block: 0.6rem;
}
.quiet-link:hover {
  text-decoration-color: currentColor;
  text-shadow: 0 0 18px var(--glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-height: 3rem;               /* 48px target */
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: box-shadow var(--t-fast) var(--ease-drift),
              background-color var(--t-fast) var(--ease-drift),
              transform var(--t-fast) var(--ease-drift);
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.99); }

/* on dark: a thin rim of light */
.btn-ghost {
  border: 1px solid color-mix(in oklab, var(--paper) 45%, transparent);
  color: var(--paper);
}
.btn-ghost:hover {
  border-color: var(--paper);
  box-shadow: 0 0 28px 2px var(--glow), inset 0 0 14px var(--glow-soft);
}

/* on light: the eclipse as a button — dark disc, corona on hover */
.btn-solid {
  background: var(--ink);
  color: var(--light);
  border: 1px solid var(--ink);
  font-size: var(--fs-lede);
  padding: 1rem 2.1rem;
}
.btn-solid:hover,
.btn-solid:focus-visible {
  box-shadow: 0 0 0 6px oklch(88% 0.04 85 / 0.5), 0 0 44px 6px oklch(85% 0.06 85 / 0.55);
}

/* ---------- header ---------- */
.site-head {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(1.1rem, 3vw, 2rem) var(--wrap-pad);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding-block: 0.6rem; /* target */
}

/* the eclipse "o" — the logo, alive at every size */
.wordmark .o {
  width: 0.58em;
  height: 0.58em;
  border-radius: 50%;
  background: oklch(12% 0.006 80);
  box-shadow: 0 0 5px 1px oklch(97% 0.03 88 / 0.8),
              0 0 14px 3px oklch(95% 0.05 85 / 0.3);
  margin-inline: 0.06em;
  transform: translateY(0.02em);
}


.head-link {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--dim-dark);
  padding: 0.85rem 0.25rem; /* target */
  transition: color var(--t-fast) var(--ease-drift), text-shadow var(--t-fast) var(--ease-drift);
}
.head-link:hover { color: var(--paper); text-shadow: 0 0 16px var(--glow); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--void-0);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: 7rem 6rem;
}

.hero .kicker { margin-bottom: 1.5rem; }

.hero h1 { max-width: 12ch; }

.hero .lede {
  margin-top: 2rem;
  color: var(--dim-dark);
  max-width: 38ch;
}

.hero-ctas {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

/* the living eclipse — bleeds off-canvas right */
.eclipse {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -8vw;
  transform: translateY(-50%);
  width: clamp(340px, 46vw, 660px);
  aspect-ratio: 1;
}

/* static designed state: works with JS off and with reduced motion */
.eclipse::before {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, oklch(15% 0.008 80), oklch(9% 0.005 80) 72%);
  box-shadow:
    0 0 22px 2px  oklch(97% 0.03 88 / 0.28),
    0 0 70px 12px oklch(95% 0.04 86 / 0.14),
    0 0 180px 50px oklch(93% 0.05 84 / 0.07),
    inset -12px -16px 48px oklch(6% 0.004 80 / 0.85);
}
/* rim light — first light breaking the edge, upper left */
.eclipse::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  box-shadow: -4px -6px 18px -6px oklch(97% 0.04 88 / 0.55);
}

.eclipse canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* torch layer — follows the cursor (JS sets --mx/--my); static soft pool otherwise */
.hero-light {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 72%) var(--my, 42%),
              oklch(96% 0.03 88 / 0.07), transparent 62%);
  mix-blend-mode: screen;
}

.scroll-hint {
  position: absolute;
  z-index: 3;
  bottom: 1.75rem;
  left: var(--wrap-pad);
  color: var(--dim-dark);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hint-line {
  display: inline-block;
  width: 1px;
  height: 2.6rem;
  background: linear-gradient(to bottom, transparent, var(--dim-dark));
  animation: hint-pulse 2.8s var(--ease-drift) infinite;
  transform-origin: top;
}
@keyframes hint-pulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.5; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* ---------- sections: the arc, stepped and blended in pure CSS ---------- */
section { padding-block: var(--space-section); }

.s-problem { background: linear-gradient(to bottom, var(--void-0), var(--void-1) 32%); }
.s-offers  { background: linear-gradient(to bottom, var(--void-1), var(--void-2) 32%); }
.s-process { background: linear-gradient(to bottom, var(--void-2), var(--void-3) 32%); }

/* first light: the big blend lives in empty space at the top of Work */
.s-work {
  background: linear-gradient(to bottom, var(--void-3), var(--dawn) 46%);
  padding-top: clamp(14rem, 42vh, 24rem);
}
.s-start  { background: linear-gradient(to bottom, var(--dawn), var(--light) 40%); }

/* ---------- the problem — pushed right, narrow measure ---------- */
.problem-body {
  margin-left: auto;
  max-width: 44rem;
}
.problem-lines {
  margin-top: 3rem;
  max-width: 34rem;
  margin-left: clamp(0rem, 8vw, 7rem); /* second indent — the grid breaks again */
  display: grid;
  gap: 1.1rem;
  color: var(--dim-dark);
}
.problem-close {
  margin-top: 1.5rem;
  color: var(--paper);
  font-size: var(--fs-lede);
}

/* ---------- offers — editorial list, thin rules, no cards ---------- */
.s-offers h2 { margin-bottom: clamp(3rem, 8vh, 5rem); }

.offers {
  list-style: none;
  padding: 0;
}
.offer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 4rem;
  padding-block: clamp(2rem, 5vh, 3.25rem);
  border-top: 1px solid color-mix(in oklab, var(--paper) 16%, transparent);
  transition: border-color var(--t-med) var(--ease-drift);
}
.offer:last-child { border-bottom: 1px solid color-mix(in oklab, var(--paper) 16%, transparent); }
.offer:hover { border-top-color: color-mix(in oklab, var(--paper) 55%, transparent); }
.offer p { color: var(--dim-dark); max-width: 44ch; }

@media (min-width: 768px) {
  .offer { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
  .offer p { justify-self: end; }
}

/* ---------- process — staggered steps, oversized mono numerals ---------- */
.s-process h2 { margin-bottom: clamp(3.5rem, 9vh, 6rem); }

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: clamp(3.5rem, 9vh, 6rem);
}
.step {
  position: relative;
  max-width: 26rem;
  padding-left: 4.5rem;
}
.step-num {
  position: absolute;
  left: 0;
  top: -0.4rem;
  font-size: 2rem;
  color: var(--dim-dark);
  opacity: 0.55;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--dim-dark); }

@media (min-width: 768px) {
  .step-alt { margin-left: clamp(6rem, 28vw, 22rem); } /* the stagger */
}

/* ---------- work — dawn ---------- */
.s-work .label { color: var(--dim-light); }
.work-body {
  margin-top: 2.5rem;
  max-width: 42rem;
  display: grid;
  gap: 1.25rem;
}
.work-body p { color: var(--dim-light); }
.work-body .quiet-link { color: var(--ink); }

/* ---------- start — the single centered moment: the page converges ---------- */
.s-start { padding-bottom: clamp(7rem, 22vh, 13rem); }
.start-inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.75rem;
}
.start-inner h2 { max-width: 16ch; }
.start-inner .lede { color: var(--dim-light); max-width: 44ch; }
.start-promise { color: var(--dim-light); }

/* ---------- footer ---------- */
.site-foot {
  background: var(--light-2);
  padding-block: clamp(3rem, 8vh, 5rem);
}
.foot-inner {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
}
.wordmark-foot { font-size: 1.05rem; }
.wordmark-foot .o {
  background: oklch(14% 0.007 80);
  box-shadow: 0 0 5px 1px oklch(99% 0.02 90 / 0.9),
              0 0 12px 3px oklch(85% 0.06 85 / 0.5);
}
.foot-line { color: var(--dim-light); }
.foot-legal { color: var(--dim-light); margin-top: 1.25rem; }

/* ---------- 404 ---------- */
.void-404 {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: var(--wrap-pad);
  background: var(--void-0);
}
.void-404 .eclipse-sm {
  width: clamp(120px, 22vw, 180px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, oklch(15% 0.008 80), oklch(9% 0.005 80) 72%);
  box-shadow:
    0 0 18px 2px oklch(97% 0.03 88 / 0.3),
    0 0 60px 12px oklch(95% 0.04 86 / 0.12);
  margin-bottom: 1.5rem;
  animation: void-breathe 5s var(--ease-drift) infinite;
}
@keyframes void-breathe {
  0%, 100% { box-shadow: 0 0 18px 2px oklch(97% 0.03 88 / 0.3), 0 0 60px 12px oklch(95% 0.04 86 / 0.12); }
  50%      { box-shadow: 0 0 26px 3px oklch(97% 0.03 88 / 0.45), 0 0 90px 20px oklch(95% 0.04 86 / 0.18); }
}
.void-404 h1 { font-size: var(--fs-h2); }
.void-404 .sub { color: var(--dim-dark); max-width: 34ch; }
.void-404 .mono-tag { color: var(--dim-dark); opacity: 0.7; }

/* ---------- reveals — emergence: things surface as your eyes adjust ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  filter: blur(6px);
  transition:
    opacity   var(--t-slow) var(--ease-emerge) var(--d, 0s),
    transform var(--t-slow) var(--ease-emerge) var(--d, 0s),
    filter    var(--t-slow) var(--ease-emerge) var(--d, 0s);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- reduced motion: still designed, just still ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .hint-line, .void-404 .eclipse-sm { animation: none; }
  .btn:hover, .btn:active { transform: none; }
  .eclipse canvas, .hero-light { display: none; }
  *, *::before, *::after { transition-duration: 1ms !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  .eclipse {
    top: 4rem;
    right: -30vw;
    transform: none;
    width: 78vw;
    opacity: 0.9;
  }
  .hero-inner { padding-top: 11rem; }
  .head-link { display: none; } /* hero CTA is two lines away; header stays quiet */
  .scroll-hint { bottom: 1.1rem; }
}
