/* ==========================================================================
   Lanrigson I-Tech Limited — design system
   One stylesheet, no build step, no framework.

   Dark-first. The ground is space black — a cold blue-black with a faint
   starfield and one azure horizon glow — and the single accent is azure, the
   colour of a screen actually emitting light. A diagnostic bench at night:
   instruments glow, paper does not.

   Register: mission-control readout. Grotesque display type, engineered body
   and mono, square geometry throughout, and a title-block rule that runs
   beside a label rather than a decorative dash beneath a heading.
   ========================================================================== */

:root {
  /* --- ground: cold blue-black, never neutral grey --- */
  --void:      #05070f;   /* page ground */
  --void-2:    #02030a;   /* the deepest band */
  --panel:     #0a0e1a;   /* a lifted band */
  --surface:   #111726;   /* cards, panels, docket */

  /* --- rules: light on dark, never a dark line --- */
  --line:      rgba(255, 255, 255, .09);
  --line-2:    rgba(255, 255, 255, .16);
  --line-3:    rgba(255, 255, 255, .28);

  /* --- text --- */
  --text:      #e7edf8;
  --text-2:    #abb7cd;
  /* --muted carries small mono labels; held light enough to clear WCAG AA
     (4.5:1) against the lightest surface it lands on, --surface. */
  --muted:     #7d8ba6;

  /* --- accent: azure. The only chromatic colour on the site. --- */
  --azure:     #4aa8ff;
  --azure-2:   #7cc6ff;
  --azure-3:   #bee2ff;
  --azure-dim: #1c6fc4;
  --glow:      rgba(74, 168, 255, .22);

  /* --- type --- */
  --display: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  /* --- metrics: square. Nothing here is a pill. --- */
  --container: 1200px;
  --nav-h:     72px;
  --r-sm:      3px;
  --r:         5px;
  --r-lg:      7px;

  --shadow:    0 18px 44px rgba(0, 0, 0, .55);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255,255,255,.05);
}

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

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

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--text-2);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--text);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.55rem, 5.5vw, 4.15rem); letter-spacing: -.042em; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.7rem);  letter-spacing: -.035em; }
h3 { font-size: 1.2rem;  letter-spacing: -.018em; }
h4 { font-size: 1.02rem; letter-spacing: -.012em; }

/* Emphasis is a weight drop into azure — not an italic.
   A grotesque says "considered" by getting lighter, not by leaning. */
h1 em, h2 em, h3 em {
  font-style: normal;
  font-weight: 400;
  color: var(--azure-2);
}

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

a { color: var(--azure-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--azure-3); }

strong, b { color: var(--text); font-weight: 600; }

::selection { background: var(--azure); color: #04060d; }

/* --------------------------------------------------------------- helpers */

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 48px, 840px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--azure); color: #04060d;
  padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
  font: 500 .85rem/1 var(--body);
}
.skip-link:focus { left: 0; }

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

/* The title block: a mono label with a hairline running off to the container
   edge, the way a field is labelled on an instrument panel. */
.eyebrow {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--azure-2);
  margin: 0 0 26px;
  font-weight: 500;
}
.eyebrow::after {
  content: ""; flex: 1 1 auto; height: 1px; min-width: 24px;
  background: linear-gradient(90deg, var(--line-2), var(--line) 40%, transparent);
}
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { display: none; }

/* the old decorative rule is retired — the title block carries the accent now */
.rule { display: none; }

.lede {
  font-size: 1.075rem;
  color: var(--text-2);
  max-width: 64ch;
}

.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ------------------------------------------------------------------ bands */

/* Everything is dark; the rhythm comes from three depths of black rather than
   from alternating light and dark. */
.band { position: relative; padding: 104px 0; }
.band--paper { background: var(--void); }
.band--mist  { background: var(--panel); }
.band--ink   { background: var(--void-2); }
.band--tight { padding: 76px 0; }

/* the deepest band carries the survey grid, so it reads as open space */
.band--ink::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 100%);
  pointer-events: none;
}
.band--ink > * { position: relative; z-index: 1; }

/* band opener: an azure tick at the container gutter, then a hairline */
.band__hair {
  position: absolute; inset: 0 0 auto 0; height: 1px; z-index: 2;
  background: var(--line);
}
.band__hair::before {
  content: ""; position: absolute; top: 0; width: 76px; height: 2px;
  left: max(0px, calc((100% - min(100% - 48px, var(--container))) / 2));
  background: var(--azure);
  box-shadow: 0 0 14px var(--glow);
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-sm);
  font: 500 .92rem/1 var(--body);
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn--sm { padding: 10px 17px; font-size: .845rem; }

/* the instrument button: it emits light */
.btn--primary, .btn--brass {
  background: var(--azure); color: #04060d;
  box-shadow: 0 0 0 1px rgba(74,168,255,.5), 0 8px 26px var(--glow);
}
.btn--primary:hover, .btn--brass:hover {
  background: var(--azure-2); color: #04060d;
  box-shadow: 0 0 0 1px rgba(124,198,255,.6), 0 10px 32px rgba(74,168,255,.34);
}

.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--azure); background: rgba(74,168,255,.09); color: var(--text); }

.btn__arrow { transition: transform .16s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* -------------------------------------------------------------------- nav */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(3, 5, 12, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(3, 5, 12, .94); }

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

.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand__mark { width: 38px; height: 38px; border-radius: var(--r); flex: none; }
.brand__name {
  font-family: var(--display);
  font-size: 1.1rem; font-weight: 600; color: var(--text);
  line-height: 1.05; letter-spacing: -.032em;
  display: flex; flex-direction: column; gap: 4px;
}
.brand__name em { font-style: normal; font-weight: 400; color: var(--azure-2); }
.brand__sub {
  font-family: var(--mono);
  font-size: .595rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); font-weight: 400;
}

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a {
  font-size: .9rem; color: var(--text-2); text-decoration: none; font-weight: 400;
  transition: color .16s ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-current { color: var(--text); box-shadow: inset 0 -2px 0 var(--azure); }
.nav__cta { color: #04060d !important; box-shadow: 0 0 0 1px rgba(74,168,255,.5), 0 8px 26px var(--glow) !important; }

.nav__burger {
  display: none;
  width: 42px; height: 42px;
  background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  cursor: pointer; position: relative;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; position: absolute; left: 11px; width: 20px; height: 1.6px;
  background: var(--text); transition: transform .2s ease, opacity .2s ease;
}
.nav__burger span { top: 20px; }
.nav__burger span::before { left: 0; top: -6px; }
.nav__burger span::after  { left: 0; top: 6px; }
.nav__burger[aria-expanded="true"] span { background: transparent; }
.nav__burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------------------------- hero */

/* Deep space: a starfield, a survey grid, and one azure horizon glow. */
.hero {
  position: relative;
  background: var(--void-2);
  color: var(--text-2);
  padding: 96px 0 104px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* layer 1 — stars, four tile sizes so the field never reads as a pattern */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 34px 46px,   rgba(255,255,255,.55), transparent 100%),
    radial-gradient(1px 1px     at 168px 122px, rgba(255,255,255,.34), transparent 100%),
    radial-gradient(1.6px 1.6px at 96px 208px,  rgba(190,226,255,.42), transparent 100%),
    radial-gradient(1px 1px     at 250px 60px,  rgba(255,255,255,.26), transparent 100%);
  background-size: 230px 190px, 310px 250px, 270px 300px, 390px 340px;
  mask-image: radial-gradient(85% 75% at 55% 35%, #000 10%, transparent 100%);
  -webkit-mask-image: radial-gradient(85% 75% at 55% 35%, #000 10%, transparent 100%);
  pointer-events: none;
}
/* layer 2 — survey grid + horizon glow */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    radial-gradient(1000px 520px at 76% -12%, rgba(74,168,255,.20), transparent 62%),
    radial-gradient(760px 360px at 12% 118%, rgba(74,168,255,.10), transparent 66%);
  background-size: 68px 68px, 68px 68px, 100% 100%, 100% 100%;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 60px; align-items: center;
}
.hero h1 { color: var(--text); margin-bottom: 22px; }
.hero__lede { font-size: 1.1rem; color: var(--text-2); max-width: 54ch; }

.hero__stamp {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .685rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-2);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-left: 2px solid var(--azure);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 9px 16px; margin-bottom: 30px;
}
.hero__stamp b { color: var(--azure-2); font-weight: 500; }

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

.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero__fact {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .875rem; color: var(--text-2);
}
.hero__fact svg { width: 15px; height: 15px; flex: none; color: var(--azure); }

/* --------------------------------------------- hero panel: workshop docket */

.ticket {
  position: relative;
  background: linear-gradient(180deg, var(--surface), #0d1320);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--text-2);
}
/* the readout's live edge */
.ticket::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--azure), transparent);
  opacity: .8;
}
.ticket__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.ticket__title {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .19em;
  text-transform: uppercase; color: var(--text);
}
.ticket__tag {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--azure-2); border: 1px solid rgba(74,168,255,.34);
  background: rgba(74,168,255,.07);
  border-radius: var(--r-sm); padding: 4px 10px;
}
.ticket__body { padding: 8px 24px 6px; }

.ticket__row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ticket__row:last-child { border-bottom: 0; }
.ticket__row-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.ticket__step {
  font-family: var(--mono); font-size: .67rem; letter-spacing: .1em;
  color: var(--azure); flex: none;
}
.ticket__label { color: var(--text); font-weight: 600; font-size: .96rem; letter-spacing: -.01em; }
.ticket__value {
  font-family: var(--mono); font-size: .7rem; color: var(--muted);
  letter-spacing: .03em; white-space: nowrap;
}
.ticket__note { font-size: .855rem; color: var(--text-2); margin: 6px 0 10px; }
.ticket strong, .ticket b { color: var(--azure-2); }

.meter { height: 2px; background: rgba(255,255,255,.09); overflow: hidden; }
.meter__fill {
  display: block; height: 100%; width: 0;
  background: var(--azure);
  box-shadow: 0 0 10px var(--glow);
  transition: width 1s cubic-bezier(.2,.7,.25,1);
}

.ticket__foot {
  display: flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  font-size: .81rem; color: var(--text-2);
}
.ticket__foot svg { width: 16px; height: 16px; flex: none; color: var(--azure); }

/* ------------------------------------------------------------------ grids */

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

/* ------------------------------------------------------------------ cards */

/* Square, hairlined, with an azure edge that extends and lights on hover. */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 30px 28px 28px;
  transition: border-color .18s ease, background .18s ease;
}
.card::before {
  content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 2px;
  background: var(--azure);
  box-shadow: 0 0 12px var(--glow);
  transform: scaleY(0); transform-origin: top;
  transition: transform .22s cubic-bezier(.2,.7,.25,1);
}
.card:hover { border-color: var(--line-2); background: #141b2c; }
.card:hover::before { transform: scaleY(1); }

.card .card__idx, .mailcard .card__idx {
  font-family: var(--mono); font-size: .69rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--azure); margin: 0 0 10px;
}
.card__icon {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  background: rgba(74,168,255,.09);
  border: 1px solid rgba(74,168,255,.2);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 21px; height: 21px; color: var(--azure-2); }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .935rem; color: var(--text-2); }

.card__list { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.card__list li {
  position: relative; padding-left: 18px; margin-bottom: 7px;
  font-size: .865rem; color: var(--muted);
}
.card__list li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 7px; height: 1.5px; background: var(--azure);
}
.card__list li:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- the stage rail */

/* Square nodes on a baseline — a process strip off an instrument panel. */
.rail { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 8px; }
.rail--4 { grid-template-columns: repeat(4, 1fr); }
.rail--3 { grid-template-columns: repeat(3, 1fr); }

.rail__item { position: relative; padding: 42px 26px 0 0; }
.rail__item::before {
  content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 1px;
  background: var(--line);
}
.rail__item::after {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px; background: var(--azure);
  box-shadow: 0 0 12px var(--glow);
}
.rail__item:last-child { padding-right: 0; }

.rail__item .rail__step {
  font-family: var(--mono); font-size: .67rem; letter-spacing: .15em;
  text-transform: uppercase; color: var(--azure); margin: 0 0 8px;
}
.rail__item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.rail__item p { font-size: .875rem; color: var(--muted); }

/* ------------------------------------------------------- commitment strip */

.pledges {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-top: 2px solid var(--azure);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  background: var(--surface); overflow: hidden;
  box-shadow: 0 -16px 44px -22px var(--glow);
}
.pledge { padding: 28px 26px; border-right: 1px solid var(--line); }
.pledge:last-child { border-right: 0; }
.pledge .pledge__fig {
  font-family: var(--display); font-size: 2.5rem; font-weight: 600; line-height: 1;
  color: var(--text); margin: 0 0 12px; letter-spacing: -.05em;
}
.pledge .pledge__fig em {
  font-style: normal; font-weight: 400; color: var(--azure); font-size: .42em;
  letter-spacing: -.01em;
}
.pledge h4 { margin: 0 0 6px; font-family: var(--body); font-size: .93rem; font-weight: 600; color: var(--text); letter-spacing: 0; }
.pledge p { font-size: .835rem; color: var(--muted); }

/* --------------------------------------------------------- chips / matrix */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: .725rem; letter-spacing: .03em;
  color: var(--text-2); background: rgba(255,255,255,.035);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 7px 12px;
}

.matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.matrix__col h4 {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--azure-2); margin-bottom: 16px; font-weight: 500;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}

/* ------------------------------------------------------------- spec table */

.spec { border-top: 2px solid var(--line-3); }
.spec__row {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.spec__k {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); padding-top: 3px;
}
.spec__v { color: var(--text); font-size: .95rem; }
.spec__v small { display: block; color: var(--muted); font-size: .82rem; margin-top: 3px; font-weight: 400; }

/* ------------------------------------------------------------------ notes */

.note {
  border-left: 2px solid var(--azure);
  background: rgba(74,168,255,.055);
  padding: 16px 20px;
  color: var(--text-2);
  font-size: .945rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 32px 30px;
}
.panel--mist { background: rgba(255,255,255,.028); }

/* --------------------------------------------------------------- split cta */

.split { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }

.cta { text-align: center; }
.cta h2 { margin-bottom: 16px; }
.cta .lede { margin-inline: auto; margin-bottom: 30px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta__mail {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .855rem; letter-spacing: .02em;
  margin-top: 26px;
}

/* -------------------------------------------------------------------- faq */

.faq { max-width: 860px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 2px solid var(--line-3); }

.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: none; border: 0; cursor: pointer;
  padding: 22px 2px; text-align: left;
  font-family: var(--display); font-size: 1.06rem; font-weight: 600; color: var(--text);
  letter-spacing: -.024em;
}
/* a plus that becomes a minus — squared, no chevron */
.faq__q::after {
  content: ""; flex: none; width: 13px; height: 13px;
  background:
    linear-gradient(var(--azure), var(--azure)) center/13px 2px no-repeat,
    linear-gradient(var(--azure), var(--azure)) center/2px 13px no-repeat;
  transition: transform .22s ease;
}
.faq__item.is-open .faq__q::after { transform: rotate(90deg); background-size: 13px 2px, 0 0; }

.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 2px;
  font-size: .95rem; color: var(--text-2);
}
.faq__item.is-open .faq__a { max-height: 620px; padding: 0 2px 24px; }

/* ----------------------------------------------------------- legal / prose */

.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 46px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.06rem; margin-top: 30px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1.05em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--azure-dim); }
.prose code {
  font-family: var(--mono); font-size: .875em;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 1px 6px; color: var(--azure-2);
}
.prose__meta {
  font-family: var(--mono); font-size: .73rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  border-left: 2px solid var(--azure); padding: 4px 0 4px 16px; margin-bottom: 40px;
}

/* page header for interior pages */
.pagehead {
  background: var(--void-2);
  color: var(--text-2);
  padding: 74px 0 70px;
  position: relative; overflow: hidden;
}
.pagehead::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 34px 46px,   rgba(255,255,255,.5), transparent 100%),
    radial-gradient(1px 1px     at 168px 122px, rgba(255,255,255,.3), transparent 100%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    radial-gradient(820px 380px at 82% -20%, rgba(74,168,255,.20), transparent 64%);
  background-size: 230px 190px, 310px 250px, 68px 68px, 68px 68px, 100% 100%;
  mask-image: linear-gradient(180deg, #000 0%, transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 96%);
  pointer-events: none;
}
.pagehead > * { position: relative; z-index: 1; }
.pagehead::after {
  content: ""; position: absolute; bottom: 0; height: 2px;
  width: 76px; background: var(--azure);
  box-shadow: 0 0 14px var(--glow);
  left: max(0px, calc((100% - min(100% - 48px, var(--container))) / 2));
}
.pagehead h1 { color: var(--text); font-size: clamp(2.1rem, 4.4vw, 3.25rem); margin-bottom: 18px; }
.crumb {
  font-family: var(--mono); font-size: .69rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.crumb a { color: var(--text-2); text-decoration: none; }
.crumb a:hover { color: var(--azure-2); }

/* ------------------------------------------------------------ contact bits */

.mailcard {
  display: block; text-decoration: none; position: relative;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 26px 24px;
  transition: border-color .18s ease, background .18s ease;
}
.mailcard::before {
  content: ""; position: absolute; left: -1px; top: 20px; bottom: 20px; width: 2px;
  background: var(--azure);
  box-shadow: 0 0 12px var(--glow);
  transform: scaleY(0); transform-origin: top;
  transition: transform .22s cubic-bezier(.2,.7,.25,1);
}
.mailcard:hover { border-color: var(--line-2); background: #141b2c; }
.mailcard:hover::before { transform: scaleY(1); }
.mailcard h3 { margin-bottom: 7px; }
.mailcard p { font-size: .89rem; color: var(--muted); margin-bottom: 14px; }
.mailcard__addr {
  font-family: var(--mono); font-size: .845rem; color: var(--azure-2);
  display: inline-flex; align-items: center; gap: 8px; word-break: break-all;
}
.mailcard__addr svg { width: 15px; height: 15px; flex: none; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative; padding-left: 28px; margin-bottom: 13px;
  font-size: .945rem; color: var(--text-2);
}
/* a square tick plate — no rings */
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .38em;
  width: 15px; height: 15px; border-radius: 1px;
  background: rgba(74,168,255,.12); border: 1px solid rgba(74,168,255,.34);
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: calc(.38em + 3.4px);
  width: 4px; height: 7.5px;
  border-right: 1.7px solid var(--azure-2); border-bottom: 1.7px solid var(--azure-2);
  transform: rotate(42deg);
}

/* ----------------------------------------------------------------- footer */

.footer {
  background: var(--void-2);
  color: var(--text-2);
  padding: 70px 0 32px;
  font-size: .89rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.footer::before {
  content: ""; position: absolute; top: -1px; height: 2px; width: 76px;
  left: max(0px, calc((100% - min(100% - 48px, var(--container))) / 2));
  background: var(--azure); box-shadow: 0 0 14px var(--glow);
}
.footer__top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 42px;
  padding-bottom: 42px; border-bottom: 1px solid var(--line);
}
.footer .brand__name { color: var(--text); }
.footer__blurb { margin-top: 20px; max-width: 34ch; color: var(--muted); font-size: .875rem; }

.footer h4 {
  font-family: var(--mono); font-size: .675rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px; font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--azure-2); }
.footer address { font-style: normal; color: var(--text-2); line-height: 1.75; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 12px 26px; justify-content: space-between;
  padding-top: 24px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .04em;
  color: var(--muted);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }

/* ------------------------------------------------------------------- 404 */

.err { min-height: 66vh; display: grid; place-items: center; text-align: center; padding: 88px 0; }
.err__code {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(4.5rem, 15vw, 9rem); line-height: 1; letter-spacing: -.06em;
  color: var(--azure); margin: 0 0 14px;
  text-shadow: 0 0 60px var(--glow);
}

/* --------------------------------------------------------------- reveal */

.reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.2,.7,.25,1), transform .55s cubic-bezier(.2,.7,.25,1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 44px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .pledges { grid-template-columns: repeat(2, 1fr); }
  .pledge:nth-child(2) { border-right: 0; }
  .pledge:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rail { grid-template-columns: repeat(2, 1fr); gap: 8px 0; }
  .rail--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 1000px) {
  :root { --nav-h: 64px; }
  .container, .container--narrow { width: min(100% - 36px, var(--container)); }
  .band__hair::before, .pagehead::after, .footer::before {
    left: max(0px, calc((100% - min(100% - 36px, var(--container))) / 2));
  }
  .nav__burger { display: block; }
  .nav__links {
    position: absolute; left: 18px; right: 18px; top: calc(var(--nav-h) + 6px);
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #0a0e1a;
    border: 1px solid var(--line-2); border-radius: var(--r-sm);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 14px; border-radius: var(--r-sm); }
  .nav__links a:hover { background: rgba(255,255,255,.06); }
  .nav__links a.is-current { box-shadow: inset 2px 0 0 var(--azure); }
  .nav__cta { justify-content: center; margin-top: 6px; }
}

@media (max-width: 780px) {
  body { font-size: 16.5px; }
  .band { padding: 70px 0; }
  .band--tight { padding: 56px 0; }
  .hero { padding: 60px 0 72px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .matrix { grid-template-columns: 1fr; }
  .spec__row { grid-template-columns: 1fr; gap: 5px; }
  .rail, .rail--3, .rail--4 { grid-template-columns: 1fr; }
  .rail__item { padding: 0 0 0 24px; }
  .rail__item::before { left: 4px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .rail__item:last-child::before { bottom: auto; height: 14px; }
  .rail__item::after { top: 5px; }
  .rail__item + .rail__item { padding-top: 26px; }
  .pledges { grid-template-columns: 1fr; }
  .pledge { border-right: 0; border-bottom: 1px solid var(--line); }
  .pledge:last-child { border-bottom: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__top > :first-child { grid-column: 1 / -1; }
  .section-head { margin-bottom: 38px; }
}

@media (max-width: 560px) {
  /* nothing may force the document wider than the viewport */
  .ticket__value { white-space: normal; }
  .hero__stamp { font-size: .62rem; letter-spacing: .09em; padding: 8px 13px; }
  .brand__sub { letter-spacing: .12em; }
  .footer__bottom { font-size: .66rem; }
  .eyebrow { letter-spacing: .14em; gap: 12px; }
}

@media (max-width: 460px) {
  .footer__top { grid-template-columns: 1fr; }
  .brand__mark { width: 34px; height: 34px; }
  .btn { width: 100%; justify-content: center; }
  .hero__actions .btn, .cta__actions .btn { width: 100%; }
}
