/* ============================================================
   JTV — jonathanterrio.com
   Cinematic black-and-orange design system (consolidated).
   Tokens + base + utilities + components in one uploadable file.
   Built from the JTV Design System.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;900&family=Archivo+Expanded:wght@700;800;900&family=Space+Mono:wght@400;700&display=swap");

/* ---------------- Tokens ---------------- */
:root {
  /* Base blacks */
  --jt-ink: #000000;
  --jt-black: #0A0A0A;
  --jt-surface-1: #121212;
  --jt-surface-2: #1A1917;
  --jt-surface-3: #242220;
  --jt-hairline: rgba(255, 255, 255, 0.10);
  --jt-hairline-strong: rgba(255, 255, 255, 0.18);

  /* Orange accent ramp */
  --jt-orange: #FF5A1F;
  --jt-orange-bright: #FF7A3D;
  --jt-orange-deep: #E23E00;
  --jt-orange-glow: rgba(255, 90, 31, 0.35);
  --jt-orange-wash: rgba(255, 90, 31, 0.12);

  /* Text on dark */
  --jt-white: #FFFFFF;
  --jt-fog: #EDEAE4;
  --jt-mist: #B8B4AD;
  --jt-ash: #7A756D;
  --jt-faint: #4A4640;

  /* Semantic */
  --bg-page: var(--jt-black);
  --text-strong: var(--jt-white);
  --text-body: var(--jt-fog);
  --text-muted: var(--jt-mist);
  --text-faint: var(--jt-ash);
  --accent: var(--jt-orange);
  --accent-hover: var(--jt-orange-bright);
  --accent-press: var(--jt-orange-deep);
  --link: var(--jt-orange);
  --link-hover: var(--jt-orange-bright);

  /* Type */
  --font-display: "Archivo Expanded", "Archivo", system-ui, sans-serif;
  --font-sans: "Archivo", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700; --fw-black: 900;
  --fs-hero: clamp(3.5rem, 9vw, 9rem);
  --fs-display: clamp(2.75rem, 6vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 4.5vw, 4rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.75rem);
  --fs-h3: clamp(1.375rem, 2vw, 1.75rem);
  --fs-lead: clamp(1.125rem, 1.4vw, 1.375rem);
  --fs-body: 1.0625rem; --fs-sm: 0.9375rem; --fs-xs: 0.8125rem; --fs-eyebrow: 0.75rem;
  --lh-tight: 0.95; --lh-snug: 1.1; --lh-normal: 1.55;
  --ls-display: -0.02em; --ls-tight: -0.01em; --ls-eyebrow: 0.22em; --ls-caps: 0.08em;

  /* Space + layout */
  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px;
  --section-y: clamp(80px, 12vh, 160px);
  --section-x: clamp(20px, 5vw, 72px);
  --maxw: 1440px; --maxw-text: 680px;
  --gutter: clamp(16px, 3vw, 40px);

  /* Radius */
  --radius-sm: 4px; --radius-md: 8px; --radius-pill: 999px;

  /* Elevation */
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 30px 80px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 8px 40px var(--jt-orange-glow);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.2s; --dur-mid: 0.45s; --dur-slow: 0.8s; --dur-reveal: 1.1s;
}

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-black);
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--link-hover); }
img, video { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: var(--jt-orange); color: var(--jt-ink); }
:focus-visible { outline: 2px solid var(--jt-orange); outline-offset: 3px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--jt-black); }
::-webkit-scrollbar-thumb { background: var(--jt-surface-3); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--jt-orange); }

/* ---------------- Utility atoms ---------------- */
.jt-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.jt-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
.jt-eyebrow--plain::before { display: none; }

.jt-underline { position: relative; color: var(--text-strong); }
.jt-underline::after {
  content: ""; position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-expo);
}
.jt-underline:hover::after { transform: scaleX(1); }

.jt-section { padding: var(--section-y) var(--section-x); }
.jt-section__inner { max-width: var(--maxw); margin: 0 auto; }

@media (prefers-reduced-motion: no-preference) {
  .jt-reveal { opacity: 0; transform: translateY(28px);
    transition: opacity var(--dur-reveal) var(--ease-expo), transform var(--dur-reveal) var(--ease-expo); }
  .jt-reveal.is-in { opacity: 1; transform: none; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: var(--fw-bold);
  font-size: var(--fs-xs); letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 26px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: all var(--dur-fast) var(--ease-out); line-height: 1;
}
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--lg { padding: 18px 34px; font-size: var(--fs-sm); }
.btn--primary { background: var(--accent); color: var(--jt-ink); }
.btn--primary:hover { background: var(--accent-hover); color: var(--jt-ink); box-shadow: var(--shadow-glow); }
.btn--ghost { background: transparent; color: var(--jt-fog); border-color: var(--jt-hairline-strong); }
.btn--ghost:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------- Loader ---------------- */
#loader {
  position: fixed; inset: 0; z-index: 500; background: var(--jt-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  transition: opacity var(--dur-slow) var(--ease-out), visibility var(--dur-slow);
}
#loader.done { opacity: 0; visibility: hidden; }
.loader-mark {
  font: var(--fw-black) clamp(3rem, 12vw, 7rem)/1 var(--font-display);
  letter-spacing: -0.04em; text-transform: uppercase;
  color: transparent; position: relative;
  background: linear-gradient(var(--jt-white), var(--jt-white)) no-repeat;
  -webkit-background-clip: text; background-clip: text;
}
.loader-mark .dot { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.loader-bar { width: min(220px, 60vw); height: 2px; background: var(--jt-surface-3); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width var(--dur-fast) linear; }
.loader-pct { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.22em; color: var(--text-faint); }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--section-x);
  transition: all var(--dur-mid) var(--ease-out);
}
.nav.scrolled {
  padding: 14px var(--section-x);
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--jt-hairline);
}
.nav__brand { display: flex; align-items: center; gap: 12px; }
.nav__brand img { height: 42px; width: auto; transition: height var(--dur-mid) var(--ease-out); }
.nav.scrolled .nav__brand img { height: 34px; }
.nav__wordmark { font: var(--fw-black) 1.4rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--jt-white); text-transform: uppercase; }
.nav__wordmark .dot { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: var(--space-7); }
.nav__menu { display: flex; gap: var(--space-6); }
.nav__link {
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--jt-fog);
}
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__menu, .nav__links .btn { display: none; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  overflow: hidden; padding: 0 var(--section-x) clamp(48px, 9vh, 120px);
}
.hero__bg {
  position: absolute; inset: -8% 0; z-index: 0;
  background: radial-gradient(120% 90% at 70% 10%, #2a1a10 0%, #100b08 45%, #060606 100%);
  will-change: transform;
}
.hero__strips {
  position: absolute; inset: 0; z-index: 1; opacity: 0.06;
  background-image: repeating-linear-gradient(90deg, transparent 0 78px, rgba(255,255,255,0.5) 78px 79px);
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.4), transparent 30%, rgba(10,10,10,0.92));
}
.hero__inner { position: relative; z-index: 2; max-width: 1000px; }
.hero h1 {
  font: var(--fw-black) var(--fs-hero)/0.92 var(--font-display);
  letter-spacing: var(--ls-display); color: var(--jt-white);
  margin: 16px 0 0; text-transform: uppercase;
}
.hero h1 .accent { color: var(--accent); }
.hero__lead { font: var(--fs-lead)/1.5 var(--font-sans); color: var(--text-muted); max-width: 620px; margin: 28px 0 40px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__scroll {
  position: absolute; bottom: 28px; right: var(--section-x); z-index: 2;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-faint); display: flex; align-items: center; gap: 10px;
}
.hero__scroll span { width: 1px; height: 40px; background: var(--accent); }
@media (max-width: 860px) { .hero__scroll { display: none; } }

/* ---------------- Section heading ---------------- */
.heading { max-width: var(--maxw-text); }
.heading--center { margin: 0 auto; text-align: center; }
.heading--center .jt-eyebrow { justify-content: center; }
.heading__title {
  font: var(--fw-black) var(--fs-display)/1 var(--font-display);
  color: var(--jt-white); text-transform: uppercase; margin: 20px 0 0;
  overflow-wrap: break-word; /* never bleed past the text column into neighbours */
}
.heading__lead { color: var(--text-muted); margin-top: 20px; font-size: var(--fs-lead); }
.heading__rule { width: 64px; height: 3px; background: var(--accent); margin-top: 28px; }
.heading--center .heading__rule { margin-left: auto; margin-right: auto; }

/* ---------------- Video grids + cards ---------------- */
.work-grid { display: grid; gap: var(--gutter); margin-top: var(--space-8); }
.work-grid--wide { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.work-grid--reels { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.vcard {
  position: relative; display: block; width: 100%; padding: 0; border: none;
  background: var(--jt-surface-1); overflow: hidden; cursor: pointer;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-card);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
  text-align: left;
}
.vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.vcard__media { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 30% 0%, #201d1a, #0a0a0a 60%); }
.vcard--wide .vcard__media { aspect-ratio: 16 / 9; }
.vcard--reel .vcard__media { aspect-ratio: 9 / 16; }
.vcard__poster {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out); transform: scale(1.001);
}
.vcard:hover .vcard__poster { transform: scale(1.06); }
.vcard__grad { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.85)); }
.vcard__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 66px; height: 66px; border-radius: 999px;
  background: rgba(10,10,10,0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-fast) var(--ease-out);
}
.vcard:hover .vcard__play { background: var(--accent); border-color: var(--accent); transform: translate(-50%, -50%) scale(1.08); }
.vcard__play::before {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-left: 16px solid var(--jt-white); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.vcard:hover .vcard__play::before { border-left-color: var(--jt-ink); }
.vcard__meta { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.vcard__cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.vcard__title { font: var(--fw-bold) var(--fs-h3)/1.05 var(--font-display); color: var(--jt-white); margin-top: 6px; text-transform: uppercase; }
.vcard__client { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 4px; }
.vcard__time { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--jt-white); background: rgba(0,0,0,0.5); padding: 4px 8px; border-radius: 3px; backdrop-filter: blur(4px); }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--space-8); }
.stat__value { font: var(--fw-black) clamp(2.5rem, 5vw, 4rem)/1 var(--font-display); color: var(--jt-white); letter-spacing: -0.02em; }
.stat__value.accent { color: var(--accent); }
.stat__label { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-top: 10px; }

/* ---------------- About ---------------- */
.about__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-9); align-items: center; }
/* In the two-column layouts the display headline shares a row with a form/body,
   so it gets a column ~half the page. Let cells shrink and size the headline to
   the narrower measure so long words (e.g. "UNFORGETTABLE.") stay on their side. */
.about__grid > *, .contact__grid > * { min-width: 0; }
.about__grid .heading__title,
.contact__grid .heading__title { font-size: clamp(1.75rem, 3.4vw, 3.25rem); }
.about__body { display: grid; gap: var(--space-6); }
.about__body p:first-child { font: var(--fs-lead)/1.6 var(--font-sans); color: var(--text-body); }
.about__body p { color: var(--text-muted); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.badge {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--jt-hairline-strong); padding: 8px 14px; border-radius: var(--radius-pill);
}

/* ---------------- Services ---------------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px;
  margin-top: var(--space-8); background: var(--jt-hairline); border: 1px solid var(--jt-hairline);
}
.service { background: var(--jt-surface-1); padding: var(--space-7) var(--space-6); transition: background var(--dur-fast) var(--ease-out); }
.service:hover { background: var(--jt-surface-2); }
.service__n { font-family: var(--font-mono); color: var(--accent); font-size: 13px; letter-spacing: 0.08em; }
.service h3 { font: var(--fw-bold) var(--fs-h3)/1.1 var(--font-display); color: var(--jt-white); margin: 16px 0 10px; }
.service p { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------------- Client marquee ---------------- */
.marquee { position: relative; overflow: hidden; padding: var(--space-6) 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: var(--space-8); width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex; align-items: center; justify-content: center; flex: none;
  height: 84px; width: 168px; padding: 14px 22px;
  background: #F4F1EB; border-radius: var(--radius-md);
  filter: grayscale(1); opacity: 0.72;
  transition: opacity var(--dur-fast) var(--ease-out), filter var(--dur-fast) var(--ease-out);
}
.marquee__item:hover { opacity: 1; filter: grayscale(0); }
.marquee__item img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.marquee__diamond { color: var(--accent); font-size: 10px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; } }

/* ---------------- Contact ---------------- */
.contact__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-9); }
.contact__email { font: var(--fw-bold) var(--fs-h3)/1 var(--font-display); color: var(--accent); }
.contact__loc { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--text-faint); }
.contact__socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-6); }
.contact__social {
  font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--jt-hairline-strong); padding: 10px 16px; border-radius: var(--radius-pill);
}
.contact__social:hover { color: var(--accent); border-color: var(--accent); }
.form { display: grid; gap: var(--space-6); align-self: start; }
.contact__embed { align-self: start; min-width: 0; }
.contact__embed iframe { display: block; width: 100%; background: var(--jt-ink); border-radius: var(--radius-sm); }
.field label { display: block; font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--jt-hairline-strong);
  color: var(--jt-white); font-family: var(--font-sans); font-size: var(--fs-body); padding: 10px 0;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { resize: vertical; }
.form__note { background: transparent; border: none; cursor: pointer; padding: 0; text-align: left; }
.contact__ok { border: 1px solid var(--jt-hairline); border-radius: var(--radius-sm); padding: var(--space-9) var(--space-7); text-align: center; align-self: start; }
.contact__ok h3 { font: var(--fw-black) var(--fs-h2)/1 var(--font-display); color: var(--jt-white); }
.contact__ok .accent { color: var(--accent); }

/* ---------------- Footer ---------------- */
.footer { background: var(--jt-ink); border-top: 1px solid var(--jt-hairline); padding: var(--space-9) var(--section-x) var(--space-7); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__wordmark { font: var(--fw-black) clamp(4rem, 16vw, 13rem)/0.85 var(--font-display); color: var(--jt-surface-3); letter-spacing: -0.04em; text-transform: uppercase; }
.footer__wordmark .dot { color: var(--accent); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-6); margin-top: var(--space-7); align-items: flex-end; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--space-6); }
.footer__links a { color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; }
.footer__links a:hover { color: var(--accent); }
.footer__legal { color: var(--text-faint); font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.06em; }

/* ---------------- Lightbox ---------------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: none; align-items: center; justify-content: center; padding: var(--section-x); }
.lightbox.open { display: flex; }
.lightbox__frame { width: min(1100px, 100%); position: relative; }
.lightbox--reel .lightbox__frame { width: min(420px, 92vw); }
.lightbox__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; gap: 16px; }
.lightbox__cat { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lightbox__title { font: var(--fw-black) var(--fs-h2)/1 var(--font-display); color: #fff; margin-top: 8px; text-transform: uppercase; }
.lightbox__close { background: transparent; border: 1px solid var(--jt-hairline-strong); color: #fff; width: 44px; height: 44px; border-radius: 999px; cursor: pointer; font-size: 18px; flex: none; }
.lightbox__close:hover { border-color: var(--accent); color: var(--accent); }
.lightbox__video { position: relative; width: 100%; background: #000; border: 1px solid var(--jt-hairline); }
.lightbox__video.ar-wide { aspect-ratio: 16 / 9; }
.lightbox__video.ar-reel { aspect-ratio: 9 / 16; }
.lightbox__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- Back to top + mobile bar ---------------- */
.backtotop {
  position: fixed; right: 20px; bottom: 24px; z-index: 180;
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--jt-hairline-strong);
  background: rgba(10,10,10,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--jt-white); cursor: pointer; font-size: 18px; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out), background var(--dur-fast);
}
.backtotop.show { opacity: 1; pointer-events: auto; }
.backtotop:hover { background: var(--accent); color: var(--jt-ink); border-color: var(--accent); }
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 190; display: none;
  align-items: center; justify-content: center; gap: 8px; padding: 16px;
  background: var(--accent); color: var(--jt-ink); font-weight: var(--fw-bold);
  letter-spacing: 0.04em; text-transform: uppercase; font-size: 15px;
}
@media (max-width: 760px) {
  .mobilebar { display: flex; }
  .backtotop { bottom: 76px; }
  body { padding-bottom: 56px; }
}

/* Small screens: scale cinematic type so long single words never overflow */
@media (max-width: 600px) {
  :root {
    --fs-hero: clamp(1.85rem, 8vw, 3rem);
    --fs-display: clamp(1.75rem, 6.8vw, 2.75rem);
  }
  .hero h1, .heading__title, .footer__wordmark { overflow-wrap: break-word; hyphens: none; }
  .hero { align-items: center; }
  .hero__lead { font-size: 1.0625rem; }
}
