@font-face { font-family: "Belfast Grotesk"; src: url("fonts/belfast-grotesk-light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Belfast Grotesk"; src: url("fonts/belfast-grotesk-black.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/Karla-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Karla"; src: url("fonts/Karla-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0b0b0b;
  --bg-2: #111;
  --card: #161616;
  --line: rgba(255,255,255,.12);
  --red: #c6302f;
  --text: #f2f2f2;
  --muted: #8f8f8f;
  --pad: clamp(16px, 3.4vw, 56px);
  --ease: cubic-bezier(.2,.7,.1,1);
  --display: "Belfast Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: Karla, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { font-family: var(--body); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: var(--red); color: #fff; }

.mono { font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
h1 b, h2 b, p b { font-weight: 900; }
h2 { font-family: var(--display); font-size: clamp(36px, 6vw, 92px); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; }
.section-head { padding: 0 var(--pad); margin-bottom: clamp(40px, 7vw, 100px); }
.section-head h2 { margin-top: 22px; }

/* ---------- carregamento e transição ---------- */
.is-loading main, .is-loading .footer, .is-loading .nav { visibility: hidden; }
.loader { position: fixed; inset: 0; z-index: 300; background: #050505; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.loader-logo { width: 220px; height: 34px; color: #fff; }
.loader-count { color: var(--muted); }
.loader-count b { color: #fff; font-weight: 700; display: inline-block; min-width: 3ch; }
.wipe { position: fixed; inset: 0; z-index: 310; background: var(--red); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.pixels { position: fixed; inset: 0; z-index: 290; display: grid; overflow: hidden; background: var(--red); }
.pixels:has(i) { background: transparent; }
.pixels i { background: var(--red); display: block; margin: -.5px; }
.pixels[data-state="off"] { pointer-events: none; }

/* ---------- cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none; display: none; }
.cursor-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--red); transition: transform .35s var(--ease), opacity .3s; opacity: 0; }
.cursor.is-on .cursor-dot { opacity: 1; }
.cursor.is-link .cursor-dot { transform: scale(2.2); }
.cursor-label { position: absolute; left: 14px; top: -14px; white-space: nowrap; background: var(--red); color: #fff; padding: 9px 12px; transform: scale(0); transform-origin: left center; transition: transform .45s var(--ease); }
.cursor.is-view .cursor-label { transform: scale(1); }
.cursor.is-view .cursor-dot { transform: scale(0); }
@media (pointer: fine) { .cursor { display: block; } body, a, button { cursor: none; } }

/* ---------- menu ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; display: grid; grid-template-columns: 1fr auto auto; align-items: stretch; height: 58px; border-bottom: 1px solid transparent; transition: transform .6s var(--ease), background .4s, border-color .4s; }
.nav.is-scrolled { background: rgba(11,11,11,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav-logo { display: flex; align-items: center; padding: 0 var(--pad); }
.nav-logo svg { width: 150px; height: 23px; color: #fff; }
.nav-links { display: flex; }
.nav-links a { display: flex; align-items: center; gap: 10px; padding: 0 clamp(18px, 2.4vw, 40px); border-left: 1px solid var(--line); font-size: 14px; }
.nav-links a .mono { color: var(--red); font-size: 10px; }
.nav-links a:hover { background: rgba(255,255,255,.04); }
.nav-cta { display: flex; align-items: center; gap: 10px; padding: 0 var(--pad); background: var(--red); color: #fff; font-weight: 700; font-size: 14px; }
.nav-cta svg { width: 18px; height: 18px; }
@media (max-width: 760px) {
  .nav { grid-template-columns: 1fr auto; height: 54px; }
  .nav-links { display: none; }
  .nav-logo svg { width: 126px; height: 20px; }
  .nav-cta { padding: 0 18px; }
}

/* ---------- abertura ---------- */
.hero { height: 190vh; position: relative; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-reveal { position: absolute; inset: 0; }
.hero-reveal img { width: 100%; height: 100%; object-fit: cover; }
.hero-reveal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,.15), rgba(11,11,11,.1) 45%, rgba(11,11,11,.88)); }
.hero-reveal-text { position: absolute; left: var(--pad); bottom: clamp(40px, 9vh, 100px); z-index: 2; opacity: 0; }
.hero-reveal-text .mono { color: #fff; }
.hero-reveal-text p { margin-top: 16px; font-family: var(--display); font-weight: 300; font-size: clamp(28px, 4.4vw, 68px); line-height: 1.06; letter-spacing: -.025em; }
.iris { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: absolute; left: var(--pad); right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 3; pointer-events: none; }
.hero h1 { font-family: var(--display); font-weight: 300; font-size: clamp(44px, 9vw, 150px); line-height: .98; letter-spacing: -.035em; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero h1 .line > span { display: block; }
.hero-meta { position: absolute; left: var(--pad); right: var(--pad); z-index: 3; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.hero-meta-top { top: 86px; }
.hero-meta-bottom { bottom: 26px; }
.scroll-hint i { display: inline-block; font-style: normal; color: var(--red); animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
@media (max-width: 760px) {
  .hero-copy { top: auto; bottom: 90px; transform: none; }
  .hero h1 { font-size: 10.4vw; }
  .hero-meta-bottom span:first-child { display: none; }
  .hero-meta-top { top: 72px; }
}

/* ---------- trabalhos ---------- */
.projects { padding: clamp(56px, 8vh, 96px) var(--pad) clamp(60px, 10vh, 120px); }
.projects-head { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 72px); color: var(--muted); }
.projects-head .mono:first-child { color: var(--text); }
.projects-list { display: flex; flex-direction: column; }
.card { width: min(46vw, 760px); display: block; }
.card-left { align-self: flex-start; }
.card-right { align-self: flex-end; margin-top: clamp(-260px, -16vw, -120px); }
.card + .card-left { margin-top: clamp(40px, 6vw, 100px); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--card); transform-origin: center top; will-change: transform, clip-path; }
.card-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.card-media::after { content: ""; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: color; opacity: 0; transition: opacity .6s var(--ease); }
.card:hover .card-media::after { opacity: .18; }
.card-meta { padding-top: 16px; }
.card-index { color: var(--muted); }
.card-meta h3 { font-family: var(--display); font-weight: 300; font-size: clamp(30px, 3.6vw, 58px); letter-spacing: -.03em; line-height: 1.05; margin-top: 8px; transition: transform .6s var(--ease); }
.card:hover .card-meta h3 { transform: translateX(10px); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.card-tags span { border: 1px solid var(--line); padding: 6px 9px; font-size: 10px; color: #cfcfcf; }
@media (max-width: 760px) {
  .card, .card-left, .card-right { width: 100%; align-self: stretch; margin-top: 0 !important; }
  .card + .card { margin-top: 64px !important; }
}

/* ---------- sobre ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 110px); padding: clamp(100px, 16vh, 180px) var(--pad); border-top: 1px solid var(--line); align-items: start; }
.about-photo { position: sticky; top: 90px; aspect-ratio: 1400 / 1150; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-pixels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(10, 1fr); }
.about-pixels i { background: var(--bg); margin: -.5px; }
.about-tag { position: absolute; left: 14px; bottom: 14px; background: var(--bg); padding: 8px 10px; }
.about-text { padding-top: 6px; }
.manifesto { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3.6vw, 56px); line-height: 1.08; letter-spacing: -.025em; margin-top: 22px; }
.about-body { margin-top: 32px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: #cfcfcf; max-width: 620px; }
.services { margin-top: 40px; border-top: 1px solid var(--line); }
.services li { display: flex; gap: 22px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: clamp(16px, 1.4vw, 19px); }
.services .mono { color: var(--red); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { position: relative; top: 0; }
}

/* ---------- método ---------- */
.method { padding: clamp(100px, 16vh, 180px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.method-stack { padding: 0 var(--pad); display: flex; flex-direction: column; gap: 24px; }
.method-card { position: sticky; top: calc(90px + var(--i, 0) * 20px); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 80px); align-items: center; min-height: 260px; padding: clamp(28px, 4vw, 56px); background: var(--card); border: 1px solid var(--line); box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.method-card .n { font-family: var(--display); font-weight: 900; font-size: clamp(64px, 10vw, 160px); letter-spacing: -.04em; line-height: .8; color: var(--red); }
.method-card h3 { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3.2vw, 46px); letter-spacing: -.02em; }
.method-card p { margin-top: 12px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.55; color: var(--muted); max-width: 640px; }
@media (max-width: 760px) { .method-card { grid-template-columns: 1fr; min-height: 0; } }

/* ---------- vídeo ---------- */
.video { padding: clamp(110px, 18vh, 200px) 0 0; overflow: hidden; }
.video-inner { padding: 0 var(--pad); max-width: 1200px; }
.video h2 { margin-top: 22px; }
.video h2 b { color: var(--red); }
.video p { margin-top: 28px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); max-width: 720px; }
.video .btn { margin-top: 40px; }
.video-ticker { margin-top: clamp(80px, 12vh, 140px); border-block: 1px solid var(--line); padding: 24px 0; white-space: nowrap; overflow: hidden; }
.video-ticker div { display: inline-flex; gap: 56px; animation: ticker 32s linear infinite; }
.video-ticker span { font-family: var(--display); font-weight: 900; font-size: clamp(32px, 5vw, 72px); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); }
.video-ticker span:nth-child(3n+1) { color: var(--red); -webkit-text-stroke: 0; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 18px 28px; font-weight: 700; font-size: 15px; transition: background .3s, color .3s; }
.btn svg { width: 20px; height: 20px; }
.btn-ghost { border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: #fff; color: #0b0b0b; }
.btn-red { background: var(--red); color: #fff; font-size: clamp(15px, 1.4vw, 19px); padding: clamp(18px, 2vw, 26px) clamp(28px, 3vw, 44px); }

/* ---------- contato ---------- */
.contact { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 120px var(--pad); background: radial-gradient(60% 50% at 50% 60%, rgba(198,48,47,.22), transparent 70%); border-top: 1px solid var(--line); }
.contact > .mono { color: var(--muted); }
.contact h2 { font-size: clamp(48px, 10vw, 160px); letter-spacing: -.04em; line-height: .95; margin: 24px 0 52px; }
.contact-note { margin-top: 32px; color: var(--muted); }

/* ---------- rodapé ---------- */
.footer { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 40px; padding: 34px var(--pad); border-top: 1px solid var(--line); color: var(--muted); }
.footer-logo { width: 170px; height: 26px; color: #fff; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 14px; }
.footer-links svg { width: 18px; height: 18px; }
.back-top { margin-left: auto; color: var(--text); }
@media (max-width: 760px) { .footer-links { flex-direction: column; gap: 12px; } .back-top { margin-left: 0; } }

/* ---------- página de projeto ---------- */
.case-hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.case-hero-img { position: absolute; inset: 0; }
.case-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.case-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,11,.45) 0%, rgba(11,11,11,0) 30%, rgba(11,11,11,.25) 55%, rgba(11,11,11,.94) 100%); }
.case-title { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(32px, 7vh, 80px); z-index: 2; }
.case-title > .mono { color: var(--accent); }
.case-title h1 { font-family: var(--display); font-weight: 300; font-size: clamp(52px, 11vw, 190px); letter-spacing: -.045em; line-height: .9; margin-top: 14px; }
.case-title .word { display: inline-block; white-space: nowrap; overflow: hidden; padding-bottom: .06em; }
.case-title .ch { display: inline-block; }
.case-title .sub { margin-top: 16px; font-size: clamp(15px, 1.3vw, 18px); color: #d6d6d6; }
.case-title .card-tags span { color: #fff; border-color: rgba(255,255,255,.3); }
.case-body { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(30px, 6vw, 110px); padding: clamp(80px, 14vh, 160px) var(--pad); }
.case-text { position: sticky; top: 100px; align-self: start; }
.case-text h3 { color: var(--accent); margin-bottom: 14px; }
.case-text h3:not(:first-child) { margin-top: 44px; }
.case-text p { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.6; color: #d4d4d4; }
.case-media { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 24px); }
.reveal { overflow: hidden; background: var(--card); }
.reveal img, .reveal video { width: 100%; height: auto; }
@media (max-width: 860px) { .case-body { grid-template-columns: 1fr; } .case-text { position: static; } }

.hgal { position: relative; overflow: hidden; padding-top: 20px; }
.hgal-head { display: flex; justify-content: space-between; padding: 0 var(--pad) 22px; color: var(--muted); }
.hgal-head .mono:first-child { color: var(--text); }
.hgal-track { display: flex; gap: clamp(12px, 1.4vw, 20px); padding: 0 var(--pad); width: max-content; will-change: transform; }
.hgal-track figure { height: min(70vh, 640px); flex: none; overflow: hidden; background: var(--card); }
.hgal-track img { height: 100%; width: auto; max-width: none; transition: transform 1s var(--ease); }
.hgal-track figure:hover img { transform: scale(1.04); }
.hgal-progress { margin: 24px var(--pad) 0; height: 1px; background: var(--line); }
.hgal-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
@media (max-width: 760px) {
  .hgal-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .hgal-track::-webkit-scrollbar { display: none; }
  .hgal-track figure { height: 50vh; scroll-snap-align: center; }
  .hgal-progress { display: none; }
}

.next { display: block; text-align: center; padding: clamp(120px, 20vh, 220px) var(--pad) clamp(80px, 12vh, 140px); margin-top: clamp(80px, 14vh, 160px); border-top: 1px solid var(--line); }
.next .mono { color: var(--muted); }
.next h2 { font-size: clamp(52px, 11vw, 180px); letter-spacing: -.045em; margin: 18px 0 clamp(40px, 6vw, 70px); transition: color .5s; }
.next:hover h2 { color: var(--accent); }
.next-img { width: min(70vw, 1000px); margin: 0 auto; aspect-ratio: 16 / 9; overflow: hidden; }
.next-img img { width: 100%; height: 100%; object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero-stage { position: relative; }
  .hero-reveal-text { opacity: 1; }
  .video-ticker div { animation: none; }
}
