/* ==========================================================================
   Trademan — pre-campaign holding site
   Aesthetic: jobsite blueprint. Navy field, orange hi-vis accents, cream
   signage paper, heavy condensed display type. Everything here exists to
   frame the approved deck artwork, never to compete with it.
   ========================================================================== */

:root {
  --navy: #062c5d;
  --navy-deep: #031b3a;
  --navy-mid: #0a3a72;
  --navy-line: rgba(126, 174, 230, 0.16);
  --orange: #f4771d;
  --orange-deep: #d05c09;
  --gold: #f5b52a;
  --cream: #fff7e9;
  --paper: #f7f0e1;
  --ink: #0a2647;
  --ink-soft: #46618a;
  --rule: rgba(10, 38, 71, 0.14);

  --union: #1f5fbf;
  --church: #ec6c12;
  --school: #c8372c;
  --web: #2c8f43;
  --community: #7444c9;

  --shell: min(1180px, 100% - 2.5rem);
  --wide: min(1520px, 100% - 1.5rem);
  --radius: 18px;
  --plate-shadow: 0 30px 70px -24px rgba(1, 10, 26, 0.85);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  --label: "Barlow Condensed", "Barlow", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--navy-deep);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: #e8f0fa;
  background:
    radial-gradient(120% 70% at 50% -10%, #12508f 0%, transparent 60%),
    linear-gradient(180deg, #072f62 0%, #05244c 42%, #031a39 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Blueprint grid + paper grain. Both fixed and inert so they never cost
   anything during scroll. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    linear-gradient(var(--navy-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--navy-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(130% 90% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.7;
}

body::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
}

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

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

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

.skip {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--label);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 12px;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 0; }

/* ---------- shared type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--label);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--orange);
}

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.98;
  text-transform: uppercase;
  margin: 0;
}

.lede {
  font-size: clamp(1.05rem, 0.55vw + 0.95rem, 1.3rem);
  line-height: 1.55;
  color: #cfe0f3;
  max-width: 58ch;
}

.pop { color: var(--orange); }
.pop-gold { color: var(--gold); }

/* ---------- icons ---------- */

/* Every icon is a <use> of the inline sprite, stroked in the inherited colour.
   Contextual rules further down set the size; this is only the baseline. */
.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(4, 25, 52, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  width: var(--wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  text-decoration: none;
  color: inherit;
}

.brand img { width: 38px; height: 38px; }

.brand-word {
  font-family: var(--display);
  font-size: 1.32rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-word i {
  display: block;
  font-family: var(--label);
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  position: relative;
  flex: none;
  scroll-snap-align: end;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  color: #bed3ea;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.09); }

.nav a[aria-current="true"] {
  color: #fff;
  background: rgba(244, 119, 29, 0.18);
}

.nav a[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.24rem;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(180deg, #ff8b33, var(--orange-deep));
  color: #fff;
  font-family: var(--label);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(208, 92, 9, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), filter 0.16s var(--ease);
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.btn-ghost {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
  color: #dce8f6;
}
.btn-ghost:hover { border-color: var(--gold); color: #fff; filter: none; }

.btn-nav { flex: none; padding: 0.7rem 1.1rem; font-size: 0.86rem; }
.btn-sm { padding: 0.6rem 1rem; font-size: 0.8rem; }
.btn .ic { width: 18px; height: 18px; }

/* scroll progress, doubling as the topbar's bottom rule */
.progress {
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--gold));
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}

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

main { position: relative; z-index: 1; }

.hero { width: var(--wide); margin: 1.4rem auto 0; }

.hero-plate {
  position: relative;
  max-width: 1448px;
  margin-inline: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b366e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--plate-shadow);
}

.hero-plate img { width: 100%; height: auto; }

/* The cover art has a signup card printed into it. On desktop the three
   printed fields are real inputs sitting exactly on top of the artwork; the
   printed orange button is the real submit. Coordinates are tuned to
   cover.png (1448x1086) and must move together with it. */
.cover-quickstart {
  position: absolute;
  z-index: 5;
  left: 43.45%;
  top: 85.42%;
  width: 28.35%;
  height: 12.6%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 28% 25% 34%;
  column-gap: 4.7%;
  row-gap: 8.5%;
  align-items: stretch;
}

/* The overlay only does anything once app.js wires the handoff, so it stays
   hidden until then rather than offering fields that go nowhere. */
.cover-quickstart[hidden] { display: none; }

.cover-quickstart input,
.cover-quickstart select {
  min-width: 0;
  border: 1px solid #9eb3cb;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(8px, 0.82vw, 12px);
  padding: 0 8px;
  outline: none;
  transition: box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
}

.cover-quickstart input::placeholder { color: #7d93ad; }

.cover-quickstart input:focus,
.cover-quickstart select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(244, 119, 29, 0.45);
}

.cover-quickstart select { grid-column: 1 / 3; grid-row: 2; }

/* Invisible but clickable: the orange button is already painted into the art. */
.cover-quickstart .cover-go {
  grid-column: 1 / 3;
  grid-row: 3;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  transition: box-shadow 0.18s var(--ease);
}

.cover-quickstart .cover-go:hover,
.cover-quickstart .cover-go:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 0 7px rgba(244, 119, 29, 0.5);
}

.hero-meta {
  width: var(--shell);
  margin: 1.1rem auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.4rem;
  text-align: center;
}

.hero-note {
  font-family: var(--label);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a9c4e1;
}

/* ---------- join the crew card ---------- */

.join {
  width: var(--shell);
  margin: 2.2rem auto 0;
  scroll-margin-top: 92px;
}

.crew-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  border-radius: 22px;
  background:
    radial-gradient(90% 120% at 100% 0%, #fffdf7 0%, var(--paper) 55%, #efe4cf 100%);
  color: var(--ink);
  border: 3px solid var(--orange);
  box-shadow: var(--plate-shadow);
  overflow: hidden;
}

/* hi-vis stripe along the top edge */
.crew-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  background: repeating-linear-gradient(
    115deg,
    var(--orange) 0 18px,
    var(--navy) 18px 36px
  );
}

.crew-card.is-highlit {
  animation: pulse 1.5s var(--ease) 1;
}

@keyframes pulse {
  0%, 100% { box-shadow: var(--plate-shadow); }
  35% { box-shadow: var(--plate-shadow), 0 0 0 10px rgba(245, 181, 42, 0.5); }
}

.crew-pitch .eyebrow { color: var(--orange-deep); }
.crew-pitch .eyebrow::before { background: var(--navy); }

.crew-pitch h2 {
  margin: 0.7rem 0 0.6rem;
  font-size: clamp(1.9rem, 2.6vw + 0.7rem, 3rem);
  color: var(--navy);
}

.crew-pitch p {
  margin: 0 0 0.9rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 34ch;
}

.crew-counter {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 2px dashed rgba(10, 38, 71, 0.22);
}

.crew-counter b {
  font-family: var(--display);
  font-size: clamp(2.1rem, 3vw, 3.1rem);
  line-height: 0.9;
  color: var(--orange-deep);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}

.crew-counter span {
  font-family: var(--label);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: 16ch;
}

.crew-counter.is-loading b { color: rgba(10, 38, 71, 0.2); }
.crew-counter[hidden] { display: none; }

/* form */

.crew-form { display: grid; gap: 0.85rem; align-content: start; }

.field { display: grid; gap: 0.3rem; min-width: 0; }

.field > label {
  font-family: var(--label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.field > label .opt {
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.field input,
.field select {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border: 2px solid #c3cfdd;
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.field input::placeholder { color: #9fb0c4; font-weight: 500; }

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(244, 119, 29, 0.2);
}

.field.has-error input,
.field.has-error select { border-color: var(--school); background: #fff6f5; }

.field .err {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--school);
  min-height: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field-row.tight { grid-template-columns: 1.6fr 1fr; }

/* optional mailing address disclosure */
.deeper {
  border: 2px dashed rgba(10, 38, 71, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.deeper-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--label);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.deeper-toggle .ic { width: 20px; height: 20px; color: var(--orange-deep); flex: none; }

.deeper-toggle .chev {
  margin-left: auto;
  transition: transform 0.22s var(--ease);
}

.deeper-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.deeper-toggle small {
  display: block;
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

.deeper-body {
  display: grid;
  gap: 0.85rem;
  padding: 0 0.9rem 0.95rem;
}

.deeper-body[hidden] { display: none; }

.consent {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1rem;
}

.form-foot .btn { flex: 1 1 15rem; }

.form-note {
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-alert {
  padding: 0.75rem 0.9rem;
  border-radius: 11px;
  border-left: 5px solid var(--school);
  background: #fff1ef;
  color: #8c241b;
  font-weight: 600;
  font-size: 0.94rem;
}

.form-alert[hidden] { display: none; }

.honeypot { position: absolute; left: -9999px; opacity: 0; }

/* success state swaps in over the form. Both carry display:grid, so both need
   an explicit [hidden] rule to beat it. */
.crew-done { display: grid; gap: 0.8rem; align-content: center; }
.crew-done[hidden],
.crew-form[hidden] { display: none; }

.crew-done .stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: start;
  padding: 0.5rem 1rem;
  border: 3px solid var(--web);
  border-radius: 10px;
  color: var(--web);
  font-family: var(--label);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-2.5deg);
}

.crew-done .stamp .ic { width: 22px; height: 22px; }

.crew-done h3 { font-size: clamp(1.6rem, 2.4vw, 2.3rem); color: var(--navy); }
.crew-done p { margin: 0; color: var(--ink-soft); max-width: 46ch; }

.crew-done .member {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--orange-deep);
  letter-spacing: 0.04em;
}

/* ---------- slide sections ---------- */

.slide {
  width: var(--wide);
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  scroll-margin-top: 84px;
}

.slide-head {
  width: min(1180px, 100%);
  margin: 0 auto 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.slide-num {
  font-family: var(--label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(169, 196, 225, 0.75);
}

.slide-head h2 {
  font-size: clamp(2rem, 3.6vw + 0.5rem, 4rem);
  color: #fff;
  text-wrap: balance;
}

.slide-head h2 em {
  display: block;
  font-style: normal;
  color: var(--orange);
  font-size: 0.68em;
}

/* the artwork itself */
.plate {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b366e;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--plate-shadow);
}

.plate img { width: 100%; height: auto; }

.plate-zoom {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(3, 26, 57, 0.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}

.plate-zoom:hover { background: var(--orange); transform: translateY(-2px); }
.plate-zoom .ic { width: 15px; height: 15px; }

/* the live layer under each plate */
.layer {
  width: min(1180px, 100%);
  margin: clamp(1.6rem, 3vw, 2.6rem) auto 0;
  display: grid;
  gap: clamp(1.2rem, 2.4vw, 2rem);
}

.layer-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: start;
}

/* the narrow column of a split: a sign with its slogan chips beneath */
.layer-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

/* signage pull-quote, echoing the wooden signs in the artwork */
.sign {
  position: relative;
  padding: clamp(1.2rem, 2.4vw, 1.9rem);
  border-radius: 14px;
  background: linear-gradient(170deg, var(--cream), var(--paper));
  color: var(--ink);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 22px 44px -22px rgba(1, 10, 26, 0.8);
}

.sign::after {
  content: "";
  position: absolute;
  left: clamp(1.2rem, 2.4vw, 1.9rem);
  bottom: clamp(0.7rem, 1.4vw, 1rem);
  width: 62px;
  height: 4px;
  border-radius: 4px;
  background: var(--orange);
}

.sign p {
  margin: 0 0 1.6rem;
  font-size: clamp(1.1rem, 0.7vw + 1rem, 1.45rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--navy);
}

.sign .attrib {
  font-family: var(--label);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

/* small slogan chips lifted from the signs painted in the artwork */
.slogans {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.slogans li {
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(169, 196, 225, 0.4);
  border-radius: 999px;
  font-family: var(--label);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #b9d2ec;
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- card systems ---------- */

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(0.8rem, 1.6vw, 1.15rem);
}

.cards-2x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative;
  display: grid;
  gap: 0.55rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 181, 42, 0.6);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}

.card .badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--navy-mid);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--gold);
}

.card .badge .ic { width: 24px; height: 24px; }

.card h3 {
  font-size: clamp(1.02rem, 0.5vw + 0.9rem, 1.28rem);
  color: #fff;
  letter-spacing: 0.02em;
}

.card p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.5;
  color: #c3d6ea;
}

/* offset every other card so the grid does not read as boxes in a row */
.cards-2x2 > li:nth-child(even) { transform: translateY(1.6rem); }
.cards-2x2 > li:nth-child(even):hover { transform: translateY(calc(1.6rem - 4px)); }

/* numbered stack, used for the four problems */
.stack { display: grid; gap: 0.9rem; list-style: none; margin: 0; padding: 0; }

.stack li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(0.9rem, 2vw, 1.6rem);
  align-items: start;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1rem, 2vw, 1.6rem);
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 5px solid var(--orange);
  transition: transform 0.2s var(--ease), border-left-color 0.2s var(--ease);
}

.stack li:nth-child(2) { border-left-color: var(--gold); }
.stack li:nth-child(3) { border-left-color: var(--union); }
.stack li:nth-child(4) { border-left-color: var(--school); }

.stack li:hover { transform: translateX(6px); }

.stack .num {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.82;
  color: rgba(255, 255, 255, 0.22);
  font-variant-numeric: tabular-nums;
}

.stack h3 {
  font-size: clamp(1.02rem, 0.55vw + 0.9rem, 1.3rem);
  color: #fff;
  margin-bottom: 0.4rem;
}

.stack p { margin: 0; color: #c3d6ea; font-size: 0.98rem; }

.stack .ic { width: 22px; height: 22px; color: var(--gold); }

.stack .head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

/* horizontal rail for "coming soon" items and the five pillars */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(260px, 78vw), 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.15rem);
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 181, 42, 0.6) transparent;
}

.rail > li { scroll-snap-align: start; }

.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: rgba(245, 181, 42, 0.55); border-radius: 8px; }
.rail::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.07); border-radius: 8px; }

.ticket {
  position: relative;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: clamp(1rem, 2vw, 1.45rem);
  border-radius: 16px;
  background: linear-gradient(165deg, #10457f, #0a2f5f);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.ticket:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -20px rgba(0, 0, 0, 0.9); }

.ticket .badge {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(245, 181, 42, 0.16);
  color: var(--gold);
}
.ticket .badge .ic { width: 23px; height: 23px; }

.ticket h3 { font-size: 1.12rem; color: #fff; }
.ticket p { margin: 0; color: #c3d6ea; font-size: 0.96rem; }

.stub {
  justify-self: start;
  margin-top: 0.3rem;
  padding: 0.34rem 0.7rem;
  border-radius: 6px;
  background: var(--gold);
  color: #43300a;
  font-family: var(--label);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* five pillars, colour-coded exactly as the artwork does */
.pillar {
  position: relative;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  padding: clamp(1rem, 2vw, 1.4rem);
  padding-top: clamp(1.3rem, 2.4vw, 1.7rem);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  border-radius: 16px 16px 0 0;
  background: var(--accent);
}

.pillar:hover { transform: translateY(-5px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)); }

.pillar .badge {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px -8px var(--accent);
}
.pillar .badge .ic { width: 25px; height: 25px; }

.pillar h3 { font-size: 1.26rem; color: #fff; letter-spacing: 0.03em; }
.pillar p { margin: 0; color: #c8daed; font-size: 0.97rem; }

/* ---------- solution: interactive toolbelt tabs ---------- */

.toolbelt { display: grid; gap: 1rem; }

.toolbelt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.toolbelt-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #c9dcf0;
  font-family: var(--label);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.toolbelt-tabs button .ic { width: 19px; height: 19px; }
.toolbelt-tabs button:hover { transform: translateY(-2px); color: #fff; border-color: rgba(245, 181, 42, 0.6); }

.toolbelt-tabs button[aria-selected="true"] {
  background: linear-gradient(180deg, #ff8b33, var(--orange-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(208, 92, 9, 0.95);
}

.toolbelt-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 1.8rem);
  align-items: start;
  padding: clamp(1.2rem, 2.6vw, 2rem);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 6px solid var(--gold);
}

.toolbelt-panel[hidden] { display: none; }

.toolbelt-panel .big-badge {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--navy-mid);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--gold);
}
.toolbelt-panel .big-badge .ic { width: 33px; height: 33px; }

.toolbelt-panel h3 { font-size: clamp(1.3rem, 1.4vw + 1rem, 1.9rem); color: #fff; margin-bottom: 0.5rem; }
.toolbelt-panel p { margin: 0; font-size: 1.05rem; color: #cfe0f3; max-width: 60ch; }

.toolbelt-step {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--label);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- checklist + fund icons (crowdfunding slide) ---------- */

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }

.checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  color: #dbe8f6;
}

.checklist .ic { width: 20px; height: 20px; color: var(--web); flex: none; }

.fund {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.7rem;
}

.fund li {
  display: grid;
  gap: 0.45rem;
  justify-items: center;
  text-align: center;
  padding: 0.9rem 0.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--label);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d4e3f3;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.fund li:hover { transform: translateY(-3px); background: rgba(255, 255, 255, 0.12); }
.fund .ic { width: 27px; height: 27px; color: var(--orange); }

/* ---------- caution banner ---------- */

.banner {
  position: relative;
  width: min(1180px, 100%);
  margin: clamp(1.4rem, 3vw, 2.2rem) auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1.2rem, 2.4vw, 1.9rem);
  border-radius: 16px;
  background: linear-gradient(100deg, #0e3d78, #072a56);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: repeating-linear-gradient(
    135deg,
    var(--gold) 0 12px,
    var(--navy-deep) 12px 24px
  );
}

.banner .ic-wrap {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-left: 0.6rem;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  flex: none;
}
.banner .ic-wrap .ic { width: 25px; height: 25px; }

.banner-text { flex: 1 1 22rem; }

.banner-text strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.3vw + 0.85rem, 1.65rem);
  text-transform: uppercase;
  line-height: 1.08;
  color: #fff;
}

.banner-text span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--label);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- marquee strip ---------- */

.strip {
  width: 100%;
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  padding: 0.8rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 26, 57, 0.6);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.strip-track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: slide-strip 34s linear infinite;
}

.strip:hover .strip-track { animation-play-state: paused; }

.strip-track > span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--label);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cadcef;
  white-space: nowrap;
}

.strip-track .ic { width: 18px; height: 18px; color: var(--gold); }
.strip-track .dot { color: var(--orange); }

@keyframes slide-strip {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- closing call to action ---------- */

.closer {
  width: var(--shell);
  margin: clamp(3rem, 7vw, 6rem) auto 0;
  text-align: center;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
}

.closer h2 { font-size: clamp(2rem, 4vw + 0.5rem, 3.6rem); color: #fff; text-wrap: balance; }
.closer .lede { margin: 0 auto; text-align: center; }
.closer .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

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

.footer {
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 20, 43, 0.72);
}

.footer-inner {
  width: var(--shell);
  margin-inline: auto;
  padding: 2rem 0 2.6rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.creed {
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.4vw, 1.35rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #eaf2fb;
}

.creed i { color: var(--orange); font-style: normal; padding: 0 0.5rem; }

.footer small {
  font-family: var(--label);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fadcd;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  place-items: center;
  padding: clamp(0.6rem, 2vw, 1.6rem);
  background: rgba(1, 11, 26, 0.96);
  backdrop-filter: blur(4px);
}

.lightbox[open],
.lightbox.is-open { display: grid; }

.lightbox figure {
  margin: 0;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  max-height: 100%;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  border-radius: 10px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9);
}

.lightbox figcaption {
  font-family: var(--label);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8d0e9;
}

.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(6, 44, 93, 0.9);
  color: #fff;
  cursor: pointer;
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}

.lb-btn:hover { background: var(--orange); transform: scale(1.06); }
.lb-btn .ic { width: 22px; height: 22px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; margin-top: -24px; }
.lb-next { right: 1rem; top: 50%; margin-top: -24px; }

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-in { opacity: 1; transform: none; }

.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal-group.is-in > * { opacity: 1; transform: none; }
.reveal-group.is-in > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-group.is-in > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-group.is-in > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-group.is-in > *:nth-child(4) { transition-delay: 0.28s; }
.reveal-group.is-in > *:nth-child(5) { transition-delay: 0.36s; }

/* keep the offset on even cards after they reveal */
.cards-2x2.reveal-group.is-in > li:nth-child(even) { transform: translateY(1.6rem); }

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

@media (max-width: 1080px) {
  .layer-split { grid-template-columns: 1fr; }
  .toolbelt-panel { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --shell: min(1180px, 100% - 1.6rem); --wide: min(1520px, 100% - 1rem); }

  body { font-size: 16px; }

  /* The printed form on the cover is too small to type into on a phone, so
     the artwork stays purely decorative and the full card below takes over. */
  .cover-quickstart { display: none; }

  .crew-card { grid-template-columns: 1fr; }
  .crew-pitch p { max-width: none; }
  .cards-2x2 { grid-template-columns: 1fr; }
  .cards-2x2 > li:nth-child(even),
  .cards-2x2.reveal-group.is-in > li:nth-child(even) { transform: none; }
  .cards-2x2 > li:nth-child(even):hover { transform: translateY(-4px); }
  .brand-word { font-size: 1.1rem; }
  .brand img { width: 32px; height: 32px; }
  .nav a { font-size: 0.78rem; padding: 0.5rem 0.55rem; }
  .plate { border-radius: 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; margin-top: 0; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox img { max-height: calc(100vh - 11rem); }
}

@media (max-width: 620px) {
  .field-row, .field-row.tight { grid-template-columns: 1fr; }
  .stack li { grid-template-columns: 1fr; gap: 0.5rem; }
  .stack li:hover { transform: none; }
  .hero-meta { text-align: left; justify-content: flex-start; }
  .form-foot .btn { flex: 1 1 100%; }
}

@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;
  }
  .reveal, .reveal-group > * { opacity: 1; transform: none; }
  .strip-track { animation: none; }
}
