/* =============================================================================
   MODULE 1 — STRUCTURE + DESIGN SYSTEM
   Tailwind (Play CDN) handles utilities; this file owns design tokens,
   section rhythm, and the component classes that Module 2 will animate.
   Do not rename any .class or [data-*] hook without updating Module 2.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   TOKENS
   -------------------------------------------------------------------------- */
:root {
  --ink: #0A1F33;
  --ink-deep: #071726;
  --surface: #0E2A44;
  --surface-2: #14395A;
  --accent: #25D366;
  --accent-soft: rgba(37, 211, 102, 0.12);
  --text: #FFFFFF;
  --muted: #94A3B8;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.28);

  --content-max: 1100px;
  --gutter: 20px;
  --nav-h: 64px;
  --section-gap: 64px;   /* mobile: 64px between sections */
  --radius: 16px;
  --radius-lg: 24px;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --nav-h: 72px;
    --section-gap: 120px; /* desktop: 120px between sections */
  }
}

/* -----------------------------------------------------------------------------
   BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  /* was Tailwind's `antialiased` on <body> before the Play CDN was removed */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* `clip` (not `hidden`) — `hidden` makes body a scrollable container, which
     lets anchor navigation shift the page sideways. */
  overflow-x: clip;
}

body.has-menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

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

/* Slim dark scrollbar with an accent hover, matching the palette. */
html { scrollbar-color: #14395A var(--deep); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb {
  background: #14395A;
  border-radius: 5px;
  border: 2px solid var(--deep);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Visually hidden but announced by screen readers. Used for section headings
   where the copy supplies a label but no visible headline. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 12px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--ink);
  font-weight: 600;
  border-radius: 10px;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}
.skip-link:focus-visible { transform: translateY(0); }

/* -----------------------------------------------------------------------------
   LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 120px desktop / 64px mobile rhythm between adjacent sections */
.section {
  position: relative;
  padding-block: calc(var(--section-gap) / 2);
}

.section--tint {
  background: linear-gradient(180deg, rgba(14, 42, 68, 0) 0%, rgba(14, 42, 68, 0.55) 12%, rgba(14, 42, 68, 0.55) 88%, rgba(14, 42, 68, 0) 100%);
}

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--compact { margin-bottom: 32px; }
.section-head__lead { margin-top: 16px; }
.section-head__body { margin-top: 12px; }

@media (min-width: 768px) {
  .section-head { margin-bottom: 56px; }
  .section-head--compact { margin-bottom: 40px; }
}

/* -----------------------------------------------------------------------------
   TYPOGRAPHY
   -------------------------------------------------------------------------- */
.h1 {
  font-size: clamp(2.125rem, 5.4vw, 3.625rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.h2 {
  font-size: clamp(1.625rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.h3 {
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
  color: var(--muted);
  line-height: 1.65;
}

.body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: eyebrow-pulse 2.4s ease-in-out infinite;
  flex: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pill--muted {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--line-strong);
  color: var(--muted);
}

.tick {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 211, 102, 0.35);
  position: relative;
}
.tick::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg) translate(0.5px, -1px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
}
.link-arrow--sm { min-height: 44px; font-size: 0.875rem; }
.link-arrow__icon { transition: transform 0.2s ease; }
.link-arrow:hover .link-arrow__icon { transform: translateX(4px); }

/* -----------------------------------------------------------------------------
   BUTTONS — all >= 44px tap target
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.875rem; }
.btn--lg { min-height: 54px; padding: 15px 30px; font-size: 1rem; }

.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: #1FBB59; }

.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* -----------------------------------------------------------------------------
   CARD
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: rgba(37, 211, 102, 0.35);
  box-shadow: 0 18px 44px rgba(3, 12, 22, 0.45), 0 0 0 1px rgba(37, 211, 102, 0.06);
}

@media (min-width: 768px) {
  .card { padding: 28px; }
}

/* -----------------------------------------------------------------------------
   00 — PRELOADER (structure only; Module 2 animates then adds .is-done)
   -------------------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--ink-deep);
}
.preloader.is-done { display: none; }

.preloader__inner {
  width: min(320px, calc(100vw - 48px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.preloader__mark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
}

.preloader__mark--photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.55);
  background: var(--accent-soft) url('assets/avatar.webp') center / cover no-repeat;
}

.preloader__bar {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

/* Module 2 animates this from 0% to 100% */
.preloader__bar-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
}

.preloader__meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -----------------------------------------------------------------------------
   STICKY NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 51, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

/* Module 2 target: scroll progress bar */
.site-header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
}

.site-header__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 800;
}

.brand__mark--photo {
  object-fit: cover;
  border-radius: 50%;
  border-color: rgba(37, 211, 102, 0.55);
}

.brand__name { font-size: 0.9375rem; white-space: nowrap; }

.site-nav { display: none; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s ease;
}
.site-nav__link {
  position: relative;
}
.site-nav__link::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav__link:hover { color: var(--text); }
.site-nav__link:hover::after,
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__link.is-active { color: var(--accent); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Header CTA is styled here rather than with Tailwind's `hidden md:inline-flex`
   so it can never flash on mobile while the Play CDN compiles at runtime. */
.site-header__cta { display: none; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
}

.nav-toggle__bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--ink);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  padding-block: 8px 24px;
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.mobile-menu__cta { margin-top: 20px; }

/* 1000px, not 900px: below this the seven nav labels + brand + CTA no longer
   fit on one line. Keep in sync with the resize handler in index.html. */
@media (min-width: 1000px) {
  .site-nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* -----------------------------------------------------------------------------
   01 — HERO
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 48px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.16), transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: 40px;
  align-items: center;
}

.hero__eyebrow { margin-bottom: 20px; }
.hero__headline { max-width: 18ch; }
.hero__sub { margin-top: 20px; max-width: 52ch; }

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__proof {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__proof-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* SPLINE SLOT — desktop only */
.hero__visual { display: none; }

/* Holds the node network drawn by animations.js. Styled as a finished panel
   rather than a dashed placeholder: if the network never builds (JS disabled),
   an empty but intentional-looking panel is the graceful result. */
.spline-slot {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 45%, rgba(37, 211, 102, 0.1), transparent 65%),
    var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero__cue-wrap { margin-top: 48px; }

.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__cue-line {
  width: 40px;
  height: 1px;
  background: var(--line-strong);
}

@media (min-width: 1024px) {
  .hero { padding-top: 72px; }
  .hero__grid {
    grid-template-columns: 60% 40%;
    gap: 32px;
  }
  .hero__visual { display: block; }
}

/* -----------------------------------------------------------------------------
   02 — TRUST STRIP
   -------------------------------------------------------------------------- */
.trust__inner { text-align: center; }

.trust__marquee { overflow: hidden; }

.trust__track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.trust__item { flex: 0 0 auto; }

/* Text credentials rather than client logos */
.trust__text,
.trust__rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(20, 57, 90, 0.35);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.trust__rating {
  color: var(--text);
  border-color: rgba(37, 211, 102, 0.3);
  background: var(--accent-soft);
}

.trust__stars {
  color: var(--accent);
  letter-spacing: 0.06em;
}

@media (min-width: 768px) {
  .trust__track { gap: 12px; }
}

/* -----------------------------------------------------------------------------
   03 — THE PROBLEM
   -------------------------------------------------------------------------- */
.problem__stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-block {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--surface);
}

.problem-block__index {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 4px;
}

.problem-block__body > .h3 { margin-bottom: 10px; }

@media (min-width: 768px) {
  .problem__stack { gap: 24px; }
  .problem-block { padding: 32px 36px; gap: 28px; }
}

/* -----------------------------------------------------------------------------
   04 — WHAT IT'S COSTING YOU
   -------------------------------------------------------------------------- */
.cost__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.stat-card__value {
  font-size: clamp(2.5rem, 6vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.stat-card__prefix,
.stat-card__suffix {
  font-size: 0.45em;
  font-weight: 800;
  letter-spacing: 0;
}

.stat-card__label {
  margin-top: 16px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.stat-card__note {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .cost__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* -----------------------------------------------------------------------------
   05 — WHAT I BUILD
   -------------------------------------------------------------------------- */
.build__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.build-card { display: flex; flex-direction: column; }

.build-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: var(--accent);
  margin-bottom: 20px;
}
.build-card__icon svg { width: 22px; height: 22px; }

.build-card__text { margin-top: 10px; }

.build-card__list {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.build-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .build__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* -----------------------------------------------------------------------------
   06 — CLIENT WORK (full-width case study band)
   -------------------------------------------------------------------------- */
/* Full-bleed band: .case-study is a direct child of .section (already full
   width), so no 100vw/negative-margin hack is needed — and using one would
   create horizontal overflow. */
.case-study {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 40px;
}

.case-study__inner {
  display: grid;
  gap: 32px;
}

.case-study__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink);
}
.case-study__img { width: 100%; }

.case-study__client {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.case-study__headline { max-width: 24ch; }

.case-study__cols {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

.case-study__cols p + p { margin-top: 12px; }

.case-study__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}

.case-study__tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.case-study__metrics {
  margin-top: 32px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.case-metric { display: flex; flex-direction: column; gap: 6px; }

.case-metric__value {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.case-metric__suffix { font-size: 0.5em; }

.case-metric__label {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
}

.case-study__quote {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.case-study__quote p {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  font-weight: 600;
  line-height: 1.55;
}

.case-study__attribution {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.case-study__stars {
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
}

@media (min-width: 900px) {
  .case-study { padding-block: 56px; }
  .case-study__inner { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .case-study__media { position: sticky; top: calc(var(--nav-h) + 24px); }
  .case-study__cols { grid-template-columns: 1fr 1fr; }
}

/* -----------------------------------------------------------------------------
   07 — PRODUCTS
   -------------------------------------------------------------------------- */
.products__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-3px); }

.project-card__media {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  overflow: hidden;
}
.project-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card__img { transform: scale(1.03); }

.project-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.project-card__lead {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.project-card__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 900px) {
  .products__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* -----------------------------------------------------------------------------
   08 — OTHER VENTURES
   -------------------------------------------------------------------------- */
.ventures__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.venture-col {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(20, 57, 90, 0.35);
}

.venture-col__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.venture-col__text { font-size: 0.9375rem; }
.venture-col .link-arrow { margin-top: 4px; }

@media (min-width: 768px) {
  .ventures__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .venture-col { padding: 28px 32px; }
}

/* -----------------------------------------------------------------------------
   09 — HOW I WORK
   -------------------------------------------------------------------------- */
.process__wrap { position: relative; }

.process__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

/* Module 2 target: draw this line as the steps reveal */
.process__line {
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line-strong);
  transform-origin: top center;
}

.process-step { position: relative; padding-left: 48px; }

.process-step__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 800;
}

.process-step__title { padding-top: 4px; }
.process-step__text { margin-top: 8px; }

@media (min-width: 900px) {
  .process__grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .process__line {
    left: 16px;
    right: 16px;
    top: 15px;
    bottom: auto;
    width: auto;
    height: 1px;
    transform-origin: left center;
  }
  .process-step { padding-left: 0; padding-top: 52px; }
  .process-step__title { padding-top: 0; }
}

/* -----------------------------------------------------------------------------
   10 — ABOUT
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.about__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  max-width: 360px;
}
.about__portrait { width: 100%; }

.about__body > .lead { margin-top: 20px; }
.about__body > .about__headline { margin-top: 24px; }
.about__body > .body { margin-top: 16px; }

.about__facts {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.about__fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.about__fact-key { color: var(--muted); }
.about__fact-val { font-weight: 600; text-align: right; }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
  .about__media { max-width: none; }
}

/* -----------------------------------------------------------------------------
   11 — FAQ
   -------------------------------------------------------------------------- */
.faq__grid { display: grid; gap: 32px; }

.faq__head-note { margin-top: 16px; }
.faq__head > .h2 { margin-top: 16px; }

.faq__list { border-top: 1px solid var(--line); }

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

.faq-item__trigger {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  text-align: left;
}

.faq-item__q {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s ease;
}
.faq-item__trigger:hover .faq-item__q { color: var(--accent); }
.faq-item.is-open .faq-item__q { color: var(--accent); }

/* Module 2 target: rotate on .is-open */
.faq-item__icon {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--accent);
  border-radius: 2px;
}
.faq-item__icon::before { width: 10px; height: 1.5px; }
.faq-item__icon::after { width: 1.5px; height: 10px; }
.faq-item.is-open .faq-item__icon::after { opacity: 0; }

/* Module 2 target: animate height instead of the hidden attribute */
.faq-item__panel { padding-bottom: 22px; max-width: 60ch; }
.faq-item__panel[hidden] { display: none; }

@media (min-width: 900px) {
  .faq__grid { grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--nav-h) + 24px); }
}

/* -----------------------------------------------------------------------------
   12a — FINAL CTA
   -------------------------------------------------------------------------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 211, 102, 0.28);
  background: linear-gradient(160deg, var(--surface) 0%, var(--ink) 70%);
  padding: 36px 24px;
  text-align: center;
}

.cta-panel__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(37, 211, 102, 0.18), transparent 65%);
  pointer-events: none;
}

/* :not() keeps the absolutely positioned glow out of the flow */
.cta-panel > *:not(.cta-panel__glow) { position: relative; }
.cta-panel__headline { margin-top: 18px; margin-inline: auto; max-width: 22ch; }
.cta-panel__sub { margin-top: 18px; margin-inline: auto; max-width: 52ch; }

.cta-panel__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.cta-panel__note {
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .cta-panel { padding: 64px 48px; }
}

/* -----------------------------------------------------------------------------
   12b — FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-deep);
  padding-block: 48px 28px;
}

.site-footer__top {
  display: grid;
  gap: 32px;
}

.brand--footer { margin-bottom: 14px; }

.site-footer__blurb {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 34ch;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 20px;
}

.site-footer__col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 12px;
}

.site-footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.site-footer__col a:hover { color: var(--accent); }

.site-footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .site-footer { padding-block: 64px 32px; }
  .site-footer__top { grid-template-columns: 1fr 1.4fr; gap: 48px; }
  .site-footer__nav { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================================
   MODULE 2 — ANIMATION LAYER STYLES
   The boot script in index.html adds `js-anim` to <html> before first paint,
   which hides every reveal target. animations.js then copies that state onto
   the elements as inline styles (via GSAP) and removes `js-anim`, so there is
   no flash either way. If animations.js never runs, a 3s failsafe in the boot
   script removes `js-anim` and the page is simply static.
   `js-anim` is never added when prefers-reduced-motion is set.
   ============================================================================= */
.js-anim [data-animate] { opacity: 0; }
.js-anim [data-animate="fade-up"] { transform: translateY(24px); }
.js-anim [data-animate="scale-in"] { transform: scale(0.97); }

/* --- Lenis (from the library's recommended stylesheet) --------------------- */
html.lenis,
html.lenis body { height: auto; }

.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* --- hero: line-split headline -------------------------------------------- */
.split-line {
  display: block;
  overflow: hidden;
  /* room for descenders so the mask does not clip glyph tails */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.split-line__inner { display: block; will-change: transform; }
.split-word { display: inline-block; }

/* --- hero: system map in the Spline slot ------------------------------------
   A literal diagram of the pitch: manual inputs (dashed, muted) funnel into
   one system (accent hub), which fans out into the outcomes (solid, accent).
   Drawn by renderNodeNetwork() in animations.js in every degradation path. */
.spline-slot.has-network { transform-style: preserve-3d; }

.node-net {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
}

.sysmap__chip rect {
  fill: rgba(10, 31, 51, 0.85);
  stroke-width: 0.4;
}
.sysmap__chip text {
  font-family: inherit;
  font-size: 3.4px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.sysmap__chip--in rect { stroke: rgba(148, 163, 184, 0.5); }
.sysmap__chip--in text { fill: var(--muted); }
.sysmap__chip--out rect {
  stroke: rgba(37, 211, 102, 0.65);
  fill: rgba(37, 211, 102, 0.08);
}
.sysmap__chip--out text { fill: var(--accent); }

.sysmap__hub-ring {
  fill: none;
  stroke: rgba(37, 211, 102, 0.45);
  stroke-width: 0.5;
}
.sysmap__hub-core {
  fill: rgba(37, 211, 102, 0.14);
  stroke: var(--accent);
  stroke-width: 0.6;
}
.sysmap__hub-label {
  font-size: 2.9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  fill: #FFFFFF;
}

.sysmap__flow {
  fill: none;
  stroke-width: 0.45;
}
.sysmap__flow--in {
  stroke: rgba(148, 163, 184, 0.45);
  stroke-dasharray: 1.6 1.4;
}
.sysmap__flow--out { stroke: rgba(37, 211, 102, 0.55); }

.sysmap__pulse { fill: var(--accent); }

/* --- trust strip: mobile marquee ------------------------------------------- */
.trust__track.is-marquee {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  will-change: transform;
}

/* --- what i build: hover lift --------------------------------------------- */
.build-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.build-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 211, 102, 0.32);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.65);
}

/* --- products: pointer tilt ----------------------------------------------- */
.products__grid.has-tilt { perspective: 1000px; }
.products__grid.has-tilt .project-card {
  transform-style: preserve-3d;
  will-change: transform;
}
/* GSAP owns the transform while tilting, so drop the CSS hover lift */
.products__grid.has-tilt .project-card:hover { transform: none; }

/* --- nav: condensed on scroll --------------------------------------------- */
.site-header.is-scrolled {
  background: rgba(10, 31, 51, 0.92);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.9);
}

/* --- counters -------------------------------------------------------------- */
.count-num { font-variant-numeric: tabular-nums; }

/* --- starfield background --------------------------------------------------
   Canvas created at runtime by animations.js. Sits behind everything: body's
   background paints on the root canvas, so a z-index:-1 child still shows. */
.bg-stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* --- section rail: right-edge index (desktop only) ------------------------- */
.section-rail {
  display: none;
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  flex-direction: column;
  gap: 2px;
}
/* 1360px: the shell is 1100px, so the rail's ~120px of labels needs the
   (viewport - 1100) / 2 margin to be at least that wide before it can show
   without sitting on top of content. */
@media (min-width: 1360px) {
  .section-rail { display: flex; }
}
.section-rail__link {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 5px 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s ease;
}
.section-rail__link:hover { color: var(--text); }
.section-rail__line {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--muted);
  opacity: 0.5;
  transition: width 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}
.section-rail__link.is-active { color: var(--text); font-weight: 600; }
.section-rail__link.is-active .section-rail__line {
  width: 40px;
  background: var(--accent);
  opacity: 1;
}

/* --- tape: decorative marquee bands ----------------------------------------
   The track is duplicated once in the markup, so a -50% translate loops
   seamlessly. animations.js drives the loop; without JS it sits still. */
.tape {
  overflow: clip;   /* clip the rotated band's corners, no scrollable overflow */
  padding-block: 22px;
}
.tape__band {
  overflow: hidden;
  padding-block: 18px;
  border-block: 1px solid var(--line);
  background: rgba(7, 23, 38, 0.6);
  transform: rotate(-1.2deg) scale(1.02);
}
.tape--reverse .tape__band { transform: rotate(1.2deg) scale(1.02); }
.tape__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  white-space: nowrap;
  will-change: transform;
}
.tape__item {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.55);
}
.tape__item:nth-child(4n + 1) {
  color: var(--accent);
  -webkit-text-stroke: 0;
}
.tape__sep { color: var(--accent); font-size: 1.2rem; }

/* --- hero: accent words ------------------------------------------------------
   splitLines() tags words listed in [data-accent-words] with this class. */
.split-word--accent {
  background: linear-gradient(120deg, var(--accent) 30%, #8FF0B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- eyebrow: soft accent pulse ---------------------------------------------- */
@keyframes eyebrow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(37, 211, 102, 0); }
}

/* --- hero: breathing glow ---------------------------------------------------- */
@keyframes hero-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  50% { transform: translate(-40px, 30px) scale(1.15); opacity: 1; }
}
.hero__glow { animation: hero-glow-drift 9s ease-in-out infinite; }

/* GSAP owns the transform while a button is magnetic */
.btn.is-magnetic {
  transition-property: background-color, border-color, color;
}
.btn.is-magnetic:hover { transform: none; }

/* --- custom cursor -----------------------------------------------------------
   Created at runtime by animations.js on fine-pointer devices only. The
   native cursor stays: the dot and ring are an accent layered on top. */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  border-radius: 50%;
  pointer-events: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--accent);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1.5px solid rgba(37, 211, 102, 0.55);
  transition: width 0.25s ease, height 0.25s ease, margin 0.25s ease,
    border-color 0.25s ease, background-color 0.25s ease;
}
.cursor-ring.is-hover {
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-color: rgba(37, 211, 102, 0.9);
  background: rgba(37, 211, 102, 0.08);
}

.cursor-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-ring.is-view {
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-color: var(--accent);
  background: rgba(37, 211, 102, 0.92);
}
.cursor-ring.is-view .cursor-ring__label { opacity: 1; }

/* --- back to top ------------------------------------------------------------ */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(14, 42, 68, 0.85);
  color: var(--text);
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
}
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

/* =============================================================================
   REDUCED MOTION — animations.js takes the static path (no Lenis, no reveals,
   counters written at their final values). These rules cover the CSS side.
   ============================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* never leave a reveal target hidden */
  [data-animate] { opacity: 1 !important; transform: none !important; }
  .build-card:hover { transform: none; }
}

/* DEV HELPER — add class="show-copy-slots" to <body> to outline every copy
   placeholder while filling in real content. */
.show-copy-slots [data-copy] {
  outline: 1px dashed rgba(37, 211, 102, 0.5);
  outline-offset: 3px;
}
