/* ==========================================================================
   RjCuts — design tokens
   Dark is the default; light mode swaps the same tokens.
   ========================================================================== */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D0E10;
  --surface: #16181B;
  --surface-2: #1F2226;
  --field: #121417;
  --text: #EDEEEF;
  --muted: #9BA3AA;
  --line: rgba(237, 238, 239, 0.10);
  --line-strong: rgba(237, 238, 239, 0.22);
  --accent: #F3C53B;
  --accent-hover: #F7D468;
  --accent-ink: #231A00;
  --glow: rgba(243, 197, 59, 0.16);
  --nav-bg: rgba(13, 14, 16, 0.72);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --scrim: rgba(5, 6, 7, 0.88);
  --grain-opacity: 0.07;
  --danger: #FF6B5E;
  --ok: #3FCF8E;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F2F3F4;
  --surface: #FFFFFF;
  --surface-2: #E6E9EC;
  --field: #FFFFFF;
  --text: #121417;
  --muted: #59626B;
  --line: rgba(18, 20, 23, 0.10);
  --line-strong: rgba(18, 20, 23, 0.22);
  --accent: #E3AC14;
  --accent-hover: #EDBC33;
  --accent-ink: #231A00;
  --glow: rgba(227, 172, 20, 0.22);
  --nav-bg: rgba(242, 243, 244, 0.78);
  --shadow: 0 30px 70px -32px rgba(18, 20, 23, 0.35);
  --scrim: rgba(18, 20, 23, 0.82);
  --grain-opacity: 0.035;
  --danger: #C2271B;
  --ok: #1F7A4D;
}

:root {
  /* Legacy names used by the admin panel */
  --mist: var(--bg);
  --paper: var(--surface);
  --ink: var(--text);
  --steel: var(--muted);
  --tape: var(--accent);
  --tape-ink: var(--accent-ink);

  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.55rem;
  --step-3: clamp(2rem, 4.4vw, 3.4rem);
  --step-hero: clamp(3rem, 8.2vw, 7.4rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --nav-h: 68px;
  --radius-media: 16px;
  --radius-control: 999px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.02em; }
p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Smooth colour change while switching theme (added for a moment by theme.js) */
html.theming, html.theming *, html.theming *::before, html.theming *::after {
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), fill .45s var(--ease), stroke .45s var(--ease) !important;
}

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* Film grain: one fixed layer, very faint */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--radius-control); border: 1.5px solid transparent;
  font: 600 var(--step-0)/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--step--1); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
/* Legacy button names (admin, 404) */
.btn-ink { background: var(--text); color: var(--bg); }
.btn-ink:hover { opacity: .9; }
.btn-line { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-line:hover { border-color: var(--text); }
.btn-tape { background: var(--accent); color: var(--accent-ink); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 80;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; height: var(--nav-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.wordmark { font-weight: 800; font-size: 1.45rem; letter-spacing: -0.045em; text-decoration: none; }
.wordmark span { font-weight: 500; }
.wordmark:hover span { color: var(--accent); }

.nav-links { position: relative; display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-indicator {
  position: absolute; bottom: 2px; left: 0; height: 2px; width: 0; border-radius: 2px;
  background: var(--accent); opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s ease;
}
.nav-tools { display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.theme-toggle {
  position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: transparent; display: grid; place-items: center; cursor: pointer; overflow: hidden;
  transition: border-color .2s ease, transform .2s var(--ease);
}
.theme-toggle:hover { border-color: var(--text); }
.theme-toggle:active { transform: scale(.92); }
.tt-icon {
  position: absolute; width: 20px; height: 20px; left: 50%; top: 50%; margin: -10px 0 0 -10px;
  transition: transform .55s var(--ease), opacity .35s ease;
}
.tt-moon { fill: var(--text); }
.tt-sun { fill: var(--text); stroke: var(--text); stroke-width: 2; stroke-linecap: round; }
/* The icon shows the current theme; the other one waits, rotated away */
:root[data-theme="dark"] .tt-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="light"] .tt-moon { opacity: 0; transform: rotate(90deg) scale(.4); }

/* Music control */
.music {
  height: 42px; display: inline-flex; align-items: center; gap: 10px; padding: 0 14px 0 12px;
  border-radius: 999px; border: 1.5px solid var(--line-strong); background: transparent; cursor: pointer;
  color: var(--muted); font-size: var(--step--1); font-weight: 600;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.music:hover { border-color: var(--text); color: var(--text); }
.music[aria-pressed="true"] { color: var(--text); border-color: var(--accent); }
.music-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; width: 21px; }
.music-bars i {
  display: block; width: 3px; height: 3px; border-radius: 2px; background: currentColor;
  transition: height .25s ease, background-color .2s ease;
}
.music[aria-pressed="true"] .music-bars i { background: var(--accent); }
.music.css-bars[aria-pressed="true"] .music-bars i { animation: bar 1s ease-in-out infinite; }
.music.css-bars[aria-pressed="true"] .music-bars i:nth-child(2) { animation-delay: -.3s; }
.music.css-bars[aria-pressed="true"] .music-bars i:nth-child(3) { animation-delay: -.6s; }
.music.css-bars[aria-pressed="true"] .music-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 15px; } }
.music.loading { opacity: .6; cursor: progress; }

.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  background: transparent; cursor: pointer; position: relative;
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 79;
  background: var(--bg); padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  animation: menu-in .35s var(--ease);
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.menu-links { display: grid; gap: 4px; }
.menu-links a {
  font-size: clamp(2.4rem, 12vw, 3.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.15;
  text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line);
}
.menu-links a:active { color: var(--accent); }
.menu-foot { display: grid; gap: 16px; }
.menu-foot .btn { width: 100%; }
.menu-mail { color: var(--muted); text-align: center; text-decoration: none; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-tools { margin-left: auto; }
  .menu-btn { display: block; }
}
@media (max-width: 420px) {
  .music-label { display: none; }
  .music { padding: 0 10px; width: 42px; justify-content: center; }
  .nav-tools { gap: 8px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(28px, 6vw, 80px) var(--gutter) clamp(64px, 9vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .55fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
  overflow-x: clip; /* keeps the reel's glow from widening the page */
}
.hero-kicker { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.hero-title {
  font-size: var(--step-hero); font-weight: 800; letter-spacing: -0.055em; line-height: .94;
}
.hero-title .reveal-line { display: block; }
.lede { margin-top: 28px; font-size: var(--step-1); color: var(--muted); max-width: 33em; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.facts { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts dt { font-size: var(--step--1); color: var(--muted); }
.facts dd { margin-top: 2px; font-weight: 600; }

/* Featured reel, shown like a monitor */
.reel { position: relative; margin: 0; justify-self: end; width: min(100%, 360px); }
.reel-glow {
  position: absolute; inset: -16% -24%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 75%);
  filter: blur(10px);
}
.reel-frame {
  position: relative; z-index: 1; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  background: #000; box-shadow: var(--shadow);
  outline: 1px solid var(--line-strong); outline-offset: 6px;
}
.reel-frame video { width: 100%; height: 100%; object-fit: cover; }
.reel-hud {
  position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px;
  display: flex; justify-content: flex-end;
  background: linear-gradient(rgba(0,0,0,.55), transparent);
  color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .02em;
}
.tc { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: #FF4D3D; box-shadow: 0 0 0 3px rgba(255,77,61,.25); animation: rec 1.6s ease-in-out infinite; }
@keyframes rec { 50% { opacity: .25; } }
.sound {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  min-height: 38px; padding: 0 15px; border-radius: 999px; border: 0;
  background: rgba(13, 14, 16, .72); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 var(--step--1)/1 var(--font); cursor: pointer;
}
.sound:hover { background: rgba(13, 14, 16, .9); }
.tape {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: var(--step--1); padding: 6px 12px; line-height: 1.2;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}
.tape-reel { position: absolute; z-index: 3; left: -14px; top: 26px; transform: rotate(-5deg); }
.reel-cap { position: relative; z-index: 1; margin-top: 22px; font-weight: 600; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .reel { justify-self: center; width: min(78%, 320px); margin-top: 8px; }
}

/* Entrance: headline lines slide up from behind a mask, once */
.reveal-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.reveal-line > span { display: inline-block; }
.js .reveal-line > span { transform: translateY(105%); }
.js .fade-in, .js .reel { opacity: 0; }
.loaded .reveal-line > span { transform: none; transition: transform .9s var(--ease); }
.loaded .hero-title .reveal-line:nth-child(1) > span { transition-delay: .08s; }
.loaded .hero-title .reveal-line:nth-child(2) > span { transition-delay: .16s; }
.loaded .hero-title .reveal-line:nth-child(3) > span { transition-delay: .24s; }
.loaded .fade-in { opacity: 1; transition: opacity .8s ease .45s; }
.loaded .reel { opacity: 1; animation: reel-in 1s var(--ease) .2s both; }
@keyframes reel-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.work, .about, .contact { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.work, .about { padding-bottom: clamp(72px, 10vw, 140px); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1px solid var(--line-strong);
}
.section-head h2 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.045em; }
.section-note { color: var(--muted); }
.loading { margin-top: 32px; color: var(--muted); }

.group { margin-top: clamp(36px, 5vw, 56px); }
.group-title { font-size: var(--step-1); font-weight: 700; margin-bottom: 20px; display: flex; align-items: baseline; gap: 10px; }
.count { font-size: var(--step--1); color: var(--muted); font-weight: 600; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 36px 22px; }
.grid-vertical { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-horizontal { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
@media (max-width: 560px) {
  .grid-vertical { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
}

/* Work card */
.card { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.thumb {
  position: relative; overflow: hidden; border-radius: var(--radius-media);
  background: var(--surface-2);
  outline: 1px solid var(--line); outline-offset: -1px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.grid-vertical .thumb { aspect-ratio: 9 / 16; }
.grid-horizontal .thumb { aspect-ratio: 16 / 9; }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb img { opacity: 0; transition: opacity .5s ease, transform .7s var(--ease); }
.thumb img.ready { opacity: 1; }
.thumb video { opacity: 0; transition: opacity .35s ease; }
.thumb video.playing { opacity: 1; }
.card:hover .thumb { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover .thumb img { transform: scale(1.04); }
.duration {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; padding: 4px 8px; border-radius: 7px;
  background: rgba(13, 14, 16, .78); color: #fff; font-size: .78rem; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.play {
  position: absolute; left: 50%; top: 50%; z-index: 2; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; background: var(--accent); display: grid; place-items: center;
  transform: scale(.8); opacity: 0; transition: opacity .25s ease, transform .35s var(--ease);
}
.play::before { content: ''; margin-left: 4px; border-left: 16px solid var(--accent-ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.card:hover .play, .card:focus-visible .play { opacity: 1; transform: none; }
@media (hover: none) { .play { opacity: .95; transform: scale(.8); } }
.card-meta { margin-top: 14px; }
.card-cat { font-size: var(--step--1); color: var(--accent); font-weight: 600; }
:root[data-theme="light"] .card-cat { color: #8A6400; }
.card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.25; margin-top: 3px; }
.card-desc {
  margin-top: 6px; color: var(--muted); font-size: var(--step--1); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 560px) {
  .grid-vertical .card-title { font-size: .98rem; }
  .grid-vertical .card-desc { -webkit-line-clamp: 2; }
}

/* Scroll reveal for cards and blocks */
.reveal-ready .reveal-up { opacity: 0; transform: translateY(18px); }
.reveal-ready .reveal-up.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }

/* About */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px clamp(32px, 6vw, 96px);
  margin-top: clamp(28px, 4vw, 48px);
}
.about-lead { grid-column: 1 / -1; font-size: clamp(1.7rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; max-width: 22ch; }
.about-body p { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 34em; }
.tools { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; font-size: var(--step--1); }
.how { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 32px); }
.how h3 { font-size: var(--step-1); margin-bottom: 16px; }
.how dl { display: grid; gap: 16px; }
.how dt { font-weight: 700; }
.how dd { color: var(--muted); margin-top: 2px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { padding-bottom: clamp(48px, 7vw, 96px); }
.contact-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(36px, 7vw, 88px) clamp(24px, 6vw, 80px);
}
.contact-card::before {
  content: ''; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.tape-contact { transform: rotate(-3deg); margin-bottom: 26px; }
.contact h2 { position: relative; font-size: var(--step-hero); font-weight: 800; letter-spacing: -0.055em; line-height: .95; max-width: 11ch; }
.contact-card > p { position: relative; margin-top: 22px; font-size: var(--step-1); color: var(--muted); max-width: 32em; }
.contact-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.contact-list { position: relative; list-style: none; margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px 44px; }
.contact-list span { display: block; font-size: var(--step--1); color: var(--muted); }
.contact-list a { font-weight: 600; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; overflow-wrap: anywhere; }

.foot {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: var(--step--1);
}
.to-top { text-decoration: none; font-weight: 600; }
.to-top:hover { color: var(--text); }

/* ==========================================================================
   Video player dialog
   ========================================================================== */
.player { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; color: #fff; }
.player::backdrop { background: var(--scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player[open] { display: grid; place-items: center; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.player-inner { width: min(100% - 32px, 1100px); max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.player-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.player-head h2 { font-size: var(--step-2); font-weight: 700; color: #fff; }
.player-cat { color: var(--accent); font-size: var(--step--1); font-weight: 600; }
.close { flex: none; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: #fff; font: 600 var(--step--1)/1 var(--font); cursor: pointer; }
.close:hover { border-color: #fff; }
.player-stage { display: flex; justify-content: center; min-height: 0; flex: 1; }
.player-stage video { max-height: calc(100vh - 200px); width: auto; max-width: 100%; border-radius: 14px; background: #000; }
.player-desc { margin-top: 14px; color: rgba(255,255,255,.72); max-width: 60em; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 150;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600;
  max-width: calc(100% - 32px); box-shadow: var(--shadow);
}

/* ==========================================================================
   Reduced motion: everything appears without movement
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal-line > span, .reveal-ready .reveal-up { transform: none !important; }
  .js .fade-in, .js .reel, .reveal-ready .reveal-up { opacity: 1 !important; }
}

/* Phones: full-width hero buttons, slightly smaller intro */
@media (max-width: 520px) {
  .lede { font-size: 1.08rem; margin-top: 22px; }
  .hero-actions .btn, .contact-actions .btn { flex: 1 1 100%; }
  .facts { margin-top: 32px; }
}
