/* ==========================================================================
   Adventure Channel Canada — adventurechannelcanada.ca
   Design system. Dark, cinematic, trail-field-guide.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Surfaces — deep boreal near-black */
  --ink:        #090c0b;
  --surface:    #101614;
  --surface-2:  #17201d;
  --surface-3:  #1f2b27;
  --line:       rgba(255, 255, 255, .085);
  --line-strong:rgba(255, 255, 255, .16);

  /* Text */
  --snow:       #f4f7f5;
  --fog:        #a3b2ab;
  --fog-dim:    #6d7d76;

  /* Accents
     --volt is the channel's own brand colour, sampled from the ACC logo.
     It is very light, so anything sitting ON it needs dark ink, never white —
     that's what --volt-ink is for. */
  --volt:       #d3fd01;   /* brand neon lime — primary action */
  --volt-lo:    #9dbe00;   /* darker lime, for gradients */
  --volt-ink:   #0a0f0b;   /* text/icons placed on top of --volt */
  --volt-glow:  rgba(211, 253, 1, .28);
  --water:      #4d9fc4;   /* Sea-Doo / water content */
  --moss:       #7fa06a;
  --maple:      #d8232a;   /* reserved for error states */

  /* Type */
  --display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Metrics */
  --wrap: 1240px;
  --wrap-narrow: 820px;
  --gut: clamp(20px, 5vw, 56px);
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------------------------------------------------------------------------
   Tone scopes. The channel splits 50/50 between trail riding and water, so the
   design carries two accents rather than one. Drop .tone-water on any section
   and every accent inside it — eyebrows, buttons, rules, step numbers, stat
   figures — shifts from brand lime to water blue. .tone-trail is the default
   and is only needed to switch back inside a water-toned block.
   --------------------------------------------------------------------------- */
.tone-water {
  --volt: var(--water);
  --volt-lo: #2f6f8c;
  --volt-ink: #04141c;
  --volt-glow: rgba(77, 159, 196, .34);
}
.tone-trail {
  --volt: #d3fd01;
  --volt-lo: #9dbe00;
  --volt-ink: #0a0f0b;
  --volt-glow: rgba(211, 253, 1, .28);
}

/* Category accent colours, used by chips + card rails.
   These are literals, not var(--volt) — an ATV card dropped inside a
   water-toned section must still read as an ATV card. */
.cat-atv     { --cat: #d3fd01; }
.cat-seadoo  { --cat: var(--water); }
.cat-boating { --cat: #5ba7a0; }
.cat-howto   { --cat: #ff8a3d; }
.cat-review  { --cat: #b98ad6; }
.cat-bike    { --cat: #8f9bb3; }
.cat-travel  { --cat: #e0725f; }
.cat-other   { --cat: var(--fog-dim); }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  background: var(--ink);
  color: var(--fog);
  font: 400 16.5px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

::selection { background: var(--volt); color: var(--volt-ink); }

/* --- Textures ------------------------------------------------------------- */
/* Fine film grain over the whole page — gives the flat dark a bit of tooth. */
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='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Topographic contour tile — the recurring "map" motif. */
.topo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.1'%3E%3Cpath d='M-30 34 Q 70 -6 150 30 T 330 34'/%3E%3Cpath d='M-30 72 Q 70 32 150 68 T 330 72'/%3E%3Cpath d='M-30 116 Q 60 84 150 112 T 330 116'/%3E%3Cpath d='M-30 158 Q 80 126 150 156 T 330 158'/%3E%3Cpath d='M-30 202 Q 60 168 150 198 T 330 202'/%3E%3Cpath d='M-30 244 Q 75 210 150 242 T 330 244'/%3E%3Cpath d='M-30 286 Q 65 252 150 282 T 330 286'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* --- Layout --------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap-narrow { max-width: var(--wrap-narrow); }

section { position: relative; }
.section { padding-block: clamp(56px, 9vw, 110px); }
.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.section-line { border-top: 1px solid var(--line); }

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 800;
  color: var(--snow);
  line-height: .96;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1, .h1 { font-size: clamp(2.9rem, 8.2vw, 6.2rem); }
h2, .h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3, .h3 { font-size: clamp(1.4rem, 2.6vw, 1.95rem); line-height: 1.02; }
h4, .h4 { font-size: 1.15rem; line-height: 1.15; }

p { text-wrap: pretty; }
.lede {
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  line-height: 1.6;
  color: var(--fog);
  max-width: 62ch;
}
.muted { color: var(--fog-dim); }
strong, b { color: var(--snow); font-weight: 600; }

/* Small caps label — the "field notes" voice used above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 .72rem/1 var(--body);
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: none;
}
.eyebrow-fog { color: var(--fog-dim); }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p { margin-top: 16px; }

.head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--volt);
  --btn-fg: var(--volt-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 .82rem/1 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px var(--volt-glow);
}
.btn:active { transform: translateY(0); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--snow);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  border-color: var(--snow);
  background: rgba(255, 255, 255, .06);
  box-shadow: none;
}

/* YouTube's legacy red — brand-recognisable and clears AA with white text,
   which #ff0000 does not (3.96:1). */
.btn-yt { --btn-bg: #e62117; --btn-fg: #fff; }
.btn-yt:hover { box-shadow: 0 12px 28px -10px rgba(230, 33, 23, .45); }

.btn-lg { padding: 18px 34px; font-size: .88rem; }
.btn-sm { padding: 11px 18px; font-size: .74rem; }
.btn-block { width: 100%; }

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

/* Text link with animated underline */
.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--snow);
  font: 600 .82rem/1 var(--body);
  letter-spacing: .1em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: color .18s var(--ease), border-color .18s var(--ease), gap .18s var(--ease);
}
.link:hover { color: var(--volt); border-color: var(--volt); gap: 13px; }
.link svg { flex: none; }

/* --- Header / nav --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 12, 11, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-stuck {
  background: rgba(9, 12, 11, .93);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}
/* The ACC badge is already a circle with its own ring, on a transparent
   background — no border or plate behind it. */
.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.16rem;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--snow);
  white-space: nowrap;
}
.brand-sub {
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-top: 4px;
  white-space: nowrap;
}
.brand-sub .leaf { color: var(--volt); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 9px 13px;
  font: 600 .78rem/1 var(--body);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--fog);
  border-radius: var(--radius);
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav-links a:hover { color: var(--snow); background: rgba(255, 255, 255, .05); }
.nav-links a[aria-current="page"] { color: var(--snow); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--volt);
}

.nav-cta { margin-left: 8px; }

/* Mobile drawer toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--snow);
  position: relative;
  transition: background-color .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--snow);
  transition: transform .24s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gut) 28px;
    background: rgba(9, 12, 11, .98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a {
    padding: 15px 4px;
    font-size: .95rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a[aria-current="page"]::after { left: 4px; right: auto; width: 22px; bottom: 8px; }
  .nav-cta { display: none; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(880px, 94svh);
  padding-top: 120px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.06);
  animation: heroDrift 26s var(--ease) infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(0, -1.5%, 0); }
}
/* Two-panel hero: trail on the left, water on the right — the channel is a
   50/50 split and the hero should say so before a word is read. */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.hero-half {
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-half + .hero-half::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, .18);
  z-index: 1;
}
@media (max-width: 780px) {
  /* On a phone the right panel sits behind the copy anyway — keep the
     water shot as a top band so both disciplines still read. */
  .hero-split { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
  .hero-half + .hero-half::before { width: auto; left: 0; right: 0; bottom: auto; height: 1px; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Two layers: a bottom-up scrim so the stat strip and copy always sit on
     ink, and a left-weighted wash. The right stop stays fairly dark on
     purpose — with a two-image hero, an untreated right half pulls the eye
     away from the headline. */
  background:
    linear-gradient(to top, var(--ink) 2%, rgba(9, 12, 11, .82) 30%, rgba(9, 12, 11, .44) 64%, rgba(9, 12, 11, .66) 100%),
    linear-gradient(to right, rgba(9, 12, 11, .88) 0%, rgba(9, 12, 11, .6) 46%, rgba(9, 12, 11, .52) 100%);
}

.hero-inner { padding-bottom: clamp(40px, 6vw, 76px); width: 100%; }
.hero h1 { margin-bottom: 24px; max-width: 15ch; }
.hero h1 em {
  font-style: normal;
  color: var(--volt);
  display: block;
}
.hero .lede { max-width: 52ch; margin-bottom: 34px; font-size: clamp(1.05rem, 1.8vw, 1.22rem); }

/* Stat strip under the hero */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(40px, 5vw, 64px);
  background: var(--line);
  border-block: 1px solid var(--line);
}
.stat {
  background: rgba(9, 12, 11, .55);
  backdrop-filter: blur(8px);
  padding: 22px 20px;
}
.stat-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1;
  color: var(--snow);
  letter-spacing: -.01em;
}
.stat-n span { color: var(--volt); }
.stat-l {
  font-size: .68rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-top: 9px;
}
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* Compact page header for interior pages */
.page-head {
  position: relative;
  isolation: isolate;
  padding-block: clamp(64px, 11vw, 132px) clamp(40px, 6vw, 64px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-head .topo-layer {
  position: absolute;
  inset: -40% -10% auto;
  height: 200%;
  z-index: -1;
  opacity: .055;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
}
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: 22px; }

/* --- Video cards ---------------------------------------------------------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(20px, 2.4vw, 30px);
}
.video-grid-tight { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.vcard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .24s var(--ease), border-color .24s var(--ease), background-color .24s var(--ease);
}
.vcard:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-2);
}
.vcard:hover .vcard-thumb img { transform: scale(1.055); }
.vcard:hover .vcard-play { opacity: 1; transform: scale(1); }
.vcard:hover .vcard-title { color: var(--snow); }

.vcard-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-3);
  overflow: hidden;
}
.vcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.vcard-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 12, 11, .5), transparent 45%);
  pointer-events: none;
}

.vcard-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--volt);
  color: var(--volt-ink);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.82);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
  z-index: 2;
  box-shadow: 0 8px 26px -6px rgba(0, 0, 0, .7);
}
.vcard-play svg { margin-left: 3px; }

.vcard-dur {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  padding: 3px 7px;
  background: rgba(9, 12, 11, .88);
  border-radius: 3px;
  font: 600 .72rem/1.35 var(--body);
  font-variant-numeric: tabular-nums;
  color: var(--snow);
}

.vcard-ep {
  position: absolute;
  left: 9px;
  top: 9px;
  z-index: 2;
  padding: 4px 8px;
  background: rgba(9, 12, 11, .82);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font: 700 .66rem/1.3 var(--body);
  letter-spacing: .09em;
  color: var(--snow);
}

.vcard-body {
  padding: 17px 18px 19px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.vcard-title {
  font: 600 1.02rem/1.32 var(--body);
  color: #e6ece9;
  transition: color .2s var(--ease);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vcard-meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  color: var(--fog-dim);
  font-variant-numeric: tabular-nums;
}
.vcard-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; flex: none; }

/* Coloured category rail on the card top edge */
.vcard { position: relative; }
.vcard::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: var(--cat, var(--volt));
  z-index: 3;
  opacity: 0;
  transition: opacity .24s var(--ease);
}
.vcard:hover::before { opacity: 1; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid color-mix(in srgb, var(--cat, var(--volt)) 40%, transparent);
  border-radius: 100px;
  background: color-mix(in srgb, var(--cat, var(--volt)) 12%, transparent);
  color: var(--cat, var(--volt));
  font: 600 .66rem/1.4 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Featured card — the big "latest ride" block */
.feature {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-3);
}
.feature-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature:hover .feature-thumb img { transform: scale(1.04); }
.feature-thumb .vcard-play { width: 74px; height: 74px; opacity: .94; transform: scale(1); }
.feature:hover .feature-thumb .vcard-play { transform: scale(1.06); }
.feature-body {
  padding: clamp(26px, 3.2vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  border-left: 1px solid var(--line);
}
.feature-body h3 { text-transform: none; font-family: var(--body); font-weight: 700; line-height: 1.24; letter-spacing: -.01em; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature-body { border-left: 0; border-top: 1px solid var(--line); }
}

/* --- Dual-discipline panels ------------------------------------------------
   Two equal-weight cards — trail and water — used wherever the site needs to
   say "we do both" without ranking one above the other.
   --------------------------------------------------------------------------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 26px);
}
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

.duo-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(330px, 40vw, 460px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .26s var(--ease), border-color .26s var(--ease);
}
.duo-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.duo-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.duo-card:hover img { transform: scale(1.055); }
.duo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top,
    rgba(9, 12, 11, .96) 6%, rgba(9, 12, 11, .74) 38%,
    rgba(9, 12, 11, .3) 72%, rgba(9, 12, 11, .12) 100%);
}
.duo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--volt);
  z-index: 2;
}
.duo-body {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}
.duo-body h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.duo-body p { font-size: .95rem; max-width: 40ch; }
/* Flex column, not a block <small> inside a tight line-height: at this size a
   line-height under 1 lets the numeral overflow its line box and collide with
   the label underneath. */
.duo-n {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1;
  color: var(--volt);
}
.duo-n small {
  font-family: var(--body);
  font-weight: 600;
  font-size: .68rem;
  line-height: 1.4;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--fog-dim);
}
.duo-body .link { margin-top: 6px; align-self: flex-start; }

/* --- Filter bar ----------------------------------------------------------- */
.filters {
  position: sticky;
  top: 72px;
  z-index: 40;
  padding-block: 16px;
  background: rgba(9, 12, 11, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(28px, 4vw, 44px);
}
.filter-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.chip {
  padding: 9px 15px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--fog);
  font: 600 .74rem/1 var(--body);
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s var(--ease);
}
.chip:hover { color: var(--snow); border-color: var(--snow); }
.chip[aria-pressed="true"] {
  background: var(--cat, var(--volt));
  border-color: var(--cat, var(--volt));
  color: var(--volt-ink);
}
.chip .n {
  opacity: .6;
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}

.search {
  position: relative;
  flex: none;
  width: min(260px, 100%);
}
.search input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--snow);
  font-size: .88rem;
  transition: border-color .18s var(--ease);
}
.search input::placeholder { color: var(--fog-dim); }
.search input:focus { outline: none; border-color: var(--volt); }
.search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fog-dim);
  pointer-events: none;
}

.result-count {
  font-size: .8rem;
  color: var(--fog-dim);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.empty {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.empty h3 { margin-bottom: 10px; }

/* --- Trail cards ---------------------------------------------------------- */
.region { margin-bottom: clamp(44px, 6vw, 76px); }
.region-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.region-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.region-head .count {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--volt);
}
.region-head p { flex-basis: 100%; margin-top: 4px; font-size: .95rem; }

.trail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}
.trail {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cat, var(--volt));
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.trail:hover { transform: translateX(3px); background: var(--surface-2); }
.trail-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--surface-3); }
.trail-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.trail-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 12, 11, .45), transparent 50%);
  pointer-events: none;
}
.trail:hover .trail-thumb img { transform: scale(1.05); }
.trail:hover .vcard-play { opacity: 1; transform: scale(1); }
.trail:hover .trail-body h3 { color: var(--snow); }
.trail-body h3 { transition: color .2s var(--ease); }
.trail-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.trail-body h3 {
  font-family: var(--body);
  text-transform: none;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -.01em;
}
.trail-facts {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
}
.trail-fact { display: flex; gap: 10px; align-items: baseline; }
.trail-fact dt {
  flex: none;
  width: 74px;
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--fog-dim);
}
.trail-fact dd { color: var(--snow); font-weight: 500; margin: 0; }
.trail .link { margin-top: auto; align-self: flex-start; font-size: .74rem; }

/* --- Feature list / bullets ----------------------------------------------- */
.checks { display: flex; flex-direction: column; gap: 14px; }
.checks li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  line-height: 1.55;
}
.checks svg { flex: none; margin-top: 4px; color: var(--volt); }

/* Two-column prose + aside */
.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}
.panel-accent { border-top: 3px solid var(--volt); }

/* --- Number / spec grid --------------------------------------------------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* Six cells in an auto-fit grid land 4+2, leaving a visible empty cell.
   This variant forces a clean 3+3. */
.spec-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .spec-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .spec-grid-3 { grid-template-columns: 1fr; } }

.spec {
  background: var(--surface);
  padding: 26px 22px;
}
.spec-n {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
  color: var(--snow);
}
.spec-n span { color: var(--volt); }
.spec-l {
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fog-dim);
  margin-top: 10px;
}
.spec-note { font-size: .82rem; margin-top: 8px; color: var(--fog); }

/* --- Audience bars -------------------------------------------------------- */
.bars { display: flex; flex-direction: column; gap: 18px; }
.bar-row { display: flex; flex-direction: column; gap: 8px; }
.bar-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: .9rem;
}
.bar-top strong { font-weight: 600; }
.bar-top .v { color: var(--volt); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar-track {
  height: 6px;
  background: var(--surface-3);
  border-radius: 100px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--volt-lo), var(--volt));
  border-radius: 100px;
  transform-origin: left;
  animation: barGrow 1s var(--ease) both;
}
@keyframes barGrow { from { transform: scaleX(0); } }

/* --- Forms ---------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 22px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 8px; }
/* Direct child only. The option cards inside .opt-grid are <label>s too, and
   must not inherit the uppercase, wide-tracked field-label treatment. */
.field > label {
  font: 600 .72rem/1 var(--body);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fog);
}
.field > label .req { color: var(--volt); }
.field .hint { font-size: .8rem; color: var(--fog-dim); line-height: 1.5; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--snow);
  font-size: .95rem;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--fog-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--volt);
  background: var(--surface-3);
}
.field textarea { resize: vertical; min-height: 118px; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a3b2ab' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  cursor: pointer;
}
.field select option { background: var(--surface-2); color: var(--snow); }
.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--maple); }
.field .err {
  font-size: .78rem;
  color: #ff8a8a;
  display: none;
}
.field.has-err .err { display: block; }

/* Selectable card options (machine type, experience) */
.opt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 10px;
}
.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px 15px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .opt-t {
  font: 600 .92rem/1.2 var(--body);
  color: var(--snow);
  display: flex;
  align-items: center;
  gap: 9px;
}
.opt .opt-d { font-size: .78rem; color: var(--fog-dim); line-height: 1.45; }
.opt:hover { border-color: var(--fog); }
.opt:has(input:checked) {
  border-color: var(--volt);
  background: color-mix(in srgb, var(--volt) 11%, var(--surface-2));
}
.opt:has(input:focus-visible) { outline: 2px solid var(--volt); outline-offset: 2px; }
.opt .tick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  opacity: 0;
  color: var(--volt);
  transition: opacity .18s var(--ease);
}
.opt:has(input:checked) .tick { opacity: 1; }

/* Consent checkbox */
.consent {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .87rem;
  line-height: 1.55;
}
.consent input {
  flex: none;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--volt);
  cursor: pointer;
}

/* Safety notice */
.notice {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--volt) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--volt) 30%, transparent);
  border-radius: var(--radius);
  font-size: .88rem;
  line-height: 1.6;
}
.notice svg { flex: none; color: var(--volt); margin-top: 2px; }
.notice strong { display: block; margin-bottom: 4px; }

/* Form status message */
.form-status {
  display: none;
  padding: 18px 20px;
  border-radius: var(--radius);
  font-size: .92rem;
  line-height: 1.6;
}
.form-status.is-on { display: block; }
.form-status.ok {
  background: color-mix(in srgb, var(--moss) 15%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--moss) 45%, transparent);
  color: #dbeccf;
}
.form-status.bad {
  background: color-mix(in srgb, var(--maple) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--maple) 45%, transparent);
  color: #ffd3d3;
}
.form-status a { color: var(--snow); text-decoration: underline; text-underline-offset: 3px; }

/* Honeypot — hidden from humans, catches naive bots */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --- Ride steps (how group rides work) ------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line-strong);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  padding-right: 12px;
  background: var(--ink);
  transform: translateY(-52%);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--volt);
  line-height: 1;
}
.step h4 { margin-bottom: 9px; }
.step p { font-size: .92rem; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
}
.cta-band .topo-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .07;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 70% 130% at 50% 120%, var(--volt-glow), transparent 62%);
}
.cta-inner {
  padding-block: clamp(54px, 8vw, 96px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cta-inner h2 { max-width: 20ch; }
.cta-inner .lede { text-align: center; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 6vw, 76px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 52px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { margin-top: 18px; font-size: .92rem; max-width: 38ch; }
.footer-col h4 {
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--fog-dim);
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  font-size: .92rem;
  color: var(--fog);
  transition: color .16s var(--ease);
}
.footer-col a:hover { color: var(--volt); }

.socials { display: flex; gap: 10px; margin-top: 22px; }
.social {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--fog);
  transition: all .18s var(--ease);
}
.social:hover { color: var(--snow); border-color: var(--snow); transform: translateY(-2px); }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 24px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--fog-dim);
}
.footer-base .leaf { color: var(--volt); }

/* --- Scroll reveal -------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* --- Utilities ------------------------------------------------------------ */
.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: 16px;
  top: -60px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--volt);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

.stack   { display: flex; flex-direction: column; }
.gap-sm  { gap: 12px; }
.gap-md  { gap: 22px; }
.gap-lg  { gap: 34px; }
.mt-lg   { margin-top: clamp(28px, 4vw, 44px); }
.center  { text-align: center; }
.nowrap  { white-space: nowrap; }
