/* ==================================================================
   Noordster — LIGHT variant (self-contained)
   ------------------------------------------------------------------
   Minimalist black & white. White page, faint grey ascii field,
   black text, black hairline borders on cards, black/white buttons.
   Headers in Cooper BT (serif), body in Inter. Same layout/positions
   as the dark index.html — only the skin differs.
   ================================================================== */

/* -- Tokens -------------------------------------------------------- */
:root {
  --bg:    #ffffff;
  --ink:   #0a0a0a;   /* primary text — black */
  --mute:  #565656;   /* secondary text — dark grey */
  --line:  #000000;   /* hairline borders */

  --logo-h: clamp(50px, 5vw, 68px);          /* logo scales with viewport */
  --nav-pad-y: 20px;                          /* constant breathing room above/below the logo */
  --nav-h: calc(var(--logo-h) + var(--nav-pad-y) * 2);  /* bar height follows the logo */
  --pad:   clamp(20px, 3vw, 40px);
  --maxw:  1160px;

  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* -- Base ---------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a:focus-visible, button:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* -- Background field + scroll veil -------------------------------- */
#field { position: fixed; inset: 0; display: block; z-index: 0; }
#veil {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: var(--bg); opacity: 0; will-change: opacity;
}
.page { position: relative; z-index: 2; }

/* -- Nav ----------------------------------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom-color: rgba(0, 0, 0, 0.14);
}
.brand { display: flex; align-items: center; text-decoration: none; }
/* 2x larger. The ascii field flows around this element (see field.js `avoid`),
   so no halo is needed to keep the background off the logo. */
.brand-logo {
  display: block; height: var(--logo-h); width: auto;
  background: #fff;
}

.nav-actions { display: flex; align-items: center; gap: 26px; }
nav.links { display: flex; align-items: center; gap: 26px; }
nav.links a {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--mute); text-decoration: none;
  transition: color .2s ease;
}
nav.links a:hover, nav.links a:focus-visible { color: #000; }

/* primary nav button — solid black */
.btn-top {
  font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; background: #000;
  border: 1px solid #000; padding: 10px 16px; border-radius: 2px;
  cursor: pointer; transition: background .2s ease; text-decoration: none;
}
.btn-top:hover, .btn-top:focus-visible { background: #222; }

/* -- Layout primitives --------------------------------------------- */
.section { position: relative; padding: clamp(72px, 12vh, 140px) var(--pad); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; }

/* Section headings sit on a soft white "cloud" plate: a rounded white core
   behind the text that fades outward through layered white shadows (gradient
   opacity) so it blends into the field. inline-block so it hugs the text.
   Cheap — a few shadows on one element, not a per-glyph text-shadow. */
.section-head {
  display: inline-block; position: relative; isolation: isolate;
  max-width: 640px; margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head::before {
  content: ""; position: absolute; z-index: -1;
  inset: -3px -10px;                    /* near-opaque core hugs the text closely */
  background: rgba(255, 255, 255, 0.7); border-radius: 22px;
  box-shadow:                           /* airier: gentle, many-step fade reaching farther out */
    0 0 18px 4px rgba(255, 255, 255, 0.75),
    0 0 44px 16px rgba(255, 255, 255, 0.5),
    0 0 84px 34px rgba(255, 255, 255, 0.34),
    0 0 140px 58px rgba(255, 255, 255, 0.2),
    0 0 220px 96px rgba(255, 255, 255, 0.1);
}
.section-head h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08;
  letter-spacing: -0.01em; text-wrap: balance;
}
.section-head p { font-size: 16px; line-height: 1.6; color: var(--mute); max-width: 56ch; margin-top: 16px; }
.section-head p b { color: var(--ink); font-weight: 600; }

/* -- Shared bits --------------------------------------------------- */
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--mute);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: #000; opacity: 0.7; }

/* -- Hero panel (white card, black border, no shadow) -------------- */
.panel {
  width: clamp(460px, 48vw, 620px);
  background: #fff; color: var(--ink);
  border: 1px solid #000; border-radius: 2px;
  padding: 40px 40px 34px;
  display: grid; gap: 22px;
}
.panel h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 3.6vw, 46px); line-height: 1.05;
  letter-spacing: -0.01em; text-wrap: balance; color: var(--ink);
}
.panel .sub { font-size: 16px; line-height: 1.5; color: var(--mute); max-width: 40ch; margin-top: -4px; }
.panel .sub b { color: var(--ink); font-weight: 600; }

/* -- Buttons ------------------------------------------------------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta {
  font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
  text-decoration: none; padding: 13px 22px; border-radius: 2px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.cta.primary { background: #000; color: #fff; border: 1px solid #000; }
.cta.primary:hover, .cta.primary:focus-visible { transform: translateY(-2px); background: #222; }
.cta.ghost, .cta.ghost-dark { background: #fff; color: #000; border: 1px solid #000; }
.cta.ghost:hover, .cta.ghost:focus-visible,
.cta.ghost-dark:hover, .cta.ghost-dark:focus-visible { background: #000; color: #fff; }
.cta .arrow { transition: transform .2s ease; }
.cta:hover .arrow { transform: translateX(4px); }

/* "Read more" shows as a ghost button on desktop; the scroll-cue variant is
   mobile-only (see the 640px query). */
.read-more .rm-scroll { display: none; }

/* -- Trusted-by ---------------------------------------------------- */
.trust { display: grid; gap: 10px; padding-top: 22px; border-top: 1px solid #000; }
.trust .cap { font-family: var(--mono); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: #666; }
.trust .tags { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.trust .tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #333; border: 1px solid #000; border-radius: 2px; padding: 5px 10px;
}

/* -- Feature cards (white, black border) --------------------------- */
/* Each card spans 2 shared rows (heading, body) via subgrid, so headings line
   up and bodies start on the same line across all cards — regardless of how
   many lines each heading takes. row-gap = heading→body spacing. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-auto-rows: auto;
  column-gap: clamp(16px, 2vw, 24px);
  row-gap: 16px;
}
.feature-card {
  background: #fff; color: var(--ink);
  border: 1px solid #000; border-radius: 2px;
  padding: clamp(26px, 2.4vw, 34px);
  display: grid; grid-template-rows: subgrid; grid-row: span 2;
  transition: transform .2s ease;
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 2.1vw, 28px); line-height: 1.12;
  letter-spacing: -0.01em; text-wrap: balance;
}
.feature-card p { font-size: 15px; line-height: 1.5; color: var(--mute); }
.feature-card p b { color: var(--ink); font-weight: 600; }
.feature-card .fc-link {
  margin-top: auto; padding-top: 4px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  color: #000; text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
}
.feature-card .fc-link:hover { color: #555; }
.feature-card .fc-link .arrow { transition: transform .2s ease; }
.feature-card .fc-link:hover .arrow { transform: translateX(4px); }

/* -- Process steps (bordered white list card) ---------------------- */
.steps {
  display: grid; background: #fff;
  border: 1px solid #000; border-radius: 3px;
  padding: 0 clamp(22px, 2.6vw, 34px);
  max-width: 760px;   /* box hugs the ~62ch text measure — no dead space on the right */
}
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: clamp(16px, 3vw, 40px);
  padding: clamp(22px, 3vw, 32px) 0; border-top: 1px solid #000; align-items: baseline;
}
.step:first-child { border-top: none; }   /* dividers only between steps */
.step .n { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; color: #000; }
.step-body h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 2vw, 25px); line-height: 1.15; margin-bottom: 8px; }
.step-body p { font-size: 15px; line-height: 1.55; color: var(--mute); max-width: 62ch; }

/* -- Stat row (bordered white card) -------------------------------- */
.stat-row {
  display: grid; gap: clamp(20px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: #fff; border: 1px solid #000; border-radius: 3px;
  padding: clamp(26px, 3vw, 38px) clamp(22px, 2.6vw, 34px);
}
.stat .num { font-family: var(--serif); font-weight: 400; line-height: 1; font-size: clamp(38px, 4.6vw, 58px); letter-spacing: -0.01em; }
.stat .label { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--mute); }

/* -- About (founder intro) ----------------------------------------- */
.about {
  display: flex; flex-direction: row-reverse; align-items: center;
  justify-content: flex-end; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap;
}
.about-photo {
  flex: none; width: clamp(150px, 18vw, 210px); aspect-ratio: 1;
  border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  position: relative; z-index: 1;   /* sit above the text's soft glow, not under it */
}
/* Text sits on the same soft white "cloud" plate as the section headings,
   so it stays readable over the ascii field. */
.about-body {
  flex: 0 1 auto; position: relative; isolation: isolate; max-width: 560px;
}
.about-body::before {
  content: ""; position: absolute; z-index: -1; inset: -8px -14px;
  background: rgba(255, 255, 255, 0.75); border-radius: 22px;
  box-shadow:
    0 0 18px 4px rgba(255, 255, 255, 0.75),
    0 0 44px 16px rgba(255, 255, 255, 0.5),
    0 0 84px 34px rgba(255, 255, 255, 0.34),
    0 0 140px 58px rgba(255, 255, 255, 0.2),
    0 0 220px 96px rgba(255, 255, 255, 0.1);
}
.about-body h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08;
  letter-spacing: -0.01em; margin-bottom: 16px;
}
.about-body p { font-size: 16px; line-height: 1.6; color: var(--mute); max-width: 52ch; }

/* -- Closing CTA band ---------------------------------------------- */
.cta-band {
  border: 1px solid #000; background: #fff;
  padding: clamp(36px, 6vw, 64px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-band h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.08;
  letter-spacing: -0.01em; max-width: 18ch; text-wrap: balance;
}

/* -- Hero ---------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: calc(var(--nav-h) + 24px) var(--pad) var(--pad);
  pointer-events: none;
}
.hero a, .hero button { pointer-events: auto; }
.hero-row { align-self: end; display: flex; width: 100%; max-width: var(--maxw); margin-inline: auto; }

.statusbar { align-self: end; display: flex; justify-content: flex-end; width: 100%; max-width: var(--maxw); margin-inline: auto; }
.status { font-family: var(--mono); font-size: 11px; line-height: 1.7; letter-spacing: 0.06em; color: var(--mute); text-align: right; white-space: nowrap; }
.status .k { color: #000; }
.status .v { color: var(--ink); }

.hint {
  position: fixed; z-index: 2; top: 46%; right: 8vw;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute); padding: 10px 16px; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  pointer-events: none; transition: opacity .6s ease;
}
.hint.gone { opacity: 0; }

/* -- Footer -------------------------------------------------------- */
.foot {
  position: relative; z-index: 2;
  padding: 32px var(--pad); border-top: 1px solid rgba(0, 0, 0, 0.14);
  font-family: var(--sans); font-size: 14px; letter-spacing: 0; color: var(--mute);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.foot a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(0, 0, 0, 0.2); }
.foot a:hover { color: #000; border-bottom-color: #000; }

/* -- Responsive ---------------------------------------------------- */
@media (max-width: 860px) {
  nav.links { display: none; }
  .hint { display: none; }
  .statusbar { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: calc(var(--nav-h) + 16px) 16px 16px; }
  .hero-row { align-self: stretch; align-items: flex-end; }
  .panel { width: 100%; padding: 28px 24px 26px; gap: 18px; }
  .panel h1 { font-size: clamp(28px, 8vw, 36px); }
  .panel .sub { font-size: 15px; }
  .cta-row .cta { flex: 1 1 auto; justify-content: center; }
  .cta-band { flex-direction: column; align-items: flex-start; }

  /* Read more becomes a plain scroll cue: no border/fill, text with a down
     arrow beneath it. */
  .read-more.cta.ghost {
    border: none; background: none; padding: 10px 0 0;
    color: var(--mute); font-weight: 500;
  }
  .read-more.cta.ghost:hover, .read-more.cta.ghost:focus-visible {
    background: none; color: #000;
  }
  .read-more .rm-full { display: none; }
  .read-more .rm-scroll {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    font-size: 14px; letter-spacing: 0.02em;
  }
  .read-more .rm-arrow { font-size: 18px; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hint { display: none; }
  .cta.primary:hover { transform: none; }
  .feature-card:hover { transform: none; }
}
