/* ==========================================================================
   PerezAdventures - main stylesheet
   Mobile-first. Breakpoints: 600px (large phone / small tablet),
   900px (tablet landscape), 1200px (desktop).
   Brand palette sampled from "PerezAdvent Logo Colours Theme.png".
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* brand */
  --navy: #03318C;
  --blue: #1261A6;
  --cyan: #18A2D9;
  --foam: #F2F2F2;
  --ink: #0D0D0D;

  /* derived depth scale (dark UI) */
  --abyss: #050B16;
  --deep: #07162F;
  --trench: #0A2146;
  --line: rgba(242, 242, 242, .12);
  --line-strong: rgba(242, 242, 242, .22);
  --muted: #A9BCD0;          /* 9.6:1 on --abyss */
  --cyan-text: #4CC0EE;      /* cyan tuned for small text on dark: 8.9:1 */

  /* light surfaces */
  --paper: #F2F2F2;
  --card: #FFFFFF;
  --text-dark: #0D0D0D;
  --muted-dark: #44515F;     /* 7.7:1 on --paper */
  --link-dark: #1261A6;      /* 5.6:1 on --paper */
  --line-dark: rgba(13, 13, 13, .12);

  /* type */
  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .5vw, 1.45rem);
  --fs-h2: clamp(1.7rem, 1.35rem + 1.6vw, 2.6rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 3vw, 3.9rem);

  /* space + shape */
  --gutter: 16px;
  --container: 1200px;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
  --shadow-light: 0 10px 30px -18px rgba(3, 49, 140, .45);
  --header-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font: 400 var(--fs-base)/1.65 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan-text); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--cyan); color: var(--ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--cyan); color: var(--ink); padding: .7em 1em; border-radius: var(--radius-s); font-weight: 700; }
.skip-link:focus { top: 8px; }

/* ---------- 3. Layout primitives ---------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(780px + 2 * var(--gutter)); }
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: calc(var(--section-y) * .6) 0; }
.section--deep { background: linear-gradient(180deg, var(--deep), var(--abyss)); }
.section--trench { background: radial-gradient(120% 90% at 85% 0%, rgba(18, 97, 166, .35), transparent 60%), var(--deep); }
.section--light { background: var(--paper); color: var(--text-dark); }
.section--light a { color: var(--link-dark); }
.section--light a.btn, .nl-band a.btn { color: var(--fg); }
.section--light .eyebrow { color: var(--blue); }
.section--light .lead, .section--light .muted { color: var(--muted-dark); }
.section-head { max-width: 720px; margin-bottom: clamp(1.8rem, 1.2rem + 2vw, 3rem); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 720px; }
.section-head h2 { margin-bottom: .35em; }
.eyebrow { display: inline-flex; align-items: center; gap: .55em; font: 700 var(--fs-xs)/1.2 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-text); margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: var(--fs-lg); color: var(--muted); line-height: 1.6; }
.muted { color: var(--muted); }
.grid { display: grid; gap: clamp(1rem, .7rem + 1vw, 1.6rem); }
@media (min-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.25fr 1fr; } .split--wide-right { grid-template-columns: 1fr 1.25fr; } }
.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- 4. Buttons, chips, badges ---------- */
.btn { --bg: var(--cyan); --fg: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .75em 1.35em; border-radius: 999px; border: 2px solid var(--bg); background: var(--bg); color: var(--fg); font: 700 .975rem/1.2 var(--font-head); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(24, 162, 217, .7); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--ghost { --bg: transparent; --fg: var(--foam); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--cyan); box-shadow: none; }
.btn--light { --bg: var(--foam); --fg: var(--ink); }
.btn--navy { --bg: var(--navy); --fg: #fff; }
.section--light .btn--ghost { --fg: var(--text-dark); border-color: rgba(13, 13, 13, .25); }
.section--light .btn--ghost:hover { border-color: var(--blue); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: .5em 1em; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font: 700 .95rem var(--font-head); text-decoration: none; }
.link-arrow::after { content: "\2192"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.chip { display: inline-flex; align-items: center; gap: .4em; padding: .38em .8em; border-radius: 999px; border: 1px solid var(--line-strong); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; color: var(--foam); background: rgba(5, 11, 22, .35); }
.section--light .chip { color: var(--text-dark); border-color: var(--line-dark); background: #fff; }
.badge { display: inline-block; padding: .3em .65em; border-radius: 6px; font: 800 .7rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; background: var(--cyan); color: var(--ink); }
.badge--soon { background: rgba(5, 11, 22, .8); color: var(--foam); border: 1px solid var(--line-strong); }
.badge--free { background: #DDF3FC; color: var(--navy); }

/* ---------- 5. Header & navigation ---------- */
/* backdrop lives on ::before: backdrop-filter on the header itself would become the
   containing block for the fixed mobile drawer and clip it to the header's height */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); border-bottom: 1px solid var(--line); transition: border-color .3s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(5, 11, 22, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); transition: opacity .3s; }
.has-hero .site-header { position: fixed; left: 0; right: 0; border-color: transparent; }
.has-hero .site-header::before { opacity: 0; }
.has-hero .site-header.is-scrolled, .has-hero .site-header.is-open { border-color: var(--line); }
.has-hero .site-header.is-scrolled::before, .has-hero .site-header.is-open::before { opacity: 1; }
.site-header.is-open::before { background: var(--abyss); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--foam); flex: none; }
.brand img { width: 40px; height: 40px; }
.brand__word { font: 800 1.15rem/1 var(--font-head); letter-spacing: -.01em; }
.brand__word span { color: var(--cyan); }
@media (min-width: 1200px) { .brand img { width: 46px; height: 46px; } .brand__word { font-size: 1.3rem; } }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; cursor: pointer; border-radius: 12px; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 24px; height: 2px; background: var(--foam); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.is-open .nav-toggle__bars { background: transparent; }
.is-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* mobile drawer (default) */
.primary-nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--abyss); padding: 1rem var(--gutter) 2rem; overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; }
.is-open .primary-nav { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-link, .nav-group__btn { display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 56px; padding: .5rem 0; background: none; border: 0; color: var(--foam); font: 700 1.15rem var(--font-head); text-decoration: none; cursor: pointer; text-align: left; }
.nav-link[aria-current="page"], .nav-group__btn.is-current { color: var(--cyan-text); }
.nav-group__btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.nav-group__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-sub { display: none; padding: 0 0 1rem !important; }
.nav-group__btn[aria-expanded="true"] + .nav-sub { display: block; }
.nav-sub a { display: block; padding: .7rem .9rem; border-radius: var(--radius-s); text-decoration: none; color: var(--foam); }
.nav-sub a:hover, .nav-sub a[aria-current="page"] { background: rgba(24, 162, 217, .1); }
.nav-sub strong { display: block; font: 600 1rem/1.3 var(--font-head); }
.nav-sub small { display: block; color: var(--muted); font-size: var(--fs-xs); line-height: 1.4; margin-top: .15rem; }
.nav-sub .nav-sub__all { color: var(--cyan-text); font: 700 .9rem var(--font-head); }
.nav-cta { margin-top: 1.5rem; display: grid; gap: .75rem; }
.nav-social { display: flex; gap: .5rem; margin-top: 1.5rem; }
body.nav-locked { overflow: hidden; }

/* desktop nav */
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .primary-nav { position: static; inset: auto; transform: none; visibility: visible; background: none; padding: 0; overflow: visible; display: flex; align-items: center; gap: 1.25rem; transition: none; }
  .nav-list { display: flex; align-items: center; gap: .1rem; }
  .nav-list > li { border: 0; position: relative; }
  .nav-link, .nav-group__btn { min-height: 44px; padding: .5rem .8rem; font-size: .95rem; font-weight: 600; border-radius: 999px; gap: .3rem; width: auto; }
  @media (max-width: 1199px) { .nav-link, .nav-group__btn { padding: .5rem .6rem; } .primary-nav { gap: .9rem; } }
  .nav-link:hover, .nav-group__btn:hover { background: rgba(242, 242, 242, .08); }
  .nav-group__btn svg { width: 14px; height: 14px; }
  .nav-sub { position: absolute; top: calc(100% + 10px); left: 50%; width: 360px; padding: .6rem !important; background: rgba(7, 22, 47, .97); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transform: translate(-50%, 6px); opacity: 0; visibility: hidden; display: block; transition: opacity .2s, transform .2s var(--ease), visibility 0s .2s; }
  .nav-sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
  .nav-group__btn[aria-expanded="true"] + .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s, transform .2s var(--ease); }
  .nav-cta { margin: 0; display: flex; }
  .nav-cta .btn--ghost { display: none; }
  .primary-nav .nav-social { display: none; }
}

/* breadcrumbs */
.breadcrumbs { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .35rem; opacity: .5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--cyan-text); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--foam); }

/* ---------- 6. Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; padding: calc(var(--header-h) + 2rem) 0 2rem; }
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--deep); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: saturate(1.15) contrast(1.06); }
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.hero__media video.is-playing { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(5, 11, 22, .55) 0%, rgba(5, 11, 22, .05) 28%, rgba(5, 11, 22, .45) 55%, rgba(5, 11, 22, .96) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: end; }
.hero__copy { max-width: 720px; min-width: 0; }
.hero h1 { margin-bottom: .4em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero__sub { font-size: var(--fs-lg); color: #DCE6F0; max-width: 60ch; margin-bottom: 1.6rem; }
.hero .btn-row .btn { flex: 1 1 100%; }
.hero__proof { display: flex; gap: .5rem; margin: 1.6rem calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) .3rem; overflow-x: auto; scrollbar-width: none; }
.hero__proof::-webkit-scrollbar { display: none; }
.hero__proof li { list-style: none; }
.hero__proof .chip svg { width: 14px; height: 14px; color: var(--cyan); }
.hero__now { display: none; }
.hero__controls { position: absolute; right: var(--gutter); top: calc(var(--header-h) + .75rem); z-index: 2; }
@media (min-width: 1024px) { .hero__controls { top: auto; bottom: 1rem; } }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(5, 11, 22, .55); color: var(--foam); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.scroll-cue { display: none; }
@media (min-width: 600px) {
  .hero .btn-row .btn { flex: 0 0 auto; }
  .hero__proof { flex-wrap: wrap; overflow: visible; margin: 1.6rem 0 0; padding: 0; }
}
@media (min-width: 1024px) {
  .hero { align-items: center; padding-bottom: 4.5rem; }
  .hero::after { background: linear-gradient(90deg, rgba(5, 11, 22, .92) 0%, rgba(5, 11, 22, .55) 45%, rgba(5, 11, 22, .1) 75%), linear-gradient(180deg, rgba(5, 11, 22, .5), transparent 25%, transparent 70%, rgba(5, 11, 22, .9)); }
  .hero__grid { grid-template-columns: 7fr 5fr; gap: 3rem; }
  .hero__now { display: block; justify-self: end; width: 100%; max-width: 380px; }
  .scroll-cue { display: inline-flex; position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); color: var(--muted); font-size: var(--fs-xs); flex-direction: column; align-items: center; gap: .3rem; text-decoration: none; }
  .scroll-cue span { width: 2px; height: 28px; background: linear-gradient(var(--cyan), transparent); border-radius: 2px; }
}
.now-card { display: block; background: rgba(7, 22, 47, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line-strong); border-radius: var(--radius-l); padding: .8rem; text-decoration: none; color: var(--foam); transition: transform .25s var(--ease), border-color .25s; }
.now-card:hover { transform: translateY(-4px); border-color: var(--cyan); }
.now-card__img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; }
.now-card__img img { width: 100%; height: 100%; object-fit: cover; }
.now-card__img .badge { position: absolute; top: .6rem; left: .6rem; }
.now-card__body { padding: .9rem .4rem .3rem; }
.now-card__label { font: 700 var(--fs-xs) var(--font-head); color: var(--cyan-text); letter-spacing: .1em; text-transform: uppercase; }
.now-card h2 { font-size: 1.05rem; margin: .35rem 0 .7rem; }

/* ---------- 7. Page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; padding: clamp(2.2rem, 1.5rem + 3vw, 4.5rem) 0 clamp(2.5rem, 1.8rem + 3vw, 4.5rem); background: radial-gradient(90% 120% at 100% 0%, rgba(18, 97, 166, .45), transparent 60%), radial-gradient(60% 80% at 0% 100%, rgba(3, 49, 140, .35), transparent 70%), var(--deep); overflow: hidden; }
.page-hero--image { min-height: clamp(380px, 55vh, 560px); display: flex; align-items: flex-end; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 11, 22, .35), rgba(5, 11, 22, .92) 85%); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { max-width: 62ch; margin-bottom: 0; color: #CBD8E5; }
.page-hero .btn-row { margin-top: 1.6rem; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.wave-divider { display: block; width: 100%; height: 40px; color: var(--abyss); margin-top: -1px; }

/* ---------- 8. Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: rgba(242, 242, 242, .04); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(24, 162, 217, .55); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--trench); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media .badge { position: absolute; top: .75rem; left: .75rem; }
.card__media .res-cover__free, .res-cover__free { left: auto; right: .8rem; }
.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card__kicker { font: 700 var(--fs-xs) var(--font-head); color: var(--cyan-text); letter-spacing: .1em; text-transform: uppercase; }
.card__title { font-size: 1.08rem; margin: 0; line-height: 1.3; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__text { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.card__foot { margin-top: auto; padding-top: .5rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: var(--fs-xs); color: var(--muted); }
.card__ext { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .35em; font: 700 var(--fs-xs) var(--font-head); color: var(--cyan-text); text-decoration: none; }
.card__ext:hover { text-decoration: underline; }
.section--light .card__ext { color: var(--link-dark); }
.card__foot svg, .muted > svg, .inline-ic, .now-card__label svg { display: inline-block; width: 1.05em; height: 1.05em; vertical-align: -.17em; margin-right: .3em; }
.section--light .card { background: var(--card); border-color: var(--line-dark); box-shadow: 0 1px 0 rgba(13, 13, 13, .03); }
.section--light .card:hover { box-shadow: var(--shadow-light); border-color: rgba(18, 97, 166, .45); }
.section--light .card__text, .section--light .card__foot { color: var(--muted-dark); }
.section--light .card__kicker { color: var(--blue); }

/* path cards (user-goal router) */
.path-card { padding: 1.5rem; gap: .8rem; }
.path-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; }
.path-card__icon svg { width: 26px; height: 26px; }
.path-card .link-arrow { margin-top: auto; color: var(--cyan-text); }
.section--light .path-card .link-arrow { color: var(--link-dark); }

/* episode cards (horizontal scroller on mobile) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 320px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: .3rem var(--gutter) 1.2rem; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; scrollbar-color: var(--blue) transparent; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 1024px) { .rail { grid-auto-columns: calc((100% - 2 * var(--gutter) - 3rem) / 4); } .rail--5 { grid-auto-columns: calc((100% - 2 * var(--gutter) - 4rem) / 5); } }
.rail--5 .card__media { aspect-ratio: 4/3; }
.ep-card .card__media { aspect-ratio: 16/9; }
.ep-card.is-soon .card__media img { filter: grayscale(.55) brightness(.7); }
.ep-card__n { position: absolute; right: .7rem; bottom: .3rem; font: 900 2.8rem/1 var(--font-head); color: rgba(242, 242, 242, .9); text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.play-glyph { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(5, 11, 22, .6); border: 2px solid rgba(242, 242, 242, .85); display: grid; place-items: center; transition: background-color .2s, transform .2s var(--ease); }
.play-glyph svg { width: 22px; height: 22px; margin-left: 3px; color: #fff; }
.card:hover .play-glyph { background: var(--cyan); transform: scale(1.06); }

/* ---------- 9. Video facade (lite YouTube) ---------- */
.yt { position: relative; display: block; text-decoration: none; color: #fff; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-l); overflow: hidden; background: #000 center/cover no-repeat; border: 0; padding: 0; cursor: pointer; box-shadow: var(--shadow); }
.yt img { width: 100%; height: 100%; object-fit: cover; }
.yt .play-glyph { width: 76px; height: 76px; }
.yt .play-glyph svg { width: 28px; height: 28px; }
.yt:hover .play-glyph, .yt:focus-visible .play-glyph { background: var(--cyan); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__note { position: absolute; left: 1rem; bottom: .8rem; display: inline-flex; align-items: center; gap: .4em; font: 700 var(--fs-xs) var(--font-head); color: #fff; background: rgba(0, 0, 0, .6); padding: .35rem .7rem; border-radius: 6px; }
.yt__note svg { width: 1.2em; height: 1.2em; color: #FF3D3D; }
.yt:hover .yt__note { background: #FF0000; }
.yt:hover .yt__note svg { color: #fff; }

/* ---------- 10. Filters ---------- */
.filters { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem var(--gutter) 1rem; margin: 0 calc(var(--gutter) * -1) 1rem; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .filters { flex-wrap: wrap; overflow: visible; padding: 0 0 1rem; margin: 0 0 1rem; } }
.filter-btn { flex: none; min-height: 44px; padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--foam); font: 600 .9rem var(--font-head); cursor: pointer; }
.filter-btn[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.section--light .filter-btn { color: var(--text-dark); border-color: var(--line-dark); background: #fff; }
.section--light .filter-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
[data-filter-item][hidden] { display: none !important; }
[data-featured-for][hidden] { display: none !important; }

/* ---------- 11. Book ---------- */
.book { perspective: 1400px; display: grid; place-items: center; padding: 1rem 0 2rem; }
.book__img { width: min(72vw, 300px); height: auto; border-radius: 3px 10px 10px 3px; transform: rotateY(-16deg) rotateX(3deg); box-shadow: 22px 26px 50px -18px rgba(0, 0, 0, .75), inset 4px 0 0 rgba(255, 255, 255, .15); transition: transform .5s var(--ease); }
.book:hover .book__img { transform: rotateY(-5deg) rotateX(1deg); }
.book--small { padding: .8rem 0; }
.book--small .book__img { width: 120px; }
.res-cover .book--small .book__img { width: 96px; }

.toc { counter-reset: toc; list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
@media (min-width: 600px) { .toc { grid-template-columns: 1fr 1fr; } }
.toc li { counter-increment: toc; display: grid; grid-template-columns: auto 1fr; gap: .9rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line-dark); }
.toc li::before { content: counter(toc, decimal-leading-zero); font: 800 1.1rem var(--font-head); color: var(--cyan); }
.toc strong { font-family: var(--font-head); display: block; }
.toc span { color: var(--muted-dark); font-size: var(--fs-sm); }

/* ---------- 12. Resource cards & covers ---------- */
.res-cover { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; background: radial-gradient(90% 90% at 80% 10%, rgba(24, 162, 217, .5), transparent 60%), linear-gradient(160deg, var(--blue), var(--navy) 60%, #021233); }
.res-cover::before { content: ""; position: absolute; inset: auto -10% -35% -10%; height: 70%; background: radial-gradient(50% 50% at 50% 0%, rgba(242, 242, 242, .14), transparent 70%); }
.res-cover__icon { width: 34%; max-width: 110px; aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center; background: rgba(242, 242, 242, .1); border: 1px solid rgba(242, 242, 242, .25); color: #fff; backdrop-filter: blur(4px); }
.res-cover__icon svg { width: 52%; height: 52%; }
.res-cover--img::before { content: none; }
.res-cover--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.res-cover__kind { position: absolute; top: .8rem; left: .8rem; }
.res-cover__free { position: absolute; top: .8rem; right: .8rem; }
.res-points { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.res-points li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; }
.res-points svg { width: 22px; height: 22px; color: var(--cyan); margin-top: .15rem; }

/* ---------- 13. Forms (newsletter, contact, gated download) ---------- */
.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .35rem; }
.field label { font: 600 .9rem var(--font-head); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(5, 11, 22, .55); color: var(--foam); font-size: 1rem; }
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7f93a8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(24, 162, 217, .35); }
.field [aria-invalid="true"] { border-color: #FF8A80; }
.field__error { color: #FFB4AB; font-size: var(--fs-xs); min-height: 0; }
.section--light .field input, .section--light .field select, .section--light .field textarea { background: #fff; border-color: rgba(13, 13, 13, .2); color: var(--text-dark); }
.section--light .field__error { color: #B3261E; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: var(--fs-sm); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--cyan); }
.checks { display: grid; gap: .6rem; border: 0; padding: 0; margin: 0; }
.checks legend { font: 600 .9rem var(--font-head); margin-bottom: .5rem; padding: 0; }
@media (min-width: 600px) { .form--inline { grid-template-columns: 1fr 1fr auto; align-items: end; } .form--inline .form__fine, .form--inline .field--check { grid-column: 1 / -1; } }
.field--check { gap: .15rem; }
.field input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 4px; box-shadow: none; }
.field--check .check { font: 500 var(--fs-xs)/1.5 var(--font-body); }
@media (min-width: 600px) { .form--inline { grid-auto-flow: row dense; } }
.nl-band .check a { color: #fff; }
.book-sub { font: 600 var(--fs-lg)/1.4 var(--font-head); color: var(--cyan-text); margin: -.2em 0 1rem; max-width: 42ch; }
.form__fine { font-size: var(--fs-xs); color: var(--muted); margin: 0; }
.section--light .form__fine { color: var(--muted-dark); }
.form__success { display: none; padding: 1.2rem 1.3rem; border-radius: var(--radius); background: rgba(24, 162, 217, .12); border: 1px solid rgba(24, 162, 217, .5); }
.form.is-done > :not(.form__success) { display: none; }
.form.is-done .form__success { display: block; }
.form__success strong { font-family: var(--font-head); display: block; margin-bottom: .2rem; }
.demo-note { font-size: .75rem; color: var(--muted); font-style: italic; margin-top: .6rem; }
.panel { background: rgba(7, 22, 47, .75); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.3rem, 1rem + 1.5vw, 2.2rem); }
.section--light .panel { background: var(--card); border-color: var(--line-dark); box-shadow: var(--shadow-light); }
.panel--sticky { position: sticky; top: calc(var(--header-h) + 1.2rem); }

/* newsletter band (pre-footer, on every page) */
.nl-band { position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, var(--navy), var(--blue) 70%, #1584C2); padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.nl-band::before { content: ""; position: absolute; inset: auto -5% -60% 40%; height: 140%; background: radial-gradient(closest-side, rgba(24, 162, 217, .65), transparent); z-index: -1; }
.nl-band__grid { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 900px) { .nl-band__grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; } }
.nl-band h2 { margin-bottom: .3em; }
.nl-band p { color: #E1ECF7; margin: 0; }
.nl-band .eyebrow { color: #BFE9FA; }
.nl-band .field input { background: rgba(5, 11, 22, .35); border-color: rgba(242, 242, 242, .35); }
.nl-band .form__fine { color: #D5E4F2; }
.nl-band .btn { --bg: var(--foam); --fg: var(--ink); }
.nl-perks { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- 14. Timeline (about) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--cyan), var(--navy)); }
.timeline li { position: relative; padding: 0 0 1.8rem 2.6rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: .3rem; width: 16px; height: 16px; border-radius: 50%; background: var(--abyss); border: 3px solid var(--cyan); }
.timeline__year { font: 800 var(--fs-xs) var(--font-head); color: var(--cyan-text); letter-spacing: .12em; text-transform: uppercase; }
.timeline h3 { font-size: 1.1rem; margin: .2rem 0 .3rem; }
.timeline p { color: var(--muted); margin: 0; font-size: var(--fs-sm); }
@media (min-width: 900px) {
  .timeline::before { left: 50%; }
  .timeline li { width: 50%; padding: 0 2.6rem 2.2rem 0; text-align: right; }
  .timeline li::before { left: auto; right: -8px; }
  .timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 2.2rem 2.6rem; text-align: left; }
  .timeline li:nth-child(even)::before { left: -8px; right: auto; }
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
@media (min-width: 900px) { .stats--4 { grid-template-columns: repeat(4, 1fr); } }
.stats div { background: var(--deep); padding: 1.2rem 1.1rem; }
.stats strong { display: block; font: 800 1.05rem/1.25 var(--font-head); }
.stats span { color: var(--muted); font-size: var(--fs-xs); }

/* ---------- 15. Gallery & lightbox ---------- */
.gallery { columns: 2 160px; column-gap: .6rem; }
@media (min-width: 900px) { .gallery { columns: 3; column-gap: 1rem; } }
.gallery__item { break-inside: avoid; margin: 0 0 .6rem; position: relative; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; display: block; width: 100%; padding: 0; border: 0; background: var(--trench); }
@media (min-width: 900px) { .gallery__item { margin-bottom: 1rem; } }
.gallery__item img { width: 100%; transition: transform .6s var(--ease), filter .3s; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:nth-child(3n+2) img { aspect-ratio: 1; object-fit: cover; }
.strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.strip .gallery__item { margin: 0; aspect-ratio: 1; }
.strip > :first-child { grid-column: span 2; aspect-ratio: 16/9; }
.strip .gallery__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
@media (min-width: 900px) { .strip { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 15vw, 230px); gap: 1rem; } .strip .gallery__item, .strip > :first-child { aspect-ratio: auto; } .strip > :first-child { grid-row: span 2; } }
.lightbox { width: min(96vw, 1400px); max-height: 94vh; padding: 0; border: 0; background: transparent; color: var(--foam); }
.lightbox::backdrop { background: rgba(2, 6, 14, .92); }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { padding: .8rem .2rem; font-size: var(--fs-sm); color: var(--muted); }
.lightbox__bar { display: flex; justify-content: flex-end; gap: .5rem; padding-bottom: .6rem; }
.lightbox.has-meta { overflow: auto; }
.lightbox.has-meta img { max-height: 64vh; }
.lightbox__cap { display: block; color: var(--foam); font-weight: 500; }
.lightbox.has-meta::backdrop { background: rgba(2, 6, 14, .97); }
.lb-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1rem; margin: .8rem 0 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--deep); }
@media (min-width: 700px) { .lb-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lb-meta[hidden] { display: none; }
.lb-meta div { min-width: 0; }
.lb-meta dt { font: 700 .66rem/1.2 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-text); }
.lb-meta dd { margin: .15rem 0 0; color: var(--foam); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.lb-meta .lb-meta__wide, .lb-meta .lb-meta__mid { grid-column: 1 / -1; }
@media (min-width: 700px) { .lb-meta .lb-meta__mid { grid-column: auto; } }
@media (min-width: 700px) { .lb-meta .lb-meta__wide { grid-column: span 2; } }
.lb-note { font-size: .75rem; font-style: italic; color: var(--muted); margin: .5rem 0 0; }

/* ---------- 16. Prose (blog / legal) ---------- */
.prose { font-size: 1.075rem; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { margin: 1.8rem 0; padding: 1.1rem 1.3rem; border-left: 4px solid var(--cyan); background: rgba(24, 162, 217, .08); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; font-family: var(--font-head); font-weight: 600; }
.callout { padding: 1.1rem 1.3rem; border-radius: var(--radius); border: 1px dashed rgba(24, 162, 217, .6); background: rgba(24, 162, 217, .07); font-size: var(--fs-sm); }
.post-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; color: var(--muted); font-size: var(--fs-sm); margin-top: 1rem; }
.content-upgrade { display: grid; gap: 1rem; align-items: center; grid-template-columns: 1fr; padding: 1.2rem; border-radius: var(--radius-l); background: linear-gradient(120deg, rgba(3, 49, 140, .65), rgba(18, 97, 166, .45)); border: 1px solid var(--line-strong); margin: 2rem 0; }
@media (min-width: 600px) { .content-upgrade { grid-template-columns: 1fr auto; } }
.content-upgrade p { margin: 0; color: #DCE6F0; font-size: var(--fs-sm); }
.content-upgrade strong { font-family: var(--font-head); display: block; color: #fff; }

/* ---------- 17. Facts table, lists, gear ---------- */
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-size: var(--fs-sm); }
.facts dd { margin: 0; font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 1rem; height: .55rem; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg) translateY(-25%); }
.gear-group { border: 1px solid var(--line); border-radius: var(--radius-l); margin-bottom: 1rem; background: rgba(242, 242, 242, .03); }
.gear-group > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font: 800 1.15rem var(--font-head); }
.gear-group > summary::-webkit-details-marker { display: none; }
.gear-group > summary::after { content: "+"; font-size: 1.6rem; color: var(--cyan); line-height: 1; transition: transform .25s var(--ease); }
.gear-group[open] > summary::after { transform: rotate(45deg); }
.gear-group__body { padding: 0 1.3rem 1.3rem; display: grid; gap: 1.4rem; }
@media (min-width: 900px) { .gear-group__body { grid-template-columns: repeat(2, 1fr); } }
.gear-group h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-text); margin-bottom: .6rem; }
.gear-list { list-style: none; padding: 0; margin: 0; }
.gear-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); color: var(--foam); text-decoration: none; font-size: var(--fs-sm); }
.gear-list a::after { content: "\2197"; color: var(--cyan); flex: none; }
.gear-list a:hover { color: var(--cyan-text); }
.rig { display: grid; gap: .8rem; }
@media (min-width: 600px) { .rig { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.rig a { display: block; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid var(--line-dark); background: #fff; text-decoration: none; color: var(--text-dark); transition: border-color .2s, transform .2s var(--ease); }
.rig a:hover { border-color: var(--blue); transform: translateY(-2px); }
.rig small { display: block; color: var(--blue); font: 700 .72rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; }
.rig strong { font-family: var(--font-head); }

/* ---------- 18. Countdown, steps, misc ---------- */
.countdown { display: flex; gap: .5rem; }
.countdown div { min-width: 64px; padding: .6rem .5rem; text-align: center; border-radius: 12px; background: rgba(242, 242, 242, .06); border: 1px solid var(--line); }
.countdown strong { display: block; font: 800 1.5rem/1 var(--font-head); }
.countdown span { font-size: .7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 1.3rem; border-radius: var(--radius-l); border: 1px solid var(--line-dark); background: #fff; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 1rem var(--font-head); margin-bottom: .8rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--muted-dark); font-size: var(--fs-sm); }
.svc-card { padding: 1.5rem; gap: .7rem; }
.svc-card .path-card__icon { margin-bottom: .3rem; }
.svc-card .btn { align-self: flex-start; margin-top: .4rem; }
.svc-card__for { font-size: var(--fs-xs); color: var(--muted); border-top: 1px solid var(--line); padding-top: .8rem; margin-top: auto; }
.section--light .svc-card .btn { align-self: flex-start; margin-top: .4rem; }
.svc-card__for { color: var(--muted-dark); border-color: var(--line-dark); }
.dest-card .card__media { aspect-ratio: 4/3; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.quote-block { font: 700 clamp(1.3rem, 1.1rem + 1vw, 1.8rem)/1.35 var(--font-head); margin: 0; }
.quote-block cite { display: block; font: 500 var(--fs-sm) var(--font-body); color: var(--muted); margin-top: 1rem; font-style: normal; }
.section--light .quote-block cite { color: var(--muted-dark); }
.panel .res-cover { aspect-ratio: 16/8; border-radius: var(--radius); }
.portrait { border-radius: var(--radius-l); overflow: hidden; position: relative; aspect-ratio: 4/5; background: var(--trench); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__tag { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; padding: .8rem 1rem; border-radius: var(--radius); background: rgba(5, 11, 22, .75); backdrop-filter: blur(6px); font-size: var(--fs-sm); }
.portrait__tag strong { font-family: var(--font-head); display: block; }

/* ---------- 18b. Random picks, gear cards + photo dialog ---------- */
.js [data-random="3"] > :nth-child(n+4), .js [data-random="1"] > :nth-child(n+2) { display: none; }
.gear-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 600px) { .gear-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gear-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; } }
.gear-card { display: flex; flex-direction: column; text-align: left; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: rgba(242, 242, 242, .04); color: var(--foam); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.gear-card:hover { transform: translateY(-3px); border-color: rgba(24, 162, 217, .6); box-shadow: var(--shadow); }
.gear-card[hidden] { display: none; }
.gear-card__img { display: grid; place-items: center; aspect-ratio: 4/3; overflow: hidden; background: var(--trench); }
.gear-card__img img { width: 100%; height: 100%; object-fit: cover; }
.gear-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(80% 80% at 70% 20%, rgba(24, 162, 217, .45), transparent 60%), linear-gradient(160deg, var(--blue), var(--navy)); color: rgba(255, 255, 255, .85); }
.gear-ph svg { width: 34%; max-width: 64px; height: auto; }
.gear-card__body { display: grid; gap: .25rem; padding: .7rem .8rem .85rem; flex: 1; }
.gear-card__sub { font: 700 .68rem/1.2 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-text); }
.gear-card__name { font: 600 .9rem/1.3 var(--font-head); }
.gear-card__cta { margin-top: auto; padding-top: .3rem; font-size: var(--fs-xs); color: var(--muted); }
.section--light .gear-card { background: #fff; border-color: var(--line-dark); color: var(--text-dark); }
.section--light .gear-card__sub { color: var(--blue); }
.section--light .gear-card__cta { color: var(--muted-dark); }
.gear-grid--rig { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .gear-grid--rig { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gear-dialog { width: min(94vw, 760px); max-height: 92vh; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-l); background: var(--deep); color: var(--foam); overflow: auto; }
.gear-dialog::backdrop { background: rgba(2, 6, 14, .85); }
.gear-dialog__close { position: absolute; top: .7rem; right: .7rem; z-index: 2; }
.gear-dialog__media { position: relative; }
.gear-dialog__main { aspect-ratio: 4/3; background: var(--trench); display: grid; place-items: center; }
.gear-dialog__main img { width: 100%; height: 100%; object-fit: contain; background: #000; }
.gear-dialog__main .gear-ph { font-size: var(--fs-sm); }
.gear-dialog__main .gear-ph span { display: block; margin-top: .6rem; color: #dce6f0; }
.gear-dialog__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gear-dialog__nav[hidden] { display: none; }
.gear-dialog__main .gear-ph > div { display: grid; justify-items: center; }
.gear-dialog__nav--prev { left: .7rem; } .gear-dialog__nav--next { right: .7rem; }
.gear-dialog__thumbs { display: flex; gap: .5rem; padding: .7rem 1.2rem 0; overflow-x: auto; }
.gear-dialog__thumbs button { flex: none; width: 72px; aspect-ratio: 4/3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--trench); cursor: pointer; }
.gear-dialog__thumbs button[aria-current="true"] { border-color: var(--cyan); }
.gear-dialog__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gear-dialog__body { padding: 1rem 1.3rem 1.4rem; }
.gear-dialog__body h2 { font-size: 1.35rem; margin: .2rem 0 .5rem; }
.gear-dialog__buy { margin-top: .4rem; }
.gear-card__img { position: relative; }
.gear-card__count { position: absolute; top: .45rem; right: .45rem; display: inline-flex; align-items: center; gap: .3em; padding: .2rem .45rem; border-radius: 6px; background: rgba(5, 11, 22, .78); color: #fff; font: 700 .7rem var(--font-head); }
.gear-card__count svg { width: 1em; height: 1em; }
.gear-dialog__seen { margin: .2rem 0 1rem; }
.gear-dialog__seen ul { list-style: none; padding: 0; margin: .3rem 0 0; display: grid; gap: .3rem; }
.gear-dialog__seen a { color: var(--cyan-text); font-size: var(--fs-sm); }

/* ---------- 18c. Video library, topics, shop book ---------- */
.video-card .card__foot { justify-content: space-between; gap: .8rem; }
.video-card time { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.lib-count { font-size: var(--fs-sm); color: var(--muted); margin: -.4rem 0 1rem; }
.load-more { display: flex; justify-content: center; margin-top: 2rem; }
.load-more .btn[hidden] { display: none; }
.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 900px) { .topic-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.topic-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-l); background: rgba(242, 242, 242, .04); color: var(--foam); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; }
.topic-card:hover { transform: translateY(-3px); border-color: rgba(24, 162, 217, .6); }
.topic-card strong { font: 800 1.05rem/1.25 var(--font-head); }
.topic-card span:not(.path-card__icon) { font-size: var(--fs-sm); color: var(--muted); }
.topic-card small { margin-top: auto; padding-top: .3rem; font: 700 var(--fs-xs) var(--font-head); color: var(--cyan-text); }
.shop-book { aspect-ratio: 4/3; display: grid; place-items: center; background: linear-gradient(160deg, #dfe9f3, #c8d8ea); }
.shop-book .book { width: 100%; padding: 1rem 0; }
.shop-book .book--small .book__img { width: min(48%, 230px); }

/* ---------- 18d. Notes pages: sidebar left or right + panels below (set per page in WordPress) ---------- */
.notes-layout { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
@media (min-width: 900px) {
  .notes-layout { grid-template-columns: 1.25fr 1fr; }
  .notes-layout--left { grid-template-columns: 1fr 1.25fr; }
  .notes-layout--left .notes-side { order: -1; }
  .notes-layout--full { grid-template-columns: minmax(0, 46rem); }
}
.notes-side .content-upgrade { grid-template-columns: 1fr; margin: 0; }
.notes-below { display: grid; gap: 1.25rem; margin-top: clamp(2rem, 1rem + 2vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.notes-below > .content-upgrade { grid-column: 1 / -1; margin: 0; }

/* ---------- 19. Footer ---------- */
.site-footer { background: #03070F; border-top: 1px solid var(--line); padding: 3.5rem 0 1.5rem; font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 3rem; } }
.footer-brand p { color: var(--muted); max-width: 34ch; margin-top: 1rem; }
.site-footer h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-text); margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.site-footer ul a { display: inline-block; padding: .5rem 0; color: #D5DFEA; text-decoration: none; }
.site-footer ul a:hover { color: var(--cyan-text); text-decoration: underline; }
.social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--foam); transition: background-color .2s, border-color .2s; }
.social a:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; color: var(--muted); font-size: var(--fs-xs); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: var(--muted); }

/* ---------- 20. Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .nl-band, .site-footer, .hero__media, .filters { display: none !important; }
  body { background: #fff; color: #000; }
}
