/* =========================================================
   ITALO MENDES · PACKS (Sound Effects · Trilhas · LUTs)
   Mesma identidade do portfólio: 70% preto · 25% bege · 5% bordô
   ========================================================= */

@font-face { font-family: "Creato"; src: url("../fonts/CreatoDisplay-Thin.otf") format("opentype"); font-weight: 100; font-display: swap; }
@font-face { font-family: "Creato"; src: url("../fonts/CreatoDisplay-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Creato"; src: url("../fonts/CreatoDisplay-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Creato"; src: url("../fonts/CreatoDisplay-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Creato"; src: url("../fonts/CreatoDisplay-Bold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Creato"; src: url("../fonts/CreatoDisplay-ExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bootzy"; src: url("../fonts/BootzyTM.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Garamond"; src: url("../fonts/AppleGaramond-LightItalic.ttf") format("truetype"); font-style: italic; font-weight: 300; font-display: swap; }

:root {
  color-scheme: dark;
  --bordo: #9E0B0F;
  --bordo-hi: #C4141A;
  --preto: #0E0E0E;
  --preto-2: #151413;
  --preto-3: #1C1B19;
  --bege: #EFE4D0;
  --bege-60: rgba(239, 228, 208, .6);
  --bege-35: rgba(239, 228, 208, .35);
  --bege-12: rgba(239, 228, 208, .12);
  --bege-06: rgba(239, 228, 208, .06);
  --tl: #3F3D39;
  --verde-ok: #EFE4D0; /* concluída = bege cheio (sem verde: fica na paleta) */

  --f-sans: "Creato", "Helvetica Neue", Arial, sans-serif;
  --f-big: "Bootzy", "Creato", Impact, sans-serif;
  --f-serif: "Garamond", "Times New Roman", serif;

  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .1, 1);
  --snap: cubic-bezier(.7, 0, .2, 1);
  --r: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--preto); color: var(--bege); font-family: var(--f-sans); line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; min-height: 100svh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
img, video { display: block; max-width: 100%; }
::selection { background: var(--bordo); color: var(--bege); }
main { flex: 1; position: relative; z-index: 1; }
:focus-visible { outline: 2px solid var(--bordo-hi); outline-offset: 3px; border-radius: 4px; }

.rec { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--bordo-hi); box-shadow: 0 0 12px rgba(196, 20, 26, .7); vertical-align: middle; }
.label { font-weight: 500; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--bege-60); }
.big { font-family: var(--f-big); text-transform: uppercase; font-weight: normal; line-height: .88; }
.serif { font-family: var(--f-serif); font-style: italic; font-weight: 300; }

/* Textura */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .12; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0) } 33% { transform: translate(5%,-7%) } 66% { transform: translate(-6%,4%) } 100% { transform: translate(2%,6%) } }
.vignette { position: fixed; inset: 0; z-index: 89; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.5) 100%); }

/* Assinatura */
.sig { display: inline-flex; align-items: baseline; gap: .22em; font-size: 24px; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.sig-italo { font-weight: 800; }
.sig-mendes { font-weight: 100; }
.sig-i { position: relative; display: inline-block; }
.sig-i .rec { position: absolute; left: 50%; top: -.06em; width: .3em; height: .3em; transform: translateX(-50%); }
.sig-lg { font-size: clamp(44px, 9vw, 84px); }
.sig-sm { font-size: 18px; }

/* Timeline da marca = barra de progresso */
.tlbar { position: relative; display: flex; gap: 4px; height: 14px; }
.tlbar span { flex: 1; height: 100%; border-radius: 3px; background: var(--tl); transition: background .4s; }
.tlbar span.done { background: var(--bege); }
.tlbar span.now { background: var(--bordo); flex: 1.8; }
.tlbar .needle { position: absolute; top: -8px; bottom: -9px; width: 2px; background: var(--bege); transition: left .8s var(--ease); }
.tlbar .needle::before { content: ""; position: absolute; top: -2px; left: -5px; width: 12px; height: 7px; background: var(--bege); clip-path: polygon(0 0,100% 0,50% 100%); }
.tlbar.sm { height: 8px; gap: 3px; }
.tlbar.sm .needle { top: -5px; bottom: -6px; }

/* Botões e chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 24px; border-radius: 999px; font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--bordo); color: var(--bege); box-shadow: 0 10px 40px -12px rgba(158,11,15,.8); }
.btn-red:hover { background: var(--bordo-hi); }
.btn-line { border: 1px solid var(--bege-35); }
.btn-line:hover { border-color: var(--bege); }
.btn-ghost { color: var(--bege-60); }
.btn-ghost:hover { color: var(--bege); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.play { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--bege-12); font-weight: 500; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--bege-60); background: rgba(14,14,14,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip.ok { color: var(--preto); background: var(--bege); border-color: var(--bege); }
.chip.now { color: var(--bege); background: var(--bordo); border-color: var(--bordo); }
.chip .rec { width: 6px; height: 6px; }

/* Placeholder de vídeo (frame de câmera) */
.ph { position: absolute; inset: 0; overflow: hidden; background: var(--preto-3); }
.ph::before { content: ""; position: absolute; inset: -20%; filter: blur(30px); background:
  radial-gradient(40% 50% at var(--x1,25%) var(--y1,40%), rgba(158,11,15,.5), transparent 70%),
  radial-gradient(45% 40% at var(--x2,75%) var(--y2,70%), rgba(63,61,57,.9), transparent 70%), linear-gradient(135deg,#1b1a18,#0f0e0d); }
.ph-ui { position: absolute; inset: 12px; font-weight: 500; font-size: 10px; letter-spacing: .22em; color: var(--bege-35); }
.ph-ui span { position: absolute; }
.ph-ui .a { top: 0; left: 0; display: flex; gap: 6px; align-items: center; }
.ph-ui .b { top: 0; right: 0; }
.ph-ui .c { bottom: 0; right: 0; }
.ph-num { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-big); font-size: clamp(54px, 7vw, 96px); color: rgba(239,228,208,.14); }

