/* Ilha Três:23 — identidade
   REC laranja-vermelho sobre fundo quase preto; títulos Plus Jakarta Sans 800,
   rótulos em mono (timecode). */
:root {
  --bg: #0d0b0a;
  --surface: #171311;
  --surface-2: #211a16;
  --line: #2e2520;
  --text: #f7f0ea;
  --muted: #a8998f;
  --rec: #ff4a1c;
  --rec-2: #ff7a2e;
  --deep: #8f1a0a;
  --radius: 32px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.kicker { color: var(--rec-2); font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.lead { font-size: clamp(18px, 2vw, 22px); font-weight: 600; line-height: 1.4; }
.muted { color: var(--muted); }

/* Logo: bolinha REC + nome */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px #ff4a1c33; animation: rec 1.6s steps(1) infinite; }
.logo span em { font-style: normal; opacity: .7; font-weight: 600; }
@keyframes rec { 50% { opacity: .25; } }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light .arrow { background: var(--rec); color: #fff; }
.btn-rec { background: var(--rec); color: #fff; }
.btn-rec .arrow { background: #fff; color: var(--rec); }

/* Navegação */
.nav { position: absolute; inset: 0 0 auto; z-index: 5; padding: 26px clamp(20px, 3vw, 40px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav ul { list-style: none; display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav ul a { opacity: .85; }
.nav ul a:hover { opacity: 1; }

/* Hero */
.hero-shell { padding-top: var(--gutter); }
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius) var(--radius) calc(var(--radius) * 2) calc(var(--radius) * 2);
  min-height: min(780px, 100svh);
  background:
    radial-gradient(60% 70% at 72% 28%, #ffb26b 0%, transparent 60%),
    radial-gradient(90% 90% at 70% 30%, var(--rec-2) 0%, var(--rec) 35%, var(--deep) 70%, #2a0c06 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 120px clamp(20px, 3vw, 40px) 40px;
}
.hero::after { /* grão de filme */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  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='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-photo { position: absolute; right: 18%; bottom: 0; height: 92%; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.15); }

/* Visor de câmera sobre o hero */
.viewfinder { position: absolute; inset: 96px clamp(20px, 3vw, 40px) 150px; pointer-events: none; }
.viewfinder i { position: absolute; width: 34px; height: 34px; border: 2px solid #fff9; }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.vf-top { position: absolute; top: 14px; left: 50px; right: 50px; display: flex; justify-content: space-between; color: #fffd; }
.vf-rec { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.vf-rec b { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: rec 1.2s steps(1) infinite; }

.hero-main { position: relative; z-index: 2; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; margin-bottom: 64px; }
.hero-hi { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; margin-bottom: 8px; }
.hero h1 { font-size: clamp(56px, 10vw, 128px); font-weight: 800; line-height: .92; letter-spacing: -.045em; }
.hero-side h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.hero-side p { color: #fff; opacity: .8; max-width: 34ch; margin-bottom: 22px; }

.services { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.services li { list-style: none; font-size: 15px; font-weight: 500; }
.services .mono { display: block; color: #ffd2b8; margin-bottom: 6px; }

/* Faixa de formatos */
.strip { background: var(--surface); margin-top: calc(var(--radius) * -2); padding: calc(var(--radius) * 2 + 32px) 0 36px; border-radius: 0 0 var(--radius) var(--radius); }
.strip-in { padding-inline: clamp(20px, 3vw, 40px); display: flex; align-items: center; gap: 28px 48px; flex-wrap: wrap; }
.strip .label { font-size: 13px; font-weight: 600; line-height: 1.3; max-width: 14ch; }
.strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 40px; font-size: clamp(18px, 2vw, 22px); font-weight: 800; letter-spacing: -.02em; }
.strip li { display: inline-flex; align-items: center; gap: 10px; }
.strip li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--rec); }

/* Seções */
section { padding: clamp(80px, 11vw, 140px) 0 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: start; }
.split .right { display: flex; flex-direction: column; gap: 22px; }
.split .right .row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* Portfólio */
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.reel {
  position: relative; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, #2a211c, #120e0c);
  border: 1px solid var(--line);
}
.reel video, .reel img { width: 100%; height: 100%; object-fit: cover; }
.reel .ph { position: absolute; inset: 0; display: grid; place-items: center; }
.reel .play { width: 68px; height: 68px; border-radius: 50%; background: #ffffff14; border: 1px solid #ffffff2a; display: grid; place-items: center; }
.reel .play::after { content: ""; border-left: 18px solid var(--text); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.reel .tag { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; color: var(--muted); }

/* Cards (agências / marcas) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.card .mono { color: var(--rec-2); }
.card h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }

.band { background: var(--surface); border-radius: var(--radius); padding: clamp(32px, 5vw, 64px); }
.band.hot { background: radial-gradient(100% 140% at 85% 0%, var(--rec-2), var(--rec) 40%, var(--deep) 100%); }

/* Processo */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; counter-reset: s; }
.step { border-top: 2px solid var(--line); padding-top: 20px; }
.step .mono { color: var(--rec-2); }
.step h3 { font-size: 19px; font-weight: 800; margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--rec); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; max-width: 70ch; }

/* CTA final + rodapé */
.cta { text-align: center; }
.cta .h2 { max-width: 16ch; margin: 0 auto 18px; }
.cta p { opacity: .85; max-width: 46ch; margin: 0 auto 30px; }
.cta .btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
footer { padding: 64px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Pacotes */
.launch { margin-top: 40px; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  padding: 14px 22px; border: 1px solid #ff4a1c55; border-radius: 999px; background: #ff4a1c14; font-weight: 600; }
.launch .mono { display: inline-flex; align-items: center; gap: 8px; color: var(--rec-2); font-weight: 700; }
.launch b { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); animation: rec 1.2s steps(1) infinite; }
.launch + .plans { margin-top: 20px; }
@media (max-width: 520px) { .launch { border-radius: 20px; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 30px 28px; }
.plan.hot { background: radial-gradient(120% 90% at 85% 0%, var(--rec-2), var(--rec) 45%, var(--deep) 100%); border-color: transparent; }
.plan .mono { color: var(--rec-2); }
.plan.hot .mono { color: #ffe0cc; }
.plan h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price small { font-size: 16px; font-weight: 600; letter-spacing: 0; opacity: .7; }
.per { color: var(--muted); font-size: 14px; margin-top: -10px; }
.plan.hot .per, .plan.hot li { color: #ffe7da; }
.plan ul { list-style: none; display: grid; gap: 8px; font-size: 15px; color: var(--muted); flex: 1; }
.plan li::before { content: "● "; color: var(--rec); font-size: 10px; vertical-align: 2px; }
.plan.hot li::before { color: #fff; }
.plan .btn { align-self: flex-start; }
.plans-note { margin-top: 20px; color: var(--muted); font-size: 14px; text-align: center; }

/* Responsivo */
@media (max-width: 900px) {
  .nav ul { display: none; }
  .hero-main, .split { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cards, .plans { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .reels { grid-template-columns: 1fr 1fr; }
  .reels .reel:nth-child(3) { display: none; }
  .hero-photo { right: -10%; height: 70%; opacity: .7; }
}
@media (max-width: 520px) {
  .nav .btn { padding-left: 16px; font-size: 14px; }
  .nav .btn .arrow { width: 30px; height: 30px; }
  .hero { padding-top: 110px; }
  .hero-main { margin-bottom: 40px; }
  .logo { font-size: 16px; white-space: nowrap; }
  .viewfinder { inset: 92px 16px auto; height: 60px; }
  .viewfinder i:nth-child(3), .viewfinder i:nth-child(4), .vf-top span:last-child { display: none; }
  .vf-top { left: 46px; right: 46px; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Animações ===== */
/* Hero entra ao carregar */
.hero-main > div, .services li { animation: entra 1s cubic-bezier(.16,1,.3,1) both; }
.hero-main > div:nth-child(2) { animation-delay: .15s; }
.services li:nth-child(1) { animation-delay: .3s; } .services li:nth-child(2) { animation-delay: .38s; }
.services li:nth-child(3) { animation-delay: .46s; } .services li:nth-child(4) { animation-delay: .54s; }
@keyframes entra { from { opacity: 0; transform: translateY(40px); filter: blur(10px); } }

/* Seções sobem desfocando ao aparecer (só com JS; sem JS tudo aparece normal) */
.js .rv { opacity: 0; transform: translateY(46px); filter: blur(8px); transition: opacity .8s ease, transform .9s cubic-bezier(.16,1,.3,1), filter .8s ease; transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; filter: none; }

/* Faixa de formatos rolando */
.marquee { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { flex-wrap: nowrap; width: max-content; animation: corre 28s linear infinite; }
.marquee li { white-space: nowrap; }
@keyframes corre { to { transform: translateX(-50%); } }

/* Vitrine dos trabalhos: trilho alto + palco preso na tela */
.show { padding-top: clamp(60px, 8vw, 100px); }
.show-track { position: relative; height: 340vh; }
.show-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.show-head { padding-top: clamp(24px, 4vh, 48px); position: relative; z-index: 3; }
.show-head .h2 { max-width: 14ch; }
.show-word { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); z-index: 0; white-space: nowrap; pointer-events: none;
  font-weight: 800; font-size: clamp(90px, 17vw, 260px); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px #ff4a1c40; }
.show-word.troca { animation: palavra .7s cubic-bezier(.16,1,.3,1); }
@keyframes palavra { from { opacity: 0; letter-spacing: .05em; filter: blur(12px); } }
.phones { position: absolute; z-index: 2; left: 40%; top: 54%; width: 0; height: 0; }
.phone { position: absolute; left: 0; top: 0; margin: 0; width: clamp(170px, min(19vw, 38vh), 300px); aspect-ratio: 9 / 16; border-radius: 30px; padding: 8px;
  background: linear-gradient(160deg, #2a2320, #0b0908 45%); box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 2px #2e2520, 0 0 60px #ff4a1c22;
  transform: translate(-50%, -50%); will-change: transform; transition: filter .3s; }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 23px; background: #1a1513; }
.show-info { position: absolute; z-index: 3; right: max(var(--gutter), calc((100vw - var(--max)) / 2)); top: 54%; transform: translateY(-50%); width: min(420px, 34vw); min-height: 260px; }
.info { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity .5s, transform .6s cubic-bezier(.16,1,.3,1), filter .5s; pointer-events: none; }
.info.on { opacity: 1; transform: none; filter: none; }
.info .mono { color: var(--rec-2); }
.info h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 12px 0 12px; }
.info h3 em { font-family: Georgia, serif; font-style: italic; font-weight: 400; color: var(--rec-2); }
.info p { color: var(--muted); font-size: 16px; }
.show-foot { margin-top: auto; padding-bottom: clamp(18px, 3vh, 34px); position: relative; z-index: 3; }
.show-bar { position: relative; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.show-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--rec); box-shadow: 0 0 14px var(--rec); }
.show-bar b { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--bg); }
.show-bar b:nth-of-type(1) { left: 42%; } .show-bar b:nth-of-type(2) { left: 66%; }
.show-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12px; }
.show-row .note { text-align: right; }

@media (max-width: 900px) {
  .show-track { height: 320vh; }
  .phones { left: 50%; top: 47%; }
  .phone { width: min(46vw, 34svh); border-radius: 24px; padding: 6px; }
  .phone video { border-radius: 19px; }
  .show-word { top: 47%; font-size: 26vw; }
  .show-info { left: var(--gutter); right: var(--gutter); top: auto; bottom: clamp(70px, 11svh, 110px); transform: none; width: auto; min-height: 150px; }
  .info h3 { font-size: 24px; margin: 6px 0 6px; }
  .info p { font-size: 14px; }
  .show-head .h2 { font-size: clamp(30px, 8vw, 40px); }
  .show-row { flex-direction: column; gap: 2px; }
  .show-row .note { text-align: left; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; transform: none; filter: none; }
  .show-track { height: auto; }
  .show-stage { position: relative; height: 100svh; }
}
