/* ============================================================
   THE LEVELLER — styles.css
   Ink & lime & paper. Futurist shell, human heart.
   ============================================================ */

/* ---------- Fonts: self-hosted, so the footer's promise is true ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/SpaceGrotesk-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/SpaceGrotesk-normal-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/SpaceGrotesk-normal-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/Inter-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Inter-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Inter-normal-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url(/fonts/Fraunces-italic-400_500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/IBMPlexMono-normal-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/IBMPlexMono-normal-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/Caveat-normal-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --ink:        #0C100D;   /* near-black, faint green cast */
  --ink-2:      #080B09;   /* deeper black for bands */
  --ink-soft:   #131814;   /* raised surfaces on dark */
  --paper:      #F4F1E8;   /* warm cream */
  --paper-2:    #FDFBF6;   /* receipt / letter white */
  --lime:       #C6F24E;   /* spirit-level bubble */
  --lime-soft:  rgba(198, 242, 78, 0.14);
  --mint:       #7BE0AD;
  --green-deep: #176042;   /* lime's serious cousin, for paper */
  --text:       #EDEFE9;
  --muted:      #A3AEA5;
  --muted-2:    #7C877E;
  --ink-muted:  #4A514B;
  --line:       rgba(255, 255, 255, 0.08);
  --line-paper: rgba(12, 16, 13, 0.12);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, sans-serif;
  --font-serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono:    "IBM Plex Mono", "Consolas", "Courier New", monospace;
  --font-hand:    "Caveat", "Segoe Script", cursive;

  --wrap: 1180px;
  --pad-section: clamp(5rem, 11vw, 8.5rem);
  --radius: 16px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

[id] { scroll-margin-top: 5.5rem; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-family: var(--font-serif); font-style: italic; }
strong { font-weight: 600; color: var(--text); }

::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 200;
  padding: 0.6em 1.2em;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border-radius: 999px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

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

.wrap {
  width: min(var(--wrap), 100% - clamp(2.5rem, 8vw, 6rem));
  margin-inline: auto;
}
.wrap--narrow { max-width: 780px; }

/* ---------- Scroll progress: a level line ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  background: var(--lime);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
  z-index: 120;
  pointer-events: none;
}

/* ---------- Cursor glow (desktop, dark sections) ---------- */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 620px; height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 242, 78, 0.055), transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 90;
  opacity: 0;
  transition: opacity 0.5s;
}
.cursor-glow.is-on { opacity: 1; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(12, 16, 13, 0.6);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out);
}
.nav--hidden { transform: translateY(-101%); }
/* keyboard focus brings the nav back — no invisible tab stops */
.nav:focus-within { transform: none; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.85rem;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav__glyph { width: 26px; height: 26px; flex: none; }
.nav__glyph rect { fill: var(--text); }
.nav__glyph line { stroke: var(--lime); stroke-width: 2.4; stroke-linecap: round; }
.nav__glyph .nav__bubble { fill: var(--lime); }

.nav__links {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.nav__links a {
  color: var(--muted);
  transition: color 0.25s;
  padding-block: 0.4rem;
}
.nav__links a:hover { color: var(--lime); }

@media (max-width: 760px) {
  .nav__links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
  will-change: transform;
}
.btn--lime {
  background: var(--lime);
  color: var(--ink);
}
.btn--lime:hover {
  box-shadow: 0 0 0 1px var(--lime), 0 8px 40px rgba(198, 242, 78, 0.35);
}
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}
.btn--ink {
  background: var(--ink);
  color: var(--lime);
}
.btn--ink:hover { box-shadow: 0 6px 24px rgba(12, 16, 13, 0.45); }
.btn--small { font-size: 0.88rem; padding: 0.65em 1.4em; }
.btn--big {
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  padding: 1em 1.9em;
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.4rem;
}
.eyebrow--paper { color: var(--green-deep); }

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.prose {
  color: var(--muted);
  max-width: 62ch;
}
.prose--wide { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 68ch; }
.section--paper .prose { color: var(--ink-muted); }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--pad-section); }

.section--dark { background: var(--ink); }

.section--paper {
  background: var(--paper);
  color: var(--ink);
}
.section--paper::before {
  /* paper grain */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
.section--paper > .wrap { position: relative; z-index: 1; }
.section--paper .h2 { color: var(--ink); }
.section--paper strong { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(7rem, 16vh, 10rem);
  padding-bottom: clamp(15rem, 34vh, 22rem);
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; pointer-events: none; }

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
}
.hero__glow--a {
  width: 55vw; height: 55vw;
  max-width: 720px; max-height: 720px;
  top: -18%; right: -12%;
  background: rgba(198, 242, 78, 0.13);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.hero__glow--b {
  width: 45vw; height: 45vw;
  max-width: 560px; max-height: 560px;
  bottom: 4%; left: -14%;
  background: rgba(123, 224, 173, 0.09);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-8vw, 10vh) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(9vw, -8vh) scale(0.95); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, black 30%, transparent 75%);
}

.hero__inner { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.2vw, 5.9rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
  max-width: 18ch;
}
.hero__line { display: block; }

/* The slot: rotating struck-through price formats */
.hero__slot { position: relative; }
.slot__phrase {
  display: block;
  position: relative;
  width: fit-content;
  max-width: 100%;
}
.slot__phrase[data-final] {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--lime);
}
/* opacity, not visibility: the honest phrase stays in the accessible heading */
html.js .slot__phrase[data-final]:not(.slot--landed) { opacity: 0; }
.slot__phrase[data-final].slot--landed {
  visibility: visible;
  animation: slot-land 0.7s var(--ease-out) both;
}
@keyframes slot-land {
  from { opacity: 0; transform: translateY(0.35em); filter: blur(6px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.slot__cycle {
  position: absolute;
  inset: 0 auto auto 0;
  width: max-content;
  max-width: 100%;
  color: var(--text);
  white-space: nowrap;
  animation: slot-in 0.45s var(--ease-out) backwards;
}
@keyframes slot-in {
  from { opacity: 0; transform: translateY(0.35em); }
  to   { opacity: 1; transform: translateY(0); }
}
.slot__cycle::after {
  content: "";
  position: absolute;
  left: -1.5%;
  top: 53%;
  width: 103%;
  height: 0.075em;
  border-radius: 999px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left center;
}
.slot__cycle.is-struck { color: var(--muted-2); transition: color 0.3s; }
.slot__cycle.is-struck::after {
  transform: scaleX(1);
  transition: transform 0.32s cubic-bezier(0.7, 0, 0.3, 1);
}
.slot__cycle.is-out {
  opacity: 0;
  transform: translateY(-0.3em);
  transition: opacity 0.3s, transform 0.3s;
}

@media (max-width: 620px) {
  .hero__slot { font-size: 0.78em; line-height: 1.25; }
}
@media (max-width: 400px) {
  .hero__slot { font-size: min(0.68em, 7.4vw); }
}

.hero__sub {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.9vw, 1.22rem);
  max-width: 56ch;
  margin-bottom: 2.4rem;
}
.hero__sub em { color: var(--text); }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* The levelling bars */
.levelfield {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: min(30vh, 290px);
  z-index: 1;
}
.levelfield canvas {
  width: 100%;
  height: 100%;
  touch-action: pan-y pinch-zoom;
}
.levelfield__hint {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  white-space: nowrap;
  pointer-events: none;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: 0.9rem;
}
.marquee__track {
  display: flex;
  width: max-content;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  animation: marquee 30s linear infinite;
}
.marquee__track span { white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   THE IDEA — stats + pricing parody
   ============================================================ */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2rem, 6vw, 5rem);
  margin-block: 3.2rem 4.2rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--lime);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 1020px) { .pricing { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .pricing { grid-template-columns: 1fr; } }

.price-card {
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.price-card__tier {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.price-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.price-card__price span {
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0;
}
.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
  margin-top: auto;
}

.price-card--them {
  position: relative;
  background: var(--ink-soft);
  border: 1px solid var(--line);
  color: var(--muted);
}
/* the crossout: we don't sell any of this */
.price-card--them::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 1.5px),
    rgba(198, 242, 78, 0.7) calc(50% - 1.5px) calc(50% + 1.5px),
    transparent calc(50% + 1.5px)
  );
}
.price-card--them > * { opacity: 0.82; }
.price-card--them .price-card__tier { color: var(--muted-2); }
.price-card--them .price-card__price { color: var(--text); }
.price-card--them li::before { content: "— " / ""; color: var(--muted-2); }

.price-card--us {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 12px 60px rgba(198, 242, 78, 0.22);
  rotate: 0.6deg;
}
.price-card--us .price-card__tier { color: rgba(12, 16, 13, 0.65); }
.price-card--us li { font-weight: 500; }
.price-card--us li::before { content: "✓ " / ""; }
.price-card--us .btn { margin-top: 1rem; align-self: flex-start; }
.price-card--us .btn:focus-visible { outline-color: var(--ink); }

.pricing__note {
  margin-top: 1.6rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted-2);
  font-size: 1rem;
}

/* ============================================================
   HOW IT WORKS + RECEIPT
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-block: 3rem 0;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  border-top: 2px solid var(--ink);
  padding-top: 1.2rem;
}
.step__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  display: block;
  margin-bottom: 0.7rem;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.step p { color: var(--ink-muted); font-size: 0.97rem; }

/* ============================================================
   WHAT I BUILD
   ============================================================ */
.buildgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
  margin-top: 3rem;
}
.buildcard {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s;
}
.buildcard:hover {
  border-color: rgba(198, 242, 78, 0.45);
  background: rgba(198, 242, 78, 0.04);
  transform: translateY(-3px);
}
.buildcard svg {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s;
}
.buildcard:hover svg { stroke: var(--lime); }
.buildcard--wink { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* fine grain over the big radial glow — kills gradient banding */
.section--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   FOUNDER LETTER
   ============================================================ */
.letter {
  max-width: 660px;
  margin-inline: auto;
  background: var(--paper-2);
  padding: clamp(2.2rem, 5.5vw, 3.6rem);
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(12, 16, 13, 0.07),
    0 16px 60px rgba(12, 16, 13, 0.16);
  rotate: 0.35deg;
}
.letter .eyebrow { margin-bottom: 2rem; }
.letter__body p {
  color: #2E342F;
  line-height: 1.75;
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
}
.letter__body p:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
}
.letter__sig {
  font-family: var(--font-hand);
  font-size: 3rem;
  line-height: 1;
  color: var(--ink);
  margin-top: 2rem;
  transform: rotate(-3deg);
  width: fit-content;
}
.letter__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.5rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  transition: color 0.25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--lime); }
.faq__item summary::after {
  content: "+" / "";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--lime);
  flex: none;
  transition: transform 0.3s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__body { padding-bottom: 1.5rem; max-width: 60ch; }
.faq__body p { color: var(--muted); }
.faq__item[open] .faq__body { animation: faq-open 0.45s var(--ease-out); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.section--contact {
  background:
    radial-gradient(ellipse 75% 70% at 50% 115%, rgba(198, 242, 78, 0.13), transparent 62%),
    var(--ink);
  text-align: center;
  padding-block: clamp(6rem, 14vw, 11rem);
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}
.contact__title em {
  font-weight: 500;
  color: var(--lime);
}
.contact__sub {
  color: var(--muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2.6rem;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.contact-form {
  max-width: 640px;
  margin-inline: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 560px) { .contact-form__row { grid-template-columns: 1fr; } }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.contact-form label span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.8em 1em;
  transition: border-color 0.25s, background 0.25s;
}
.contact-form input:hover,
.contact-form textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--lime);
  background: rgba(198, 242, 78, 0.05);
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form ::placeholder { color: var(--muted-2); opacity: 1; }

/* honeypot — humans never see it */
.contact-form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form__actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.contact-form__alt {
  font-size: 0.9rem;
  color: var(--muted-2);
}
.contact-form__alt a {
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.25s, border-color 0.25s;
}
.contact-form__alt a:hover { color: var(--lime); border-color: var(--lime); }

.contact-form__status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #FFB4A2;
  min-height: 1.3em;
  margin-top: -0.3rem;
}
.contact-form__done {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--lime);
  text-align: center;
  padding: 2.5rem 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  padding-block: 3.5rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.footer__line {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.footer__nav a { color: var(--muted); padding-block: 0.3rem; transition: color 0.25s; }
.footer__nav a:hover { color: var(--lime); }

.footer__small {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.8;
  color: var(--muted-2);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
html.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; transform: none; }
  .hero__glow--a, .hero__glow--b { animation: none; }
  .levelfield__hint { display: none; }
}
