:root {
  --bg: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1b1b1b;
  --line: #2a2a2a;
  --fg: #f1f1ef;
  --fg-2: #bdbdb9;
  --mut: #77777a;
  --sans: "Inter Tight", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { background: var(--bg); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.label { color: var(--mut); margin-bottom: 20px; }
.center { text-align: center; }
::selection { background: var(--fg); color: var(--bg); }

.big { font-size: clamp(40px, 7.5vw, 120px); line-height: .92; font-weight: 800; letter-spacing: -.045em; }
.big em { font-size: 1.08em; font-weight: 400; }
.huge { font-size: clamp(56px, 13vw, 220px); line-height: .85; font-weight: 900; letter-spacing: -.055em; }
.huge em { font-weight: 400; letter-spacing: -.03em; }

section { position: relative; padding: clamp(80px, 14vh, 160px) var(--pad); }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%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%,100% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); } 40% { transform: translate(3%,-6%); }
  60% { transform: translate(-7%,-2%); } 80% { transform: translate(5%,6%); }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.loader-tc { font-size: clamp(28px, 6vw, 64px); letter-spacing: .02em; color: var(--fg); }
.loader-bar { width: min(320px, 70vw); height: 1px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0; background: var(--fg); }
.loader-label { color: var(--mut); }

/* ---------- HUD ---------- */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad); mix-blend-mode: difference; color: #fff;
}
.hud-brand { font-weight: 900; letter-spacing: -.03em; font-size: 20px; display: flex; align-items: center; gap: 12px; }
.hud-logo { height: 22px; width: auto; }
.hud-tag { font-size: 10px; font-weight: 400; letter-spacing: .12em; opacity: .7; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.35); }
.rec { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hud-nav { display: flex; gap: 26px; }
.hud-nav a { opacity: .7; transition: opacity .2s; }
.hud-nav a:hover { opacity: 1; }
.hud-tc { font-size: 13px; min-width: 120px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- scrubber ---------- */
.scrubber {
  position: fixed; left: var(--pad); right: var(--pad); bottom: 18px; height: 22px; z-index: 50;
  mix-blend-mode: difference; pointer-events: auto;
}
.scrub-track { position: absolute; inset: 7px 0; display: flex; gap: 2px; }
.scrub-track button {
  height: 100%; background: #fff; opacity: .22; border-radius: 1px; position: relative; transition: opacity .2s;
}
.scrub-track button:hover { opacity: .55; }
.scrub-track button span {
  position: absolute; bottom: 14px; left: 0; font-family: var(--mono); font-size: 9px; letter-spacing: .08em;
  text-transform: uppercase; color: #fff; white-space: nowrap; opacity: 0; transition: opacity .2s;
}
.scrub-track button:hover span, .scrub-track button.on span { opacity: 1; }
.scrub-track button.on { opacity: .55; }
.scrub-head { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; left: 0; will-change: transform; }
.scrub-head::before { content: ""; position: absolute; top: -4px; left: -4px; border: 5px solid transparent; border-top-color: #fff; }

/* ---------- cursor preview ---------- */
.cursor-preview {
  position: fixed; top: 0; left: 0; z-index: 40; width: 320px; aspect-ratio: 16/9; pointer-events: none;
  border-radius: 6px; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.85);
  background: #000; box-shadow: 0 30px 60px rgba(0,0,0,.6);
}
.cursor-preview video, .cursor-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cursor-preview img { z-index: -1; }

/* ---------- HERO ---------- */
.hero { padding: 0; height: 260vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-meta {
  position: absolute; top: 76px; left: var(--pad); right: var(--pad);
  display: flex; justify-content: space-between; color: var(--mut); z-index: 3;
}
.hero-title {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 31vw; font-weight: 900; letter-spacing: -.07em; line-height: .8; z-index: 1; pointer-events: none;
}
.hero-title span { display: inline-block; will-change: transform; }
.hero-reel {
  position: relative; z-index: 2; width: 26vw; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden;
  background: #000; will-change: width, height, border-radius; box-shadow: 0 40px 80px rgba(0,0,0,.7);
}
.hero-reel video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.hero-reel-ui {
  position: absolute; left: 12px; right: 12px; top: 10px; display: flex; justify-content: space-between;
  font-size: 10px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.hero-reel-ui span:first-child::before { content: "●"; margin-right: 6px; color: #fff; animation: blink 1.2s steps(2) infinite; }
.hero-sub {
  position: absolute; left: var(--pad); bottom: 70px; max-width: 420px; color: var(--fg-2); z-index: 3;
  font-size: clamp(15px, 1.3vw, 18px); line-height: 1.45;
}
.hero-sub em { color: var(--fg); font-size: 1.15em; }
.hero-scroll { position: absolute; right: var(--pad); bottom: 70px; z-index: 3; color: var(--mut); }
.hero-scroll span { display: inline-block; animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- SOBRE ---------- */
.manifesto { padding-top: 24vh; padding-bottom: 10vh; }
.manifesto-text {
  font-size: clamp(52px, 10vw, 180px); line-height: .9; letter-spacing: -.04em; font-weight: 700; max-width: 1350px;
}
.manifesto-text em { font-weight: 400; }
.manifesto-text .w { opacity: .14; }

/* ---------- NÚMEROS ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(56px, 9vw, 150px); font-weight: 800; letter-spacing: -.055em; line-height: .95; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat b i { font-style: normal; font-weight: 300; color: var(--mut); }
.stat p { color: var(--mut); margin-top: 14px; }

/* ---------- HIGHLIGHTS ---------- */
.highlights { padding: 0; }
.hl-pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hl-head { position: absolute; top: 90px; left: var(--pad); z-index: 2; pointer-events: none; }
.hl-head .big { font-size: clamp(36px, 5vw, 80px); }
.hl-count { margin-top: 18px; color: var(--mut); font-size: 13px; }
.hl-count span:first-child { color: var(--fg); }
.hl-track { display: flex; gap: 3vw; align-items: center; padding-top: 16vh; padding-left: 40vw; padding-right: 10vw; will-change: transform; }
.hl-card { flex: none; position: relative; cursor: pointer; }
.hl-card.h { width: min(48vw, 105vh); }
.hl-card.v { width: min(20vw, 34vh); }
.hl-media { position: relative; border-radius: 6px; overflow: hidden; background: #000; }
.hl-card.h .hl-media { aspect-ratio: 16/9; }
.hl-card.v .hl-media { aspect-ratio: 9/16; }
.hl-media img, .hl-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hl-media video { opacity: 0; transition: opacity .5s; }
.hl-card.playing .hl-media video { opacity: 1; }
.hl-media img { filter: grayscale(1); transition: filter .6s, transform 1.2s var(--ease); }
.hl-card:hover .hl-media img { transform: scale(1.04); }
.hl-play {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; background: var(--fg); color: var(--bg);
  border-radius: 99px; padding: 10px 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  transform: translateY(8px); opacity: 0; transition: .35s var(--ease);
}
.hl-card:hover .hl-play { opacity: 1; transform: none; }
.hl-info { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: 16px; }
.hl-info h3 { font-size: clamp(18px, 1.8vw, 28px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.hl-info .mono { color: var(--mut); white-space: nowrap; }
.hl-num { position: absolute; top: -0.62em; left: -.04em; font-size: clamp(60px, 8vw, 140px); font-weight: 900; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px #555; z-index: 3; line-height: 1; pointer-events: none; }

/* ---------- CHANNELS ---------- */
.ch-list { list-style: none; margin-top: clamp(50px, 9vh, 100px); border-top: 1px solid var(--line); }
.ch-item {
  display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 20px;
  padding: clamp(14px, 2.2vw, 28px) 0; border-bottom: 1px solid var(--line); cursor: pointer; position: relative;
  overflow: hidden;
}
.ch-item::before {
  content: ""; position: absolute; inset: 0; background: var(--fg); transform: scaleY(0); transform-origin: bottom;
  transition: transform .45s var(--ease); z-index: 0;
}
.ch-item:hover::before { transform: scaleY(1); }
.ch-item > * { position: relative; z-index: 1; transition: color .3s; }
.ch-item:hover > * { color: var(--bg); }
.ch-item .n { color: var(--mut); }
.ch-name { font-size: clamp(34px, 6.5vw, 104px); font-weight: 800; letter-spacing: -.05em; line-height: .95; display: block; }
.ch-item:hover .ch-name { transform: translateX(14px); }
.ch-name { transition: transform .45s var(--ease), color .3s; }
.ch-meta { text-align: right; color: var(--mut); }

/* ---------- section head / chips / grid ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 44px; }
.sec-note { max-width: 320px; color: var(--mut); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--fg-2); transition: .25s;
}
.chip:hover { border-color: var(--fg-2); color: var(--fg); }
.chip.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.chip sup { opacity: .55; margin-left: 4px; }

.grid { display: grid; gap: clamp(14px, 1.6vw, 24px); }
.yt-grid { grid-template-columns: repeat(3, 1fr); }
.v-grid { grid-template-columns: repeat(5, 1fr); margin-top: 30px; }
.card { cursor: pointer; }
.card-media { position: relative; overflow: hidden; border-radius: 5px; background: var(--bg-3); aspect-ratio: 16/9; }
.card.v .card-media { aspect-ratio: 9/16; }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-media img { filter: grayscale(1); transition: filter .5s, transform .8s var(--ease); }
.card:hover .card-media img, .card.live .card-media img { filter: grayscale(0); transform: scale(1.03); }
.card-media video { opacity: 0; transition: opacity .3s; }
.card.live .card-media video { opacity: 1; }
.dur {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; background: rgba(0,0,0,.72); color: #fff;
  font-family: var(--mono); font-size: 10px; padding: 3px 6px; border-radius: 3px;
}
.card-info { padding-top: 12px; }
.card-info .mono { color: var(--mut); font-size: 10px; }
.card-info h4 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin-top: 4px; }
.card.v .card-info h4 { font-size: 13.5px; }
.more {
  display: block; margin: 50px auto 0; padding: 16px 28px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 12px; transition: .3s;
}
.more:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.more[hidden] { display: none; }

/* ---------- TIMELINES ---------- */
.timelines { padding-left: 0; padding-right: 0; padding-bottom: 0; }
.tl-intro { padding: 0 var(--pad); margin-bottom: 4vh; }
.tl-stage-wrap { height: 300vh; }
.tl-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tl-frame {
  position: relative; width: min(80vw, 140vh); aspect-ratio: 1920/1020; border-radius: 8px; overflow: hidden;
  background: #000; box-shadow: 0 60px 120px rgba(0,0,0,.8);
}
.tl-layer { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform, filter; }
.tl-layer img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.tl-layer.flash img { filter: grayscale(1) contrast(1.1); }
.tl-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55)), linear-gradient(180deg, transparent 60%, rgba(10,10,10,.75));
}
.tl-counter {
  position: absolute; top: 84px; right: var(--pad); z-index: 3; text-align: right; display: flex; flex-direction: column; align-items: flex-end;
}
.tl-counter .mono { color: var(--mut); }
.tl-counter b { font-family: var(--mono); font-weight: 500; font-size: clamp(48px, 7vw, 120px); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.tl-captions { position: absolute; left: var(--pad); right: var(--pad); bottom: 64px; z-index: 3; height: 120px; }
.tl-cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; opacity: 0; pointer-events: none; }
.tl-cap.on { pointer-events: auto; }
.tl-cap h3 { font-size: clamp(24px, 3.4vw, 54px); font-weight: 800; letter-spacing: -.04em; line-height: 1; max-width: 900px; text-shadow: 0 2px 30px rgba(0,0,0,.9); margin-top: 8px; }
.tl-cap .mono { color: var(--fg-2); }
.tl-cap.final h3 { font-size: clamp(30px, 5vw, 80px); }
.tl-bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 40px; height: 1px; background: var(--line); z-index: 3; }
.tl-bar span { position: absolute; left: 0; top: -3px; width: 2px; height: 7px; background: var(--fg); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 99px;
  background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--fg); }
.btn.sm { padding: 10px 16px; font-size: 11px; }

/* ---------- VERTICALS ---------- */
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.col { display: flex; flex-direction: column; gap: clamp(12px, 1.6vw, 24px); will-change: transform; }
.col:nth-child(even) { margin-top: 18vh; }
.v-all[hidden] { display: none; }
.v-all { margin-top: 60px; }

/* ---------- WORKS ---------- */
.work-list { list-style: none; margin-top: clamp(50px, 9vh, 100px); border-top: 1px solid var(--line); }
.work {
  display: grid; grid-template-columns: 60px 1.6fr 1fr 80px; gap: 20px; align-items: center;
  padding: 22px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: padding .4s var(--ease), color .3s;
}
.work .n, .work .c, .work .d { color: var(--mut); }
.work .d { text-align: right; }
.work h4 { font-size: clamp(20px, 2.4vw, 36px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.work-list:hover .work { color: var(--mut); }
.work-list .work:hover { color: var(--fg); padding-left: 16px; }

/* ---------- MARCAS ---------- */
.brands { padding: 4vh 0 14vh; overflow: hidden; }
.marquee { display: flex; width: max-content; white-space: nowrap; will-change: transform; }
.marquee { gap: clamp(40px, 6vw, 110px); padding-right: clamp(40px, 6vw, 110px); align-items: center; }
.marquee img { height: clamp(80px, 10vw, 160px); width: auto; flex: none; opacity: .75; transition: opacity .3s, transform .4s var(--ease); }
.marquee img:hover { opacity: 1; transform: scale(1.06); }

/* ---------- CONTACT ---------- */
.contact { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 60px; }
.contact-title { text-align: center; font-size: clamp(60px, 13vw, 230px); font-weight: 900; letter-spacing: -.06em; line-height: .86; }
.contact-title em { font-weight: 400; }
.contact-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 50px; }
.contact footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mut);
  margin-top: auto; padding-top: 80px; padding-bottom: 30px;
}

/* ---------- PLAYER ---------- */
.player {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; border: 0;
  background: rgba(5,5,5,.96); color: var(--fg); padding: 70px var(--pad) 40px;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.player[open] { display: flex; }
.player::backdrop { background: transparent; }
.player-body { width: 100%; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.player video, .player iframe { max-width: 100%; max-height: 100%; border-radius: 6px; background: #000; border: 0; }
.player [hidden] { display: none; }
.player-info { text-align: center; }
.player-info p { color: var(--mut); }
.player-info h3 { font-size: clamp(18px, 2vw, 28px); font-weight: 700; letter-spacing: -.02em; margin-top: 6px; }
.player-close { position: absolute; top: 22px; right: var(--pad); padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; }
.player-close:hover { background: var(--fg); color: var(--bg); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .yt-grid { grid-template-columns: repeat(2, 1fr); }
  .v-grid { grid-template-columns: repeat(3, 1fr); }
  .cols { grid-template-columns: repeat(3, 1fr); }
  .cols .col:nth-child(4) { display: none; }
  .hl-card.h { width: 70vw; }
  .hl-card.v { width: 32vw; }
}
@media (max-width: 720px) {
  .hud-nav { display: none; }
  .hud-tc { min-width: 0; font-size: 11px; }
  .hero-title { font-size: 33vw; }
  .hero-reel { width: 64vw; }
  .hero-meta { top: 64px; font-size: 9px; }
  .hero-meta span:last-child { display: none; }
  .hero-sub { bottom: 76px; right: var(--pad); font-size: 15px; }
  .hero-scroll { display: none; }
  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hl-head { top: 70px; }
  .hl-track { padding-left: 16px; gap: 16px; padding-top: 120px; }
  .hl-card.h { width: 86vw; }
  .hl-card.v { width: 56vw; }
  .hl-num { font-size: 56px; }
  .hl-info { flex-direction: column; gap: 4px; }
  .ch-item { grid-template-columns: 34px 1fr; }
  .ch-meta { grid-column: 2; text-align: left; margin-top: -8px; }
  .yt-grid { grid-template-columns: 1fr; }
  .v-grid { grid-template-columns: repeat(2, 1fr); }
  .cols { grid-template-columns: repeat(2, 1fr); }
  .cols .col:nth-child(3), .cols .col:nth-child(4) { display: none; }
  .col:nth-child(even) { margin-top: 10vh; }
  .tl-frame { width: 100vw; border-radius: 0; }
  .tl-counter { top: 70px; }
  .tl-bar { display: none; }
  .tl-captions { bottom: 56px; }
  .hud-tag { display: none; }
  .work { grid-template-columns: 1fr 60px; gap: 6px 14px; }
  .work .n { display: none; }
  .work .c { grid-column: 1; grid-row: 2; }
  .work .d { grid-row: 1 / 3; grid-column: 2; }
  .cursor-preview { display: none; }
  .contact footer { justify-content: center; text-align: center; }
  .scrubber { bottom: 12px; }
}
@media (hover: none) { .cursor-preview { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .grain, .rec i, .hero-scroll span { animation: none; }
}
.edit-link { opacity: .35; } .edit-link:hover { opacity: 1; }
