/* ==========================================================================
   Vacationer 390X: site styles
   ========================================================================== */

:root {
  --bg: #0c0a08;
  --bg-2: #14100d;
  --bg-3: #1b1511;
  --bg-4: #241c16;
  --line: rgba(255, 232, 208, 0.1);
  --line-2: rgba(255, 232, 208, 0.18);
  --text: #f6efe6;
  --muted: #bcae9e;
  --dim: #8f8274;

  --orange: #ff6b00;
  --orange-2: #ff8a1f;
  --amber: #ffb547;
  --ember: #c2410c;
  --yt: #ff0033;

  --f-display: 'Anton', 'Noto Sans Kannada', Impact, sans-serif;
  --f-body: 'Manrope', 'Noto Sans Kannada', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --f-kn: 'Noto Sans Kannada', 'Manrope', sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: #120a05; }
[lang="kn"] { font-family: var(--f-kn); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: middle; }
.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: 16px; top: -60px; z-index: 200;
  background: var(--orange); color: #120a05; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--dim); }
.noscript { margin-top: 24px; color: var(--muted); }

/* ---------- Buttons & links ---------- */
.btn {
  --btn-bg: var(--bg-3);
  --btn-fg: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 50px; padding: 0 1.4em;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--orange); --btn-fg: #140a03; box-shadow: 0 10px 30px -10px rgba(255, 107, 0, .7); }
.btn--primary:hover { --btn-bg: var(--orange-2); }
.btn--yt { --btn-bg: var(--yt); --btn-fg: #fff; box-shadow: 0 10px 30px -12px rgba(255, 0, 51, .7); }
.btn--yt:hover { --btn-bg: #ff2a52; }
.btn--ghost { --btn-bg: rgba(255, 240, 225, .06); border-color: var(--line-2); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--orange); --btn-bg: rgba(255, 107, 0, .1); }
.btn--dark { --btn-bg: #120a05; --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: #000; }
.btn--outline-dark { --btn-bg: transparent; --btn-fg: #120a05; border-color: rgba(18, 10, 5, .55); }
.btn--outline-dark:hover { --btn-bg: rgba(18, 10, 5, .08); }
.btn--sm { min-height: 40px; padding: 0 1.05em; font-size: .92rem; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  color: var(--amber); font-weight: 700; text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s, gap .2s;
}
.text-link:hover { border-color: currentColor; gap: .6em; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text);
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--orange); background: var(--bg-4); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12, 10, 8, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  border-color: var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.brand__word { font: 400 1.45rem/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.brand__tag {
  font: 700 .72rem/1 var(--f-mono); letter-spacing: .06em;
  background: var(--orange); color: #140a03; padding: 5px 7px; border-radius: 6px; transform: skewX(-8deg);
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav__list { display: flex; gap: 4px; }
.site-nav__list a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; color: var(--muted); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.site-nav__list a:hover { color: var(--text); background: rgba(255, 240, 225, .06); }
.site-nav__list a[aria-current] { color: var(--text); background: rgba(255, 107, 0, .14); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-grid; place-items: center; position: relative; z-index: 2;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid var(--line-2); background: rgba(20, 16, 13, .7);
  }
  .nav-toggle .icon { width: 22px; height: 22px; }
  .nav-toggle .icon--close { display: none; }
  .nav-open .nav-toggle .icon--open { display: none; }
  .nav-open .nav-toggle .icon--close { display: block; }

  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: center; gap: 32px;
    padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
    background:
      radial-gradient(120% 60% at 100% 100%, rgba(255, 107, 0, .28), transparent 60%),
      var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  /* backdrop-filter would make the header the containing block for the fixed menu */
  .nav-open .site-header { backdrop-filter: none; background: transparent; border-color: transparent; }
  .site-nav__list { flex-direction: column; gap: 2px; }
  .site-nav__list a { font: 400 clamp(2rem, 9vw, 2.8rem)/1.15 var(--f-display); text-transform: uppercase; color: var(--text); padding: 6px 0; background: none !important; }
  .site-nav__list a[aria-current] { color: var(--orange); }
  .site-nav__cta { align-self: flex-start; min-height: 50px; font-size: 1rem; }
  .site-header .brand { position: relative; z-index: 2; }
}

/* ---------- Eyebrows & section heads ---------- */
.eyebrow {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: .6em;
  font: 500 .78rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber);
}
.eyebrow [lang="kn"] { font: 700 1rem/1 var(--f-kn); letter-spacing: 0; color: var(--orange-2); }
.eyebrow__sep { color: var(--dim); }
@media (max-width: 520px) { .eyebrow__sep { display: none; } }
.stage {
  display: inline-grid; place-items: center;
  min-width: 2.4em; padding: 3px 6px; border-radius: 6px;
  background: var(--orange); color: #140a03; font-weight: 700; letter-spacing: .04em;
}

.section { position: relative; padding-block: clamp(72px, 10vw, 128px); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-title {
  margin-top: 14px;
  font: 400 clamp(2.5rem, 6vw, 4.6rem)/.95 var(--f-display);
  text-transform: uppercase; letter-spacing: .005em;
  text-wrap: balance;
}
.section-kn { margin-top: 10px; font: 600 1.1rem/1.4 var(--f-kn); color: var(--dim); }
.section-sub { margin-top: 16px; max-width: 58ch; color: var(--muted); font-size: 1.08rem; }

/* ---------- Hero: the reel ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 12px);
  overflow: hidden;
  background: #0a0705;
}

/* Stage: montage poster underneath, YouTube player fades in over it once it is really playing */
.reel { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0a0705; }
.reel__montage, .reel__video, .reel__lines, .reel__shade, .reel__flash { position: absolute; inset: 0; }
.reel__montage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  animation: reel-cut 16s linear infinite both;
}
.reel__montage img:nth-child(2) { animation-delay: -12s; }
.reel__montage img:nth-child(3) { animation-delay: -8s; }
.reel__montage img:nth-child(4) { animation-delay: -4s; }
@keyframes reel-cut {
  0% { opacity: 1; transform: scale(1.06); }
  24.9% { opacity: 1; transform: scale(1.22) translate(-1.5%, 1%); }
  25%, 100% { opacity: 0; transform: scale(1.06); }
}
.reel__video { opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.reel__video iframe { position: absolute; border: 0; }
.reel.is-video:not(.is-buffering) .reel__video { opacity: 1; }
.reel.is-buffering .reel__video { transition-duration: .15s; }
.reel.is-video .reel__montage img { animation-play-state: paused; }
.reel.is-held .reel__montage img { animation-play-state: paused; }

/* Anamorphic speed streaks from the edges, stronger on each cut */
.reel__lines {
  opacity: .16; mix-blend-mode: screen;
  background: repeating-linear-gradient(112deg, transparent 0 140px, rgba(255, 214, 170, .55) 140px 141px, transparent 141px 230px);
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, transparent 28%, #000 85%);
  mask-image: radial-gradient(ellipse at 50% 55%, transparent 28%, #000 85%);
  animation: streak .5s linear infinite;
  transition: opacity .25s;
}
.reel.is-cutting .reel__lines { opacity: .55; }
@keyframes streak { to { background-position: -230px 0; } }

.reel__shade {
  background:
    linear-gradient(180deg, rgba(10, 7, 5, .74) 0%, rgba(10, 7, 5, .12) 26%, rgba(10, 7, 5, .22) 58%, var(--bg) 100%),
    linear-gradient(90deg, rgba(10, 7, 5, .8) 0%, rgba(10, 7, 5, .38) 44%, rgba(10, 7, 5, .04) 100%);
}
.reel__flash { opacity: 0; background: #fff; }
.reel.is-cutting .reel__flash { animation: flash .45s ease-out both; }
@keyframes flash {
  0% { opacity: .9; background: #fff; }
  30% { opacity: .35; background: var(--orange); }
  100% { opacity: 0; background: var(--orange); }
}

/* HUD strip */
.hud {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #f3e7d8;
}
.hud > span {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 8px;
  background: rgba(10, 7, 5, .55); border: 1px solid rgba(255, 232, 208, .14); backdrop-filter: blur(8px);
}
.hud b { font-weight: 700; color: var(--amber); letter-spacing: .06em; }
.hud__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yt); box-shadow: 0 0 10px var(--yt); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hud__clip { color: #ffd9b8; }
.hud__clip::before { content: ''; flex: none; width: 6px; height: 6px; background: var(--orange); transform: rotate(45deg); }
.hud__clip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.hero__inner {
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding-block: 12px clamp(56px, 8vw, 104px);
}
.hero__copy { max-width: 860px; margin-top: auto; }
.hero__title {
  margin-top: 20px;
  font: 400 clamp(3.2rem, 9vw, 8.4rem)/.88 var(--f-display);
  text-transform: uppercase; letter-spacing: .005em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, .55);
}
.hero__line { display: block; }
.hero__line--hot {
  background: linear-gradient(90deg, var(--amber), var(--orange) 55%, #ff4d1a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .55));
}
.hero__lede { margin-top: 24px; max-width: 52ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #f1e6d8; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats {
  margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px 36px;
  padding-top: 22px; border-top: 1px solid rgba(255, 232, 208, .22);
  max-width: 560px;
}
.hero__stats dt { font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #cdbfae; }
.hero__stats dd { font: 400 1.9rem/1.15 var(--f-display); text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, .7); }
.hero__stats dd [lang="kn"] { font: 700 1.5rem/1 var(--f-kn); }

/* Trailer-style entrance: lines slam in, the rest rises after */
.js .hero__line { animation: slam .75s cubic-bezier(.16, 1, .3, 1) both; }
.js .hero__line:nth-child(2) { animation-delay: .18s; }
.js .hero__line:nth-child(3) { animation-delay: .36s; }
@keyframes slam {
  0% { opacity: 0; transform: translate3d(-5%, 34%, 0) skewX(-10deg) scale(1.12); filter: blur(8px); }
  55% { filter: blur(0); }
  100% { opacity: 1; transform: none; }
}
.js .hud, .js .hero__eyebrow, .js .hero__lede, .js .hero__ctas, .js .hero__stats, .js .reel__bar { animation: rise .8s var(--ease) both; }
.js .hud { animation-delay: .1s; }
.js .hero__eyebrow { animation-delay: .05s; }
.js .hero__lede { animation-delay: .6s; }
.js .hero__ctas { animation-delay: .72s; }
.js .hero__stats { animation-delay: .84s; }
.js .reel__bar { animation-delay: .95s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Now-playing link + sound/pause */
.reel__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.reel__watch {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 18px 8px 8px; border-radius: 999px;
  background: rgba(10, 7, 5, .55); border: 1px solid rgba(255, 232, 208, .16); backdrop-filter: blur(8px);
  color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.1; text-decoration: none;
  transition: border-color .2s, background-color .2s, transform .25s var(--ease);
}
.reel__watch:hover { border-color: var(--orange); background: rgba(255, 107, 0, .18); transform: translateY(-2px); }
.reel__watch small { display: block; margin-bottom: 4px; font: 500 .64rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.reel__play { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #140a03; }
.reel__play .icon { width: 18px; height: 18px; margin-left: 2px; }
.reel__controls { display: flex; gap: 8px; }
.icon-btn--glass { background: rgba(10, 7, 5, .55); border-color: rgba(255, 232, 208, .18); backdrop-filter: blur(8px); color: #fff; }
.icon-btn--glass:hover { border-color: var(--orange); background: rgba(255, 107, 0, .2); }
.icon-btn--glass .icon { width: 20px; height: 20px; }
.icon-btn--glass .icon--on, .icon-btn--glass[aria-pressed="true"] .icon--off { display: none; }
.icon-btn--glass[aria-pressed="true"] .icon--on { display: block; }

/* Marquee band */
.marquee {
  position: relative; z-index: 2;
  background: var(--orange); color: #140a03;
  transform: rotate(-1.5deg) scale(1.03); transform-origin: center;
  margin-bottom: 18px;
  overflow: hidden; border-block: 2px solid #140a03;
}
.marquee__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  padding: 12px 0;
  font: 400 clamp(1.3rem, 2.4vw, 1.9rem)/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em;
  animation: marquee 32s linear infinite;
}
.marquee__track [lang="kn"] { font: 700 clamp(1.15rem, 2.1vw, 1.65rem)/1 var(--f-kn); }
.marquee__track .icon { width: .85em; height: .85em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Laptop screens: keep the now-playing bar and controls inside the first screen */
@media (min-width: 901px) and (max-height: 980px) {
  .hero__title { font-size: clamp(3rem, 7.2vw, 6.4rem); }
  .hero__lede { margin-top: 14px; font-size: 1.05rem; }
  .hero__ctas { margin-top: 20px; }
  .hero__stats { margin-top: 20px; padding-top: 14px; }
  .hero__stats dd { font-size: 1.45rem; }
  .hero__inner { gap: 18px; padding-bottom: clamp(44px, 6vw, 72px); }
}
@media (max-width: 900px) {
  .hero { padding-top: calc(var(--header-h) + 4px); }
  .hero__inner { padding-bottom: 64px; }
  .hud { gap: 8px; }
  .hud .hud__subs { display: none; }
  .hud__clip > span { max-width: 42vw; }
  .hero__stats { gap: 10px 24px; }
}
@media (max-width: 520px) {
  .reel__watch { font-size: .88rem; }
  .reel__lines { opacity: .1; }
}
@media (prefers-reduced-motion: reduce) {
  .reel__montage img { animation: none; }
  .reel__montage img:first-child { opacity: 1; }
  .reel__lines, .reel__flash { display: none; }
}

/* ---------- Shared bits: meta, badges, kannada lines ---------- */
.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
}
.meta__cat { color: var(--orange-2); }
.kn { font: 500 .95rem/1.5 var(--f-kn); color: var(--muted); }

.badge {
  position: absolute; z-index: 1;
  font: 700 .72rem/1 var(--f-mono); letter-spacing: .04em;
  padding: 5px 7px; border-radius: 6px;
}
.badge--time { right: 10px; bottom: 10px; background: rgba(8, 6, 4, .85); color: #fff; }
.badge--new { left: 14px; top: 14px; background: var(--yt); color: #fff; text-transform: uppercase; letter-spacing: .12em; padding: 6px 9px; }

/* ---------- Latest ---------- */
.latest { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); }
.latest__main {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.player iframe, .modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__poster { position: absolute; inset: 0; padding: 0; border: 0; background: none; }
.player__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.player__poster:hover img { transform: scale(1.03); filter: brightness(.85); }
.player__btn {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center;
  width: clamp(64px, 9vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: var(--orange); color: #140a03;
  box-shadow: 0 0 0 10px rgba(255, 107, 0, .25), 0 20px 50px -10px rgba(0, 0, 0, .7);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.player__btn .icon { width: 42%; height: 42%; margin-left: 6%; }
.player__poster:hover .player__btn { transform: scale(1.08); box-shadow: 0 0 0 16px rgba(255, 107, 0, .2), 0 20px 50px -10px rgba(0, 0, 0, .7); }
.latest__meta { padding: clamp(20px, 3vw, 32px); display: grid; gap: 10px; }
.latest__title { font: 800 clamp(1.35rem, 2.4vw, 1.85rem)/1.2 var(--f-body); letter-spacing: -.01em; }
.latest__blurb { color: var(--muted); max-width: 60ch; }
.latest__meta .text-link { margin-top: 6px; justify-self: start; }

.latest__next { display: flex; flex-direction: column; gap: 18px; }
.latest__next-title { font: 500 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.upnext { display: grid; gap: 14px; }
.upnext__item {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2);
  text-decoration: none; transition: border-color .25s, background-color .25s, transform .25s var(--ease);
}
.upnext__item:hover { border-color: rgba(255, 107, 0, .6); background: var(--bg-3); transform: translateX(4px); }
.upnext__thumb { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; }
.upnext__thumb img { width: 100%; height: 100%; object-fit: cover; }
.upnext__thumb .badge--time { right: 6px; bottom: 6px; font-size: .65rem; }
.upnext__text { display: grid; gap: 4px; min-width: 0; }
.upnext__title { font-weight: 700; font-size: .98rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.upnext__date { font-size: .85rem; color: var(--dim); }

@media (max-width: 960px) {
  .latest { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .upnext__item { grid-template-columns: 112px minmax(0, 1fr); }
}

/* ---------- Road to 1K ---------- */
.section--goal {
  background:
    radial-gradient(60% 80% at 100% 50%, rgba(255, 107, 0, .12), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-block: 1px solid var(--line);
}
.goal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.goal__quote {
  margin: 24px 0 32px; padding-left: 20px; border-left: 3px solid var(--orange);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: #e9dccd; font-style: italic;
}

.cluster {
  position: relative;
  padding: clamp(22px, 3.5vw, 36px);
  border-radius: 28px;
  background: linear-gradient(160deg, #1f1813, #110d0a);
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.cluster__head { display: flex; justify-content: space-between; gap: 12px; font: 500 .75rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.cluster__goal strong { color: var(--amber); }

.odometer { display: flex; gap: clamp(6px, 1vw, 10px); margin: 22px 0 30px; }
.odometer__digit {
  position: relative; flex: 1;
  height: clamp(76px, 10vw, 112px); overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(180deg, #050403, #17110d 50%, #050403);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 8px 14px rgba(0, 0, 0, .7), inset 0 -8px 14px rgba(0, 0, 0, .7);
}
.odometer__digit::after { content: ''; position: absolute; inset: 50% 0 auto; height: 1px; background: rgba(0, 0, 0, .55); }
.odometer__reel {
  display: flex; flex-direction: column; height: 1000%;
  transition: transform 1.8s cubic-bezier(.2, .9, .25, 1);
}
.odometer__reel span {
  height: 10%; display: grid; place-items: center;
  font: 700 clamp(2.4rem, 5.4vw, 3.8rem)/1 var(--f-mono); color: var(--amber);
  text-shadow: 0 0 22px rgba(255, 138, 31, .45);
}

.road {
  position: relative; height: 18px; border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .35) 50%, transparent 0) center / 26px 2px repeat-x,
    #2a221c;
  border: 1px solid rgba(255, 255, 255, .06);
}
.road__fill {
  position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--ember), var(--orange) 60%, var(--amber));
  box-shadow: 0 0 24px rgba(255, 107, 0, .55);
  transition: width 1.8s cubic-bezier(.2, .9, .25, 1);
}
.road__rider {
  position: absolute; top: 50%; left: 0; translate: -50% -50%;
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--text); color: #140a03;
  box-shadow: 0 0 0 4px rgba(255, 107, 0, .45), 0 10px 20px rgba(0, 0, 0, .6);
  transition: left 1.8s cubic-bezier(.2, .9, .25, 1);
}
.road__rider .icon { width: 26px; height: 26px; }
.road__marks { display: flex; justify-content: space-between; margin-top: 14px; font: 500 .72rem/1 var(--f-mono); color: var(--dim); }
.cluster__foot { margin-top: 22px; font-weight: 600; color: var(--muted); }
.cluster__foot strong { font: 400 1.6rem/1 var(--f-display); color: var(--text); margin-right: 4px; }
.cluster__asof { font-weight: 500; font-size: .85rem; color: var(--dim); }

@media (max-width: 900px) {
  .goal { grid-template-columns: 1fr; }
}

/* ---------- Video grid ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 14px 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted);
  font-weight: 700; font-size: .92rem;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 107, 0, .6); }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #140a03; }
.chip__count { font: 700 .72rem/1 var(--f-mono); padding: 4px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.chip[aria-pressed="true"] .chip__count { background: rgba(20, 10, 3, .16); }

.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.vcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
  animation: card-in .5s var(--ease) backwards;
}
.vcard:nth-child(2) { animation-delay: .04s; } .vcard:nth-child(3) { animation-delay: .08s; }
.vcard:nth-child(4) { animation-delay: .12s; } .vcard:nth-child(5) { animation-delay: .16s; }
.vcard:nth-child(6) { animation-delay: .2s; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }
.vcard:hover { transform: translateY(-6px); border-color: rgba(255, 107, 0, .55); box-shadow: 0 30px 60px -30px rgba(255, 107, 0, .35); }
.vcard:has(.vcard__hit:focus-visible) { outline: 3px solid var(--amber); outline-offset: 3px; }
.vcard__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard:hover .vcard__thumb img { transform: scale(1.05); }
.vcard__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--orange); color: #140a03;
  opacity: 0; scale: .7; transition: opacity .3s, scale .3s var(--ease);
}
.vcard__play .icon { width: 24px; height: 24px; margin-left: 3px; }
.vcard:hover .vcard__play { opacity: 1; scale: 1; }
.vcard__body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; }
.vcard__title { font-weight: 800; font-size: 1.08rem; line-height: 1.3; }
.vcard__hit { text-decoration: none; }
.vcard__hit:focus-visible { outline: none; }
.vcard__hit::after { content: ''; position: absolute; inset: 0; z-index: 2; }

.center-cta { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 56px); }

@media (max-width: 1000px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .vgrid { grid-template-columns: 1fr; } }

/* ---------- Ride log ---------- */
.section--rides {
  background:
    radial-gradient(50% 60% at 0% 0%, rgba(255, 107, 0, .1), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
  overflow: hidden;
}
/* Topographic contour lines */
.section--rides::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='400' viewBox='0 0 600 400'%3E%3Cg fill='none' stroke='%23ff8a1f' stroke-opacity='.09' stroke-width='1.2'%3E%3Cpath d='M-20 320c80-40 140-10 210-50s110-120 200-110 140 80 230 60'/%3E%3Cpath d='M-20 350c90-40 150-5 230-45s120-110 200-100 140 90 210 70'/%3E%3Cpath d='M-20 290c70-40 130-20 190-55s100-130 210-120 140 70 240 50'/%3E%3Cpath d='M-20 260c60-40 120-30 170-60s100-140 220-130 140 60 250 40'/%3E%3Cpath d='M-20 380c100-35 160 0 250-38s130-100 200-92 130 95 190 78'/%3E%3Cpath d='M-20 120c90 20 140-30 220-20s120 60 200 40 150-60 220-40'/%3E%3Cpath d='M-20 90c90 20 150-40 230-30s110 70 190 50 150-70 220-50'/%3E%3Cpath d='M-20 60c100 20 160-50 240-40s100 80 180 60 150-80 220-60'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 600px 400px;
}
.route {
  position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px;
  counter-reset: stop;
}
.route::before {
  content: ''; position: absolute; left: 24px; right: 24px; top: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 14px, transparent 14px 26px);
  opacity: .7;
}
.stop { position: relative; display: flex; flex-direction: column; gap: 10px; }
.stop__marker {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--orange); color: var(--orange-2);
  font: 700 .95rem/1 var(--f-mono);
  margin-bottom: 14px;
  box-shadow: 0 0 0 6px var(--bg-2);
  transition: background-color .25s, color .25s;
}
.stop:hover .stop__marker { background: var(--orange); color: #140a03; }
.stop__region { display: flex; align-items: center; gap: 6px; font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.stop__region .icon { width: 14px; height: 14px; color: var(--orange-2); }
.stop__place { font: 400 1.9rem/1 var(--f-display); text-transform: uppercase; }
.stop__place [lang="kn"] { display: block; margin-top: 8px; font: 600 1rem/1.3 var(--f-kn); text-transform: none; color: var(--muted); }
.stop__text { color: var(--muted); font-size: .98rem; }
.stop__link {
  margin-top: auto; padding-top: 6px;
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  color: var(--amber); font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: gap .2s;
}
.stop__link:hover { gap: 10px; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before {
    left: 24px; right: auto; top: 24px; bottom: 24px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--orange) 0 14px, transparent 14px 26px);
  }
  .stop { padding: 0 0 36px 76px; min-height: 50px; }
  .stop:last-child { padding-bottom: 0; }
  .stop__marker { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- Shorts ---------- */
.rail-nav { display: flex; gap: 8px; }
.rail-wrap { position: relative; }
.rail {
  /* Lines the first card up with the .container edge */
  --rail-pad: max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 260px);
  gap: 18px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-pad);
  padding: 4px var(--rail-pad) 20px;
  scrollbar-width: thin; scrollbar-color: var(--bg-4) transparent;
}
.rail > li { scroll-snap-align: start; }
.scard {
  position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  background: #000; border: 1px solid var(--line); text-decoration: none;
  transition: transform .35s var(--ease), border-color .35s;
}
.scard:hover { transform: translateY(-6px) rotate(-.6deg); border-color: rgba(255, 107, 0, .6); }
.scard img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.scard:hover img { transform: scale(1.05); }
.scard::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8, 6, 4, .92)); }
.scard__play {
  position: absolute; right: 14px; top: 14px; z-index: 1;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(8, 6, 4, .6); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px);
  transition: background-color .25s, color .25s;
}
.scard__play .icon { width: 18px; height: 18px; margin-left: 2px; }
.scard:hover .scard__play { background: var(--orange); color: #140a03; border-color: var(--orange); }
.scard__cap { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; font-weight: 800; font-size: 1rem; line-height: 1.3; }

@media (max-width: 620px) {
  .rail-nav { display: none; }
  .rail { grid-auto-columns: 62vw; }
}

/* ---------- Machine ---------- */
.section--machine { padding-top: 0; }
.machine__strip {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -50px rgba(255, 107, 0, .45);
}
.machine__strip img { width: 100%; aspect-ratio: 2048 / 339; object-fit: cover; min-height: 160px; }
.machine__strip::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 10, 8, .9), rgba(12, 10, 8, .55) 32%, transparent 60%); }
.machine__outline {
  position: absolute; left: clamp(16px, 4vw, 48px); top: 50%; translate: 0 -50%; z-index: 1;
  font: 400 clamp(3.4rem, 10vw, 9rem)/1 var(--f-display);
  color: transparent; -webkit-text-stroke: 2px var(--orange);
  letter-spacing: .02em;
}
.machine {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(32px, 5vw, 56px); align-items: start;
}
.machine__body { display: grid; gap: 22px; justify-items: start; }
.machine__body > p { font-size: 1.12rem; color: #e4d6c6; max-width: 60ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-2);
  font: 500 .75rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}

@media (max-width: 800px) {
  .machine { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: 24px; background: var(--bg-2); border: 1px solid var(--line);
}
.about__kn { font: 500 clamp(1.08rem, 1.5vw, 1.22rem)/1.85 var(--f-kn); color: #eadccc; padding-left: 20px; border-left: 3px solid var(--orange); }
.about__en { display: grid; gap: 14px; color: var(--muted); font-size: 1.08rem; }
.about__en p:first-child { color: #e4d6c6; }

.pillars { margin-top: clamp(20px, 3vw, 28px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.pillar {
  padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .3s, transform .3s var(--ease);
}
.pillar:hover { border-color: rgba(255, 107, 0, .55); transform: translateY(-4px); }
.pillar__icon { width: 34px; height: 34px; color: var(--orange-2); margin-bottom: 18px; }
.pillar h3 { font: 400 1.6rem/1.05 var(--f-display); text-transform: uppercase; }
.pillar h3 [lang="kn"] { display: block; margin-top: 6px; font: 600 .98rem/1.3 var(--f-kn); text-transform: none; color: var(--dim); }
.pillar p { margin-top: 12px; color: var(--muted); font-size: .98rem; }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- Collab ---------- */
.section--collab {
  background:
    radial-gradient(60% 70% at 100% 100%, rgba(255, 107, 0, .14), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.collab { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.formats { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.formats li {
  display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm);
  background: rgba(255, 240, 225, .03); border: 1px solid var(--line);
}
.formats .icon { width: 28px; height: 28px; color: var(--orange-2); margin-top: 2px; }
.formats h3 { font-weight: 800; font-size: 1.02rem; line-height: 1.3; }
.formats p { margin-top: 4px; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.collab__trust { margin-top: 20px; font: 500 .8rem/1.5 var(--f-mono); letter-spacing: .04em; color: var(--dim); }

.collab__panel {
  padding: clamp(22px, 3.5vw, 36px); border-radius: 24px;
  background: var(--bg); border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.collab__fallback { display: grid; gap: 18px; }
.collab__fallback p { color: var(--muted); }
.form { display: grid; gap: 16px; }
.form__title { font: 400 2rem/1 var(--f-display); text-transform: uppercase; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .85rem; font-weight: 700; color: var(--muted); }
.field em { font-style: normal; font-weight: 500; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-3);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.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.5 6 6.5 11 1.5' fill='none' stroke='%23bcae9e' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 107, 0, .2); }
.field ::placeholder { color: var(--dim); }
.form__status { font-size: .9rem; color: var(--amber); min-height: 1.4em; }

@media (max-width: 900px) {
  .collab { grid-template-columns: 1fr; }
  .collab__panel { position: static; }
}
@media (max-width: 520px) {
  .formats, .form__row { grid-template-columns: 1fr; }
}

/* ---------- Outro band ---------- */
.outro {
  position: relative; overflow: hidden;
  background:
    radial-gradient(80% 120% at 85% 0%, #ffb547 0%, transparent 60%),
    linear-gradient(120deg, #ff6b00, #ff8a1f 60%, #ff6b00);
  color: #140a03;
  padding-block: clamp(72px, 10vw, 120px);
}
.outro::before {
  content: ''; position: absolute; inset: 0; opacity: .12;
  background: repeating-linear-gradient(-55deg, #140a03 0 2px, transparent 2px 26px);
}
.outro__inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 20px; }
.outro__title { font: 400 clamp(2.4rem, 7vw, 5.6rem)/.95 var(--f-display); text-transform: uppercase; max-width: 16ch; text-wrap: balance; }
.outro__sub { font-weight: 700; font-size: 1.15rem; }
.outro__sub [lang="kn"] { font-weight: 700; }
.outro__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: #080605; border-top: 1px solid var(--line); padding-top: 64px; }
.site-footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer__brand { display: grid; gap: 12px; align-content: start; }
.site-footer__brand > p:first-of-type { font: 500 .8rem/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-top: 8px; }
.site-footer__nav h2 { font: 500 .75rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.site-footer__nav ul { display: grid; gap: 10px; }
.site-footer__nav a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-weight: 600; transition: color .2s; }
.site-footer__nav a:hover { color: var(--orange-2); }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 22px 28px;
  /* Divider aligned with the content edge, not the container padding */
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: .9rem; color: var(--dim);
}
.credit a { color: var(--text); text-decoration: none; }
.credit a[href]:hover { color: var(--orange-2); }

@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Modal ---------- */
.modal {
  width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: clamp(12px, 3vw, 40px); border: 0;
  background: transparent; color: var(--text);
}
.modal[open] { display: grid; place-items: center; animation: fade .25s ease; }
.modal::backdrop { background: rgba(6, 4, 3, .88); backdrop-filter: blur(6px); }
@keyframes fade { from { opacity: 0; } }
.modal__inner { width: min(100%, 1100px); display: grid; gap: 12px; animation: rise .35s var(--ease); }
@keyframes rise { from { transform: translateY(16px) scale(.98); } }
.modal__bar { display: flex; align-items: center; gap: 16px; }
.modal__title { flex: 1; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal__yt { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--amber); text-decoration: none; white-space: nowrap; }
.modal__yt:hover { text-decoration: underline; }
.modal__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: calc(100svh - 120px);
  border-radius: var(--radius); overflow: hidden; background: #000;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08);
}
.modal__frame.is-vertical { aspect-ratio: 9 / 16; width: auto; height: min(calc(100svh - 120px), 820px); justify-self: center; }
.modal__inner:has(.is-vertical) { width: auto; }
@media (max-width: 560px) {
  .modal__yt { display: none; }
  .modal__frame.is-vertical { height: auto; width: min(100%, calc((100svh - 110px) * 9 / 16)); }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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