/* ============================================================================
   MuriloWentz — styles.css
   Dark-first. Brand vermilion accent. Signature = timecode + waveform.
   Mobile-first; scales to large calibrated desktop/Mac displays.
   ========================================================================== */

/* ----------------------------- Fonts -------------------------------------- */
@font-face{
  font-family:"Gobold"; src:url("assets/fonts/Gobold-Bold.otf") format("opentype");
  font-weight:700; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Gobold"; src:url("assets/fonts/Gobold-Regular.otf") format("opentype");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Gotham"; src:url("assets/fonts/Gotham-Light.otf") format("opentype");
  font-weight:300; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Gotham"; src:url("assets/fonts/Gotham-Book.ttf") format("truetype");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Gotham"; src:url("assets/fonts/Gotham-Medium.ttf") format("truetype");
  font-weight:500; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Gotham"; src:url("assets/fonts/Gotham-Bold.ttf") format("truetype");
  font-weight:700; font-style:normal; font-display:swap;
}

/* ----------------------------- Tokens ------------------------------------- */
:root{
  --bg:#09090A;
  --bg-2:#0C0C0E;
  --surface:#141416;
  --surface-2:#191920;
  --surface-3:#21212a;
  --line:rgba(255,255,255,.09);
  --line-2:rgba(255,255,255,.055);

  --accent:#E0430F;          /* brand vermilion (sampled from brand assets) */
  --accent-bright:#FF5A2A;   /* playhead leading edge / highlight / accent text on surfaces */
  --accent-press:#B8350A;
  --accent-btn:#D33E0C;      /* CTA fill — a touch deeper so white label passes AA (4.7:1) */
  --accent-10:rgba(224,67,15,.10);
  --accent-16:rgba(224,67,15,.16);
  --accent-24:rgba(224,67,15,.24);
  --accent-40:rgba(224,67,15,.40);

  --text:#F4F2EF;
  --text-muted:#9B9AA0;
  --text-dim:#8A8990;        /* raised to clear AA (~5.4:1) — used for small secondary text */

  --font-display:"Gobold","Gotham",system-ui,sans-serif;
  --font-sans:"Gotham",system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  --font-mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,"Cascadia Code","Roboto Mono",Consolas,monospace;

  --wrap:1200px;
  --pad:clamp(20px,5vw,40px);
  --r-sm:10px;
  --r:16px;
  --r-lg:22px;
  --r-pill:999px;

  --sec-y:clamp(52px,7vw,92px);
  --nav-h:68px;

  --ease:cubic-bezier(.22,.61,.36,1);
  --shadow:0 24px 60px -24px rgba(0,0,0,.7);
}

/* ----------------------------- Reset/base --------------------------------- */
*,*::before,*::after{box-sizing:border-box}
*{margin:0}
html{
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust:100%;
}
body{
  position:relative;             /* positioning context for the .content-veil dark backdrop */
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  font-weight:400;
  line-height:1.6;
  letter-spacing:.005em;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
/* subtle film-grain + warm vignette, echoing the brand's textured black */
body::before{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(120% 80% at 8% -10%, rgba(224,67,15,.10), transparent 42%),
    radial-gradient(120% 80% at 100% 0%, rgba(224,67,15,.05), transparent 40%);
}
body::after{
  content:""; position:fixed; inset:0; z-index:0; pointer-events:none; opacity:.05;
  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");
}
main,header,footer{position:relative; z-index:1}

img,svg,video,canvas{display:block; max-width:100%}
a{color:inherit; text-decoration:none}
button{font:inherit; color:inherit; cursor:pointer; background:none; border:none}
a,button,[role="slider"],[tabindex]{-webkit-tap-highlight-color:transparent}
ul,ol{list-style:none; padding:0}
::selection{background:var(--accent); color:#fff}

:focus-visible{outline:2px solid var(--accent-bright); outline-offset:3px; border-radius:4px}

.skip-link{
  position:fixed; left:12px; top:-60px; z-index:200;
  background:var(--accent); color:#fff; padding:10px 16px; border-radius:var(--r-sm);
  font-weight:500; transition:top .2s var(--ease);
}
.skip-link:focus{top:12px}

/* hide translatable text until the right language is applied → no EN↔PT flash on load */
html:not(.i18n-ready) [data-i18n],
html:not(.i18n-ready) [data-i18n-html]{visibility:hidden}

.mono{font-family:var(--font-mono); font-variant-numeric:tabular-nums; letter-spacing:.02em}

/* ----------------------------- Layout ------------------------------------- */
.wrap{width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--pad)}
.section{padding-block:var(--sec-y)}
.section + .section{border-top:1px solid var(--line-2)}

/* Section header (timecode + label) */
.sec-head{
  display:flex; align-items:center; gap:14px; margin-bottom:18px;
  color:var(--text-muted);
}
.sec-head__tc{
  color:var(--accent-bright); font-size:.8rem; font-weight:500;
  padding:3px 9px; border:1px solid var(--accent-24); border-radius:var(--r-pill);
  background:var(--accent-10);
}
.sec-head__line{height:1px; width:clamp(28px,5vw,64px); background:linear-gradient(90deg,var(--accent),transparent)}
.sec-head__label{
  font-size:.78rem; font-weight:500; letter-spacing:.16em; text-transform:uppercase;
}
.sec-head--center{justify-content:center}

.sec-title{
  font-family:var(--font-display); font-weight:700; line-height:1.0;
  letter-spacing:.005em; text-transform:uppercase;
  font-size:clamp(2rem,5.2vw,3.7rem);
  max-width:18ch;
}
.sec-sub{
  color:var(--text-muted); margin-top:16px; max-width:54ch;
  font-size:clamp(1rem,1.6vw,1.12rem);
}

/* ----------------------------- Buttons ------------------------------------ */
.btn{
  display:inline-flex; align-items:center; gap:10px; justify-content:center;
  padding:13px 22px; border-radius:var(--r-pill); font-weight:500; line-height:1;
  letter-spacing:.01em; border:1px solid transparent;
  transition:transform .25s var(--ease), background-color .2s var(--ease),
             border-color .2s var(--ease), box-shadow .25s var(--ease), color .2s;
}
.btn--accent{
  background:var(--accent-btn); color:#fff;
  box-shadow:0 10px 30px -10px var(--accent-40);
}
.btn--accent:hover{transform:translateY(-2px); box-shadow:0 18px 42px -12px var(--accent-40)}
.btn--accent:active{background:var(--accent-press); transform:translateY(0)}
.btn--ghost{
  background:transparent; color:var(--text); border-color:var(--line);
}
.btn--ghost:hover{border-color:var(--accent); color:#fff; transform:translateY(-2px)}
/* dark fill + orange border — secondary "option 2" button */
.btn--outline{background:var(--surface); color:var(--text); border-color:var(--accent)}
.btn--outline:hover{background:var(--accent-10); border-color:var(--accent-bright); transform:translateY(-2px)}
.btn--outline:active{background:var(--surface); transform:translateY(0)}
.btn--lg{padding:16px 26px; font-size:1.02rem}
.btn__ico{flex:none}

/* ----------------------------- Tag row ------------------------------------ */
.tagrow{display:flex; flex-wrap:wrap; gap:10px}
.tagrow li{
  font-size:.86rem; color:var(--text-muted); font-weight:500;
  padding:7px 14px; border:1px solid var(--line); border-radius:var(--r-pill);
  background:var(--surface); letter-spacing:.01em;
}

/* ============================== NAV ======================================= */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:100; height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(9,9,10,.72);
  background:color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter:blur(16px) saturate(1.3);
  backdrop-filter:blur(16px) saturate(1.3);
  border-bottom:1px solid transparent;
  transition:border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled{background:rgba(9,9,10,.82); background:color-mix(in srgb, var(--bg) 84%, transparent)}  /* no hard border line — just a soft frosted darken */
.nav__inner{
  width:100%; max-width:var(--wrap); margin-inline:auto;
  padding-inline:max(var(--pad), env(safe-area-inset-left)) max(var(--pad), env(safe-area-inset-right));
  display:flex; align-items:center; justify-content:space-between; gap:18px;
}

.brand{display:inline-flex; align-items:center; gap:10px; color:var(--text)}
.brand__mark{color:#fff; display:inline-flex; transition:transform .3s var(--ease)}
.brand:hover .brand__mark{transform:translateY(-1px)}
.brand__word{font-weight:700; font-size:1.06rem; letter-spacing:.01em}
.brand__a{color:var(--text)}
.brand__b{color:var(--text-muted)}
.brand:hover .brand__b{color:var(--accent)}
.brand--sm .brand__word{font-size:1rem}

.nav__links{display:flex; align-items:center; gap:6px}
.nav__links a{
  position:relative; padding:9px 14px; border-radius:var(--r-pill);
  font-size:.92rem; font-weight:500; color:var(--text-muted);
  transition:color .2s var(--ease), background-color .2s var(--ease);
}
.nav__links a:hover{color:var(--text)}
.nav__links a.is-active{color:var(--text)}
.nav__links a.is-active::after{
  content:""; position:absolute; left:14px; right:14px; bottom:3px; height:2px;
  background:var(--accent); border-radius:2px;
}

.nav__actions{display:flex; align-items:center; gap:10px}
.lang-toggle{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 14px 7px 9px; border:1px solid var(--line); border-radius:var(--r-pill);
  font-size:.86rem; font-weight:500;
  color:var(--text); transition:border-color .2s var(--ease), background-color .2s var(--ease);
}
.lang-toggle:hover{border-color:var(--accent); background:var(--accent-10)}
.lang-toggle__flag{
  display:inline-flex; width:22px; height:16px; flex:none;
  border-radius:3px; overflow:hidden; box-shadow:0 0 0 1px rgba(255,255,255,.14);
}
.lang-toggle__flag svg{display:block; width:100%; height:100%}
.lang-toggle__label{white-space:nowrap}

.nav__burger{display:none; width:42px; height:42px; border:1px solid var(--line); border-radius:12px; padding:11px}
.nav__burger span{display:block; height:2px; background:var(--text); border-radius:2px; transition:transform .3s var(--ease), opacity .2s var(--ease)}
.nav__burger span + span{margin-top:5px}
.nav__burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav__burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav__burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ============================== HERO ====================================== */
.hero{position:relative; min-height:100vh; min-height:100svh; display:flex; align-items:center; padding-top:var(--nav-h); overflow:hidden}
.hero__glow{
  position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(70% 62% at 86% -4%, rgba(224,67,15,.17), transparent 60%),   /* top-right warm glow (kept above the 3D) */
    radial-gradient(56% 50% at 16% 28%, rgba(224,67,15,.11), transparent 62%),
    radial-gradient(40% 40% at 92% 82%, rgba(224,67,15,.05), transparent 60%);
}
/* WebGL 3D waveform (desktop only; self-loaded by hero3d.js) */
.hero__canvas{
  position:fixed; inset:0; z-index:0; width:100vw; height:100vh;
  pointer-events:none; opacity:0; display:none;   /* opacity driven by hero3d.js (scroll) */
}
.hero__veil{position:absolute; inset:0; z-index:0; pointer-events:none; display:none;
  /* LEFT darkening only, for hero-text legibility. The hero→content seam is handled by the SINGLE
     continuous .content-veil (it extends UP into the hero bottom with a soft top fade), so there is
     no second layer and no boundary at the hero→about edge at all. */
  background:linear-gradient(90deg, var(--bg) 2%, rgba(9,9,10,.5) 34%, rgba(9,9,10,0) 74%);
}
.has-hero3d .hero__canvas{display:block}
.has-hero3d .hero__veil{display:block}
/* Darkened backdrop = ONE continuous layer (.content-veil, built by hero3d.js) that covers BOTH the
   hero bottom AND all the content. Its top has a soft 220px fade-in (transparent → .78) that sits in
   the hero bottom, then it's solid .78 all the way down. Because it's a SINGLE element spanning the
   hero→content edge, there is literally no seam/boundary there — nothing to "double-darken".
   (Mobile / no-3D: no veil; content composites over the solid page bg = same dark.) */
.content-veil{position:absolute; inset:0; z-index:0; pointer-events:none;
  background:linear-gradient(180deg, rgba(9,9,10,0) 0, rgba(9,9,10,.78) 220px);}
.has-hero3d .section + .section{border-top-color:transparent}
.has-hero3d .footer{border-top-color:transparent}
/* The signature reel: clean/transparent over the 3D at the very top, then its frosted
   "console" surface FADES IN once you start scrolling (keeps it legible over the moving bars). */
.has-hero3d .reel{
  --rf:0;                     /* 0 at the very top → 1 once scrolled, set smoothly by hero3d.js */
  position:relative;
  padding:clamp(20px,2.4vw,30px) clamp(20px,2.6vw,32px);
  border-radius:20px;
  border:1px solid rgb(255 255 255 / calc(var(--rf) * .09));
  background:rgb(10 10 12 / calc(var(--rf) * .5));
  -webkit-backdrop-filter:blur(calc(var(--rf) * 16px)) saturate(1.1);
  backdrop-filter:blur(calc(var(--rf) * 16px)) saturate(1.1);
  box-shadow:0 26px 64px -30px rgb(0 0 0 / calc(var(--rf) * .82)), inset 0 1px 0 rgb(255 255 255 / calc(var(--rf) * .05));
}
.has-hero3d .reel::after{
  content:""; position:absolute; left:20px; right:20px; top:0; height:1px; pointer-events:none;
  background:linear-gradient(90deg, transparent, var(--accent-24), transparent);
  opacity:var(--rf);
}

/* ===== themed cursor (desktop+motion) — custom orange arrow + orange pointer hand (black outline so
   they stay visible on both the near-black bg and the bright 3D bars). ===== */
.fx-on, .fx-on *{
  cursor:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='%23E0430F' stroke='%23000' stroke-width='2' d='M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z'/></svg>") 5 2, auto;
}
/* clickables → custom ORANGE pointer hand (data-URI). Selectors are class-scoped so they outrank
   elements that set their own cursor:pointer; falls back to the system `pointer` if the image fails. */
.fx-on a, .fx-on a *, .fx-on button, .fx-on button *, .fx-on label, .fx-on summary, .fx-on input, .fx-on select,
.fx-on [role="slider"], .fx-on [role="slider"] *, .fx-on [role="button"], .fx-on [role="button"] *,
.fx-on .btn, .fx-on .btn *, .fx-on .video-card, .fx-on .video-card *, .fx-on .spot, .fx-on .spot *,
.fx-on .contact-card, .fx-on .contact-card *, .fx-on .reel__wave, .fx-on .reel__play, .fx-on .reel__mute, .fx-on .reel__vol,
.fx-on .spot__wave, .fx-on .spot__play, .fx-on .spots-vol__slider, .fx-on .lang-toggle, .fx-on .lang-toggle *,
.fx-on .nav__burger, .fx-on .nav__burger *, .fx-on .cfab__main, .fx-on .cfab__main *, .fx-on .cfab__opt, .fx-on .cfab__opt *{
  cursor:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><path fill='%23E0430F' stroke='%23000' stroke-width='2' stroke-linejoin='round' d='M10 11V8.99c0-.88.59-1.64 1.44-1.86h.05A1.99 1.99 0 0 1 14 9.05V12v-2c0-.88.6-1.65 1.46-1.87h.05A1.98 1.98 0 0 1 18 10.06V13v-1.94a2 2 0 0 1 1.51-1.94h0A2 2 0 0 1 22 11.06V14c0 .6-.08 1.27-.21 1.97a7.96 7.96 0 0 1-7.55 6.48 54.98 54.98 0 0 1-4.48 0 7.96 7.96 0 0 1-7.55-6.48C2.08 15.27 2 14.59 2 14v-1.49c0-1.11.9-2.01 2.01-2.01h0a2 2 0 0 1 2.01 2.03l-.01.97v-10c0-1.1.9-2 2-2h0a2 2 0 0 1 2 2V11Z'/></svg>") 8 2, pointer;
}

/* ===== "living organism": per-letter ILLUMINATION driven by fx.js — letters warm + glow as the
   cursor APPROACHES (proximity, not just :hover). Each char is its own <span class="ink-l"> with a
   normal colour, so accents/punctuation render perfectly (no background-clip). The transition
   smooths the rise/fall so it never snaps. (desktop+motion) ===== */
.fx-on .ink-l{transition:color .07s linear, text-shadow .07s linear}
/* screen-reader copy of inked text: the per-letter spans are aria-hidden (their holders),
   and this visually-hidden span carries the readable text instead. user-select:none so
   copying the visible text doesn't duplicate it. */
.ink-sr{
  position:absolute; width:1px; height:1px; margin:-1px; padding:0; border:0;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap;
  -webkit-user-select:none; user-select:none;
}
/* chips have their OWN background, so warm + glow the WHOLE chip on hover */
.fx-on .tagrow li{transition:color .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease)}
.fx-on .tagrow li:hover{color:var(--accent-bright); border-color:var(--accent-24); box-shadow:0 0 16px var(--accent-16)}
.hero__inner{position:relative; z-index:1; padding-block:clamp(40px,9vw,90px)}
.hero__eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--text-muted); font-weight:500; font-size:.92rem; letter-spacing:.04em;
  margin-bottom:22px;
}
.hero__eyebrow .dot{width:8px; height:8px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 3px var(--accent-16); flex:none; animation:recPulse 2.4s ease-in-out infinite}
@keyframes recPulse{0%,100%{box-shadow:0 0 0 3px var(--accent-16); opacity:1} 50%{box-shadow:0 0 0 7px rgba(224,67,15,.03); opacity:.65}}
.hero__title{
  font-family:var(--font-display); font-weight:700; text-transform:uppercase;
  line-height:1.05; letter-spacing:.004em;
  font-size:clamp(1.9rem,6vw,4.4rem);
  max-width:16ch; color:var(--text);
}
.hero__title .em{color:var(--accent)}
.hero__sub{
  margin-top:26px; max-width:50ch; color:var(--text-muted);
  font-size:clamp(1.05rem,1.9vw,1.32rem); font-weight:300; line-height:1.55;
}
.hero__cta{display:flex; flex-wrap:wrap; gap:14px; margin-top:34px}

/* Signature reel: timecode + waveform + playhead */
/* showreel player — centered */
.reel{margin:clamp(40px,7vw,72px) auto 0; max-width:560px; width:100%}
.reel__bar{display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; color:var(--text-muted)}
.reel__tc{color:var(--accent-bright); font-size:.9rem; font-weight:500}
.reel__tag{font-size:.72rem; letter-spacing:.16em; text-transform:uppercase}
.reel__main{display:flex; align-items:center; gap:16px}
.reel__wave{position:relative; height:76px; flex:1; cursor:pointer}
.reel__wave svg{width:100%; height:100%; overflow:visible}
.reel__play{
  position:relative; width:54px; height:54px; flex:none; border-radius:50%;
  display:grid; place-items:center; color:#fff; background:var(--accent);
  box-shadow:0 8px 24px -6px var(--accent-40);
  transition:transform .2s var(--ease), background-color .2s var(--ease);
}
.reel__play:hover{transform:scale(1.06); background:var(--accent-bright)}
.reel__play > svg{position:relative; z-index:1}
.reel__play .ico-pause{display:none}
.reel.is-playing .reel__play .ico-play{display:none}
.reel.is-playing .reel__play .ico-pause{display:block}
/* subtle pulse to invite play — stops once the reel is playing */
.reel__pulse{position:absolute; inset:0; border-radius:50%; background:var(--accent); z-index:0; animation:reelPulse 2.6s ease-out infinite}
@keyframes reelPulse{0%{transform:scale(1); opacity:.4} 70%{transform:scale(1.7); opacity:0} 100%{opacity:0}}
.reel.is-playing .reel__pulse{animation:none; opacity:0}
.reel__foot{display:flex; align-items:center; justify-content:center; gap:10px; margin-top:16px}
.reel__mute{width:34px; height:34px; flex:none; border-radius:50%; display:grid; place-items:center; color:var(--text-muted); border:1px solid var(--line); transition:color .2s var(--ease), border-color .2s var(--ease)}
.reel__mute:hover{color:var(--text); border-color:var(--accent)}
.reel__mute .ico-off{display:none}
.reel__mute.is-muted{color:var(--accent); border-color:var(--accent-24)}
.reel__mute.is-muted .ico-on{display:none}
.reel__mute.is-muted .ico-off{display:block}
.reel__vol{width:clamp(120px,18vw,180px); height:6px; accent-color:var(--accent); cursor:pointer}
.reel__vol:focus-visible{outline:2px solid var(--accent-bright); outline-offset:6px}
.reel__note{margin:14px 0 0; text-align:center; font-size:.78rem; line-height:1.5;
  color:var(--text-dim); max-width:46ch; margin-inline:auto}

.hero__scroll{
  position:absolute; left:max(var(--pad), env(safe-area-inset-left)); bottom:max(26px, env(safe-area-inset-bottom)); z-index:1;
  display:inline-flex; align-items:center; gap:12px;
  color:var(--text-muted); font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
}
.hero__scroll-line{width:46px; height:1px; background:var(--text-dim); position:relative; overflow:hidden}
.hero__scroll-line::after{content:""; position:absolute; inset:0; width:40%; background:var(--accent); animation:scrollLine 2.2s var(--ease) infinite}
@keyframes scrollLine{0%{transform:translateX(-100%)}60%,100%{transform:translateX(260%)}}

/* ============================== ABOUT ===================================== */
.about__grid{display:grid; grid-template-columns:1fr; gap:clamp(22px,4vw,56px)}
.about__text{font-size:clamp(1.12rem,2.1vw,1.5rem); line-height:1.5; font-weight:300; color:var(--text); max-width:34ch}
.about__body .tagrow{margin-top:26px}

/* ============================== WORK ====================================== */
/* horizontal carousel — swipe on touch, arrow buttons on desktop (no vertical stacking) */
.video-carousel{position:relative; margin-top:clamp(34px,5vw,56px)}
.video-grid{
  display:flex; gap:clamp(14px,2vw,22px);
  overflow-x:auto; overflow-y:hidden;
  padding:6px 8px 18px;                 /* side padding so the first/last cards don't sit flush
                                           against the scroller's clip edge (rounded corners + the
                                           hover border were getting shaved off there) */
  scroll-behavior:smooth;
  scrollbar-width:thin; scrollbar-color:var(--accent-24) transparent;
  -webkit-overflow-scrolling:touch;
}
.video-grid::-webkit-scrollbar{height:6px}
.video-grid::-webkit-scrollbar-thumb{background:var(--accent-24); border-radius:3px}
.video-grid::-webkit-scrollbar-thumb:hover{background:var(--accent)}
.video-grid::-webkit-scrollbar-track{background:transparent}
.video-card{
  position:relative; border-radius:var(--r); overflow:hidden;
  flex:0 0 clamp(260px, 82vw, 440px);
  background:var(--surface); border:1px solid var(--line-2);
  aspect-ratio:16/9; transition:border-color .3s var(--ease);
}
/* prev/next arrows (desktop) — hidden at the ends, replaced by swipe on mobile */
.video-nav{
  position:absolute; top:calc(50% - 6px); transform:translateY(-50%); z-index:3;
  width:44px; height:44px; border-radius:50%; display:grid; place-items:center; color:#fff;
  background:rgba(9,9,10,.55);
  -webkit-backdrop-filter:blur(8px) saturate(1.2); backdrop-filter:blur(8px) saturate(1.2);
  border:1px solid var(--line); box-shadow:0 8px 22px -8px rgba(0,0,0,.6);
  transition:background-color .2s var(--ease), border-color .2s var(--ease), opacity .25s var(--ease), transform .2s var(--ease);
}
.video-nav:hover{background:var(--accent); border-color:var(--accent); transform:translateY(-50%) scale(1.07)}
.video-nav:active{transform:translateY(-50%) scale(.96)}
.video-nav:focus-visible{outline:2px solid var(--accent-bright); outline-offset:3px}
.video-nav--prev{left:-6px}
.video-nav--next{right:-6px}
.video-nav:disabled{opacity:0; pointer-events:none}
@media (max-width:759px){ .video-nav{display:none} }
.video-card:hover{border-color:var(--accent-bright)}
.video-card__btn{position:absolute; inset:0; width:100%; height:100%; padding:0; display:block}
.video-card__thumb{width:100%; height:100%; object-fit:cover; filter:saturate(.9) brightness(.82)}
.video-card__scrim{position:absolute; inset:0; background:linear-gradient(180deg,transparent 40%,rgba(0,0,0,.45))}
.video-card__play{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width:74px; height:74px; border-radius:50%;
  display:grid; place-items:center;
  background:rgba(9,9,10,.30);
  background:color-mix(in srgb,var(--bg) 30%, transparent);
  border:1.5px solid rgba(255,255,255,.6);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
  transition:background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.video-card:hover .video-card__play{background:var(--accent); border-color:var(--accent); transform:translate(-50%,-50%) scale(1.06)}
.video-card__play svg{margin-left:3px}
.video-card__tc{
  position:absolute; left:14px; bottom:12px; z-index:2;
  font-family:var(--font-mono); font-size:.74rem; color:rgba(255,255,255,.8);
  padding:3px 8px; border-radius:6px; background:rgba(0,0,0,.4);
}
/* competency tags over the thumbnail (hidden once the video plays — clicking wipes the card) */
.video-card__tags{
  position:absolute; left:12px; right:12px; top:12px; z-index:3;
  display:flex; flex-wrap:wrap; gap:6px; margin:0; padding:0; list-style:none;
  pointer-events:none;                       /* clicks fall through to the play button */
  transition:opacity .25s var(--ease);
}
/* while the video is PLAYING, hide the tags; they come back when it's paused (in miniature) */
.video-card.is-playing .video-card__tags{opacity:0; visibility:hidden}
.video-card__tags li{
  font-size:.66rem; font-weight:500; line-height:1.15; letter-spacing:.01em; color:#fff;
  background:rgba(9,9,10,.5); border:1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
  padding:4px 9px; border-radius:999px; white-space:nowrap;
  transition:border-color .3s var(--ease);
}
.video-card:hover .video-card__tags li{border-color:var(--accent-40)}
.video-card iframe{position:absolute; inset:0; width:100%; height:100%; border:0}
.video-card__video{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:#000; border:0}
/* branded placeholder when a card has no poster image yet */
.video-card--ph{background:
  radial-gradient(120% 100% at 28% 0%, rgba(224,67,15,.13), transparent 55%),
  linear-gradient(160deg,#18181b,#0d0d0f);}
.video-card--ph .video-card__thumb{display:none}
.video-card--ph::after{
  content:""; position:absolute; left:10%; right:10%; bottom:18%; height:30%; opacity:.14; pointer-events:none;
  background:repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 6px);
  -webkit-mask:linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask:linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* ============================== SPOTS ===================================== */
.spot-list{margin-top:clamp(34px,5vw,56px); display:grid; gap:16px}
.spot{
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:clamp(14px,2.4vw,24px);
  padding:clamp(16px,2.4vw,24px); border-radius:var(--r);
  background:var(--surface); border:1px solid var(--line-2);
  transition:border-color .3s var(--ease), background-color .3s var(--ease);
}
.spot.is-active{border-color:var(--accent-24); background:var(--surface-2)}
.spot.is-error{opacity:.5}
.spot.is-error .spot__play{cursor:not-allowed}
.spot__play{
  width:56px; height:56px; flex:none; border-radius:50%;
  display:grid; place-items:center; color:#fff;
  background:var(--surface-3); border:1px solid var(--line);
  transition:background-color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.spot__play:hover{transform:scale(1.05); border-color:var(--accent)}
.spot.is-active .spot__play{background:var(--accent); border-color:var(--accent)}
.spot__play .ico-pause{display:none}
.spot.is-playing .spot__play .ico-play{display:none}
.spot.is-playing .spot__play .ico-pause{display:block}
.spot__index{font-family:var(--font-mono); color:var(--accent); font-size:.78rem; margin-right:2px}
.spot__wave{position:relative; height:60px; width:100%; cursor:pointer}
.spot__wave canvas{width:100%; height:100%}
.spot__time{color:var(--text-muted); font-size:.82rem; white-space:nowrap; min-width:84px; text-align:right}
.spot__time b{color:var(--text); font-weight:500}

/* master volume */
.spots-vol{display:flex; align-items:center; gap:12px; margin-top:clamp(28px,4vw,44px); justify-content:flex-end; flex-wrap:wrap}
.spots-vol__mute{
  width:40px; height:40px; flex:none; border-radius:50%; display:grid; place-items:center;
  color:var(--text-muted); border:1px solid var(--line); background:var(--surface);
  transition:border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.spots-vol__mute:hover{border-color:var(--accent); color:var(--text); transform:translateY(-1px)}
.spots-vol__mute .ico-off{display:none}
.spots-vol__mute.is-muted{color:var(--accent); border-color:var(--accent-24)}
.spots-vol__mute.is-muted .ico-on{display:none}
.spots-vol__mute.is-muted .ico-off{display:block}
.spots-vol__label{font-size:.72rem; letter-spacing:.16em; text-transform:uppercase; color:var(--text-muted)}
.spots-vol__slider{width:clamp(130px,24vw,210px); height:6px; cursor:pointer; accent-color:var(--accent)}
.spots-vol__slider:focus-visible{outline:2px solid var(--accent-bright); outline-offset:6px}

/* ============================== CV ======================================== */
.cv__grid{display:grid; grid-template-columns:1fr; gap:clamp(34px,5vw,64px)}
.cv__summary{margin-top:18px; color:var(--text-muted); max-width:50ch; font-size:1.05rem}
.cv__block{margin-top:30px}
.cv__sub{
  font-size:.74rem; letter-spacing:.16em; text-transform:uppercase; color:var(--text-dim);
  margin-bottom:14px; display:flex; align-items:center; gap:10px;
}
.cv__sub::before{content:""; width:18px; height:1px; background:var(--accent)}
.cv__actions{margin-top:32px; display:flex; flex-direction:column; gap:12px; max-width:340px}
.cv__dl{margin-top:0}

/* ---- CV download menu (PT / EN) ---- */
.cv-dl{position:relative}
.cv-dl__toggle{width:100%}
.cv-dl__caret{flex:none; margin-left:auto; transition:transform .2s var(--ease)}
.cv-dl.is-open .cv-dl__caret{transform:rotate(180deg)}
.cv-dl__menu{
  position:absolute; left:0; right:0; top:calc(100% + 8px); z-index:30;
  background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r-sm);
  box-shadow:var(--shadow); padding:6px;
  visibility:hidden; pointer-events:none; opacity:0; transform:translateY(-6px);
  transition:opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
}
.cv-dl.is-open .cv-dl__menu{visibility:visible; pointer-events:auto; opacity:1; transform:translateY(0)}
.cv-dl__opt{
  display:flex; align-items:center; gap:11px; padding:11px 13px; border-radius:8px;
  color:var(--text); font-size:.95rem; font-weight:500;
  transition:background-color .15s var(--ease), color .15s var(--ease);
}
.cv-dl__opt + .cv-dl__opt{margin-top:2px}
.cv-dl__opt:hover, .cv-dl__opt:focus-visible{background:var(--accent-10); color:#fff}
.cv-dl__flag{
  display:inline-flex; flex:none; width:22px; height:16px; border-radius:3px;
  overflow:hidden; box-shadow:0 0 0 1px rgba(255,255,255,.08)
}
.cv-dl__flag svg{display:block; width:100%; height:100%}

.cv__right{padding-top:6px}
.timeline{display:grid; gap:2px}
.timeline li{
  position:relative; padding:18px 0 18px 26px; border-bottom:1px solid var(--line-2);
}
.timeline li::before{content:""; position:absolute; left:0; top:24px; width:9px; height:9px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px var(--accent-16)}
.timeline li::after{content:""; position:absolute; left:4px; top:33px; bottom:-2px; width:1px; background:var(--line)}
.timeline li:last-child{border-bottom:0}
.timeline li:last-child::after{display:none}
.timeline__period{font-family:var(--font-mono); font-size:.78rem; color:var(--accent); letter-spacing:.02em}
.timeline__role{font-weight:500; color:var(--text); margin-top:4px}
.timeline__place{color:var(--text-muted); font-size:.92rem; margin-top:2px}
.cv__sub--edu{margin-top:30px}
.cv__edu{color:var(--text-muted); font-size:.96rem; max-width:46ch}

/* ============================== CONTACT =================================== */
.contact{position:relative; overflow:hidden; text-align:center}
.contact__glow{position:absolute; inset:0; pointer-events:none; background:radial-gradient(58% 55% at 50% 42%, rgba(224,67,15,.11), transparent 62%)}
.contact__inner{position:relative; display:flex; flex-direction:column; align-items:center}
.contact__title{max-width:20ch; text-align:center}
.contact__lead{margin-top:18px; color:var(--text-muted); max-width:46ch; font-size:1.08rem}
.contact__actions{display:flex; flex-wrap:wrap; gap:16px; justify-content:center; margin-top:38px; width:100%}
.contact-card{
  flex:1 1 280px; max-width:380px; text-align:left;
  display:flex; flex-direction:column; gap:6px;
  padding:22px 24px; border-radius:var(--r); background:var(--surface); border:1px solid var(--line);
  transition:border-color .3s var(--ease), transform .3s var(--ease), background-color .3s var(--ease);
}
.contact-card:hover{border-color:var(--accent); transform:translateY(-3px); background:var(--surface-2)}
.contact-card__k{font-size:.74rem; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-bright)}
.contact-card__v{font-size:1.06rem; color:var(--text); font-weight:500; word-break:break-word}
.socials{display:flex; gap:12px; justify-content:center; margin-top:28px; flex-wrap:wrap}
.socials:empty{display:none; margin:0}
.socials a{
  display:inline-flex; align-items:center; gap:8px; padding:10px 18px;
  border:1px solid var(--line); border-radius:var(--r-pill); color:var(--text-muted);
  font-size:.9rem; font-weight:500; transition:border-color .2s var(--ease), color .2s var(--ease)}
.socials a:hover{border-color:var(--accent); color:var(--text)}

/* ============================== FOOTER ==================================== */
.footer{border-top:1px solid var(--line); padding-block:clamp(40px,6vw,64px); position:relative; z-index:1}
.footer__inner{display:flex; flex-direction:column; gap:18px; align-items:flex-start}
.footer__role{color:var(--text-dim); font-size:.78rem; letter-spacing:.14em; text-transform:uppercase}
.footer__links{display:flex; flex-wrap:wrap; gap:8px 22px}
.footer__links a{color:var(--text-muted); font-size:.92rem; transition:color .2s var(--ease)}
.footer__links a:hover{color:var(--accent)}
.footer__legal{display:flex; flex-wrap:wrap; gap:6px 14px; color:var(--text-dim); font-size:.82rem; margin-top:4px}
.footer__credit{color:var(--text-dim)}

/* ===================== Contact speed-dial (FAB) ========================= */
.cfab{
  position:fixed; z-index:130;
  right:max(20px, env(safe-area-inset-right)); bottom:max(20px, env(safe-area-inset-bottom));
  display:flex; flex-direction:column; align-items:center; gap:14px;
  -webkit-tap-highlight-color:transparent;
}
/* main button — orange, pulsing, chat icon → toggles open */
.cfab__main{
  position:relative; order:2; width:60px; height:60px; border-radius:50%;
  display:grid; place-items:center; color:#fff; background:var(--accent);
  box-shadow:0 12px 30px -8px rgba(0,0,0,.55), 0 5px 16px var(--accent-40);
  transition:transform .3s var(--ease), background-color .25s var(--ease);
}
.cfab__main:hover{transform:scale(1.07); background:var(--accent-bright)}
.cfab__main:active{transform:scale(.98)}
.cfab__main:focus-visible{outline:3px solid var(--accent-bright); outline-offset:3px}
.cfab__pulse{position:absolute; inset:0; border-radius:50%; background:var(--accent); z-index:-1; animation:cfabPulse 2.4s ease-out infinite}
@keyframes cfabPulse{0%{transform:scale(1); opacity:.5} 70%{transform:scale(1.9); opacity:0} 100%{transform:scale(1.9); opacity:0}}
.cfab[data-open="true"] .cfab__pulse{animation:none; opacity:0}
.cfab__ico{position:absolute; transition:opacity .3s var(--ease), transform .3s var(--ease)}
.cfab__ico--close{opacity:0; transform:rotate(-60deg) scale(.6)}
.cfab[data-open="true"] .cfab__ico--chat{opacity:0; transform:rotate(60deg) scale(.6)}
.cfab[data-open="true"] .cfab__ico--close{opacity:1; transform:none}
/* the 3 options — all orange (brand), hidden until open, rise + fade in with a stagger */
.cfab__opt{
  position:relative; order:1; width:50px; height:50px; border-radius:50%;
  display:grid; place-items:center; color:#fff; background:var(--accent);
  box-shadow:0 8px 22px -6px rgba(0,0,0,.5), 0 4px 12px var(--accent-40);
  opacity:0; transform:translateY(18px) scale(.4); pointer-events:none;
  transition:opacity .4s var(--ease), transform .4s cubic-bezier(.34,1.4,.5,1), background-color .2s var(--ease);
}
.cfab__opt:hover{background:var(--accent-bright); transform:translateY(0) scale(1.08)}
.cfab__opt:focus-visible{outline:3px solid var(--accent-bright); outline-offset:3px}
.cfab[data-open="true"] .cfab__opt{opacity:1; transform:translateY(0) scale(1); pointer-events:auto}
/* specificity must match the open-state rule above, or the hover scale never applies */
.cfab[data-open="true"] .cfab__opt:hover{transform:translateY(0) scale(1.08)}
.cfab[data-open="true"] .cfab__opt:nth-of-type(3){transition-delay:.05s}  /* email (nearest main) first */
.cfab[data-open="true"] .cfab__opt:nth-of-type(2){transition-delay:.10s}  /* linkedin */
.cfab[data-open="true"] .cfab__opt:nth-of-type(1){transition-delay:.15s}  /* whatsapp (top) last */
/* slide-out label on hover */
.cfab__label{
  position:absolute; right:62px; white-space:nowrap;
  background:rgba(9,9,10,.92); color:var(--text); border:1px solid var(--line-2);
  padding:6px 12px; border-radius:9px; font-size:.82rem; font-weight:500; letter-spacing:.01em;
  opacity:0; transform:translateX(8px); pointer-events:none;
  transition:opacity .2s var(--ease), transform .2s var(--ease);
}
.cfab__opt:hover .cfab__label, .cfab__opt:focus-visible .cfab__label{opacity:1; transform:translateX(0)}
@media (prefers-reduced-motion: reduce){
  .cfab__pulse{animation:none}
  .cfab__opt{transition-duration:.18s; transform:none; opacity:0}
}

/* ===================== Mini-player (now playing) ======================= */
/* Floats below the nav (top-right); appears only while a track is loaded so you can
   pause/resume without scrolling back to the spot/reel. Toggled via data-on by main.js. */
.miniplayer{
  position:fixed; z-index:95;
  top:calc(var(--nav-h) + 10px);
  right:max(20px, env(safe-area-inset-right));   /* same offset as the contact FAB (.cfab) → vertically aligned */
  display:flex; flex-direction:column; align-items:stretch; gap:8px;  /* top row + volume slider stacked */
  padding:8px 13px 11px; border-radius:18px;
  background:rgba(9,9,10,.72);
  background:color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter:blur(16px) saturate(1.3); backdrop-filter:blur(16px) saturate(1.3);
  border:1px solid var(--line);
  box-shadow:0 16px 38px -16px rgba(0,0,0,.7);
  opacity:0; transform:translateY(-14px) scale(.96); pointer-events:none;
  visibility:hidden;   /* also removes the hidden controls from the keyboard tab order */
  transition:opacity .35s var(--ease), transform .35s var(--ease), visibility .35s var(--ease);
  max-width:min(72vw, 320px);
}
.miniplayer[data-on="true"]{opacity:1; transform:none; pointer-events:auto; visibility:visible}
.miniplayer__top{display:flex; align-items:center; gap:11px; min-width:0}  /* this row sets the pill's width */
.miniplayer__btn{
  width:36px; height:36px; flex:none; border-radius:50%;
  display:grid; place-items:center; color:#fff; background:var(--accent);
  box-shadow:0 6px 16px -6px var(--accent-40);
  transition:transform .2s var(--ease), background-color .2s var(--ease);
}
.miniplayer__btn:hover{transform:scale(1.07); background:var(--accent-bright)}
.miniplayer__btn:active{transform:scale(.96)}
.miniplayer__btn:focus-visible{outline:2px solid var(--accent-bright); outline-offset:3px}
.miniplayer__btn .ico-pause{display:none}
.miniplayer.is-playing .miniplayer__btn .ico-play{display:none}
.miniplayer.is-playing .miniplayer__btn .ico-pause{display:block}
/* little equalizer — animates only while playing */
.miniplayer__eq{display:inline-flex; align-items:flex-end; gap:2.5px; height:15px; flex:none}
.miniplayer__eq i{
  width:3px; height:100%; border-radius:1px; transform-origin:bottom;
  background:var(--accent-bright); transform:scaleY(.3);
  animation:miniEq .9s ease-in-out infinite; animation-play-state:paused;
}
.miniplayer__eq i:nth-child(2){animation-duration:.72s; animation-delay:.12s}
.miniplayer__eq i:nth-child(3){animation-duration:1.05s; animation-delay:.05s}
.miniplayer__eq i:nth-child(4){animation-duration:.82s; animation-delay:.2s}
.miniplayer.is-playing .miniplayer__eq i{animation-play-state:running}
@keyframes miniEq{0%,100%{transform:scaleY(.28)} 50%{transform:scaleY(1)}}
.miniplayer__label{
  font-size:.74rem; letter-spacing:.1em; text-transform:uppercase; color:var(--text);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0;
}
/* volume slider — controls whatever is currently playing (audio or video).
   width:0 + min-width:100% → fills the pill width set by the top row WITHOUT widening it. */
.miniplayer__vol{width:0; min-width:100%; height:5px; margin:0; accent-color:var(--accent); cursor:pointer}
.miniplayer__vol:focus-visible{outline:2px solid var(--accent-bright); outline-offset:4px}

/* ============================== Reveal ==================================== */
.reveal{opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease)}
.reveal.is-in{opacity:1; transform:none}
.reveal[data-d="1"]{transition-delay:.08s}
.reveal[data-d="2"]{transition-delay:.16s}
.reveal[data-d="3"]{transition-delay:.24s}

/* ============== Desktop motion — fx.js adds .fx-on to <body> ============== */
/* richer, springier reveals */
.fx-on .reveal{
  transform:translateY(46px) scale(.965); filter:blur(8px);
  transition:opacity .8s var(--ease), transform .9s cubic-bezier(.16,1,.3,1), filter .7s var(--ease), color .75s var(--ease), text-shadow .75s var(--ease), box-shadow .75s var(--ease), border-color .75s var(--ease);
}
.fx-on .reveal.is-in{transform:none; filter:none}
/* :not(.is-in) so this initial-state override never out-specifies the is-in reset above */
.fx-on .hero__title.reveal:not(.is-in){transform:translateY(64px) scale(.93); filter:blur(12px)}

/* scroll progress bar (vermilion) */
.scroll-prog{
  position:fixed; inset:0 auto auto 0; height:3px; width:100%; z-index:120;
  transform:scaleX(0); transform-origin:0 50%; pointer-events:none;
  background:linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow:0 0 14px var(--accent-40);
}

/* section header flourishes: the accent line draws in, the index badge pops */
.fx-on .sec-head__line{transform:scaleX(0); transform-origin:left; transition:transform .8s cubic-bezier(.16,1,.3,1) .15s}
.fx-on .sec-head.is-in .sec-head__line{transform:scaleX(1)}
.fx-on .sec-head.is-in .sec-head__tc{animation:tcPop .65s cubic-bezier(.2,1.35,.4,1) both}
@keyframes tcPop{0%{transform:scale(.5); opacity:0} 60%{transform:scale(1.14); opacity:1} 100%{transform:scale(1)}}
/* the playhead crossing a section cue re-pops its timecode pill (toggled by hero3d.js) */
.sec-head__tc.tc-hit{animation:tcHit .55s var(--ease)}
@keyframes tcHit{0%{transform:scale(1); box-shadow:0 0 0 0 transparent} 42%{transform:scale(1.34); box-shadow:0 0 18px var(--accent-40)} 100%{transform:scale(1); box-shadow:0 0 0 0 transparent}}

/* card tilt (transforms set inline by fx.js) */
.fx-on .video-card:hover, .fx-on .contact-card:hover{will-change:transform}

/* ============================== Responsive ================================ */
@media (min-width:680px){
  .about__grid{grid-template-columns:.85fr 1.15fr; align-items:start}
  .cv__grid{grid-template-columns:1.1fr .9fr; align-items:start}
}
@media (min-width:1000px){
  :root{--nav-h:76px}
}

/* Narrow phones: the nowrap language label ("Switch language") pushed the burger
   off-screen at <=360px (nav unusable at 320px) — keep only the flag as the toggle,
   and shrink the video competency pills so they don't cover the play button. */
@media (max-width:420px){
  .lang-toggle{padding:7px 9px}
  .lang-toggle__label{display:none}
  .video-card__tags li{font-size:.6rem; padding:3px 7px}
}

/* Mobile nav */
@media (max-width:759px){
  .nav__burger{display:block}
  .nav__links{
    position:fixed; inset:var(--nav-h) 0 auto 0;
    flex-direction:column; align-items:stretch; gap:2px;
    padding:14px var(--pad) 22px;
    background:rgba(9,9,10,.985);
    background:color-mix(in srgb,var(--bg) 98.5%, transparent);
    -webkit-backdrop-filter:blur(20px) saturate(1.2); backdrop-filter:blur(20px) saturate(1.2);
    box-shadow:0 24px 50px -20px rgba(0,0,0,.8);
    border-bottom:1px solid var(--line);
    transform:translateY(-12px); opacity:0; visibility:hidden; pointer-events:none;
    transition:opacity .28s var(--ease), transform .28s var(--ease), visibility .28s var(--ease);
  }
  .nav__links.is-open{transform:none; opacity:1; visibility:visible; pointer-events:auto}
  .nav__links a{padding:14px 12px; font-size:1.05rem; border-radius:12px}
  .nav__links a.is-active::after{display:none}
  .nav__links a.is-active{background:var(--surface-2)}
}

/* Larger desktop refinements — lower bound 4.4rem so the size is CONTINUOUS with the
   base clamp at the 1280px boundary (3.4rem made the title shrink ~20% at 1280-1745px) */
@media (min-width:1280px){
  .hero__title{font-size:clamp(4.4rem,4.4vw,4.8rem)}
}

/* Beyond Full-HD (ultrawide / 4K): the column relaxes outward with the viewport
   instead of staying pinned to a centered 1200px. At exactly 1920px this equals
   1200px (no change below), then grows with ~72% of the extra width, capped so
   4K/TV never becomes absurdly wide. Text blocks keep their own ch max-widths,
   so lines stay readable — what widens is the layout: carousel shows more
   videos, grids/spots/nav breathe into the sides. */
@media (min-width:1920px){
  :root{--wrap:min(calc(1200px + (100vw - 1920px) * .72), 2320px)}
}

/* ============================== Touch devices ============================= */
/* Phones/tablets control volume with the hardware buttons — and iOS ignores JS
   volume changes entirely — so the in-page volume UI is dead weight there. */
@media (hover:none) and (pointer:coarse){
  .reel__foot, .spots-vol, .miniplayer__vol{display:none}
}

/* ============================== Motion prefs ============================== */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important}
  .reveal{opacity:1; transform:none}
  .hero__scroll-line::after{display:none}
}

/* ============================== Print ===================================== */
@media print{
  .nav,.hero__scroll,.reel,.video-grid,.video-nav,.spot-list,.spots-vol,
  .cfab,.miniplayer,.hero__canvas,.content-veil,.hero__veil,.hero__glow,.contact__glow{display:none}
  body{background:#fff}
  body::before,body::after{content:none}
  /* the dark theme's near-white text is invisible on paper — force it readable */
  *{color:#000 !important; text-shadow:none !important; box-shadow:none !important; background:transparent !important}
}
