/* Fuentes auto-hosteadas (antes Google Fonts; variables woff2; Sora/Archivo no
   traen cirílico en Google — el RU cae al fallback del stack, igual que antes) */
@font-face{font-family:'Archivo';font-style:normal;font-weight:600 800;font-stretch:125%;font-display:optional;src:url(fonts/archivo-normal-600-800-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:optional;src:url(fonts/jetbrains-mono-normal-400-700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:optional;src:url(fonts/jetbrains-mono-normal-400-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Sora';font-style:normal;font-weight:300 600;font-display:optional;src:url(fonts/sora-normal-300-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ============================================================
   ARGENTINA FILMA — "Sala de edición"
   Palette: warm graphite + teal/amber color-grade. Signature: NLE timeline.
   ============================================================ */

:root{
  --base:    #0d1413;
  --base-2:  #070c0b;
  --panel:   #121e1c;
  --panel-2: #172825;
  --line:    #26433d;
  --line-2:  #16302b;
  --teal:    #38c8ad;
  --teal-dim:#1d6c60;
  --amber:   #f2a24a;
  --amber-2: #ffbb6b;
  --bone:    #edf1ea;
  --muted:   #8ba39c;
  --muted-2: #5f7871;
  --rec:     #ff4a4a;

  --f-display: 'Archivo', system-ui, sans-serif;
  --f-body:    'Sora', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, monospace;

  --wrap: 1160px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body{
  margin:0;
  background:
    radial-gradient(1200px 700px at 78% -8%, #123330 0%, transparent 55%),
    radial-gradient(900px 600px at 8% 108%, #2a1c0f 0%, transparent 55%),
    var(--base);
  color:var(--bone);
  font-family:var(--f-body);
  font-weight:400;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.wrap{ width:min(var(--wrap), 92vw); margin-inline:auto; }

/* ---- atmosphere ---- */
.grain{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.05;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode:overlay;
}
.scanlines{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:.35;
  background:repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.28) 2px 3px);
}
@media (prefers-reduced-motion: reduce){ .scanlines{ display:none; } }

/* ============ TOPBAR ============ */
.topbar{
  position:sticky; top:0; z-index:40;
  backdrop-filter:blur(8px);
  background:linear-gradient(to bottom, rgba(7,12,11,.9), rgba(7,12,11,.55));
  border-bottom:1px solid transparent;
  transition:border-color .3s, background .3s;
}
.topbar.is-scrolled{ border-bottom-color:var(--line-2); background:rgba(7,12,11,.92); }
.topbar__in{ display:flex; align-items:center; gap:24px; height:64px; }

.brand{ display:flex; align-items:center; gap:10px; }
.brand__rec{
  width:9px; height:9px; border-radius:50%; background:var(--rec);
  box-shadow:0 0 10px var(--rec); animation:blink 1.6s steps(1,end) infinite;
}
@keyframes blink{ 50%{ opacity:.25; } }
@media (prefers-reduced-motion: reduce){ .brand__rec{ animation:none; } }
.brand__name{
  font-family:var(--f-display); font-weight:800; font-size:18px;
  letter-spacing:.06em; color:var(--bone);
}
.brand__thin{ font-weight:600; color:var(--teal); }

.nav{ display:flex; gap:22px; margin-left:auto; }
.nav a{
  font-family:var(--f-mono); font-size:12px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--muted); padding:4px 0;
  border-bottom:1px solid transparent; transition:color .2s, border-color .2s;
}
.nav a:hover{ color:var(--bone); }
.nav a.is-current{ color:var(--teal); border-bottom-color:var(--teal); }

.langs{ display:flex; gap:2px; margin-left:8px; }
.lang{
  font-family:var(--f-mono); font-size:11px; letter-spacing:.06em;
  background:transparent; color:var(--muted-2); border:1px solid var(--line-2);
  padding:5px 8px; cursor:pointer; transition:all .2s;
}
.lang:first-child{ border-radius:3px 0 0 3px; }
.lang:last-child{ border-radius:0 3px 3px 0; }
.lang + .lang{ border-left:none; }
.lang:hover{ color:var(--bone); }
.lang.is-active{ color:var(--base); background:var(--teal); border-color:var(--teal); }

/* ============ shared bits ============ */
.eyebrow{
  font-family:var(--f-mono); font-size:12px; letter-spacing:.22em;
  text-transform:uppercase; color:var(--teal); margin:0 0 14px;
}
.sect-title{
  font-family:var(--f-display); font-weight:800;
  font-size:clamp(30px, 5.5vw, 58px); line-height:1.02; letter-spacing:.01em;
  margin:0 0 18px; color:var(--bone);
}
.sect-lead{
  max-width:56ch; color:var(--muted); font-size:clamp(15px,1.6vw,18px);
  margin:0 0 40px;
}

.btn{
  display:inline-flex; align-items:center; gap:9px;
  font-family:var(--f-mono); font-size:13px; letter-spacing:.06em;
  text-transform:uppercase; padding:14px 22px; border-radius:4px;
  border:1px solid transparent; cursor:pointer; transition:all .22s var(--ease);
}
.btn--solid{ background:var(--teal); color:var(--base-2); font-weight:700; }
.btn--solid:hover{ background:var(--amber); transform:translateY(-2px); }
.btn--ghost{ border-color:var(--line); color:var(--bone); }
.btn--ghost:hover{ border-color:var(--teal); color:var(--teal); transform:translateY(-2px); }

/* corner safe-area brackets (reused in hero + reel) */
.bracket{ position:absolute; width:26px; height:26px; border:2px solid var(--teal); opacity:.6; }
.bracket--tl{ top:16px; left:16px; border-right:none; border-bottom:none; }
.bracket--tr{ top:16px; right:16px; border-left:none; border-bottom:none; }
.bracket--bl{ bottom:16px; left:16px; border-right:none; border-top:none; }
.bracket--br{ bottom:16px; right:16px; border-left:none; border-top:none; }

/* ============ HERO = REEL ============ */
.hero{
  position:relative; min-height:min(88vh, 860px);
  display:flex; flex-direction:column; justify-content:center;
  padding:100px 0; overflow:hidden;
}
.hero__reel{
  position:absolute; inset:0; z-index:0;
  width:100%; height:100%; object-fit:cover;
  filter:saturate(.9) contrast(1.02);
}
.hero__scrim{
  position:absolute; inset:0; z-index:1;
  background:
    linear-gradient(to right, rgba(7,12,11,.88) 0%, rgba(7,12,11,.62) 45%, rgba(7,12,11,.28) 100%),
    linear-gradient(to top, rgba(7,12,11,.85) 0%, transparent 35%, transparent 70%, rgba(7,12,11,.7) 100%);
}
.hero .bracket{ z-index:2; }
.hero__bar{
  position:absolute; left:0; right:0; height:44px;
  display:flex; align-items:center; gap:18px; padding:0 clamp(16px,5vw,54px);
  background:var(--base-2); border-block:1px solid var(--line-2); z-index:3;
  font-family:var(--f-mono); font-size:12px; letter-spacing:.1em; color:var(--muted);
}
.hero__bar--top{ top:0; }
.hero__bar--bottom{ bottom:0; }
.slate{ text-transform:uppercase; }
.tc{ margin-left:auto; color:var(--amber); font-weight:500; font-variant-numeric:tabular-nums; }
.reclabel{ display:flex; align-items:center; gap:7px; color:var(--rec); font-weight:700; letter-spacing:.14em; }
.reclabel__dot{ width:8px; height:8px; border-radius:50%; background:var(--rec); box-shadow:0 0 8px var(--rec); animation:blink 1.6s steps(1,end) infinite; }
@media (prefers-reduced-motion: reduce){ .reclabel__dot{ animation:none; } }

.hero__in{ position:relative; z-index:2; }
.hero__title{
  font-family:var(--f-display); font-weight:800;
  font-size:clamp(48px, 11vw, 132px); line-height:.92; letter-spacing:.005em;
  margin:0 0 22px; text-transform:uppercase;
}
.hero__title span{ display:block; }
.hero__title-em{
  color:transparent;
  background:linear-gradient(100deg, var(--teal), var(--amber-2));
  -webkit-background-clip:text; background-clip:text;
}
.hero__sub{ max-width:50ch; font-size:clamp(16px,1.9vw,21px); color:var(--muted); margin:0 0 34px; }
.hero__cta{ display:flex; gap:14px; flex-wrap:wrap; }

.tc-mini{ text-transform:uppercase; }
.hero__scrub{ position:relative; flex:1; height:2px; background:var(--line); margin-left:8px; border-radius:2px; }
.hero__play{
  position:absolute; top:50%; left:0; width:12px; height:12px; border-radius:50%;
  background:var(--amber); box-shadow:0 0 10px var(--amber);
  transform:translate(-50%,-50%); animation:scrub 9s linear infinite;
}
@keyframes scrub{ 0%{ left:0; } 100%{ left:100%; } }
@media (prefers-reduced-motion: reduce){ .hero__play{ animation:none; left:22%; } }

/* ============ PIPELINE (signature) ============ */
.pipeline{ padding:clamp(70px,10vw,120px) 0; border-top:1px solid var(--line-2); }

.timeline{
  margin-top:14px; background:var(--panel); border:1px solid var(--line-2);
  border-radius:8px; padding:20px 20px 24px; position:relative;
}
.ruler{
  height:22px; position:relative; border-bottom:1px solid var(--line-2); margin-bottom:14px;
  font-family:var(--f-mono); font-size:10px; color:var(--muted-2);
}
.ruler span{ position:absolute; top:0; transform:translateX(-50%); }
.ruler span::after{ content:""; position:absolute; top:15px; left:50%; width:1px; height:7px; background:var(--line); }

.track{ position:relative; display:grid; grid-template-columns:repeat(5,1fr); gap:8px; }
.clip{
  position:relative; text-align:left; cursor:pointer;
  background:var(--panel-2); border:1px solid var(--line-2); border-radius:5px;
  padding:16px 14px 18px; min-height:96px; color:var(--muted);
  display:flex; flex-direction:column; gap:10px; overflow:hidden;
  font-family:inherit; transition:border-color .25s, background .25s, transform .25s;
}
.clip::before{ /* filmstrip perforations */
  content:""; position:absolute; top:0; left:0; right:0; height:8px;
  background:repeating-linear-gradient(to right, var(--line-2) 0 6px, transparent 6px 12px);
  opacity:.7;
}
.clip__num{ font-family:var(--f-mono); font-size:11px; letter-spacing:.1em; color:var(--muted-2); }
.clip__name{ font-family:var(--f-display); font-weight:700; font-size:clamp(15px,2vw,21px); text-transform:uppercase; color:var(--bone); letter-spacing:.02em; }
.clip:hover{ border-color:var(--teal-dim); transform:translateY(-2px); }
.clip.is-active{ background:#1b302c; border-color:var(--teal); }
.clip.is-active .clip__num{ color:var(--teal); }

.playhead{
  position:absolute; top:-6px; bottom:-6px; left:10%; width:2px;
  background:var(--amber); box-shadow:0 0 12px rgba(242,162,74,.7);
  transition:left .45s var(--ease); pointer-events:none; z-index:3;
}
.playhead__head{
  position:absolute; top:-8px; left:50%; transform:translateX(-50%);
  border-left:6px solid transparent; border-right:6px solid transparent;
  border-top:9px solid var(--amber);
}
.waveform{
  height:34px; margin-top:16px; border-radius:4px; opacity:.5;
  background:linear-gradient(var(--teal-dim), var(--teal-dim));
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='34' preserveAspectRatio='none'%3E%3Cg fill='%23000'%3E%3Crect x='0' y='14' width='2' height='6'/%3E%3Crect x='5' y='9' width='2' height='16'/%3E%3Crect x='10' y='4' width='2' height='26'/%3E%3Crect x='15' y='12' width='2' height='10'/%3E%3Crect x='20' y='7' width='2' height='20'/%3E%3Crect x='25' y='2' width='2' height='30'/%3E%3Crect x='30' y='11' width='2' height='12'/%3E%3Crect x='35' y='6' width='2' height='22'/%3E%3Crect x='40' y='13' width='2' height='8'/%3E%3Crect x='45' y='3' width='2' height='28'/%3E%3Crect x='50' y='9' width='2' height='16'/%3E%3Crect x='55' y='12' width='2' height='10'/%3E%3Crect x='60' y='5' width='2' height='24'/%3E%3Crect x='65' y='10' width='2' height='14'/%3E%3Crect x='70' y='2' width='2' height='30'/%3E%3Crect x='75' y='13' width='2' height='8'/%3E%3Crect x='80' y='8' width='2' height='18'/%3E%3Crect x='85' y='4' width='2' height='26'/%3E%3Crect x='90' y='11' width='2' height='12'/%3E%3Crect x='95' y='6' width='2' height='22'/%3E%3Crect x='100' y='12' width='2' height='10'/%3E%3Crect x='105' y='3' width='2' height='28'/%3E%3Crect x='110' y='9' width='2' height='16'/%3E%3Crect x='115' y='13' width='2' height='7'/%3E%3Crect x='120' y='6' width='2' height='22'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-repeat:repeat-x; -webkit-mask-size:auto 100%;
  mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='34' preserveAspectRatio='none'%3E%3Cg fill='%23000'%3E%3Crect x='0' y='14' width='2' height='6'/%3E%3Crect x='5' y='9' width='2' height='16'/%3E%3Crect x='10' y='4' width='2' height='26'/%3E%3Crect x='15' y='12' width='2' height='10'/%3E%3Crect x='20' y='7' width='2' height='20'/%3E%3Crect x='25' y='2' width='2' height='30'/%3E%3Crect x='30' y='11' width='2' height='12'/%3E%3Crect x='35' y='6' width='2' height='22'/%3E%3Crect x='40' y='13' width='2' height='8'/%3E%3Crect x='45' y='3' width='2' height='28'/%3E%3Crect x='50' y='9' width='2' height='16'/%3E%3Crect x='55' y='12' width='2' height='10'/%3E%3Crect x='60' y='5' width='2' height='24'/%3E%3Crect x='65' y='10' width='2' height='14'/%3E%3Crect x='70' y='2' width='2' height='30'/%3E%3Crect x='75' y='13' width='2' height='8'/%3E%3Crect x='80' y='8' width='2' height='18'/%3E%3Crect x='85' y='4' width='2' height='26'/%3E%3Crect x='90' y='11' width='2' height='12'/%3E%3Crect x='95' y='6' width='2' height='22'/%3E%3Crect x='100' y='12' width='2' height='10'/%3E%3Crect x='105' y='3' width='2' height='28'/%3E%3Crect x='110' y='9' width='2' height='16'/%3E%3Crect x='115' y='13' width='2' height='7'/%3E%3Crect x='120' y='6' width='2' height='22'/%3E%3C/g%3E%3C/svg%3E");
  mask-repeat:repeat-x; mask-size:auto 100%;
}

.stage-panel{ margin-top:26px; max-width:60ch; }
.stage-panel__tc{ font-family:var(--f-mono); font-size:12px; color:var(--amber); letter-spacing:.1em; }
.stage-panel__title{ font-family:var(--f-display); font-weight:700; font-size:clamp(22px,3vw,32px); text-transform:uppercase; margin:6px 0 8px; }
.stage-panel__desc{ color:var(--muted); margin:0; font-size:clamp(15px,1.6vw,18px); transition:opacity .3s; }
.stage-panel.is-swapping .stage-panel__desc,
.stage-panel.is-swapping .stage-panel__title{ opacity:0; }

/* ============ TRABAJOS — fichas ============ */
.work{ padding:clamp(70px,10vw,120px) 0; border-top:1px solid var(--line-2); }

.cases{ display:flex; flex-direction:column; gap:clamp(48px,8vw,96px); margin-top:10px; }

.case{
  display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:clamp(26px,4.5vw,64px); align-items:center;
}
.case:nth-child(even) .case__media{ order:2; }
.case:nth-child(even) .case__body{ order:1; }

.case__media{ display:flex; gap:14px; justify-content:center; min-width:0; }
.case__media--duo .case__frame{ height:auto; width:calc(50% - 7px); max-width:260px; }

.case__frame{
  position:relative; aspect-ratio:9/16; height:min(62vh,520px);
  border-radius:8px; overflow:hidden; flex:0 1 auto;
  background:linear-gradient(135deg, #14231f 0%, #1a2b27 50%, #0f1a17 100%);
  border:1px solid var(--line-2);
  display:flex; align-items:center; justify-content:center;
  padding:0; font:inherit; color:inherit; cursor:pointer;
  transition:border-color .25s, transform .25s;
}
.case__frame--wide{ aspect-ratio:16/9; height:auto; width:100%; }
.case__frame:hover{ border-color:var(--teal); transform:translateY(-3px); }

.case__poster{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0;
  transition:transform .35s var(--ease), filter .35s;
  filter:saturate(.92);
}
.case__frame:hover .case__poster{ transform:scale(1.05); filter:saturate(1.1); }

.case__play{
  width:56px; height:56px; border-radius:50%; border:2px solid var(--bone);
  position:relative; z-index:1; opacity:.92; transition:all .25s;
  background:rgba(7,12,11,.35); backdrop-filter:blur(2px);
}
.case__play::after{
  content:""; position:absolute; top:50%; left:54%; transform:translate(-50%,-50%);
  border-left:16px solid var(--bone); border-top:10px solid transparent; border-bottom:10px solid transparent;
}
.case__frame:hover .case__play{ border-color:var(--amber); background:rgba(242,162,74,.18); }
.case__frame:hover .case__play::after{ border-left-color:var(--amber); }

.case__tc{
  position:absolute; z-index:1; bottom:10px; left:10px;
  font-family:var(--f-mono); font-size:10px; letter-spacing:.08em;
  color:var(--amber-2); background:rgba(7,12,11,.65); padding:2px 7px; border-radius:3px;
  font-variant-numeric:tabular-nums;
}

.case__body{ min-width:0; }
.case__slate{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 12px;
  font-family:var(--f-mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase;
}
.case__num{ color:var(--teal); font-weight:700; }
.case__num i{ font-style:normal; }
.case__kind{ color:var(--bone); border:1px solid var(--line); padding:3px 9px; border-radius:3px; }
.case__year{ color:var(--muted-2); }
.case__title{
  font-family:var(--f-display); font-weight:800; text-transform:uppercase;
  font-size:clamp(26px,4vw,46px); line-height:1.02; letter-spacing:.01em;
  margin:0 0 14px;
}
.case__desc{ color:var(--muted); font-size:clamp(15px,1.6vw,17px); margin:0 0 16px; max-width:46ch; }
.case__links{ display:flex; flex-wrap:wrap; gap:4px 16px; }
.case__links a{
  font-family:var(--f-mono); font-size:12px; letter-spacing:.03em; color:var(--muted);
  border-bottom:1px solid transparent; transition:color .2s, border-color .2s;
}
.case__links a:hover{ color:var(--teal); border-bottom-color:var(--teal); }

.work__note{ margin-top:clamp(40px,6vw,64px); font-family:var(--f-mono); font-size:14px; }
.work__note a{ color:var(--teal); border-bottom:1px solid transparent; transition:border-color .2s; }
.work__note a:hover{ border-bottom-color:var(--teal); }

/* ============ CANAL ============ */
.channel{ padding:clamp(70px,10vw,120px) 0; border-top:1px solid var(--line-2); }
.social-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.social{
  position:relative; padding:30px 28px; border-radius:10px;
  background:var(--panel); border:1px solid var(--line-2);
  display:flex; flex-direction:column; gap:8px; overflow:hidden;
  transition:border-color .25s, transform .25s;
}
.social::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--teal);
}
.social--ig::before{ background:var(--amber); }
.social:hover{ transform:translateY(-3px); border-color:var(--teal); }
.social--ig:hover{ border-color:var(--amber); }
.social__k{ font-family:var(--f-mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted-2); }
.social__h{ font-family:var(--f-display); font-weight:700; font-size:clamp(22px,3vw,30px); }
.social__d{ color:var(--muted); }
.social__stat{ margin-top:6px; font-family:var(--f-mono); font-size:13px; color:var(--muted); }
.social__num{ color:var(--teal); font-weight:700; font-size:20px; }
.social--ig .social__num{ color:var(--amber); }
.social__go{ margin-top:12px; font-family:var(--f-mono); font-size:13px; letter-spacing:.06em; color:var(--bone); }

/* ============ CONTACTO ============ */
.contact{ padding:clamp(80px,12vw,150px) 0; border-top:1px solid var(--line-2); }
.contact__in{ text-align:center; display:flex; flex-direction:column; align-items:center; }
.contact .sect-lead{ text-align:center; }
.contact__cta{ display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }

/* ============ FOOTER ============ */
.footer{ border-top:1px solid var(--line-2); padding:40px 0; }
.footer__in{ display:flex; align-items:center; gap:16px 28px; flex-wrap:wrap; }
.footer__brand{ font-family:var(--f-display); font-weight:800; letter-spacing:.06em; font-size:16px; }
.footer__tag{ color:var(--muted); font-size:14px; }
.footer__made{ margin-left:auto; font-family:var(--f-mono); font-size:12px; letter-spacing:.08em; color:var(--muted-2); }

/* ============ VIDEO MODAL ============ */
.videobox{
  position:fixed; inset:0; z-index:110; display:none;
  align-items:center; justify-content:center; padding:5vw;
  background:rgba(4,8,7,.92); backdrop-filter:blur(6px);
}
.videobox.is-open{ display:flex; }
.videobox__inner{ display:flex; align-items:center; justify-content:center; max-width:96vw; max-height:90vh; }
.videobox__inner video{ width:auto; height:auto; max-width:96vw; max-height:90vh; border-radius:10px; border:1px solid var(--line); background:#000; }
.videobox__close{
  position:absolute; top:22px; right:26px; width:44px; height:44px;
  background:transparent; border:1px solid var(--line); color:var(--bone);
  border-radius:50%; font-size:18px; cursor:pointer; transition:all .2s;
}
.videobox__close:hover{ border-color:var(--teal); color:var(--teal); }

/* ============ scroll reveal ============ */
.up{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.up.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ .up{ opacity:1; transform:none; transition:none; } }

/* ============ focus ============ */
a:focus-visible, button:focus-visible{ outline:2px solid var(--amber); outline-offset:3px; border-radius:2px; }

/* ============ responsive ============ */
@media (max-width:900px){
  .social-grid{ grid-template-columns:1fr; }
  .case{ grid-template-columns:1fr; gap:22px; }
  .case:nth-child(even) .case__media{ order:0; }
  .case:nth-child(even) .case__body{ order:0; }
  .case__frame{ height:min(56vh,440px); }
  .case__media--duo .case__frame{ max-width:none; }
}
@media (max-width:720px){
  .nav{ display:none; }
  .topbar__in{ height:58px; }
  .track{ grid-template-columns:repeat(2,1fr); }
  .playhead{ display:none; }
  .clip.is-active{ box-shadow:0 0 0 1px var(--teal); }
  .waveform{ display:none; }
  .hero__bar{ font-size:10px; gap:12px; }
  .slate{ display:none; }
}
@media (max-width:480px){
  .case__frame{ height:min(52vh,400px); }
}
