/* Jordão Coelho — portfólio. Tokens vêm do design system "Jordão Coelho" (conceito Lapidar). */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* marca */
  --amarelo: #f0b000;
  --amarelo-profundo: #c98a00;
  --preto: #0b0b0a;
  --grafite: #1a1917;
  --papel: #f7f3ea;
  --cobre: #8a5a44;

  /* papéis (tema escuro, padrão do portfólio) */
  --bg: var(--preto);
  --raised: var(--grafite);
  --ink: var(--papel);
  --muted: #a8a399;
  --line: #2e2c28;
  --focus: var(--amarelo);

  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* cinco tamanhos */
  --t-display: clamp(1.875rem, 8.3vw, 7.25rem);
  --t-title: clamp(1.625rem, 4.2vw, 3.5rem);
  --t-sub: clamp(1.25rem, 1.9vw, 1.625rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;
  --t-lede: clamp(1.0625rem, 1.4vw, 1.25rem);

  --m: clamp(20px, 4vw, 48px);
  --gap: clamp(16px, 2vw, 24px);
  --sec: clamp(88px, 12vw, 176px);
  --tl-h: 60px;

  --chanfro-sm: 10px;
  --chanfro-md: 24px;
  --chanfro-lg: 48px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: var(--line) var(--preto); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tl-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 0.09em; }
button { font: inherit; color: inherit; }
::selection { background: var(--amarelo); color: var(--preto); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--m), 1320px); margin-inline: auto; }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 50; background: var(--amarelo); color: var(--preto); padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- tipografia ---------- */
.display {
  font: 900 var(--t-display)/0.92 var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.title {
  font: 800 var(--t-title)/1 var(--font-display);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}
.lede { font-size: var(--t-lede); line-height: 1.5; max-width: 46ch; text-wrap: pretty; }

/* ---------- campos de cor ---------- */
.sec { padding-block: var(--sec); background: var(--bg); color: var(--ink); }
.sec--raised { --bg: var(--grafite); --raised: #262420; }
.sec--papel { --bg: var(--papel); --raised: #ffffff; --ink: var(--preto); --muted: #5c574e; --line: #ddd6c8; --focus: var(--preto); }
.sec--amarelo { --bg: var(--amarelo); --raised: var(--amarelo-profundo); --ink: var(--preto); --muted: #3b2c00; --line: var(--amarelo-profundo); --focus: var(--preto); }
.sec--amarelo ::selection, .sec--papel ::selection { background: var(--preto); color: var(--amarelo); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  font: 600 0.875rem/1 var(--font-sans); white-space: nowrap; text-decoration: none;
  border: 0; border-radius: 2px; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--primary, .btn--dark {
  clip-path: polygon(0 0, calc(100% - var(--chanfro-sm)) 0, 100% var(--chanfro-sm), 100% 100%, 0 100%);
  outline: 0;
}
.btn--primary { background: var(--amarelo); color: var(--preto); }
.btn--dark { background: var(--preto); color: var(--papel); }
.btn--primary:focus-visible { box-shadow: inset 0 0 0 3px var(--preto); }
.btn--dark:focus-visible { box-shadow: inset 0 0 0 3px var(--amarelo); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--amarelo-profundo); }
  .btn--dark:hover { background: #2e2c28; }
  .btn--ghost:hover { background: var(--ink); color: var(--bg); }
}

/* ---------- topo ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--m); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--amarelo); flex: none; }
.brand-name { font: 800 var(--t-lede)/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.top-side { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); }
.status { display: none; align-items: center; gap: 8px; font-size: var(--t-small); color: var(--muted); }
.status-dot { width: 8px; height: 8px; background: #5fd08f; flex: none; }
.lang { display: flex; background: var(--grafite); padding: 3px; border-radius: 2px; }
.lang-btn {
  min-width: 40px; height: 34px; padding: 0 10px; border: 0; border-radius: 2px; cursor: pointer;
  background: transparent; color: var(--muted); font: 600 0.875rem/1 var(--font-sans);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.lang-btn:active { transform: scale(0.96); }
.lang-btn[aria-pressed="true"] { background: var(--papel); color: var(--preto); }
.top .btn { display: none; }
@media (min-width: 600px) { .top .btn { display: inline-flex; } }
@media (min-width: 960px) { .status { display: inline-flex; } }

/* ---------- início ---------- */
.hero { overflow-x: clip; padding-top: clamp(24px, 5vh, 56px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero-title .line { display: block; overflow: clip; padding-top: 0.14em; margin-top: -0.14em; }
.hero-title .line > span { display: block; white-space: nowrap; }
.hero-row { display: grid; gap: 24px; margin-top: clamp(20px, 2.4vw, 36px); }
.hero-lede { max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (min-width: 900px) {
  .hero-row { grid-template-columns: 7fr 5fr; align-items: end; }
  .hero-actions { justify-content: flex-end; }
}

.strip { --strip-h: clamp(240px, 38svh, 400px); margin-top: clamp(32px, 4.5vw, 64px); overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip-run { display: flex; gap: 10px; width: max-content; padding-inline: var(--m); }
.clip { flex: none; border-top: 8px solid var(--tarja, var(--amarelo)); background: var(--grafite); }
.clip--site { --tarja: var(--papel); }
.clip--sys { --tarja: var(--cobre); }
.clip img, .clip video { height: calc(var(--strip-h) - 8px); width: auto; max-width: none; object-fit: cover; }
.clip--v video { aspect-ratio: 9 / 16; }
.sq { display: inline-block; width: 9px; height: 9px; flex: none; }
.sq--video { background: var(--amarelo); }
.sq--site { background: var(--papel); }
.sq--sys { background: var(--cobre); }
.legend { display: flex; gap: 24px; margin-top: 16px; font-size: var(--t-small); color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }

.js .strip.is-running { overflow: hidden; }
.js .strip.is-running .strip-run { padding-inline: 0; animation: drift var(--drift, 70s) linear infinite; }
@media (hover: hover) and (pointer: fine) { .js .strip.is-running:hover .strip-run { animation-play-state: paused; } }
@keyframes drift { to { transform: translateX(calc(-50% - 5px)); } }

/* sequência de entrada: o único momento orquestrado */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: rise 900ms var(--ease-out) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: 90ms; }
  .hero-row > * { animation: fade-up 700ms var(--ease-out) 260ms both; }
  .hero-row > *:nth-child(2) { animation-delay: 340ms; }
  .strip { animation: strip-in 1100ms var(--ease-out) 380ms both; }
  .legend { animation: fade-up 700ms var(--ease-out) 600ms both; }
}
@keyframes rise { from { transform: translateY(112%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
@keyframes strip-in { from { opacity: 0; transform: translateX(72px); } }

/* ---------- vídeo ---------- */
.video-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.video-head { display: grid; gap: 20px; }
.reels { display: grid; gap: 28px; }
.reel { display: grid; grid-template-columns: minmax(112px, 36%) 1fr; column-gap: 18px; align-content: start; }
.reel-frame {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: var(--preto);
  aspect-ratio: 9 / 16; overflow: hidden; outline: 0; grid-row: 1 / span 4;
  clip-path: polygon(0 0, calc(100% - var(--chanfro-md)) 0, 100% var(--chanfro-md), 100% 100%, 0 100%);
  transition: transform 200ms var(--ease-out);
}
.reel-frame:active { transform: scale(0.985); }
.reel-frame video { width: 100%; height: 100%; object-fit: cover; }
.reel-frame:focus-visible { box-shadow: inset 0 0 0 4px var(--amarelo); }
.reel-frame:focus-visible video { opacity: 0.86; }
.reel-tc {
  position: absolute; left: 0; bottom: 0; padding: 9px 10px; background: var(--preto); color: var(--papel);
  font: 500 0.875rem/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
}
.reel-play {
  position: absolute; right: 0; bottom: 0; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--amarelo); color: var(--preto);
  clip-path: polygon(var(--chanfro-sm) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chanfro-sm));
  transition: background-color 160ms ease;
}
.reel-play svg { width: 20px; height: 20px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .reel-frame:hover .reel-play { background: var(--papel); }
  .reel-frame:hover .reel-play svg { transform: scale(1.14); }
}
.reel-name { font: 700 var(--t-sub)/1.15 var(--font-display); align-self: end; }
.reel-kind { font-size: var(--t-small); color: var(--muted); margin-top: 6px; }
.reel-text { margin-top: 10px; max-width: 34ch; }

@media (min-width: 700px) {
  .reels { grid-template-columns: repeat(2, minmax(0, 320px)); gap: var(--gap); align-items: start; }
  .reel { display: block; }
  .reel-name { margin-top: 18px; }
  .reel-play { width: 60px; height: 60px; }
  .reel-play svg { width: 24px; height: 24px; }
  .reel-tc { padding: 9px 12px; }
  .reel:nth-child(2) { margin-top: 64px; }
}
@media (min-width: 1100px) {
  .video-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .video-head { display: contents; }
  .video-head .title { grid-column: 1 / -1; }
  .video-head .lede { grid-column: 1 / span 5; align-self: start; }
  .reels { grid-column: 7 / -1; grid-template-columns: 1fr 1fr; }
  .reel:nth-child(2) { margin-top: 96px; }
}

/* ---------- sites ---------- */
.sites-grid { display: grid; gap: clamp(36px, 5vw, 72px); }
.sites-head { display: grid; gap: 20px; justify-items: start; }
.shots { display: grid; gap: clamp(36px, 4vw, 56px) var(--gap); }
.browser { background: var(--preto); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--preto); }
.browser-bar span { font: 500 0.875rem/1 var(--font-mono); color: #a8a399; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-name { font: 700 var(--t-sub)/1.15 var(--font-display); margin-top: 18px; }
.shot-text { margin-top: 8px; max-width: 44ch; color: var(--ink); }
@media (min-width: 760px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .shot--full { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
  .shot--full .browser { grid-column: 1 / span 8; grid-row: 1 / span 2; }
  .shot--full .shot-name { grid-column: 9 / -1; align-self: end; margin-top: 0; }
  .shot--full .shot-text { grid-column: 9 / -1; align-self: start; }
  .shot--full { grid-template-rows: 1fr auto; }
  .shot:nth-child(odd):not(.shot--full) { margin-top: 0; }
  .shot:nth-child(even) { margin-top: 0; }
  .shot:nth-child(3), .shot:nth-child(5) { margin-top: 72px; }
}
@media (min-width: 900px) {
  .sites-head { grid-template-columns: 7fr 5fr; column-gap: var(--gap); align-items: end; }
  .sites-head .title { grid-row: 1 / span 2; align-self: start; }
  .sites-head .lede, .sites-head .btn { grid-column: 2; }
}

/* ---------- sistemas ---------- */
.sys-head { display: grid; gap: 20px; }
.sys-stage { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(36px, 5vw, 72px); align-items: end; }
.sys-desk { grid-column: 1 / -1; }
#sistemas .browser, #sistemas .browser-bar { background: var(--grafite); }
.phone { background: var(--grafite); padding: 8px; clip-path: polygon(0 0, calc(100% - var(--chanfro-md)) 0, 100% var(--chanfro-md), 100% 100%, 0 100%); }
.phone img { width: 100%; }
@media (min-width: 900px) {
  .sys-head { grid-template-columns: 7fr 5fr; column-gap: var(--gap); align-items: end; }
  .sys-head .lede { justify-self: end; }
  .sys-stage { grid-template-columns: repeat(12, 1fr); }
  .sys-desk { grid-column: 1 / span 8; }
  .sys-phone-a { grid-column: 9 / span 2; }
  .sys-phone-b { grid-column: 11 / span 2; margin-bottom: 56px; }
}

.table-scroll { margin-top: clamp(40px, 5vw, 72px); }
.systems { width: 100%; border-collapse: collapse; text-align: left; }
.systems thead th { font: 500 var(--t-small)/1.3 var(--font-sans); color: var(--muted); padding: 0 16px 14px 0; }
.systems tbody tr { border-top: 1px solid var(--line); }
.systems tbody th { font: 700 var(--t-sub)/1.15 var(--font-display); padding: 24px 24px 24px 0; vertical-align: top; width: 26%; }
.systems td { padding: 24px 24px 24px 0; vertical-align: top; }
.systems td.stack { color: var(--muted); font-size: var(--t-small); width: 24%; padding-right: 0; }
@media (max-width: 759px) {
  .systems thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .systems, .systems tbody, .systems tr, .systems th, .systems td { display: block; width: auto; }
  .systems tbody tr { padding-block: 22px; }
  .systems tbody th, .systems td, .systems td.stack { padding: 0; width: auto; }
  .systems td { margin-top: 8px; }
}

/* ---------- sobre ---------- */
.about-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.about-photo { max-width: 520px; clip-path: polygon(0 0, calc(100% - var(--chanfro-lg)) 0, 100% var(--chanfro-lg), 100% 100%, 0 100%); }
.about-photo img { width: 100%; }
.prose { display: grid; gap: 1.1em; margin-top: clamp(24px, 3vw, 40px); max-width: 62ch; }
.statement { font: 800 clamp(1.5rem, 2.3vw, 2rem)/1.12 var(--font-display); letter-spacing: -0.01em; margin-top: clamp(32px, 4vw, 56px); max-width: 24ch; text-wrap: balance; }
.statement + p { margin-top: 16px; max-width: 46ch; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: start; }
  .about-photo { grid-column: 1 / span 5; position: sticky; top: 40px; }
  .about-copy { grid-column: 7 / -1; }
}

/* ---------- contato ---------- */
.contact { padding-bottom: 0; }
.contact-grid { display: grid; gap: clamp(28px, 4vw, 48px); }
.contact-title { white-space: nowrap; }
.contact-side { display: grid; gap: 24px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-handle { font: 700 var(--t-sub)/1 var(--font-display); }
.contact-handle a { color: var(--amarelo); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .contact-handle a:hover { text-decoration: underline; } }
@media (min-width: 900px) {
  .contact-side { grid-template-columns: 5fr 7fr; column-gap: var(--gap); align-items: start; }
  .contact-actions { justify-content: flex-end; grid-row: 1 / span 2; grid-column: 2; }
  .contact-handle { grid-column: 1; }
}
.cutline { display: flex; align-items: flex-end; height: 56px; margin-top: clamp(64px, 9vw, 128px); }
.cutline span { flex: 1; height: 44px; background: url("../img/regua.svg") repeat-x left bottom / 40px 44px; }
.cutline span:last-child { background-position: right bottom; }
.cutline i { position: relative; flex: none; width: clamp(40px, 6vw, 80px); height: 56px; }
.cutline i::before { content: ""; position: absolute; left: 50%; top: 0; bottom: -10px; width: 2px; margin-left: -1px; background: var(--amarelo); }
.cutline i::after { content: ""; position: absolute; left: 50%; top: 0; width: 14px; height: 12px; margin-left: -7px; background: var(--amarelo); clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%); }

/* ---------- rodapé ---------- */
.foot { padding: clamp(40px, 6vw, 72px) 0 32px; }
.foot-name { font: 900 min(9.5vw, 9.1rem)/0.86 var(--font-display); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; color: var(--amarelo); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(24px, 3vw, 40px); font-size: var(--t-small); color: var(--muted); }
.foot-row a { color: var(--ink); }

/* ---------- linha do tempo (navegação) ---------- */
.tl {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  height: calc(var(--tl-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 var(--m) env(safe-area-inset-bottom, 0px);
  background: var(--grafite); color: var(--papel);
}
.tl-tc { display: none; flex: none; width: 11ch; font: 500 0.875rem/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; color: var(--amarelo); }
.tl-track { position: relative; flex: 1; min-width: 0; touch-action: none; cursor: ew-resize; }
.tl-clips { display: flex; gap: 3px; }
.tl-clips li { flex: 1 1 0; min-width: 0; transition: flex-grow 240ms var(--ease-out); }
.tl-clips a {
  display: block; height: 44px; padding: 0 10px; background: #2e2c28; color: var(--papel);
  font: 600 0.875rem/44px var(--font-sans); white-space: nowrap; overflow: hidden; text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  outline: 0; cursor: pointer; user-select: none; -webkit-user-drag: none;
  transition: background-color 160ms ease, color 160ms ease;
}
.tl-clips a[aria-current="true"] { background: var(--amarelo); color: var(--preto); }
.tl-clips a:focus-visible { box-shadow: inset 0 0 0 3px var(--papel); }
.tl-clips a[aria-current="true"]:focus-visible { box-shadow: inset 0 0 0 3px var(--preto); }
@media (hover: hover) and (pointer: fine) { .tl-clips a:not([aria-current="true"]):hover { background: #4a463f; } }
.tl-head {
  position: absolute; top: -8px; bottom: -8px; left: 0; width: 2px; margin-left: -1px;
  background: var(--papel); box-shadow: 0 0 0 1px var(--preto); pointer-events: none; will-change: transform;
}
.tl-head::before {
  content: ""; position: absolute; top: -1px; left: -6px; width: 14px; height: 12px; background: var(--papel);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 50% 100%, 0 50%);
}
.tl.is-scrubbing .tl-clips a { cursor: ew-resize; }
@media (max-width: 699px) {
  .tl-clips a { color: transparent; padding: 0; }
  .tl-clips li.is-current { flex-grow: 3.4; }
  .tl-clips a[aria-current="true"] { color: var(--preto); padding: 0 10px; }
}
@media (min-width: 700px) {
  :root { --tl-h: 64px; }
  .tl-tc { display: block; }
  .tl-clips a { height: 40px; line-height: 40px; }
}

/* ---------- player ---------- */
.player { width: min(92vw, 420px); max-height: 94svh; padding: 0; border: 0; background: transparent; color: var(--papel); overflow: visible; }
.player::backdrop { background: rgba(11, 11, 10, 0.94); }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.player-title { font: 700 var(--t-lede)/1.15 var(--font-display); }
.player-close {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 2px; cursor: pointer;
  background: var(--grafite); color: var(--papel); transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.player-close svg { width: 20px; height: 20px; }
.player-close:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .player-close:hover { background: #2e2c28; } }
.player-video { width: 100%; aspect-ratio: 9 / 16; max-height: calc(94svh - 60px); background: #000; object-fit: contain; }
.player[open] { opacity: 1; transform: none; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
@starting-style { .player[open] { opacity: 0; transform: scale(0.96); } }

/* ---------- entradas ao rolar ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js [data-reveal="cut"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 900ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal="cut"].in { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .strip.is-running { overflow-x: auto; }
  .js .strip.is-running .strip-run { animation: none; padding-inline: var(--m); }
}

@media print {
  .tl, .strip, .lang, .player { display: none !important; }
  body { padding-bottom: 0; }
}
