/* ==========================================================================
   Comett Energy — Design System
   Gold-on-dark, editorial layout, scroll-driven motion
   ========================================================================== */

/* --- 1. Tokens ---------------------------------------------------------- */

:root {
  /* Brand */
  --gold:          #daa520;
  --gold-bright:   #f0c14b;
  --gold-deep:     #a67c13;

  /* Surfaces */
  --bg:            #0a0a0a;
  --bg-raised:     #111111;
  --bg-card:       #141414;
  --bg-elevated:   #1a1a1a;

  /* Ink */
  --ink:           #f5f2ea;
  --ink-muted:     #a8a49c;
  --ink-faint:     #6b6862;

  /* Lines */
  --line:          rgba(245, 242, 234, 0.10);
  --line-gold:     rgba(218, 165, 32, 0.28);

  /* Type */
  --font-display: 'Instrument Serif', 'Times New Roman', Times, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Rhythm */
  --gutter:        clamp(1.25rem, 5vw, 5rem);
  --measure:       1440px;
  --section-y:     clamp(5rem, 12vh, 9.5rem);

  /* Motion */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:   cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- 2. Reset ----------------------------------------------------------- */

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

* { margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--gold); color: #0a0a0a; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* --- 3. Layout primitives ---------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

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

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem); }

/* --- 4. Type ------------------------------------------------------------ */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.display--xl { font-size: clamp(2.75rem, 8.5vw, 7.5rem); }
.display--lg { font-size: clamp(2.25rem, 6vw, 5rem); }
.display--md { font-size: clamp(1.85rem, 4vw, 3.25rem); }

.display em {
  font-style: italic;
  color: var(--gold);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.eyebrow::before {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.eyebrow--plain::before { display: none; }

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--ink-muted);
  max-width: 56ch;
}

.body-text { color: var(--ink-muted); max-width: 64ch; }
.body-text + .body-text { margin-top: 1.15em; }

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: 1.5rem; }
.section-head .lede { margin-top: 1.5rem; }

/* --- 5. Scroll progress bar -------------------------------------------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: transparent;
  z-index: 200;
  pointer-events: none;
}

.progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  transition: width 0.1s linear;
}

/* --- 6. Section counter dots ------------------------------------------- */

.counter {
  position: fixed;
  top: 50%;
  left: clamp(0.75rem, 2vw, 1.75rem);
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  mix-blend-mode: difference;
}

.counter__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.counter__dot.is-active {
  background: #fff;
  transform: scale(1.5);
}

/* --- 7. Navigation ------------------------------------------------------ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 150;
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease), border-color 0.45s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

/* Official Comett Energy logo lockup */
.brand__logo {
  height: 38px;
  width: auto;
  display: block;
  transition: opacity 0.35s var(--ease);
}

.brand:hover .brand__logo { opacity: 0.82; }

.footer .brand__logo { height: 44px; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.85rem);
}

.nav__link {
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: var(--ink-muted);
  padding-block: 0.35rem;
  transition: color 0.3s var(--ease);
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-current { color: var(--ink); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}

.nav__toggle span:nth-child(1) { top: 17px; }
.nav__toggle span:nth-child(2) { top: 24px; }
.nav__toggle.is-open span:nth-child(1) { transform: translateX(-50%) translateY(3.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { transform: translateX(-50%) translateY(-3.5px) rotate(-45deg); }

/* --- 8. Buttons --------------------------------------------------------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-bright);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}

.btn:hover::before { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost::before { background: var(--gold); }
.btn--ghost:hover { color: #0a0a0a; border-color: var(--gold); }

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  color: var(--gold);
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 0.25rem;
  transition: border-color 0.35s var(--ease), gap 0.35s var(--ease);
}

.link-arrow:hover { border-bottom-color: var(--gold); gap: 0.9rem; }

/* --- 9. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: clamp(3rem, 8vh, 6rem);
  padding-top: 120px;
}

.hero__media { position: absolute; inset: 0; z-index: 0; }

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.28) 32%, rgba(10,10,10,0.72) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.15) 65%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.16;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.hero__content { position: relative; z-index: 3; width: 100%; }

.hero__title { margin-block: 1.75rem 1.5rem; max-width: 16ch; }

.hero__lede { max-width: 46ch; margin-bottom: 2.5rem; color: rgba(245,242,234,0.78); }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
  margin-top: clamp(3rem, 8vh, 5.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 242, 234, 0.14);
}

.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(2rem, 5vw, 4rem); }

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  color: var(--gold);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.65rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.scroll-cue__line {
  display: block;
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: cue 2.2s var(--ease-in-out) infinite;
  transform-origin: top;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.35); opacity: 0.5; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* --- 10. Page header (inner pages) ------------------------------------- */

.page-head {
  position: relative;
  padding-top: clamp(9rem, 18vh, 13rem);
  padding-bottom: clamp(3.5rem, 9vh, 6rem);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-head::after {
  content: '';
  position: absolute;
  top: -35%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(218,165,32,0.13) 0%, transparent 68%);
  pointer-events: none;
}

.page-head__inner { position: relative; z-index: 1; }
.page-head .display { margin-top: 1.5rem; }
.page-head .lede { margin-top: 1.75rem; }

.crumb {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.crumb a:hover { color: var(--gold); }

/* --- 11. Numbered feature rows ----------------------------------------- */

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

.row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.5s var(--ease);
}

.row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.7s var(--ease);
}

.row:hover { background: rgba(255, 255, 255, 0.018); }
.row:hover::before { width: 100%; }

.row__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 0.5rem;
}

.row__title {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.row__body { color: var(--ink-muted); font-size: 0.9375rem; }

/* --- 12. Cards ---------------------------------------------------------- */

.card {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease);
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(218,165,32,0.08), transparent 42%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.card:hover {
  border-color: var(--line-gold);
  transform: translateY(-4px);
  background: var(--bg-elevated);
}

.card:hover::after { opacity: 1; }

.card__num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  display: block;
  margin-bottom: 1.5rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.625rem);
  line-height: 1.2;
  margin-bottom: 0.875rem;
}

.card__body { color: var(--ink-muted); font-size: 0.9375rem; }

/* --- 13. Marquee -------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 1.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.marquee__item::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.5;
}

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

/* --- 14. Split media section ------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.split__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) brightness(0.85);
  transition: filter 0.8s var(--ease), transform 1.2s var(--ease);
}

.split:hover .split__media img { filter: grayscale(0.15) brightness(0.95); transform: scale(1.03); }

.split--flip .split__media { order: 2; }

/* --- 15. Stat band ------------------------------------------------------ */

.band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(1200px circle at 50% 120%, rgba(218,165,32,0.07), transparent 60%),
    var(--bg-raised);
}

.band__grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.band__cell {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 2rem);
  border-left: 1px solid var(--line);
  text-align: center;
}

.band__cell:first-child { border-left: 0; }

.band__num {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  line-height: 1;
  color: var(--gold);
}

.band__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 0.85rem;
}

/* --- 16. Accordion ------------------------------------------------------ */

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

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

.acc__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 3.5rem 1fr 2rem;
  align-items: center;
  gap: 1rem;
  padding-block: clamp(1.35rem, 2.6vw, 1.85rem);
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.35s var(--ease);
}

.acc__btn:hover { color: var(--gold); }

.acc__idx { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); }

.acc__label {
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 2vw, 1.625rem);
  line-height: 1.25;
}

.acc__sign { position: relative; width: 14px; height: 14px; justify-self: end; }

.acc__sign::before,
.acc__sign::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: var(--gold);
  transition: transform 0.45s var(--ease);
}

.acc__sign::after { transform: rotate(90deg); }
.acc__item.is-open .acc__sign::after { transform: rotate(0deg); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease);
}

.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }

.acc__inner { overflow: hidden; }

.acc__inner > div {
  padding: 0 2rem 1.85rem 3.5rem;
  color: var(--ink-muted);
  max-width: 72ch;
}

/* --- 17. Forms ---------------------------------------------------------- */

.form { display: grid; gap: 1.5rem; }

.field { position: relative; }

.field__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.7rem;
}

.field__label span { color: var(--gold); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.9375rem;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-elevated);
}

.field textarea { resize: vertical; min-height: 130px; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23daa520' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.15rem center;
  padding-right: 2.75rem;
}

.field select option { background: var(--bg-elevated); }

.form__note { font-size: 0.8125rem; color: var(--ink-faint); }
.form__note a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.form__note a:hover { color: var(--gold); }

.form-status {
  padding: 0.9rem 1.15rem;
  border: 1px solid var(--line-gold);
  border-radius: 3px;
  background: rgba(218, 165, 32, 0.07);
  font-size: 0.875rem;
  color: var(--gold-bright);
}

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

/* --- 18. Contact panel -------------------------------------------------- */

.contact-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  display: grid;
  gap: 2.25rem;
  align-content: start;
}

.contact-block__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.contact-block p, .contact-block a { color: var(--ink-muted); font-size: 0.9375rem; }
.contact-block a:hover { color: var(--gold); }

.hours { display: grid; gap: 0.4rem; }
.hours__row { display: flex; justify-content: space-between; gap: 1.5rem; font-size: 0.9375rem; color: var(--ink-muted); }
.hours__row span:last-child { color: var(--ink); }

/* --- 19. CTA ------------------------------------------------------------ */

.cta {
  position: relative;
  text-align: center;
  padding-block: clamp(5.5rem, 14vh, 10rem);
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  bottom: -55%;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 90vw;
  max-height: 900px;
  background: radial-gradient(ellipse at center, rgba(218,165,32,0.15) 0%, transparent 62%);
  pointer-events: none;
}

.cta__inner { position: relative; z-index: 1; }
.cta .display { margin-block: 1.75rem; max-width: 18ch; margin-inline: auto; }
.cta .lede { margin-inline: auto; margin-bottom: 2.5rem; }
.cta .btn-row { justify-content: center; }

/* --- 20. Footer --------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  padding-top: clamp(3.5rem, 7vw, 5rem);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.footer__blurb { color: var(--ink-muted); font-size: 0.9375rem; max-width: 38ch; margin-top: 1.25rem; }

.footer__h {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.35rem;
}

.footer__list { display: grid; gap: 0.75rem; }
.footer__list a { font-size: 0.9375rem; color: var(--ink-muted); transition: color 0.3s var(--ease); }
.footer__list a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__legal a:hover { color: var(--gold); }

/* --- 21. Cookie bar ----------------------------------------------------- */

.cookie {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1.25rem;
  z-index: 180;
  max-width: 560px;
  padding: 1.35rem 1.5rem;
  background: rgba(20, 20, 20, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  gap: 1rem;
  transform: translateY(140%);
  transition: transform 0.65s var(--ease);
}

.cookie.is-shown { transform: translateY(0); }
.cookie[hidden] { display: none; }
.cookie p { font-size: 0.8125rem; color: var(--ink-muted); }
.cookie .btn { padding: 0.7rem 1.4rem; font-size: 0.8125rem; }

/* --- 22. Reveal animation ---------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

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

.reveal-mask { display: block; overflow: hidden; }
.reveal-mask > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.is-in .reveal-mask > span,
.reveal-mask.is-in > span { transform: none; }

/* --- 23. Responsive ----------------------------------------------------- */

@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--split { grid-template-columns: 1fr; }
  .band__grid { grid-template-columns: repeat(2, 1fr); }
  .band__cell:nth-child(3) { border-left: 0; }
  .band__cell:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .counter { display: none; }
}

/* Six nav items need a little more room before the mobile breakpoint */
@media (max-width: 1080px) and (min-width: 861px) {
  .nav__link { font-size: 0.8125rem; }
  .nav__links .btn { padding: 0.8rem 1.3rem; font-size: 0.8125rem; }
  .brand__logo { height: 32px; }
}

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .brand__logo { height: 32px; }

  .nav__links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem var(--gutter) 2.5rem;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.55s var(--ease);
  }

  .nav__links.is-open { clip-path: inset(0 0 0 0); }

  .nav__links li { width: 100%; border-bottom: 1px solid var(--line); }
  .nav__links li:last-child { border-bottom: 0; padding-top: 1.5rem; }
  .nav__link { display: block; padding-block: 1.1rem; font-size: 1.0625rem; }
  .nav__links .btn { width: 100%; }

  .row { grid-template-columns: 3rem 1fr; }
  .row__body { grid-column: 2; }

  .split { grid-template-columns: 1fr; }
  .split--flip .split__media { order: 0; }
  .split__media { aspect-ratio: 3 / 2; }

  .hero__foot { flex-direction: column; align-items: flex-start; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .band__grid { grid-template-columns: 1fr; }
  .band__cell { border-left: 0; border-top: 1px solid var(--line); text-align: left; }
  .band__cell:first-child { border-top: 0; }
  .footer__top { grid-template-columns: 1fr; }
  .acc__btn { grid-template-columns: 2.25rem 1fr 1.5rem; }
  .acc__inner > div { padding-left: 2.25rem; padding-right: 0; }
  .cookie { left: 1rem; right: 1rem; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .hero__stats { gap: 1.75rem 2.5rem; }
}

/* --- 24. Accessibility -------------------------------------------------- */

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 0.85rem 1.5rem;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.875rem;
}

.skip:focus { left: 1rem; top: 1rem; }

.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;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-mask > span { transform: none; }
}
