
/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video, canvas, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--red); color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 16px; border-radius: var(--radius); font-weight: 500; transition: top var(--dur) var(--ease); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- small pieces: REC dot, eyebrow, buttons ---------- */
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.rec-dot.is-live { animation: rec 1.6s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: .25; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-micro); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 28px; border-radius: var(--radius-pill); font-size: var(--fs-small); font-weight: 500; letter-spacing: .02em; text-decoration: none; border: 1px solid transparent; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); white-space: nowrap; }
.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-hover); }
.btn--primary:active { background: var(--red-press); }
.btn--ghost { border-color: var(--g-700); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); }
.btn--sm { min-height: 40px; padding: 0 20px; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); background: linear-gradient(#000 40%, rgba(0,0,0,0)); transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); border-bottom: 1px solid transparent; }
.nav.is-solid { background: rgba(0,0,0,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav__in { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.nav__logo { display: flex; align-items: center; flex: none; }
.nav__logo img { height: 36px; width: auto; }
.nav__logo .logo-full { display: none; }
.nav__links { display: none; margin-left: auto; gap: var(--s-4); }
.nav__links a { position: relative; font-size: var(--fs-small); font-weight: 400; color: var(--text-2); text-decoration: none; padding: 8px 0; transition: color var(--dur) var(--ease); }
.nav__links a:hover { color: var(--white); }
.nav__links a[aria-current="true"] { color: var(--white); }
.nav__links a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); }
.nav__tools { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--g-800); border-radius: var(--radius-pill); padding: 2px; }
.lang button { min-width: 40px; min-height: 32px; padding: 0 10px; border-radius: var(--radius-pill); font-size: var(--fs-micro); font-weight: 500; letter-spacing: .1em; color: var(--text-2); transition: color var(--dur), background var(--dur); }
.lang button:hover { color: var(--white); }
.lang button[aria-pressed="true"] { background: var(--white); color: var(--black); }
.nav__cta { display: none; }
.nav__burger { width: 44px; height: 44px; display: inline-grid; place-content: center; gap: 6px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform var(--dur) var(--ease), opacity var(--dur); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: #000; padding: var(--s-4) var(--gutter); display: none; flex-direction: column; gap: var(--s-1); overflow-y: auto; }
.menu.is-open { display: flex; }
.menu a:not(.btn) { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-h3); font-weight: 300; text-decoration: none; }
.menu a small { font-size: var(--fs-micro); letter-spacing: .12em; color: var(--text-3); min-width: 2ch; }
.menu .btn { margin-top: var(--s-3); }

@media (min-width: 900px) {
  .nav__logo .logo-icon { display: none; }
  .nav__logo .logo-full { display: block; }
}
/* the full link row needs room in every language (Spanish and Portuguese are longer), so the burger menu lasts until 1100px */
@media (min-width: 1100px) {
  .nav__links { display: flex; }
  .nav__tools { margin-left: var(--s-3); }
  .nav__cta { display: inline-flex; }
  .nav__burger, .menu { display: none !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; min-height: max(100svh, 600px); display: flex; align-items: center; padding-top: var(--nav-h); overflow: clip; }

.hero__cue { position: absolute; left: var(--gutter); bottom: 24px; z-index: 3; display: flex; align-items: center; gap: 12px; font-size: var(--fs-micro); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); transition: opacity var(--dur) var(--ease); }
.hero__cue i { display: block; width: 1px; height: 32px; background: linear-gradient(var(--g-600), transparent); }
.hero__grid { display: grid; gap: var(--s-5); align-items: center; width: 100%; }
.hero__copy { position: relative; z-index: 2; display: grid; gap: var(--s-3); justify-items: start; }
.hero h1 { font-size: var(--fs-h1); font-weight: 300; line-height: 1.04; letter-spacing: -.025em; max-width: 16ch; }
.hero h1 strong { font-weight: 700; display: block; }
.hero .lead { font-size: var(--fs-lead); font-weight: 300; line-height: 1.55; color: var(--text-2); max-width: 36ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-1); }

/* viewfinder (portrait 9:16) */
.viewfinder { position: relative; aspect-ratio: 9 / 16; background: #070707 url("../media/hero/poster.webp") center / cover no-repeat; overflow: hidden; }
.viewfinder.is-landscape { aspect-ratio: 16 / 9; }
.viewfinder video, .viewfinder .vf__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf__chrome { position: absolute; inset: 0; z-index: 2; pointer-events: none; color: var(--white); text-shadow: 0 1px 8px rgba(0,0,0,.55); background: linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,.2) 24%, transparent 32%, transparent 70%, rgba(0,0,0,.65)); }
.vf__corner { filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); }
.vf__corner { position: absolute; width: 20px; height: 20px; }
.vf__corner::before, .vf__corner::after { content: ""; position: absolute; background: currentColor; }
.vf__corner::before { width: 100%; height: 1px; top: 50%; left: 0; }
.vf__corner::after { width: 1px; height: 100%; left: 50%; top: 0; }
.vf__corner--tl { top: 16px; left: 16px; } .vf__corner--tr { top: 16px; right: 16px; }
.vf__corner--bl { bottom: 16px; left: 16px; } .vf__corner--br { bottom: 16px; right: 16px; }
.vf__top { position: absolute; top: 44px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-micro); font-weight: 500; letter-spacing: .14em; }
.vf__rec { display: inline-flex; align-items: center; gap: 8px; }
.vf__bottom { position: absolute; bottom: 44px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.vf__time { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 300; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.vf__time span { color: var(--text-2); }
.vf__ctrl { position: absolute; z-index: 3; right: 20px; bottom: 36px; display: flex; gap: 8px; }
.vf__ctrl[hidden] { display: none; }
.vf__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--white); font-size: var(--fs-micro); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; transition: border-color var(--dur), background var(--dur); }
.vf__btn[hidden] { display: none; }
.vf__btn:hover { border-color: var(--white); background: rgba(0,0,0,.65); }
.vf__sound .vf__waves { display: none; } .vf__sound.is-on .vf__waves { display: inline; } .vf__sound.is-on .vf__mute { display: none; }
.vf__play .vf__ico-pause { display: none; } .vf__play.is-playing .vf__ico-pause { display: inline; } .vf__play.is-playing .vf__ico-play { display: none; }
.vf__empty { position: absolute; inset: 0; display: grid; place-content: center; padding-top: 88px; justify-items: center; gap: 12px; color: var(--text-3); font-size: var(--fs-micro); letter-spacing: .2em; text-transform: uppercase; background: radial-gradient(120% 70% at 50% 40%, #151515, #050505); }
.vf__cross { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; color: var(--g-700); }
.vf__cross::before, .vf__cross::after { content: ""; position: absolute; background: currentColor; }
.vf__cross::before { left: 0; right: 0; top: 50%; height: 1px; } .vf__cross::after { top: 0; bottom: 0; left: 50%; width: 1px; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s-6); }
  .viewfinder { justify-self: end; height: min(calc(100svh - var(--nav-h) - 64px), 760px); width: auto; }
  .viewfinder.is-landscape { height: auto; width: 100%; }
}
@media (max-width: 899px) {
  .hero { align-items: flex-end; padding-bottom: var(--s-5); }
  .hero__grid { position: static; }
  .viewfinder { position: absolute; inset: 0; aspect-ratio: auto; z-index: 0; }
  .viewfinder::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, #000 10%, rgba(0,0,0,.82) 40%, rgba(0,0,0,.3) 70%, rgba(0,0,0,.45) 100%); }
  .vf__chrome { z-index: 3; }
  .vf__bottom { bottom: auto; top: calc(var(--nav-h) + 68px); justify-content: flex-start; }
  .vf__ctrl { bottom: auto; top: calc(var(--nav-h) + 60px); right: var(--gutter); }
  .hero h1 { max-width: none; }
  .vf__top { top: calc(var(--nav-h) + 34px); }
  .vf__corner--tl, .vf__corner--tr { top: calc(var(--nav-h) + 8px); }
  .vf__empty { place-content: start center; padding-top: 34svh; }
  .hero__cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* mobile hero: the copy sits on moving footage, so use full white with a soft shadow */
@media (max-width: 899px) {
  .hero .lead, .hero .eyebrow { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.65); }
}

/* ---------- intro preloader (once per session; see DESIGN-DIRECTION Revision F) ---------- */
.intro { display: none; }
.intro-on .intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #000; color: #fff; cursor: pointer; will-change: transform; }
.intro:focus { outline: none; }
.intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.intro__mark { width: min(34vw, 150px); height: auto; overflow: visible; }
.intro__s { fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: intro-draw 1.1s cubic-bezier(.65, 0, .35, 1) .15s forwards, intro-fill .45s ease 1s forwards; }
.intro__s--b { animation-delay: .3s, 1.05s; }
.intro__dot { fill: var(--red); opacity: 0; filter: drop-shadow(0 0 7px rgba(212, 13, 33, .85)); animation: intro-rec .9s linear 1.25s forwards; }
.intro.is-out { transform: translateY(-100%); transition: transform .65s cubic-bezier(.7, 0, .2, 1); pointer-events: none; }
.intro.is-out.is-fast { transition-duration: .3s; }
#main:focus { outline: none; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
@keyframes intro-fill { to { fill-opacity: 1; } }
@keyframes intro-rec { 0% { opacity: 0; } 25% { opacity: 1; } 50% { opacity: .15; } 75%, 100% { opacity: 1; } }

/* ---------- hero design layer (desktop; the phone hero is the full-bleed video) ---------- */
.hero { isolation: isolate; }
.hero__lens, .hero__ruler, .hero__meta { display: none; }
@media (min-width: 900px) {
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(42% 62% at 78% 52%, rgba(212, 13, 33, .26), transparent 72%), radial-gradient(30% 40% at 8% 100%, rgba(255, 255, 255, .05), transparent 70%); }
  .hero__lens { display: block; position: absolute; z-index: -1; top: 50%; width: min(60vw, 880px); height: auto; aspect-ratio: 1; right: calc(var(--gutter) + min(100svh - var(--nav-h) - 64px, 760px) * .28125 - min(60vw, 880px) / 2); transform: translateY(-50%); pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 12%, #000 42%); mask-image: linear-gradient(90deg, transparent 12%, #000 42%); }
  .hero__lens circle, .hero__lens polygon, .hero__lens path { fill: none; stroke: #fff; vector-effect: non-scaling-stroke; }
  .hero__lens .l-thin { stroke-opacity: .16; stroke-width: 1; }
  .hero__lens .l-hair { stroke-opacity: .09; stroke-width: 1; }
  .hero__lens .l-ticks { stroke-opacity: .34; stroke-width: 12; stroke-dasharray: 1.4 14.6; }
  .hero__lens .l-ticks--fine { stroke-width: 6; stroke-dasharray: 1 9; stroke-opacity: .22; }
  .hero__lens .l-red { stroke: var(--red); stroke-opacity: 1; stroke-width: 3; stroke-dasharray: 11 89; }
  .hero__lens .l-cross { stroke-opacity: .5; stroke-width: 1; }
  .hero__grid { position: relative; }
  .hero__ruler { display: block; position: absolute; top: 50%; right: calc(var(--gutter) + min(100svh - var(--nav-h) - 64px, 760px) * .5625 + 16px); width: 14px; height: min(calc(100svh - var(--nav-h) - 64px), 760px); transform: translateY(-50%); pointer-events: none;
    background-image: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .55) 0 1px, transparent 1px 80px), repeating-linear-gradient(to bottom, rgba(255, 255, 255, .28) 0 1px, transparent 1px 16px); background-size: 14px 100%, 7px 100%; background-position: right top, right top; background-repeat: no-repeat; }
  .hero__ruler::after { content: ""; position: absolute; right: 0; top: 50%; width: 22px; height: 2px; margin-top: -1px; background: var(--red); }
  .hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-2); padding-top: var(--s-3); border-top: 1px solid var(--line-strong); font-size: var(--fs-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
  .hero__meta > div { display: grid; gap: 4px; }
  .hero__meta dt { color: var(--text-3); }
  .hero__meta dd { margin: 0; color: var(--text); }
}

/* removed decoration: the hero keeps only the black ground, a soft red glow and the video */
.hero::before { background: radial-gradient(42% 62% at 78% 52%, rgba(212, 13, 33, .22), transparent 72%) !important; }
