@import url("../fonts/fonts.css");

/* ============================================================
   Stockton Sports Performance — mockup design system
   ============================================================ */

:root {
  /* colour */
  --ink:        #0E0F12;
  --ink-2:      #15171C;
  --ink-3:      #1D2027;
  --line:       #2A2E37;
  --bone:       #F5F2EC;
  --bone-dim:   #C9C6BF;
  --muted:      #8D95A2;
  --accent:     #2F86D6;
  --accent-hi:  #4FA1EA;
  --accent-dim: #1E5C97;
  --plum:       #6E4BD8;

  /* type */
  --display: "Anton", "Haettenschweiler", "Arial Narrow", sans-serif;
  --body:    "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* metrics */
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 3px;
  --header-h: 86px;

  /* motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* height:auto keeps the width/height attributes as an aspect-ratio hint
   (so the page doesn't jump while images load) without stretching them */
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}

/* subtle film grain so flat panels don't read as "generated" */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .035;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type scale ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
/* d1-d3 are size modifiers here and reveal-delay markers further down, so they
   must be scoped — a bare .d2 on a wrapper div leaks 4.4rem to every child */
.display.d1 { font-size: clamp(3rem, 9.5vw, 7.4rem); }
.display.d2 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.display.d3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--bone-dim);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--accent);
  flex: none;
}
.eyebrow--dark { color: var(--accent-dim); }
.eyebrow--dark::before { background: var(--accent-dim); }

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(52px, 7vw, 88px); }
.section--bone { background: var(--bone); color: var(--ink); }
.section--raised { background: var(--ink-2); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head > p { margin: 0; }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; align-items: start; } }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section--bone .rule { background: rgba(14, 15, 18, .14); }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .95em 1.7em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--accent-hi); border-color: var(--accent-hi); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arw { transition: transform .25s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border-color: var(--line);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .06); border-color: var(--bone-dim); color: var(--bone); transform: translateY(-2px); }

.section--bone .btn--ghost { --btn-fg: var(--ink); border-color: rgba(14, 15, 18, .22); }
.section--bone .btn--ghost:hover { background: rgba(14, 15, 18, .05); border-color: var(--ink); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* text link with underline sweep */
.tlink {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: .9rem;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-hi);
  padding-bottom: 4px;
  background-image: linear-gradient(var(--accent-hi), var(--accent-hi));
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .35s var(--ease);
}
.tlink:hover { background-size: 100% 1px; }
.section--bone .tlink { color: var(--accent-dim); background-image: linear-gradient(var(--accent-dim), var(--accent-dim)); }

/* ============================================================
   header
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: height .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  height: 64px;
  background: rgba(14, 15, 18, .88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; transition: width .3s var(--ease), height .3s var(--ease); }
.is-stuck .brand img { width: 34px; height: 34px; }
.brand-txt { line-height: 1.05; }
.brand-txt b {
  display: block; font-family: var(--display); font-size: 1.15rem;
  letter-spacing: .02em; text-transform: uppercase;
}
.brand-txt span {
  display: block; font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a {
  font-size: .84rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--bone-dim);
  position: relative; padding: 6px 0;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
/* the in-nav CTA exists only for the mobile drawer */
@media (min-width: 901px) { .nav > .btn { display: none; } }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--bone); }

.nav-cta { flex: none; }
@media (max-width: 1080px) { .nav-cta { display: none; } }

.burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; padding: 0;
  place-items: center;
}
.burger span {
  display: block; width: 20px; height: 1.5px; background: var(--bone);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center;
    gap: 8px;
    background: var(--ink);
    padding: 0 var(--gutter);
    transform: translateY(-100%);
    transition: transform .45s var(--ease);
    z-index: -1;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { font-size: 1.6rem; font-family: var(--display); letter-spacing: .02em; padding: 10px 0; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 18px; font-size: .9rem; font-family: var(--body); }
}
body.nav-open { overflow: hidden; }

/* ============================================================
   hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(40px, 8vw, 90px));
  padding-bottom: clamp(60px, 9vw, 120px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: -20%; right: -10%;
  width: 60vw; height: 60vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(47, 134, 214, .16), transparent 62%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .hl { color: var(--accent-hi); }
.hero .lede { max-width: 52ch; margin-bottom: 2rem; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 48px);
  margin-top: clamp(34px, 5vw, 54px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div b {
  display: block; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1; color: var(--bone);
}
.hero-stats div span {
  display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-top: 8px;
}

/* offset photo pair */
.hero-art { position: relative; }
.hero-art figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .a {
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.hero-art .b {
  position: absolute; right: -6%; bottom: -12%;
  width: 46%; aspect-ratio: 3 / 4;
  border: 6px solid var(--ink);
  box-shadow: 0 24px 50px -22px rgba(0, 0, 0, .9);
}
.hero-badge {
  position: absolute; left: -14px; top: 26px;
  writing-mode: vertical-rl;
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted);
  padding: 12px 0;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-art .b { right: -4%; bottom: -8%; }
  .hero-badge { display: none; }
}

/* marquee strip under hero */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: flex; gap: 0; width: max-content;
  animation: slide 38s linear infinite;
}
.ticker-track > span {
  display: inline-flex; align-items: center; gap: 46px;
  padding-right: 46px;
  font-family: var(--display); font-size: 1.05rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.ticker-track i { color: var(--accent); font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ============================================================
   mission / split blocks
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.figure-stack { position: relative; }
.figure-stack figure { margin: 0; overflow: hidden; border-radius: var(--radius); }
.figure-stack img { width: 100%; height: 100%; object-fit: cover; }
.figure-stack .tag {
  position: absolute; left: 0; bottom: 0;
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding: 10px 16px;
}

.pillars { display: grid; gap: 0; margin-top: 2.2rem; }
.pillars li {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px;
  padding: 20px 0;
  border-top: 1px solid rgba(14, 15, 18, .14);
}
.pillars li:last-child { border-bottom: 1px solid rgba(14, 15, 18, .14); }
.pillars .n {
  font-family: var(--display); font-size: 1.05rem; color: var(--accent-dim);
  line-height: 1.4;
}
.pillars b { display: block; font-weight: 700; font-size: 1.05rem; margin-bottom: 2px; }
.pillars p { margin: 0; font-size: .96rem; color: #4A505C; }

/* ============================================================
   services
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--ink);
  padding: clamp(26px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: background .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.card:hover { background: var(--ink-2); }
.card:hover::before { transform: scaleX(1); }
.card .idx {
  font-size: .7rem; letter-spacing: .2em; color: var(--muted);
  margin-bottom: 6px;
}
.card h3 { font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; line-height: 1.05; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
.card .tlink { margin-top: auto; padding-top: 14px; }

/* ============================================================
   coach band
   ============================================================ */
.band {
  position: relative;
  min-height: 62vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.band > img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.35) contrast(1.05);
}
.band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(14, 15, 18, .5) 0%, rgba(14, 15, 18, .72) 45%, rgba(14, 15, 18, .96) 100%);
}
.band .wrap { padding-block: clamp(44px, 7vw, 84px); }
.band-inner { max-width: 640px; }
.band blockquote {
  margin: 0 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.08; text-transform: uppercase;
}
.band cite {
  font-style: normal; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}

/* ============================================================
   mosaic / gallery
   ============================================================ */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 168px;
  /* dense keeps the grid gap-free when the filters hide tiles */
  grid-auto-flow: row dense;
  gap: 12px;
}
.mosaic figure {
  margin: 0; position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--ink-3);
  cursor: zoom-in;
}
.mosaic img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease), filter .4s var(--ease);
}
.mosaic figure:hover img { transform: scale(1.05); }
.mosaic figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(14, 15, 18, .9));
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bone);
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mosaic figure:hover figcaption { opacity: 1; transform: translateY(0); }
.t2 { grid-column: span 2; }
.r2 { grid-row: span 2; }
@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}
@media (max-width: 520px) {
  .mosaic { grid-auto-rows: 120px; gap: 8px; }
}

/* gallery filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: .5em 1.2em; cursor: pointer;
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  transition: all .25s var(--ease);
}
.filters button:hover { color: var(--bone); border-color: var(--bone-dim); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.mosaic figure[hidden] { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: rgba(8, 9, 11, .94);
  backdrop-filter: blur(6px);
  padding: clamp(16px, 4vw, 48px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(100%, 1100px); max-height: 82vh;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 40px 90px -40px #000;
}
.lightbox figcaption {
  margin-top: 16px; text-align: center;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--line);
  border-radius: 50%; cursor: pointer; font-size: 1.3rem;
  transition: background .25s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .16); }
.lb-prev { left: clamp(10px, 3vw, 34px); }
.lb-next { right: clamp(10px, 3vw, 34px); }
.lb-close { top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); transform: none; }

/* ============================================================
   testimonials
   ============================================================ */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.quote:hover { transform: translateY(-4px); border-color: var(--accent-dim); }
.quote .stars { color: var(--accent-hi); letter-spacing: .18em; font-size: .82rem; margin-bottom: 14px; }
.quote p { font-size: 1rem; color: var(--bone-dim); }
.quote footer {
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

/* ============================================================
   newsletter + CTA
   ============================================================ */
.newsletter {
  background: var(--accent-dim);
  background-image: linear-gradient(120deg, var(--accent-dim), #17456f 70%);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; right: -60px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .05);
}
.newsletter h2 { margin-bottom: .5rem; }
.newsletter p { color: rgba(255, 255, 255, .78); margin: 0; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }

.subscribe { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.subscribe input {
  flex: 1 1 220px; min-width: 0;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  padding: .95em 1.1em;
  color: #fff;
}
.subscribe input::placeholder { color: rgba(255, 255, 255, .6); }
.subscribe input:focus { background: rgba(255, 255, 255, .16); border-color: #fff; outline: none; }
.subscribe .btn { --btn-bg: var(--bone); --btn-fg: var(--ink); }
.subscribe .btn:hover { --btn-bg: #fff; }
.form-note { font-size: .82rem; color: rgba(255, 255, 255, .62); margin: 12px 0 0; }

/* ============================================================
   forms page
   ============================================================ */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: .9em 1.4em; cursor: pointer;
  font-weight: 600; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.tabs button:hover { color: var(--bone); }
.tabs button[aria-selected="true"] { color: var(--bone); border-bottom-color: var(--accent); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.field label .req { color: var(--accent-hi); }
.field input, .field select, .field textarea {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85em 1em;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); background: var(--ink-3); outline: none;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.check {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8em 1em; cursor: pointer; font-size: .94rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.check:hover { border-color: var(--bone-dim); }
.check input { accent-color: var(--accent); width: 17px; height: 17px; }
.check:has(input:checked) { border-color: var(--accent); background: rgba(47, 134, 214, .1); }

.form-panel[hidden] { display: none; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }

.aside-card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.aside-card h3 { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; margin-bottom: 14px; }
.aside-card dl { margin: 0; display: grid; gap: 14px; }
.aside-card dt { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.aside-card dd { margin: 3px 0 0; font-size: 1rem; }

/* demo notice — makes clear what is / isn't wired up */
.demo-note {
  display: flex; align-items: flex-start; gap: 12px;
  border: 1px dashed var(--accent-dim);
  background: rgba(47, 134, 214, .08);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem; color: var(--bone-dim);
  margin-bottom: 28px;
}
.demo-note b { color: var(--accent-hi); }
.section--bone .demo-note { color: #4A505C; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 140%);
  z-index: 300;
  display: flex; align-items: center; gap: 12px;
  background: var(--ink-3); border: 1px solid var(--accent-dim);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 22px;
  box-shadow: 0 24px 50px -24px #000;
  font-size: .92rem;
  transition: transform .45s var(--ease);
  max-width: calc(100vw - 32px);
}
.toast.is-on { transform: translate(-50%, 0); }

/* ============================================================
   book page
   ============================================================ */
.book-hero {
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 80px));
  padding-bottom: clamp(50px, 7vw, 90px);
  position: relative; overflow: hidden;
}
.book-hero::before {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 900px; height: 900px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(110, 75, 216, .16), transparent 60%);
  pointer-events: none;
}
.book-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
@media (max-width: 900px) { .book-hero .wrap { grid-template-columns: 1fr; } }
.book-cover { border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95); background: #fff; }
.meta-list { display: grid; gap: 0; margin: 2rem 0; }
.meta-list div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.meta-list div:last-child { border-bottom: 1px solid var(--line); }
.meta-list dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); align-self: center; }
.meta-list dd { margin: 0; }

.retailers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.retailer {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1em 1.2em;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease);
}
.retailer:hover { border-color: var(--accent); background: var(--ink-2); transform: translateY(-2px); }
.retailer b { font-weight: 600; }
.retailer span { font-size: .78rem; color: var(--muted); }

.video-frame {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #000;
  max-width: 940px; margin-inline: auto;
}
/* lock to 16:9 so the poster (3:2) doesn't letterbox the player */
.video-frame video { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; display: block; }

/* ============================================================
   news / blog
   ============================================================ */
.post-feature {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--ink-2);
}
.post-feature img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.post-feature .body { padding: clamp(26px, 4vw, 46px); }
@media (max-width: 860px) { .post-feature { grid-template-columns: 1fr; } .post-feature img { min-height: 220px; } }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(18px, 2.5vw, 30px); }
.post {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.post:hover { transform: translateY(-5px); border-color: var(--accent-dim); }
.post .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post:hover .thumb img { transform: scale(1.06); }
.post .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.post p { font-size: .94rem; color: var(--muted); }
.post .tlink { margin-top: auto; }

.post-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 12px;
}
.pill {
  background: rgba(47, 134, 214, .14); color: var(--accent-hi);
  padding: .35em .8em; border-radius: 999px; font-weight: 600;
}

/* ============================================================
   page hero (interior pages)
   ============================================================ */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(46px, 7vw, 86px));
  padding-bottom: clamp(34px, 5vw, 60px);
  position: relative;
}
.page-hero::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 100%;
  background: radial-gradient(80% 120% at 15% 0%, rgba(47, 134, 214, .14), transparent 60%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { margin-bottom: 1.1rem; }
.page-hero .lede { max-width: 62ch; }

.crumbs { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--bone); }

/* ============================================================
   footer
   ============================================================ */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-top: clamp(52px, 7vw, 84px); }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 52px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-grid li + li { margin-top: 9px; }
.foot-grid a { color: var(--bone-dim); font-size: .96rem; transition: color .2s var(--ease); }
.foot-grid a:hover { color: var(--accent-hi); }
.foot-brand p { color: var(--muted); font-size: .95rem; max-width: 34ch; }
.foot-bottom {
  border-top: 1px solid var(--line);
  padding-block: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .8rem; color: var(--muted);
}

/* ============================================================
   scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in.d1 { transition-delay: .08s; }
.reveal.in.d2 { transition-delay: .16s; }
.reveal.in.d3 { transition-delay: .24s; }
.reveal.in.d4 { transition-delay: .32s; }

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

/* utility */
.mt0 { margin-top: 0; }
.mb0 { margin-bottom: 0; }
.center { text-align: center; }
.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: 10px; top: -60px; z-index: 500;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip:focus { top: 10px; }
