/* =====================================================================
   HH Goa 2026 · Frame & Builder ID Generator
   Design system built on the official Hacker House Goa 2026 identity:
   deep green ground, lemon-yellow Imbue display serif, pink accents,
   cream paper panels, editorial folio rails.
   Mobile-first — the task brief expects most traffic from phones.
   ===================================================================== */

:root {
  /* --- brand palette (sampled from hhgoa.com) --- */
  --green:       #0B6839;
  --green-deep:  #073F22;
  --green-dark:  #052D18;
  --yellow:      #FEE101;
  --yellow-dim:  #EDD723;
  --cream:       #FFFBE8;
  --pink:        #EC0F7C;
  --ink:         #06301A;

  /* --- derived tones --- */
  --ink-60:      rgba(6, 48, 26, .60);
  --ink-38:      rgba(6, 48, 26, .38);
  --ink-14:      rgba(6, 48, 26, .14);
  --cream-70:    rgba(255, 251, 232, .70);
  --cream-45:    rgba(255, 251, 232, .45);
  --cream-18:    rgba(255, 251, 232, .18);

  /* --- type --- */
  --display: 'Imbue', 'Playfair Display', Georgia, serif;
  --mono:    'Victor Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --deva:    'Shrikhand', Georgia, serif;

  /* --- rhythm --- */
  --rail:    clamp(16px, 4vw, 40px);
  --gap:     clamp(18px, 3vw, 30px);
  --radius:  14px;
  --hair:    1px solid var(--ink-14);
}

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

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

body {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  color: var(--cream);
  /* Flat brand green is the fallback: it is what shows if WebGL is
     unavailable and the shader canvas never paints. */
  background: var(--green);
  background-image: radial-gradient(rgba(255, 251, 232, .07) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
  min-height: 100vh;
  overflow-x: hidden;
}

/* animated green-on-black flow field, behind everything */
#bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Scrim over the shader: keeps the dot texture and guarantees cream text
   holds contrast over the brightest parts of the field. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(rgba(255, 251, 232, .05) 1.5px, transparent 1.6px) 0 0 / 26px 26px,
    linear-gradient(rgba(2, 16, 8, .30), rgba(2, 16, 8, .52));
}

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

button, input { font: inherit; color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ------------------------------------------------------- shared devices */

/* letterspaced mono eyebrow — the brand's structural label */
.eyebrow {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink);
}

.shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--rail);
}

/* folio rail — repeated from the official Selection Framework deck */
.folio {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--cream-18);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream-45);
}

.folio a {
  color: var(--yellow);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .18s;
}
.folio a:hover { border-bottom-color: var(--yellow); }

/* ------------------------------------------------------------------ hero */
.hero { padding: clamp(26px, 6vw, 54px) 0 clamp(20px, 4vw, 34px); }

.hero__eyebrow { margin-bottom: clamp(14px, 3vw, 20px); }

/* the brand lockup: HACKER / HOUSE in yellow Imbue with the pink गोवा badge */
.lockup {
  position: relative;
  display: inline-block;
  margin-bottom: clamp(16px, 3vw, 22px);
}

.lockup__line {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(64px, 17vw, 168px);
  line-height: .84;
  letter-spacing: .005em;
  color: var(--yellow);
  text-transform: uppercase;
}

/* Deliberately small: the badge overlaps the wordmark like the official
   deck cover, but a larger one swallowed the middle of both words. */
.lockup__badge {
  position: absolute;
  top: 48%;
  left: 50%;
  translate: -50% -50%;
  rotate: -3deg;
  background: var(--pink);
  color: var(--yellow);
  font-family: var(--deva);
  font-size: clamp(19px, 4.8vw, 44px);
  line-height: 1;
  padding: .2em .3em .28em;
  border-radius: 11px;
  box-shadow: 0 0 0 4px var(--green), 0 8px 22px rgba(5, 45, 24, .4);
  white-space: nowrap;
}

.hero__deck {
  max-width: 40ch;
  font-size: clamp(14px, 2.2vw, 16.5px);
  line-height: 1.62;
  color: var(--cream-70);
}
.hero__deck strong { color: var(--yellow); font-weight: 700; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(18px, 3vw, 26px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--cream-18);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream-70);
  white-space: nowrap;
}
.pill--live { border-color: rgba(254, 225, 1, .45); color: var(--yellow); }
.pill--live::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* --------------------------------------------------------- format index */
.formats {
  list-style: none;
  border-top: 1px solid var(--cream-18);
  margin-bottom: var(--gap);
}

.format {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 14px;
  width: 100%;
  padding: 15px 6px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--cream-18);
  text-align: left;
  cursor: pointer;
  color: var(--cream);
  transition: background-color .18s, padding-left .18s;
}
.format:hover { background: rgba(255, 251, 232, .05); padding-left: 12px; }

.format__mark {
  width: 22px; height: 22px;
  border: 1px solid var(--cream-45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--cream-45);
  transition: background-color .18s, color .18s, border-color .18s;
}

.format__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(21px, 4.6vw, 30px);
  line-height: 1;
  letter-spacing: .01em;
}

/* the dimension is real information — it tells you what you get */
.format__dim {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--cream-70);
  white-space: nowrap;
}

.format[aria-selected='true'] { background: rgba(254, 225, 1, .1); }
.format[aria-selected='true'] .format__name { color: var(--yellow); }
.format[aria-selected='true'] .format__mark {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--green-dark);
}
.format[aria-selected='true'] .format__dim { color: var(--yellow); }

/* -------------------------------------------------------------- studio */
.studio {
  display: grid;
  gap: var(--gap);
  padding-bottom: clamp(30px, 6vw, 56px);
}

/* cream paper panel */
.panel {
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: clamp(18px, 3.4vw, 28px);
  box-shadow: 0 18px 44px -18px rgba(5, 45, 24, .5);
}

.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: clamp(16px, 3vw, 22px);
  border-bottom: var(--hair);
}
.panel__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1;
  color: var(--ink);
}
.panel__step {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-38);
  white-space: nowrap;
}

.field { margin-bottom: clamp(15px, 2.6vw, 19px); }
.field:last-child { margin-bottom: 0; }

.label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 7px;
}

.input {
  width: 100%;
  padding: 11px 13px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--ink-14);
  border-radius: 9px;
  transition: border-color .16s, box-shadow .16s;
}
.input::placeholder { color: var(--ink-38); }
.input:hover { border-color: var(--ink-38); }
.input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(11, 104, 57, .16);
}
.input[readonly] { background: rgba(6, 48, 26, .04); cursor: default; }

.combo { display: flex; gap: 8px; }
.combo .input { flex: 1; min-width: 0; }

.reroll {
  flex: 0 0 auto;
  width: 44px;
  background: var(--yellow);
  border: 1px solid var(--ink);
  border-radius: 9px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: translate .12s, background-color .16s;
}
.reroll:hover { background: var(--yellow-dim); translate: 0 -1px; }
.reroll:active { translate: 0 1px; }

/* upload well */
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: clamp(20px, 4vw, 28px) 16px;
  text-align: center;
  background: rgba(236, 15, 124, .05);
  border: 1.5px dashed rgba(236, 15, 124, .45);
  border-radius: 11px;
  cursor: pointer;
  transition: background-color .16s, border-color .16s;
}
.drop:hover, .drop.is-over {
  background: rgba(236, 15, 124, .1);
  border-color: var(--pink);
}
.drop__icon { font-size: 21px; line-height: 1; }
.drop__title { font-weight: 700; font-size: 14px; color: var(--green); }
.drop__hint { font-size: 11.5px; color: var(--ink-60); line-height: 1.45; }
.drop input { display: none; }

/* zoom slider */
.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: none;
  cursor: pointer;
}
.slider::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--ink-14);
  border-radius: 3px;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 17px; height: 17px;
  margin-top: -7px;
  background: var(--pink);
  border: 2px solid var(--cream);
  border-radius: 50%;
}
.slider::-moz-range-track { height: 3px; background: var(--ink-14); border-radius: 3px; }
.slider::-moz-range-thumb {
  width: 17px; height: 17px;
  background: var(--pink);
  border: 2px solid var(--cream);
  border-radius: 50%;
}

.helper { font-size: 11.5px; color: var(--ink-60); margin-top: 5px; }

/* team segment control */
.seg { display: flex; gap: 7px; }
.seg button {
  flex: 1;
  padding: 9px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--ink-14);
  border-radius: 9px;
  cursor: pointer;
  transition: background-color .16s, color .16s, border-color .16s;
}
.seg button:hover { border-color: var(--green); }
.seg button[aria-pressed='true'] {
  background: var(--green);
  border-color: var(--green);
  color: var(--yellow);
}

.member {
  padding: 13px;
  margin-top: 11px;
  border: 1px solid var(--ink-14);
  border-radius: 11px;
}
.member > * + * { margin-top: 9px; }

/* ---------------------------------------------------------------- stage */
.stage { min-width: 0; }

.plate {
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(12px, 2.2vw, 18px);
  box-shadow: 0 18px 44px -18px rgba(5, 45, 24, .5);
}

#cv {
  width: 100%;
  height: auto;
  border-radius: 7px;
  background: var(--green-deep);
  touch-action: none;
  cursor: grab;
}
#cv:active { cursor: grabbing; }

/* magazine plate caption — states what the file actually is */
.plate__caption {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: space-between;
  padding-top: 11px;
  margin-top: 11px;
  border-top: var(--hair);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.plate__caption b { color: var(--ink); font-weight: 700; }

.actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 16px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  transition: translate .12s, background-color .16s, box-shadow .16s;
}
.btn:active { translate: 0 1px; }

.btn--primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--green-dark);
  box-shadow: 0 8px 20px -8px rgba(254, 225, 1, .6);
}
.btn--primary:hover { background: #fff06b; }

.btn--x {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--cream);
}
.btn--x:hover { background: #0a4527; }

.btn--ghost {
  background: none;
  border-color: var(--cream-18);
  color: var(--cream-70);
}
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Sits on the green ground, not on a cream panel — so it takes cream text.
   An earlier version inherited ink colours here and was invisible. */
.note {
  margin-top: 13px;
  padding: 13px 15px;
  background: rgba(255, 251, 232, .06);
  border-left: 2px solid var(--pink);
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--cream-70);
}
.note b { color: var(--yellow); }

/* ------------------------------------------------------------ how it works */
.how {
  border-top: 1px solid var(--cream-18);
  padding: clamp(28px, 5vw, 48px) 0;
}
.how__list {
  list-style: none;
  display: grid;
  gap: clamp(16px, 3vw, 26px);
  margin-top: clamp(16px, 3vw, 26px);
  counter-reset: step;
}
.how__item {
  padding-top: 13px;
  border-top: 1px solid var(--cream-18);
  counter-increment: step;
}
.how__item::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--yellow);
  margin-bottom: 8px;
}
.how__item h3 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 5px;
}
.how__item p { font-size: 13.5px; line-height: 1.6; color: var(--cream-70); }

/* ------------------------------------------------------------------- faq */
.faq { border-top: 1px solid var(--cream-18); padding: clamp(30px, 5vw, 56px) 0; }

/* signal pill: conic beam, pulse ring, sweeping meter */
.faq-intro {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: .85rem;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto clamp(26px, 5vw, 44px);
  padding: .8rem 1.3rem;
  overflow: hidden;
  border: 1px solid rgba(255, 251, 232, .16);
  border-radius: 999px;
  background: rgba(3, 26, 13, .5);
  color: var(--cream-70);
  font-size: 9.5px;
  letter-spacing: .35em;
  text-transform: uppercase;
}
.faq-intro__beam,
.faq-intro__pulse {
  position: absolute;
  inset: -110%;
  border-radius: 50%;
  pointer-events: none;
}
.faq-intro__beam {
  background: conic-gradient(from 160deg,
    rgba(254, 225, 1, .22), transparent 32%,
    rgba(11, 104, 57, .5) 58%, transparent 78%,
    rgba(236, 15, 124, .2));
  opacity: .7;
  animation: faq-beam 18s linear infinite;
}
.faq-intro__pulse {
  border: 1px solid var(--yellow);
  opacity: .22;
  animation: faq-pulse 3.4s ease-out infinite;
}
.faq-intro__label { position: relative; z-index: 1; font-weight: 700; color: var(--yellow); }
.faq-intro__meter {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow) 35%, transparent 85%);
  transform-origin: left;
  opacity: .7;
  animation: faq-meter 5.8s ease-in-out infinite;
}
.faq-intro__tick {
  position: relative;
  z-index: 1;
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 15, 124, .18);
  animation: faq-tick 3.2s ease-in-out infinite;
}
@keyframes faq-beam { to { transform: rotate(360deg); } }
@keyframes faq-pulse {
  0% { transform: scale(.7); opacity: .5; }
  60% { opacity: .08; }
  100% { transform: scale(1.25); opacity: 0; }
}
@keyframes faq-meter {
  0%, 20% { transform: scaleX(0); transform-origin: left; }
  45%, 60% { transform: scaleX(1); transform-origin: left; }
  80%, 100% { transform: scaleX(0); transform-origin: right; }
}
@keyframes faq-tick {
  0%, 30% { transform: translateX(-6px); opacity: .4; }
  50% { transform: translateX(2px); opacity: 1; }
  100% { transform: translateX(18px); opacity: 0; }
}

/* The FAQ runs in a narrower measure than the rest of the page: at full
   shell width the answers read as a thin column inside a very wide card. */
.faq__head,
.faq-list { max-width: 940px; margin-inline: auto; }

.faq__head { margin-bottom: clamp(16px, 3vw, 26px); }
.faq__lede {
  margin-top: 10px;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cream-70);
}

.faq-list { list-style: none; display: grid; gap: 14px; }

/* translucent green card */
.faq-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--cream-18);
  border-radius: 22px;
  background: rgba(11, 104, 57, .26);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 36px 120px -66px rgba(2, 16, 8, .95);
  transition: transform .45s cubic-bezier(.2, .8, .3, 1), border-color .4s;
}
.faq-card:hover,
.faq-card:focus-within { transform: translateY(-2px); border-color: rgba(254, 225, 1, .34); }
.faq-card.is-open { border-color: rgba(254, 225, 1, .4); background: rgba(11, 104, 57, .34); }

/* radial glow that follows the pointer */
.faq-card__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s;
  background: radial-gradient(240px circle at var(--faq-x, 50%) var(--faq-y, 50%),
    rgba(254, 225, 1, .14), transparent 70%);
}
.faq-card:hover .faq-card__glow,
.faq-card.is-open .faq-card__glow { opacity: 1; }

.faq-card__h { margin: 0; font-weight: inherit; font-size: inherit; }

.faq-trigger {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 22px);
  width: 100%;
  padding: clamp(18px, 2.6vw, 24px) clamp(18px, 3vw, 28px);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.faq-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 251, 232, .22);
  border-radius: 50%;
  background: rgba(255, 251, 232, .06);
  transition: transform .5s, background-color .3s, border-color .3s;
}
.faq-card:hover .faq-icon { transform: scale(1.06); border-color: rgba(254, 225, 1, .45); }
.faq-icon svg {
  width: 18px;
  height: 18px;
  color: var(--yellow);
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.faq-card.is-open .faq-icon svg { transform: rotate(45deg); }

.faq-q {
  flex: 1 1 auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(17px, 2.6vw, 22px);
  line-height: 1.25;
  color: var(--cream);
  transition: color .3s;
}
.faq-card.is-open .faq-q { color: var(--yellow); }

.faq-meta {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid var(--cream-18);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cream-45);
  white-space: nowrap;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s ease;
}
.faq-card.is-open .faq-panel { max-height: 360px; }
.faq-a {
  padding: 0 clamp(18px, 3vw, 28px) clamp(20px, 2.8vw, 26px)
           calc(44px + clamp(14px, 2.4vw, 22px) + clamp(18px, 3vw, 28px));
  max-width: 82ch;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--cream-70);
}
.faq-a strong { color: var(--yellow); font-weight: 700; }

@media (max-width: 560px) {
  .faq-meta { display: none; }
  .faq-a { padding-left: clamp(18px, 3vw, 28px); }
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--cream-18);
  padding: 0 0 clamp(80px, 12vw, 40px);
}

/* ------------------------------------------------------------- marquee */
/* Icon sprite lives in the DOM but must never take up space. Kept as a
   class rather than a style attribute so the CSP needs no 'unsafe-inline'. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.marquee {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  overflow: hidden;
  padding: clamp(16px, 3vw, 26px) 0;
  border-bottom: 1px solid var(--cream-18);
  margin-bottom: clamp(20px, 3.5vw, 30px);
  /* fade both ends so words enter and leave rather than being cut off */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 90px,
                                      #000 calc(100% - 90px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 90px,
                              #000 calc(100% - 90px), transparent 100%);
}

.marquee__row {
  display: flex;
  flex: 0 0 auto;      /* must not shrink, or the two tracks would overlap */
  align-items: center;
  list-style: none;
  animation: mq-scroll 34s linear infinite;
}
.marquee__row > li {
  display: flex;
  align-items: center;
  margin: 0 clamp(13px, 2vw, 26px);
}

@keyframes mq-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* Pause so the links can actually be clicked, and so anyone who wants to
   read it can. Focus counts too, for keyboard users tabbing through. */
.marquee:hover .marquee__row,
.marquee:focus-within .marquee__row { animation-play-state: paused; }

.mq-word {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 5.5vw, 58px);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--yellow);
  white-space: nowrap;
}

.mq-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
}

.mq-link {
  display: grid;
  place-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--cream-18);
  border-radius: 12px;
  background: rgba(255, 251, 232, .06);
  color: var(--yellow);
  transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.mq-link:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.mq-ico { width: 20px; height: 20px; fill: currentColor; }
.mq-ico--line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The global reduced-motion rule only shortens durations, which would snap
   the track to its end position and leave a blank strip. Stop it outright. */
@media (prefers-reduced-motion: reduce) {
  .marquee__row { animation: none !important; }
}
/* One centred run of metadata, with the privacy promise on its own line
   beneath it. Line breaks are left to the text, not forced with <br>. */
.site-footer__line {
  /* No width cap: the run fits on one line at desktop widths, and balance
     only kicks in once a narrow screen forces it to wrap. */
  text-align: center;
  text-wrap: balance;
  font-size: 11.5px;
  letter-spacing: .05em;
  line-height: 1.9;
  color: var(--cream-45);
}
.site-footer__line a { color: var(--cream-70); }
.site-footer__line a:hover { color: var(--yellow); }

.site-footer__note {
  margin-top: 8px;
  text-align: center;
  font-size: 11px;
  letter-spacing: .05em;
  color: rgba(255, 251, 232, .34);
}

/* --------------------------------------------------------------- toast */
#toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  translate: -50% 130%;
  z-index: 60;
  max-width: min(90vw, 420px);
  padding: 13px 20px;
  background: var(--ink);
  border: 1px solid var(--yellow);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: var(--cream);
  box-shadow: 0 14px 34px rgba(5, 45, 24, .5);
  /* Hidden by opacity as well as transform: translating an empty pill offscreen
     left it faintly visible near the fold. */
  opacity: 0;
  pointer-events: none;
  transition: translate .28s cubic-bezier(.2, .9, .3, 1), opacity .2s;
}
#toast.is-visible { translate: -50% 0; opacity: 1; }

/* ------------------------------------------------- sticky mobile action */
.sticky-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  display: flex;
  gap: 9px;
  padding: 10px var(--rail) calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 45, 24, .93);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--cream-18);
}
.sticky-cta .btn { padding: 13px 12px; font-size: 12px; }

/* ------------------------------------------------------------ breakpoints */
@media (min-width: 700px) {
  .actions { grid-template-columns: 1fr; }
  .how__list { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1000px) {
  /* Set the deck beside the wordmark; stacked, it left half the fold empty. */
  .hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0 clamp(30px, 5vw, 72px);
    align-items: end;
  }
  .hero__eyebrow { grid-column: 1 / -1; }
  .lockup { grid-column: 1; margin-bottom: 0; }
  .hero__deck { grid-column: 2; padding-bottom: 10px; font-size: 17px; }
  .hero__meta { grid-column: 1 / -1; }

  .studio { grid-template-columns: minmax(0, 390px) minmax(0, 1fr); align-items: start; }
  .stage { position: sticky; top: 22px; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: clamp(22px, 4vw, 40px); }
  #toast { bottom: 26px; }
}

/* ------------------------------------------------------- entrance motion */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise .7s cubic-bezier(.2, .8, .3, 1) both;
  }
  .reveal:nth-child(1) { animation-delay: .04s; }
  .reveal:nth-child(2) { animation-delay: .12s; }
  .reveal:nth-child(3) { animation-delay: .2s; }
  @keyframes rise {
    from { opacity: 0; translate: 0 14px; }
    to   { opacity: 1; translate: 0 0; }
  }
}

/* --------------------------------------------------------- 404 additions */
.notfound {
  display: grid;
  place-items: center;
  min-height: 100vh;
  text-align: center;
}
.notfound__code {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(96px, 30vw, 300px);
  line-height: .8;
  color: var(--yellow);
}
.notfound__body { max-width: 46ch; margin-inline: auto; }
.notfound .btn { display: inline-flex; width: auto; margin-top: 22px; }
/* Kept as a class, not a style attribute, so the CSP needs no 'unsafe-inline'. */
.notfound__links { margin-top: 22px; }
