/* Subset com apenas os glifos usados (GUZIN EDITOR + digitos 1-4): 698 KB -> 93 KB.
   Regerar com: python -m fontTools.subset _fontes/DirtyStains.otf --text='GUZINEDITOR0123456789 ' --flavor=woff2 */
@font-face { font-family: 'DirtyStains'; src: url('/assets/DirtyStains.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --bg: #0B0A09;
  --bg-2: #100D0C;
  --surface: #121010;
  --ink: #F5EFE6;
  --ink-2: #D8CFC5;
  --muted: #B9AFA4;
  --muted-2: #8E857D;
  --muted-3: #9A918A;
  --nav-ink: #C9C0B6;
  --faint: #4E4844;
  --line: rgba(245,239,230,0.08);
  --line-2: rgba(245,239,230,0.12);
  --line-3: rgba(245,239,230,0.32);
  --glass: rgba(18,16,15,0.66);
  --nav-scrolled: rgba(11,10,9,0.72);
  --accent: #FF4D00;
  --accent-ink: #FF4D00;
  --on-accent: #0B0A09;
  --tip: #FFD400;
  --card-bg: linear-gradient(135deg,#1d1a19 0%,#191615 18%,#151312 38%,#121010 58%,#0F0D0D 78%,#121010 100%);
  --card-hi: rgba(255,255,255,0.16);
  --wordmark: rgba(245,239,230,0.035);
  --head: 'Chakra Petch', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --body: 'Space Grotesk', sans-serif;
  --display: 'DirtyStains', sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F7F2EA;
  --bg-2: #EDE5D8;
  --surface: #FFFFFF;
  --ink: #14100E;
  --ink-2: #24201D;
  --muted: #4A443F;
  --muted-2: #5A534C;
  --muted-3: #635B54;
  --nav-ink: #4A443F;
  --faint: #8E857D;
  --line: rgba(20,16,14,0.08);
  --line-2: rgba(20,16,14,0.12);
  --line-3: rgba(20,16,14,0.32);
  --glass: rgba(255,255,255,0.66);
  --nav-scrolled: rgba(247,242,234,0.78);
  --accent-ink: #C43A00;
  --card-bg: linear-gradient(135deg,#FFFFFF 0%,#FCF8F2 40%,#F7F2EA 100%);
  --card-hi: rgba(255,255,255,0.8);
  --wordmark: rgba(20,16,14,0.05);
  color-scheme: light;
}

html, body { margin: 0; padding: 0; background: var(--bg); }
* { box-sizing: border-box; }
body { color: var(--ink); font-family: var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--on-accent); }
a { color: var(--accent-ink); text-decoration: none; }
button { font: inherit; }
img, video { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html[data-vt="active"]::view-transition-group(root) { animation-duration: var(--vt-dur, 520ms); }

@keyframes gz-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gz-bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes gz-bob-soft { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes gz-blink { 0%,92%,100% { opacity: 1; } 95% { opacity: 0.15; } }
@keyframes gz-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,77,0,0.55); } 50% { box-shadow: 0 0 0 7px rgba(255,77,0,0); } }

/* ---------- shared ---------- */
.wrap { max-width: 1160px; margin: 0 auto; }
.section { position: relative; padding: clamp(80px,14vw,150px) 20px; background: var(--bg); border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.eyebrow { margin: 0 0 18px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--accent-ink); }
.h2 { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(30px,6vw,54px); line-height: 1; color: var(--ink); text-transform: none; }
.h2 em { font-style: normal; color: var(--accent-ink); }
.lede { margin: 18px 0 0; font-size: clamp(15px,2.4vw,17px); line-height: 1.65; color: var(--muted); max-width: 56ch; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 38px; }
.mono-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; }

.seg { display: inline-flex; gap: 4px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px; }
.seg button { background: transparent; color: var(--muted-2); border: none; border-radius: 999px; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; padding: 10px 18px; cursor: pointer; transition: background .25s, color .25s; }
.seg button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.seg button:not([aria-selected="true"]):hover { color: var(--ink); }

/* ---------- loader ---------- */
#gz-loader { position: fixed; inset: 0; z-index: 9999; background: #0B0A09; display: flex; align-items: center; justify-content: center; }
#gz-loader video { width: 100%; height: 100%; object-fit: cover; }
#gz-skip { position: absolute; bottom: 28px; right: 28px; background: transparent; border: 1px solid rgba(245,239,230,0.3); color: #F5EFE6; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; padding: 10px 18px; cursor: pointer; border-radius: 6px; transition: border-color .2s, color .2s; }
#gz-skip:hover { border-color: #FF4D00; color: #FF4D00; }

/* ---------- nav ---------- */
#gz-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; transition: background-color .35s, backdrop-filter .35s; }
#gz-nav.is-scrolled { background: var(--nav-scrolled); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-logo { font-family: var(--display); font-size: 15px; letter-spacing: 0.08em; color: var(--ink); }
.nav-logo:hover { color: var(--accent-ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.glass-btn { background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border: none; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 999px; cursor: pointer; color: var(--ink); }
#gz-lang { display: flex; align-items: center; gap: 2px; padding: 3px; font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.1em; }
#gz-lang span { padding: 6px 9px; border-radius: 999px; color: var(--nav-ink); transition: background .3s, color .3s; }
#gz-lang span.on { background: var(--ink); color: var(--bg); }
#gz-theme { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: none; }
#gz-theme .sun { display: none; }
:root[data-theme="light"] #gz-theme .sun { display: block; }
:root[data-theme="light"] #gz-theme .moon { display: none; }
#gz-cta { display: inline-flex; white-space: nowrap; align-items: center; gap: 9px; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.12em; padding: 10px 15px; border-radius: 999px; box-shadow: 0 6px 20px rgba(255,77,0,0.35); transition: box-shadow .3s, transform .3s; }
#gz-cta::before { content: ''; width: 5px; height: 5px; border-radius: 999px; background: var(--on-accent); flex: none; }
#gz-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255,77,0,0.5); }

#gz-pill { display: none; position: absolute; left: 50%; transform: translateX(-50%); height: 44px; width: 132px; border-radius: 999px; overflow: hidden; background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 8px 30px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.10); transition: width .55s cubic-bezier(0.22,1,0.36,1), box-shadow .3s ease-out; }
#gz-pill.open { box-shadow: 0 2px 4px rgba(0,0,0,0.08),0 6px 12px rgba(0,0,0,0.12),0 12px 24px rgba(0,0,0,0.14),0 24px 48px rgba(0,0,0,0.10),inset 0 2px 2px rgba(255,255,255,0.3),inset 0 -3px 8px rgba(0,0,0,0.12),inset 0 0 0 1px rgba(255,255,255,0.12); }
.pill-fx { position: absolute; pointer-events: none; border-radius: 999px; }
.pill-fx.a { left: 0; right: 0; top: 0; height: 2px; border-radius: 0; background: linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.35) 20%,rgba(255,255,255,0.45) 50%,rgba(255,255,255,0.35) 80%,rgba(255,255,255,0) 100%); }
.pill-fx.b { left: 0; right: 0; top: 0; height: 55%; background: linear-gradient(180deg,rgba(255,255,255,0.14) 0%,rgba(255,255,255,0.05) 60%,rgba(255,255,255,0) 100%); }
.pill-fx.c { inset: 0; background: linear-gradient(135deg,rgba(255,255,255,0.12) 0%,rgba(255,255,255,0.04) 30%,rgba(255,255,255,0) 60%); }
.pill-fx.gloss { left: 15%; top: 16%; width: 48px; height: 11px; background: radial-gradient(ellipse at center,rgba(255,255,255,0.30) 0%,rgba(255,255,255,0.12) 45%,rgba(255,255,255,0) 100%); filter: blur(4px); transform: rotate(-12deg); transition: all .4s ease; }
#gz-pill.open .pill-fx.gloss { left: 18%; width: 130px; }
.pill-fx.d { left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(0deg,rgba(0,0,0,0.28) 0%,rgba(0,0,0,0.10) 50%,rgba(0,0,0,0) 100%); }
.pill-fx.e { inset: 0; box-shadow: inset 0 0 40px rgba(255,255,255,0.06); }
.pill-collapsed { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 2; transition: opacity .3s, filter .3s; }
#gz-pill.open .pill-collapsed { opacity: 0; filter: blur(4px); }
#gz-pill-label { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink); white-space: nowrap; transition: opacity .3s, transform .3s, filter .3s; }
.pill-expanded { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-evenly; z-index: 3; opacity: 0; pointer-events: none; transition: opacity .3s; }
#gz-pill.open .pill-expanded { opacity: 1; pointer-events: auto; }
.pill-expanded a { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; color: var(--nav-ink); padding: 8px 10px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: color .2s, transform .3s, opacity .3s; }
#gz-pill.open .pill-expanded a { opacity: 1; transform: translateY(0); }
#gz-pill.open .pill-expanded a:nth-child(2) { transition-delay: .05s; }
#gz-pill.open .pill-expanded a:nth-child(3) { transition-delay: .1s; }
#gz-pill.open .pill-expanded a:nth-child(4) { transition-delay: .15s; }
#gz-pill.open .pill-expanded a:nth-child(5) { transition-delay: .2s; }
.pill-expanded a:hover { color: var(--ink); }
.pill-expanded a.active { color: var(--accent-ink); font-weight: 700; }

@media (min-width: 860px) {
  #gz-nav { padding: 14px 28px; }
  #gz-pill { display: block; }
}

/* ---------- hero ---------- */
#top { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #0B0A09; }
#gz-hero-loop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(11,10,9,0.35) 0%,rgba(11,10,9,0.12) 40%,rgba(11,10,9,0.55) 100%); pointer-events: none; }
.hero-inner { position: relative; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 clamp(24px,7vw,90px); }
#gz-title { margin: 0; font-family: var(--display); font-weight: 400; color: #F5EFE6; text-align: center; line-height: 1.04; letter-spacing: -0.01em; font-size: clamp(44px,11.5vw,168px); text-shadow: 0 10px 40px rgba(0,0,0,0.55); }
#gz-title .l1 { display: block; }
#gz-title .l2 { display: block; font-size: 0.72em; letter-spacing: 0.02em; margin-top: 0.08em; }
/* Story 1.8: a sombra do EDITOR sai das letras e vai para a linha como drop-shadow, que é aplicado DEPOIS da
   máscara do E — a sombra segue o desenho recortado. Com text-shadow na própria letra, o Safari recortava a
   sombra no box do E e aparecia um quadrado escuro. drop-shadow(0 10px 40px) ≈ o text-shadow anterior. */
#gz-title .l2, #gz-title .l2 span { text-shadow: none; }
#gz-title .l2 { filter: drop-shadow(0 10px 40px rgba(0,0,0,0.55)); }
#gz-title span span { display: inline-block; will-change: transform, opacity, filter; }
/* Story 1.6 AC9: o E da DirtyStains tem o vão de cima com 3px e o de baixo fechado (medido por varredura de
   pixels, box 153x124 a 1440px). A máscara abre dois vãos de 7px (linhas 32-39 e 62-69) da haste (x=54) até a
   borda, com contorno levemente irregular para casar com a fonte. Em % do box: escala junto com a fonte.
   Story 1.8: sem sombra própria (ver .l2 acima), a máscara não precisa de folga — box simples, 100%. */
#gz-title .l2 > span:first-child {
  --e-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 153 124' preserveAspectRatio='none'%3E%3Cfilter id='r' x='-10%25' y='-10%25' width='120%25' height='120%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2.2'/%3E%3C/filter%3E%3Cpath filter='url(%23r)' fill='%23fff' fill-rule='evenodd' d='M-20-20H180V150H-20Z M54 32H180V39H54Z M54 62H180V69H54Z'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--e-mask); mask-image: var(--e-mask);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.hero-sub { margin: 22px 0 0; font-family: var(--mono); font-size: clamp(10px,1.4vw,12px); letter-spacing: 0.3em; color: #F5EFE6; text-align: center; text-shadow: 0 2px 16px rgba(0,0,0,0.7); }
.hero-sub b { color: #FF4D00; font-weight: 700; }
#gz-hero-face { position: absolute; right: 4vw; top: 22%; width: clamp(80px,13vw,180px); cursor: pointer; animation: gz-bob 5s ease-in-out infinite; display: block; }
.scroll-hint { position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: gz-blink 4s infinite; }
.scroll-hint span:first-child { font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em; color: #F5EFE6; }
.scroll-hint span:last-child { width: 1px; height: 30px; background: linear-gradient(180deg,#F5EFE6,rgba(245,239,230,0)); }

/* mascots */
.mascot img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,0.35)); transition: filter .3s, transform .3s; }
@media (hover: hover) { .mascot:hover img { animation-play-state: paused; transform: scale(1.06); filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5)); } }
@media (hover: hover) { .mascot:hover { animation-play-state: paused; } }
.tip { position: absolute; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; background: var(--tip); color: #0B0A09; font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; padding: 8px 13px; border-radius: 999px; white-space: nowrap; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }
#gz-hero-face .tip { left: 50%; top: -14px; transform: translate(-50%,6px); }
@media (hover: hover) { #gz-hero-face:hover .tip { opacity: 1; transform: translate(-50%,0); } }
#gz-mascot-wrap { position: fixed; right: 16px; bottom: 16px; width: clamp(62px,9vw,96px); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .6s ease, transform .6s ease; transform: translateY(18px); cursor: pointer; display: block; }
#gz-mascot-wrap.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#gz-mascot-wrap.show.away { opacity: 0; transform: translateY(18px); pointer-events: none; }
#gz-mascot { animation: gz-bob-soft 6s ease-in-out infinite; }
#gz-mascot-wrap .tip { right: 100%; top: 50%; margin-right: 12px; transform: translateY(-50%) translateX(8px); padding: 9px 14px; }
@media (hover: hover) { #gz-mascot-wrap:hover .tip { opacity: 1; transform: translateY(-50%) translateX(0); } }

/* ---------- sobre ---------- */
#sobre { border-top: none; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(36px,6vw,72px); align-items: center; }
@media (min-width: 860px) { .about-grid { grid-template-columns: 1.15fr 0.85fr; } }
.about-h { margin: 0 0 26px; font-family: var(--head); font-weight: 700; font-size: clamp(34px,7vw,62px); line-height: 1; color: var(--ink); }
.about-h em { font-style: normal; color: var(--accent-ink); }
.about-p { margin: 0 0 18px; font-size: clamp(15px,2.4vw,17px); line-height: 1.65; color: var(--muted); max-width: 52ch; }
.about-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; margin-top: 34px; max-width: 520px; }
.stat { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 14px 12px; }
.stat b { display: block; font-family: var(--head); font-size: clamp(20px,3.4vw,28px); color: var(--ink); line-height: 1; }
.stat span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--muted-3); }
.avatar-box { position: relative; width: 100%; max-width: 440px; margin: 0 auto; aspect-ratio: 1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); }
.avatar-box img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- trabalho ---------- */
#gz-work-inner { will-change: transform; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.work-grid.shorts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.work-card { position: relative; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; aspect-ratio: 16/9; cursor: pointer; background: var(--surface); display: block; width: 100%; text-align: left; transition: border-color .25s; }
.work-card.tall { aspect-ratio: 9/16; }
.work-card:hover, .work-card:focus-visible { border-color: var(--accent); outline: none; }
.work-card img, .work-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .35s; }
.work-card video { opacity: 0; }
.work-card.playing video { opacity: 1; }
.work-card:hover img, .work-card:hover video { transform: scale(1.04); }
.work-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(11,10,9,0) 50%,rgba(11,10,9,0.75) 100%); pointer-events: none; }
.work-meta { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.work-meta b { display: block; font-family: var(--head); font-size: 17px; color: #F5EFE6; letter-spacing: 0.02em; }
.work-meta small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; color: rgba(245,239,230,0.7); }
.work-label { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: #F5EFE6; background: rgba(11,10,9,0.75); padding: 6px 10px; border-radius: 6px; }
.play-dot { flex: none; width: 36px; height: 36px; border-radius: 999px; background: #FF4D00; display: flex; align-items: center; justify-content: center; transform: scale(.85); opacity: .9; transition: transform .25s, opacity .25s; }
.play-dot svg { margin-left: 2px; }
.work-card:hover .play-dot { transform: scale(1); opacity: 1; }
@media (min-width: 860px) {
  .work-grid.featured .work-card:first-child { grid-column: span 2; grid-row: span 2; }
}

/* ---------- antes / depois ---------- */
.ba-wrap { display: grid; gap: 22px; }
.ba { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line-2); user-select: none; touch-action: pan-y; cursor: grab; --pos: 50%; }
.ba.dragging { cursor: grabbing; }
@media (max-width: 480px) {
  #gz-nav { gap: 8px; }
  .nav-right { gap: 8px; }
  #gz-cta { padding: 9px 11px; font-size: 9px; letter-spacing: 0.08em; gap: 7px; }
}
.ba video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); filter: saturate(.85); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #FF4D00; box-shadow: 0 0 18px rgba(255,77,0,0.6); pointer-events: none; }
.ba-handle { position: absolute; top: 50%; left: var(--pos); width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 999px; background: #FF4D00; color: #0B0A09; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 26px rgba(0,0,0,0.5); animation: gz-pulse 2.4s infinite; pointer-events: none; }
.ba-tag { position: absolute; top: 14px; z-index: 2; font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.2em; padding: 7px 11px; border-radius: 6px; pointer-events: none; }
.ba-tag.l { left: 14px; background: rgba(11,10,9,0.8); color: #F5EFE6; }
.ba-tag.r { right: 14px; background: #FF4D00; color: #0B0A09; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-range:focus-visible + .ba-focus { opacity: 1; }
.ba-focus { position: absolute; inset: 0; border-radius: 16px; box-shadow: inset 0 0 0 2px #FF4D00; opacity: 0; pointer-events: none; }
.ba-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ba-sound { display: inline-flex; align-items: center; gap: 9px; background: transparent; color: var(--ink); border: none; box-shadow: inset 0 0 0 1.5px var(--line-3); border-radius: 999px; padding: 11px 16px; font-family: var(--mono); font-weight: 700; font-size: 10.5px; letter-spacing: 0.14em; cursor: pointer; transition: box-shadow .2s, color .2s; }
.ba-sound:hover, .ba-sound[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-ink); }
.ba-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-2); max-width: 60ch; }

/* ---------- ferramentas ---------- */
#ferramentas { padding: clamp(70px,11vw,120px) 0 0; }
#ferramentas .wrap { margin-bottom: 46px; padding: 0 20px; }
.marquee { overflow: hidden; padding: 14px 0; background: #FF4D00; }
.marquee-track { display: flex; width: max-content; animation: gz-marquee 26s linear infinite; }
.marquee-track span { font-family: var(--head); font-weight: 700; font-size: clamp(20px,4vw,34px); color: #0B0A09; white-space: nowrap; padding-right: 28px; }
#gz-arsenal { position: relative; height: 512px; overflow: hidden; cursor: grab; touch-action: pan-y; margin-top: 52px; }
.slide { position: absolute; left: 50%; top: 30px; width: clamp(268px,74vw,318px); height: 452px; margin-left: -159px; will-change: transform, opacity, filter; }
/* Story 1.8: no celular o card fica mais estreito para os vizinhos aparecerem (padrão "Netflix") */
@media (max-width: 860px) { .slide { width: clamp(220px, 62vw, 300px); } }
.tool { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: var(--card-bg); box-shadow: 0 3px 6px rgba(0,0,0,0.30),0 8px 16px rgba(0,0,0,0.26),0 16px 32px rgba(0,0,0,0.20),inset 0 2px 1px var(--card-hi),inset 0 -2px 6px rgba(0,0,0,0.34),inset 2px 2px 8px rgba(0,0,0,0.22),inset -2px 2px 8px rgba(0,0,0,0.20),inset 0 0 0 1px rgba(255,255,255,0.07); transition: box-shadow .35s ease-out, transform .35s; display: flex; flex-direction: column; }
:root[data-theme="light"] .tool { box-shadow: 0 3px 6px rgba(0,0,0,0.06),0 8px 16px rgba(0,0,0,0.08),0 16px 32px rgba(0,0,0,0.08),inset 0 2px 1px #fff,inset 0 -2px 6px rgba(0,0,0,0.06),inset 0 0 0 1px rgba(20,16,14,0.08); }
.tool:hover { transform: translateY(-6px); }
.tool-fx { position: absolute; pointer-events: none; z-index: 3; }
.tool-fx.a { left: 0; right: 0; top: 0; height: 1.5px; background: linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.30) 8%,rgba(255,255,255,0.42) 50%,rgba(255,255,255,0.30) 92%,rgba(255,255,255,0) 100%); }
.tool-fx.b { left: 0; right: 0; top: 0; height: 45%; background: linear-gradient(180deg,rgba(255,255,255,0.10) 0%,rgba(255,255,255,0.04) 45%,rgba(255,255,255,0) 100%); }
.tool-fx.gloss { left: 12%; top: 7%; width: 110px; height: 16px; border-radius: 999px; background: radial-gradient(ellipse at center,rgba(255,255,255,0.26) 0%,rgba(255,255,255,0.10) 45%,rgba(255,255,255,0) 100%); filter: blur(5px); transform: rotate(-11deg); transition: all .4s ease; }
.tool:hover .tool-fx.gloss { width: 190px; left: 16%; }
.tool-body { position: relative; z-index: 2; padding: 24px 24px 0; flex: none; }
.tool-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.tool-ico { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,77,0,0.14); box-shadow: inset 0 0 0 1px rgba(255,77,0,0.35); flex: none; color: #FF4D00; }
.tool-num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--accent-ink); padding-top: 6px; }
.tool h3 { margin: 0 0 10px; font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--ink); }
.tool p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.6; color: var(--muted-2); min-height: 70px; }
.tool .tool-sw { margin: 0 0 18px; min-height: 0; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--muted-3); }
.tool-media { position: relative; z-index: 2; flex: 1; min-height: 0; margin: 0 14px 14px; border-radius: 14px; overflow: hidden; background: #000; }
.tool-media video { width: 100%; height: 100%; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 8px; padding: 26px 0 clamp(60px,9vw,100px); }
.dots button { width: 26px; height: 3px; padding: 0; border: none; border-radius: 999px; background: var(--line-3); opacity: .7; transition: background .3s; cursor: pointer; }
.dots button.on { background: var(--accent); opacity: 1; }

/* ---------- processo ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; counter-reset: step; }
.step { position: relative; border: 1px solid var(--line-2); border-radius: 14px; padding: 26px 24px 28px; background: var(--bg); overflow: hidden; }
.step-n { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--accent-ink); }
.step h3 { margin: 18px 0 10px; font-family: var(--head); font-weight: 700; font-size: 21px; color: var(--ink); }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted-2); }
.step::after { content: attr(data-n); position: absolute; right: 14px; bottom: -18px; font-family: var(--display); font-size: 96px; line-height: 1; color: var(--wordmark); pointer-events: none; }

/* ---------- depoimentos ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-top: 40px; }
.quote { margin: 0; border: 1px solid var(--line-2); border-radius: 12px; padding: 26px; background: var(--bg); }
.quote blockquote { margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote .av { width: 36px; height: 36px; border-radius: 999px; background: var(--accent); flex: none; }
.quote .who b { display: block; font-size: 14px; color: var(--ink); }
.quote .who span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted-3); }

/* ---------- contato ---------- */
#contato { padding: clamp(80px,14vw,140px) 20px 40px; overflow: hidden; }
#contato .wrap { position: relative; z-index: 2; text-align: center; }
.contact-h { margin: 0 0 26px; font-family: var(--head); font-weight: 700; font-size: clamp(36px,9vw,86px); line-height: 0.95; color: var(--ink); }
.contact-h em { font-style: normal; color: var(--accent-ink); }
.contact-p { margin: 0 auto 44px; font-size: 17px; line-height: 1.65; color: var(--muted-2); max-width: 44ch; }
.contact-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 250px; min-height: 68px; font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; padding: 22px 36px; border-radius: 999px; transition: transform .25s, box-shadow .25s; }
.cbtn:hover { transform: translateY(-4px); }
.cbtn.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 34px rgba(255,77,0,0.34); }
.cbtn.primary:hover { box-shadow: 0 16px 44px rgba(255,77,0,0.45); color: var(--on-accent); }
.cbtn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-3); }
.cbtn.ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin-top: 58px; padding-top: 26px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; }
.socials a { color: var(--muted-2); }
.socials a:hover { color: var(--accent-ink); }
.copy { margin: 34px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--faint); }
.wordmark { position: absolute; bottom: -4vw; left: 0; right: 0; text-align: center; font-family: var(--display); font-size: 17vw; line-height: 0.8; color: var(--wordmark); pointer-events: none; z-index: 1; white-space: nowrap; }

/* ---------- lightbox ---------- */
#gz-lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(6,5,5,0.94); display: none; align-items: center; justify-content: center; padding: 20px; }
#gz-lightbox.open { display: flex; }
#gz-lightbox-frame { width: 100%; max-width: 1080px; aspect-ratio: 16/9; background: #000; border-radius: 14px; overflow: hidden; }
#gz-lightbox-frame.tall { max-width: 420px; aspect-ratio: 9/16; max-height: 86vh; }
#gz-lightbox-frame video, #gz-lightbox-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #000; }
#gz-lightbox-close { position: absolute; top: 20px; right: 20px; background: #FF4D00; color: #0B0A09; border: none; border-radius: 999px; width: 42px; height: 42px; font-size: 20px; cursor: pointer; font-family: var(--mono); }

[data-reveal] { will-change: transform, opacity; }
[hidden] { display: none !important; }

/* ---------- ilha de edição (clipes) ---------- */
.editor { border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); padding: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.35); }
.monitor { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #000; }
.monitor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.mon-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 14px; padding: 14px 16px 30px; background: linear-gradient(180deg,rgba(0,0,0,0.7),rgba(0,0,0,0)); pointer-events: none; }
.mon-rec { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; color: #FF4D00; }
.monitor:not(.is-playing) .mon-rec { color: rgba(245,239,230,0.5); }
.mon-who { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mon-who b { font-family: var(--head); font-size: clamp(14px,2vw,18px); color: #F5EFE6; }
.mon-who small { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; color: rgba(245,239,230,0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-tc { margin-left: auto; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: #F5EFE6; background: rgba(0,0,0,0.55); padding: 5px 8px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.mon-big { position: absolute; left: 50%; top: 50%; z-index: 3; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: none; border-radius: 999px; background: #FF4D00; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 40px rgba(255,77,0,0.45); transition: transform .25s, opacity .25s; }
.mon-big svg { margin-left: 3px; }
.mon-big:hover { transform: scale(1.08); }
.monitor.is-playing .mon-big { opacity: 0; pointer-events: none; transform: scale(.8); }
.mon-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 30px 12px 12px; background: linear-gradient(0deg,rgba(0,0,0,0.75),rgba(0,0,0,0)); opacity: 1; transition: opacity .3s; }
@media (hover: hover) { .monitor.is-playing:not(:hover) .mon-bar { opacity: 0; } }
.mon-btn { flex: none; width: 36px; height: 36px; border: none; border-radius: 999px; background: rgba(245,239,230,0.12); color: #F5EFE6; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.mon-btn:hover { background: #FF4D00; color: #0B0A09; }
.mon-btn .i-pause, .monitor.is-playing .mon-btn .i-play { display: none; }
.monitor.is-playing .mon-btn .i-pause { display: block; }
.mon-sound .wave { display: none; }
.mon-sound[aria-pressed="true"] .wave { display: block; }
.mon-sound[aria-pressed="true"] .mute { display: none; }
.mon-sound[aria-pressed="false"] { background: #FF4D00; color: #0B0A09; animation: gz-pulse 2.4s infinite; }
.mon-seek { flex: 1; min-width: 0; height: 4px; appearance: none; -webkit-appearance: none; border-radius: 999px; cursor: pointer; background: linear-gradient(90deg,#FF4D00 var(--p,0%),rgba(245,239,230,0.25) var(--p,0%)); }
.mon-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 999px; background: #F5EFE6; border: none; }
.mon-seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 999px; background: #F5EFE6; border: none; }

.bin { display: flex; align-items: center; gap: 14px; padding: 14px 6px 10px; overflow-x: auto; scrollbar-width: none; }
.bin::-webkit-scrollbar { display: none; }
.bin-label { flex: none; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.2em; color: var(--muted-3); }
.chips { display: flex; gap: 6px; }
.chips button { flex: none; background: transparent; border: none; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--muted); border-radius: 999px; padding: 8px 13px; font-family: var(--mono); font-weight: 700; font-size: 10px; letter-spacing: 0.12em; cursor: pointer; transition: all .2s; }
.chips button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.chips button span { opacity: .55; margin-left: 6px; }

.timeline { border-radius: 10px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.tl-ruler { height: 18px; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, var(--line-3) 0 1px, transparent 1px 60px); background-size: 100% 5px, 100% 10px; background-repeat: repeat-x; background-position: 44px bottom, 44px bottom; }
.tl-track { display: flex; align-items: stretch; }
.tl-name { flex: none; width: 44px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; font-weight: 700; color: var(--muted-3); border-right: 1px solid var(--line); }
.tl-clips { display: flex; gap: 4px; padding: 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.tl-clip { position: relative; flex: none; height: 84px; padding: 0; border: none; border-radius: 7px; overflow: hidden; cursor: pointer; background: #222; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); text-align: left; transition: transform .2s, box-shadow .2s, opacity .2s; }
.tl-clip img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .2s; }
.tl-clip::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,rgba(0,0,0,0.8),rgba(0,0,0,0) 70%); z-index: 1; }
.tl-clip b { position: absolute; left: 9px; bottom: 20px; z-index: 2; font-family: var(--head); font-size: 13px; color: #F5EFE6; }
.tl-clip small { position: absolute; left: 9px; bottom: 7px; z-index: 2; font-family: var(--mono); font-size: 9px; letter-spacing: 0.1em; color: rgba(245,239,230,0.7); }
.tl-clip .tl-prog { position: absolute; left: 0; top: 0; bottom: 0; width: 0; z-index: 1; background: rgba(255,77,0,0.28); border-right: 2px solid #FF4D00; display: none; }
.tl-clip:hover img { opacity: 1; }
.tl-clip:hover { transform: translateY(-2px); }
.tl-clip.active { box-shadow: inset 0 0 0 2px #FF4D00; }
.tl-clip.active img { opacity: 1; }
.tl-clip.active .tl-prog { display: block; }
/* grade de clipes abaixo do monitor */
.bin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; padding: 4px 4px 6px; }
.bin-grid .tl-clip { width: auto; height: auto; aspect-ratio: 16/9; border-radius: 10px; }
.bin-grid .tl-clip:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(255,77,0,0.7); }
.bin-grid .tl-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.bin-grid .tl-clip.previewing video { opacity: 1; }
.bin-grid .tl-clip b { bottom: 24px; left: 12px; font-size: 16px; }
.bin-grid .tl-clip small { left: 12px; bottom: 10px; font-size: 10px; }
.bin-grid .tl-clip .tl-prog { top: auto; height: 3px; border-right: none; background: #FF4D00; }
.tl-now { position: absolute; top: 10px; left: 10px; z-index: 2; display: none; align-items: center; gap: 6px; background: #FF4D00; color: #0B0A09; font-family: var(--mono); font-weight: 700; font-size: 9px; letter-spacing: 0.14em; padding: 5px 8px; border-radius: 5px; }
.tl-clip.active .tl-now { display: inline-flex; }
@media (max-width: 640px) { .bin-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; } .bin-grid .tl-clip b { font-size: 12px; bottom: 20px; left: 8px; } .bin-grid .tl-clip small { left: 8px; bottom: 7px; } .tl-now { font-size: 8px; padding: 4px 6px; } }
@media (max-width: 640px) { .editor { padding: 6px; border-radius: 14px; } .mon-top { padding: 10px 10px 24px; } .mon-who small { display: none; } }

/* ---------- arsenal: som ---------- */
.tool-sound { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border: none; border-radius: 999px; background: rgba(11,10,9,0.75); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.tool-sound::before { content: ''; width: 16px; height: 16px; background: #F5EFE6; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4V5z'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4V5z'/%3E%3Cpath d='M16 9l6 6M22 9l-6 6'/%3E%3C/svg%3E") center/contain no-repeat; }
.tool-sound[aria-pressed="true"] { background: #FF4D00; }
.tool-sound[aria-pressed="true"]::before { background: #0B0A09; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M18.5 5.5a9 9 0 0 1 0 13'/%3E%3C/svg%3E"); }

/* ---------- antes/depois: arraste por ponteiro, range só pro teclado ---------- */
.ba .ba-range { position: absolute; width: 1px; height: 1px; inset: auto; opacity: 0; pointer-events: none; }
.ba:focus-within { box-shadow: 0 0 0 2px #FF4D00; }
.ba.dragging .ba-handle { animation: none; transform: scale(1.1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- bento de clipes ---------- */
/* A altura da linha e amarrada a largura da coluna por JS (--bento-row), senao
   a proporcao de cada card varia com o viewport. O clamp fica como fallback sem JS. */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); grid-auto-rows: var(--bento-row, clamp(120px, 13vw, 168px)); grid-auto-flow: dense; gap: var(--bento-gap, 12px); }
.bento-card { position: relative; padding: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--surface); text-align: left; transition: border-color .25s, transform .35s cubic-bezier(.22,1,.36,1); }
.bento-card.w2 { grid-column: span 2; }
.bento-card.h2 { grid-row: span 2; }
.bento-card.v3 { grid-row: span 3; }   /* retrato 9:16 */
.bento-card:hover, .bento-card:focus-visible { border-color: var(--accent); outline: none; transform: translateY(-3px); }
.bento-card img, .bento-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s, opacity .35s; }
.bento-card video { opacity: 0; }
.bento-card.playing video { opacity: 1; }
.bento-card:hover img, .bento-card:hover video { transform: scale(1.05); }
.bento-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(11,10,9,0) 45%,rgba(11,10,9,0.8) 100%); pointer-events: none; }
.bento-meta { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.bento-meta b { display: block; font-family: var(--head); font-size: clamp(14px,1.6vw,19px); color: #F5EFE6; }
.bento-card.h2 .bento-meta b { font-size: clamp(18px,2.4vw,28px); }
.bento-meta small { display: block; margin-top: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: rgba(245,239,230,0.7); }
.bento-dur { position: absolute; top: 10px; right: 10px; z-index: 2; font-family: var(--mono); font-size: 10px; color: #F5EFE6; background: rgba(11,10,9,0.7); padding: 4px 7px; border-radius: 5px; }
.bento-card .play-dot { transform: scale(.85); opacity: .9; transition: transform .25s, opacity .25s; }
.bento-card:hover .play-dot { transform: scale(1); opacity: 1; }
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, minmax(0,1fr)); grid-auto-rows: var(--bento-row, clamp(110px, 28vw, 180px)); } .bento-card.h2 { grid-row: span 2; } }
@media (max-width: 520px) { .bento { gap: 8px; } .bento-meta small { display: none; } .bento-card.w2:not(.h2) { grid-column: span 2; } .play-dot { width: 28px; height: 28px; } }

/* ---------- janela do editor ---------- */
#gz-ed { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; padding: clamp(8px,3vw,40px); background: rgba(6,5,5,0); backdrop-filter: blur(0); transition: background .3s, backdrop-filter .3s; }
#gz-ed.open { background: rgba(6,5,5,0.88); backdrop-filter: blur(8px); }
.ed-win { width: 100%; max-width: 1180px; max-height: 100%; display: flex; flex-direction: column; background: #151312; border: 1px solid rgba(245,239,230,0.1); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,0.6); color: #F5EFE6; opacity: 0; transform: translateY(24px) scale(.98); transition: opacity .3s, transform .4s cubic-bezier(.22,1,.36,1); }
#gz-ed.open .ed-win { opacity: 1; transform: none; }
.ed-head { flex: none; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px; background: #1C1918; border-bottom: 1px solid rgba(245,239,230,0.08); }
.ed-dots { display: flex; gap: 6px; }
.ed-dots i { width: 10px; height: 10px; border-radius: 999px; background: #3A3432; }
.ed-dots i:first-child { background: #FF4D00; }
.ed-file { flex: 1; min-width: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: #B9AFA4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.ed-close { flex: none; width: 32px; height: 32px; border: none; border-radius: 999px; background: rgba(245,239,230,0.08); color: #F5EFE6; font-size: 18px; cursor: pointer; }
.ed-close:hover { background: #FF4D00; color: #0B0A09; }
.ed-monitor { position: relative; flex: 1 1 auto; min-height: 0; aspect-ratio: 16/9; max-height: 62vh; background: #000; }
.ed-monitor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
#gz-ed.is-playing .mon-rec { color: #FF4D00; }
#gz-ed:not(.is-playing) .mon-rec { color: rgba(245,239,230,0.5); }
#gz-ed.is-playing .mon-big { opacity: 0; pointer-events: none; transform: scale(.8); }
#gz-ed.is-playing .ed-play .i-play { display: none; }
#gz-ed.is-playing .ed-play .i-pause { display: block; }
.ed-controls { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid rgba(245,239,230,0.06); }
.ed-play { background: #FF4D00; color: #0B0A09; }
.ed-tc { margin-left: 6px; font-family: var(--mono); font-size: 12px; color: #8E857D; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ed-tc b { color: #F5EFE6; font-weight: 700; }
.ed-next { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: #8E857D; white-space: nowrap; }
#gz-ed .mon-sound[aria-pressed="false"] { animation: none; }
.ed-tl { flex: none; display: flex; background: #0F0D0C; border-top: 1px solid rgba(245,239,230,0.08); user-select: none; }
.ed-names { flex: none; width: 44px; display: grid; grid-template-rows: 22px 58px 40px; border-right: 1px solid rgba(245,239,230,0.08); }
.ed-names span { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 10px; font-weight: 700; color: #8E857D; border-bottom: 1px solid rgba(245,239,230,0.05); }
.ed-lanes { position: relative; flex: 1; display: grid; grid-template-rows: 22px 58px 40px; cursor: col-resize; touch-action: none; margin-right: 12px; }
.ed-ruler { position: relative; border-bottom: 1px solid rgba(245,239,230,0.08); background-image: repeating-linear-gradient(90deg, rgba(245,239,230,0.18) 0 1px, transparent 1px 2%); background-size: 100% 5px; background-repeat: repeat-x; background-position: bottom; }
.ed-ruler span { position: absolute; top: 3px; transform: translateX(3px); font-family: var(--mono); font-size: 9px; color: #6E6660; white-space: nowrap; }
.ed-lane { position: relative; padding: 5px 0; border-bottom: 1px solid rgba(245,239,230,0.05); }
.ed-clipbox { position: relative; height: 100%; border-radius: 5px; overflow: hidden; }
.ed-v .ed-clipbox { background: #2A2320; box-shadow: inset 0 0 0 1px rgba(255,77,0,0.55); }
.ed-v img { width: 100%; height: 100%; object-fit: cover; opacity: .85; display: block; }
.ed-v .ed-clipbox span { position: absolute; left: 6px; top: 4px; font-family: var(--mono); font-size: 9px; color: #F5EFE6; background: rgba(11,10,9,0.7); padding: 2px 5px; border-radius: 3px; }
.ed-a .ed-clipbox { background: rgba(255,77,0,0.1); box-shadow: inset 0 0 0 1px rgba(255,77,0,0.3); }
.ed-a img { width: 100%; height: 100%; object-fit: fill; display: block; }
.ed-played { position: absolute; left: 0; top: 22px; bottom: 0; width: 0; background: rgba(255,77,0,0.08); pointer-events: none; }
.ed-head-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #FF4D00; pointer-events: none; box-shadow: 0 0 10px rgba(255,77,0,0.7); }
.ed-head-line i { position: absolute; top: 0; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: #FF4D00; clip-path: polygon(0 0,100% 0,100% 55%,50% 100%,0 55%); }
@media (max-width: 640px) {
  .ed-controls { flex-wrap: wrap; gap: 6px; }
  .ed-next { display: none; }
  .ed-names, .ed-lanes { grid-template-rows: 20px 44px 30px; }
  .ed-monitor { max-height: 42vh; }
}

/* texto real para leitor de tela e buscador; o visual do topo continua "GUZIN / EDITOR" (Story 1.3, S2) */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* crédito discreto no rodapé */
.credit { margin: 10px 0 0; display: flex; align-items: center; justify-content: center; gap: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--faint); }
.credit .heart { color: var(--accent); opacity: .8; flex: none; }
.credit a { color: var(--faint); border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.credit a:hover { color: var(--accent-ink); border-color: currentColor; }


/* ---------- janela de editor: retrato 9:16 e link do video completo ---------- */
/* Sem isto o material 1080x1920 entra deitado numa moldura 16:9 e fica com
   duas tarjas pretas ocupando dois tercos da largura. */
/* A altura precisa ser explicita. Com flex: 1 1 auto + aspect-ratio + margin auto o
   navegador tenta derivar largura da altura e altura da largura ao mesmo tempo: a
   referencia fica circular e a moldura colapsa pra 0x0. Fixando a altura, a largura
   sai dela pelo aspect-ratio. */
#gz-ed.tall .ed-monitor {
  flex: 0 0 auto;
  height: min(62vh, 70vw * 16 / 9);
  width: auto;
  max-width: 100%;
  aspect-ratio: 9/16;
  margin: 0 auto;
}
#gz-ed.tall .ed-monitor video { object-fit: contain; }

.ed-full-link {
  margin-left: auto;
  font: 600 11px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}
@media (hover: hover) {
  .ed-full-link:hover { background: var(--accent); color: #0B0A09; }
}
.ed-full-link[hidden] { display: none !important; }
@media (max-width: 720px) {
  .ed-full-link { font-size: 10px; padding: 6px 9px; }
}
