/* ==========================================================================
   R&T BrightLight Technologies — site.css
   Single stylesheet. No frameworks, no build step, no external requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — deep ink, so the "bright light" accents actually read as light */
  --ink:            #06080f;
  --ink-2:          #090d18;
  --surface:        #0e1422;
  --surface-2:      #121a2b;
  --line:           rgba(255, 255, 255, 0.09);
  --line-strong:    rgba(255, 255, 255, 0.16);
  --field-line:     #66707f;  /* form-control borders — needs 3:1, decorative lines do not */

  /* Type */
  --text:           #e9edf6;
  --text-dim:       #b6c0d4;
  --muted:          #93a0b8;

  /* The beam — prism spectrum, cool to warm */
  --beam-1:         #35e0d0;
  --beam-2:         #4c8dff;
  --beam-3:         #a46bff;
  --gold:           #ffc46b;

  --beam:           linear-gradient(100deg, var(--beam-1), var(--beam-2) 55%, var(--beam-3));
  --beam-soft:      linear-gradient(100deg, rgba(53, 224, 208, 0.16), rgba(76, 141, 255, 0.16));

  /* Fonts — system stacks only. Zero network cost, and Segoe UI Variable /
     SF Pro are genuinely elegant when the type scale does the work. */
  --font-sans: "Segoe UI Variable Display", "Segoe UI", -apple-system,
               BlinkMacSystemFont, "SF Pro Display", system-ui, Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", ui-monospace, SFMono-Regular, "SF Mono",
               Consolas, "Liberation Mono", monospace;

  /* Type scale */
  --fs-display: clamp(2.55rem, 5.6vw, 4.35rem);
  --fs-h1:      clamp(2.15rem, 4.4vw, 3.25rem);
  --fs-h2:      clamp(1.7rem, 3vw, 2.4rem);
  --fs-h3:      clamp(1.2rem, 1.7vw, 1.4rem);
  --fs-lede:    clamp(1.05rem, 1.5vw, 1.24rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9375rem;
  --fs-xs:      0.8125rem;

  /* Space */
  --gap:        1.5rem;
  --pad-section: clamp(4.5rem, 9vw, 8rem);
  --container:  1180px;

  /* Shape */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  22px;
  --r-pill: 999px;

  --shadow-md: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 1);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 650;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.02em; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--beam-1); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--text); }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 3rem 0;
}

strong { font-weight: 640; color: #fff; }

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

::selection { background: rgba(76, 141, 255, 0.35); color: #fff; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--beam-1);
  color: #04121b;
  padding: 0.7rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; color: #04121b; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, 820px); }

.section { padding-block: var(--pad-section); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: linear-gradient(180deg, transparent, var(--ink-2) 22%, var(--ink-2) 78%, transparent); }
.section--line { border-top: 1px solid var(--line); }

.stack > * + * { margin-top: 1.15em; }

/* The min(100%, …) wrapper matters: a bare minmax floor cannot shrink below its
   base size, so at a 320px viewport (280px container) the track would stay wider
   than its container and bleed past the right gutter. */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 228px), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split--flip > :first-child { order: 2; }
}

.center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; }

/* --------------------------------------------------------------------------
   4. Text utilities
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beam-1);
  margin-bottom: 1rem;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--beam);
}
.eyebrow--plain::before { display: none; }

.lede {
  font-size: var(--fs-lede);
  color: var(--text-dim);
  line-height: 1.62;
  text-wrap: pretty;
}

.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }

.grad {
  background: var(--beam);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose h2 { margin-top: 2.5em; }
.prose h3 { margin-top: 2em; }
.prose > :first-child { margin-top: 0; }
.prose li { color: var(--text-dim); }

/* --------------------------------------------------------------------------
   5. Buttons & pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease),
              background 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--beam);
  color: #041018;
  box-shadow: 0 12px 30px -14px rgba(76, 141, 255, 0.85);
}
.btn--primary:hover {
  color: #041018;
  box-shadow: 0 18px 40px -14px rgba(76, 141, 255, 0.95);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(53, 224, 208, 0.5);
  color: #fff;
}

.btn--sm { padding: 0.62rem 1.15rem; font-size: 0.875rem; }
.btn--lg { padding: 1rem 1.85rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}
.btn-row--center { justify-content: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  font-weight: 500;
}
.pill--accent {
  border-color: rgba(53, 224, 208, 0.35);
  background: rgba(53, 224, 208, 0.08);
  color: var(--beam-1);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--beam-1);
}
.arrow-link svg { transition: transform 0.2s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
/* The blur lives on a pseudo-element, not on .site-header itself. An element with
   backdrop-filter becomes the containing block for its position:fixed descendants,
   which would trap the mobile drawer inside the header's 74px box. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 8, 15, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  transition: background 0.25s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header.is-stuck::before { background: rgba(6, 8, 15, 0.92); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: #fff;
}
.brand__text span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__list li { margin: 0; }

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 520;
  color: var(--text-dim);
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--beam);
}
.nav__chev { transition: transform 0.2s var(--ease); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }

.nav__item--menu { position: relative; }

.nav__menu {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: 300px;
  padding: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav__item--menu.is-open .nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav__menu a {
  display: block;
  padding: 0.62rem 0.75rem;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 560;
  line-height: 1.3;
}
.nav__menu a:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.nav__menu a span {
  display: block;
  font-size: 0.775rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.12rem;
}

.nav__cta { margin-left: 0.6rem; }

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 26px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-burger { display: block; }

  .nav {
    position: fixed;
    inset: 74px 0 0;
    background: var(--ink);
    padding: 1.5rem 0 3rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
  }
  .nav__link {
    width: 100%;
    justify-content: space-between;
    padding: 0.9rem 0.9rem;
    font-size: 1.05rem;
    border-radius: var(--r-md);
  }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.05);
    color: var(--beam-1);
  }

  .nav__menu {
    position: static;
    transform: none;
    width: 100%;
    opacity: 1;
    visibility: visible;
    display: none;
    background: rgba(255, 255, 255, 0.025);
    box-shadow: none;
    margin: 0.3rem 0 0.5rem;
  }
  .nav__item--menu.is-open .nav__menu { display: block; transform: none; }

  .nav__cta { margin: 1.25rem 0 0; }
  .nav__cta .btn { width: 100%; padding-block: 0.9rem; }
}

/* --------------------------------------------------------------------------
   7. Beams & textures (the "bright light" motif)
   -------------------------------------------------------------------------- */
.beams {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.beams::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--line) 1px, transparent 1px) 0 0 / 88px 88px,
    linear-gradient(to bottom, var(--line) 1px, transparent 1px) 0 0 / 88px 88px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
}
.beam {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.beam--1 {
  width: 620px; height: 320px;
  top: -180px; left: 8%;
  background: radial-gradient(circle, rgba(53, 224, 208, 0.5), transparent 70%);
}
.beam--2 {
  width: 700px; height: 360px;
  top: -230px; right: 4%;
  background: radial-gradient(circle, rgba(76, 141, 255, 0.55), transparent 70%);
}
.beam--3 {
  width: 480px; height: 300px;
  top: 40%; left: 45%;
  background: radial-gradient(circle, rgba(164, 107, 255, 0.28), transparent 70%);
}

.beam-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--beam-2), transparent);
  opacity: 0.5;
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(4rem, 9vw, 7.5rem) clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }

.hero__inner { max-width: 860px; }
.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -0.038em;
  font-weight: 680;
  margin-bottom: 0.55em;
}
.hero .lede { max-width: 640px; }

.hero--page { padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.hero--page h1 { font-size: var(--fs-h1); }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
              box-shadow 0.28s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--beam);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
a.card { color: inherit; }
a.card:hover, .card--hover:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
a.card:hover::before, .card--hover:hover::before { opacity: 1; }

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--beam-soft);
  border: 1px solid rgba(76, 141, 255, 0.25);
  color: var(--beam-1);
  margin-bottom: 1.15rem;
  flex-shrink: 0;
}
.card__icon svg { width: 21px; height: 21px; }

.card h3 { margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: var(--fs-sm); }
.card .arrow-link { margin-top: auto; padding-top: 1.15rem; }

.card--feature { padding: clamp(1.85rem, 3vw, 2.6rem); }
.card--flat { background: rgba(255, 255, 255, 0.025); }

.panel {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), rgba(14, 20, 34, 0.4));
}
.panel--glow {
  background:
    radial-gradient(ellipse 90% 140% at 0% 0%, rgba(76, 141, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface), rgba(14, 20, 34, 0.4));
}

/* --------------------------------------------------------------------------
   10. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: var(--ink);
  padding: 1.75rem 1.5rem;
}
.stat__num {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 660;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--beam);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}
.stat__label {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.45;
}

/* Trust strip */
.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding-top: 2.5rem;
  margin-top: 2.75rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust span { display: inline-flex; align-items: center; gap: 0.6rem; }
.trust span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--beam-1);
  box-shadow: 0 0 10px var(--beam-1);
}

/* --------------------------------------------------------------------------
   11. Lists
   -------------------------------------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.9rem;
  color: var(--text-dim);
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.34em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--beam-soft);
  border: 1px solid rgba(53, 224, 208, 0.4);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.34em + 5px);
  width: 5px;
  height: 8px;
  border: solid var(--beam-1);
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(42deg);
}
.checklist strong { display: block; color: #fff; font-weight: 600; margin-bottom: 0.1rem; }

.numbered { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.numbered > li {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2rem;
  counter-increment: step;
  margin: 0;
}
.numbered > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--beam-1);
}
.numbered > li::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 2.55rem;
  bottom: 0.4rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
}
.numbered > li:last-child { padding-bottom: 0; }
.numbered > li:last-child::after { display: none; }
.numbered h3 { margin-bottom: 0.3rem; }
.numbered p { color: var(--muted); font-size: var(--fs-sm); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2.5rem;
  margin: 0;
}
.timeline > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--beam-2);
  box-shadow: 0 0 0 4px rgba(76, 141, 255, 0.12);
  z-index: 1;
}
.timeline > li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 1.5rem;
  bottom: -0.35rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--line-strong), var(--line));
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li:last-child::after { display: none; }
.timeline__year {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  color: var(--beam-1);
  display: block;
  margin-bottom: 0.35rem;
}
.timeline h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.timeline p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* Definition rows */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  gap: 0.5rem 2.5rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 780px) {
  .row { grid-template-columns: 260px minmax(0, 1fr); }
  /* Narrower label column. A modifier, not an inline style — an inline
     grid-template-columns would beat this media query at every width and force
     two columns onto a 320px screen. */
  .row--tight { grid-template-columns: 150px minmax(0, 1fr); }
}
.row h3 { margin: 0; font-size: 1.08rem; }
.row p { margin: 0; color: var(--muted); font-size: var(--fs-sm); overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 65% 130% at 50% 100%, rgba(76, 141, 255, 0.16), transparent 65%),
    var(--ink-2);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { max-width: 640px; margin-inline: auto; }
.cta-band .lede { max-width: 560px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}
.field .req { color: var(--beam-1); }

.input, .textarea, .select {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  /* Solid, not rgba(255,255,255,.16): the translucent border measured 1.5:1
     against the field interior, well under the 3:1 WCAG needs for the boundary
     of a form control. This lands at 3.4:1. */
  border: 1px solid var(--field-line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
/* Placeholders carry real information here, so they need the full 4.5:1.
   The previous #6c7a94 measured 3.3:1. */
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 1; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--beam-1);
  background: rgba(255, 255, 255, 0.06);
}
.textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2393a0b8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.select option { background: var(--surface); color: var(--text); }

.field-row { display: grid; gap: 0 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }

.form-note {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: 1rem;
  line-height: 1.55;
}
/* The submit confirmation is a live region. It must be in the accessibility tree
   from page load to be announced, so it stays in the DOM empty rather than being
   toggled with [hidden] — this just stops the empty element adding a gap. */
.form-note:empty { margin-top: 0; }

/* Honeypot wrapper. Deliberately NOT display:none or visibility:hidden — a bot
   that checks computed style would skip the field and the trap would never fire.
   This is the standard visually-hidden pattern: present and fillable in the DOM,
   occupying no space and impossible to see. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Contact cards */
.contact-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact-card:hover {
  border-color: rgba(53, 224, 208, 0.4);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-3px);
}
.contact-card h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.contact-card p { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 1rem; }
.contact-card a {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  word-break: break-all;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   14. Product / book showcase
   -------------------------------------------------------------------------- */
.showcase {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 80% 100% at 80% 0%, rgba(164, 107, 255, 0.14), transparent 60%),
    linear-gradient(180deg, var(--surface), var(--ink-2));
  padding: clamp(1.75rem, 4vw, 3rem);
  overflow: hidden;
}

.device {
  position: relative;
  width: min(100%, 268px);
  aspect-ratio: 9 / 18.5;
  margin-inline: auto;
  border-radius: 30px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, #131b2c, #080c15);
  padding: 12px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.device__screen {
  height: 100%;
  border-radius: 20px;
  background:
    radial-gradient(ellipse 120% 60% at 50% 0%, rgba(53, 224, 208, 0.2), transparent 60%),
    linear-gradient(180deg, #0b1220, #060a12);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}
.device__notch {
  width: 58px; height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0 auto 0.5rem;
}
.device__line {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.09);
}
.device__line--accent { background: var(--beam-soft); border: 1px solid rgba(53, 224, 208, 0.25); }
.device__line--short { width: 55%; }
.device__line--mid { width: 78%; }
.device__block {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Text inside the device mock */
.device__label {
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--beam-1);
  margin: 0;
}
.device__q { font-size: 0.7rem; color: #fff; font-weight: 620; line-height: 1.35; margin: 0; }
.device__p { font-size: 0.62rem; color: var(--muted); line-height: 1.5; margin: 0; }
.device__step {
  display: flex;
  gap: 0.45rem;
  font-size: 0.62rem;
  color: var(--text-dim);
  line-height: 1.45;
}
.device__step b {
  font-family: var(--font-mono);
  color: var(--beam-1);
  font-weight: 500;
  flex-shrink: 0;
}
.device__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  align-self: flex-start;
  font-size: 0.52rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 196, 107, 0.4);
  background: rgba(255, 196, 107, 0.1);
  color: var(--gold);
  font-family: var(--font-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Current page marker inside a dropdown */
.nav__menu a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.055);
  color: var(--beam-1);
}

.book-cover {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1 / 1.5;
  margin-inline: auto;
  border-radius: 4px 12px 12px 4px;
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(76, 141, 255, 0.3), transparent 60%),
    linear-gradient(160deg, #101a2e, #05080f);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.book-cover::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
}
.book-cover::after {
  content: "";
  position: absolute;
  left: 1.6rem; right: 1.6rem;
  top: 46%;
  height: 1px;
  background: var(--beam);
  box-shadow: 0 0 24px 2px rgba(76, 141, 255, 0.7);
}
.book-cover__kicker {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--beam-1);
}
.book-cover__title {
  font-size: clamp(1.6rem, 4.5vw, 2rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.05;
  /* Explicit on all four sides: the base h1-h4 rule adds 0.5em bottom margin, which
     made the cover sit 16px differently depending on whether it was marked up as an
     h2 (book.html) or an h3 (index.html). */
  margin: auto 0 0;
  color: #fff;
}
.book-cover__sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: var(--fs-sm);
}
.footer__top {
  display: grid;
  gap: 2.75rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.75rem;
}
@media (min-width: 860px) {
  .footer__top { grid-template-columns: 1.2fr 2fr; gap: 4rem; }
}
.footer__about { max-width: 340px; }
.footer__about p { color: var(--muted); font-size: var(--fs-xs); margin-top: 1rem; line-height: 1.6; }

.footer__cols {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.footer__cols h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer__cols ul { list-style: none; padding: 0; margin: 0; }
.footer__cols li { margin-bottom: 0.6rem; }
.footer__cols a { color: var(--text-dim); font-size: 0.885rem; }
.footer__cols a:hover { color: var(--beam-1); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-xs);
}
.footer__bottom p { margin: 0; }

/* --------------------------------------------------------------------------
   16. Utilities
   These exist so that no element anywhere needs a style attribute, which is what
   lets the Content-Security-Policy forbid style-src 'unsafe-inline' outright.
   Deliberately small and pinned to the spacing scale — this is not a framework,
   and it should not grow into one. Prefer a real component class when a pattern
   repeats more than a couple of times.
   -------------------------------------------------------------------------- */
.u-mt-1 { margin-top: 0.7rem; }
.u-mt-2 { margin-top: 1rem; }
.u-mt-3 { margin-top: 1.15rem; }
.u-mt-4 { margin-top: 1.25rem; }
.u-mt-5 { margin-top: 1.5rem; }
.u-mt-6 { margin-top: 1.75rem; }
.u-mt-7 { margin-top: 2rem; }
.u-mt-8 { margin-top: 2.5rem; }
.u-mb-4 { margin-bottom: 1.25rem; }
.u-m-0  { margin: 0; }
.u-mono { font-family: var(--font-mono); }

/* Emphasised lede variants (the book page's subtitle and premise) */
.lede--xl { font-size: 1.3rem; color: var(--text); }
.lede--lg { font-size: 1.22rem; color: var(--text); }

/* A heading that leads a panel rather than a card */
.h3--lead { font-size: 1.3rem; }

/* 404 hero — the copy is centred and measure-limited rather than full width */
.hero--error h1 { max-width: 16ch; margin-inline: auto; }
.hero--error .lede { max-width: 520px; margin-inline: auto; }

/* --------------------------------------------------------------------------
   17. Motion
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@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;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
