/* Kevin Duarte — portefólio de motion design.
   Paleta oficial: lima #D8FC54 · preto #000 · cinza #EBEBEB · branco #FFF · texto secundário #666.
   Tipografia: Space Grotesk (OFL), servida localmente. Sem JS tudo fica visível e utilizável. */

@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url('/static/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url('/static/fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fallback com métricas próximas para reduzir o salto quando a fonte chega. */
@font-face { font-family: 'SG Fallback'; src: local('Arial'); size-adjust: 104%; ascent-override: 92%; descent-override: 26%; }

:root {
  --lime: #D8FC54; --black: #000; --grey: #EBEBEB; --white: #fff; --dim: #666;
  --dim-on-dark: #A8A8A8; /* cinza claro para texto secundário sobre preto (contraste AA) */
  --font: 'Space Grotesk', 'SG Fallback', system-ui, sans-serif;
  --pad: clamp(18px, 3.4vw, 48px);
  --radius: clamp(14px, 1.6vw, 26px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --t-hero: clamp(3.4rem, 15.4vw, 15.5rem);
  --t-display: clamp(2.9rem, 9.6vw, 9.4rem);
  --t-display-sm: clamp(2.4rem, 6.6vw, 6.2rem);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; font-family: var(--font); font-size: clamp(16px, 1.05vw, 18px); line-height: 1.5; color: var(--black);
  background: var(--grey); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01' on; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
video { background: var(--black); }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--black); }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 4px; }
[data-theme='black'] :focus-visible, .menu :focus-visible, .ft :focus-visible { outline-color: var(--lime); }

.wrap { width: 100%; padding-inline: var(--pad); margin-inline: auto; max-width: 1840px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--black); color: var(--lime); padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 12px; }

/* ---------- temas por secção ---------- */
[data-theme='lime'] { background: var(--lime); color: var(--black); }
[data-theme='black'] { background: var(--black); color: var(--white); }
[data-theme='grey'] { background: var(--grey); color: var(--black); }
[data-theme='white'] { background: var(--white); color: var(--black); }
/* Capítulos: com JS, cada secção entra como um cartão sobre a moldura preta do body. */
html.has-chapters body { background: var(--black); }

/* ---------- tipografia base ---------- */
.label { font-size: 12px; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.label-n { font-variant-numeric: tabular-nums; opacity: .55; margin-right: .4em; }
.display, .display-sm, .hero-title, .morph-title, .reel-title, .contact-title, .case-title, .thanks-title, .next-title {
  font-weight: 600; letter-spacing: -.055em; line-height: .86; text-transform: uppercase; text-wrap: balance;
}
.display { font-size: var(--t-display); }
.display-sm { font-size: var(--t-display-sm); }
.line { display: block; }
.ul { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 1px; }
.ul:hover { background-size: 0 1px; background-position: 100% 100%; }
.arr { display: inline-block; transition: transform .45s var(--ease); }
a:hover .arr, button:hover .arr { transform: translateX(4px); }
.hero-ctas a:hover .arr { transform: translateY(3px); }

/* ---------- botões ---------- */
.btn {
  --bg: var(--black); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1.5px solid var(--bg); background: var(--bg); color: var(--fg); text-decoration: none;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; cursor: pointer; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-black { --bg: var(--black); --fg: var(--white); }
.btn-black:hover { --bg: #1b1b1b; }
.btn-lime { --bg: var(--lime); --fg: var(--black); }
.btn-lime:hover { --bg: var(--white); }
.btn-line { background: transparent; color: currentColor; border-color: currentColor; }
.btn-line:hover { background: var(--black); color: var(--white); border-color: var(--black); }
[data-theme='black'] .btn-line:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 16px; }
.btn[aria-busy='true'] { opacity: .7; cursor: progress; }

/* ---------- cabeçalho ---------- */
.hd {
  position: fixed; inset: 14px var(--pad) auto; z-index: 90; display: flex; align-items: center; gap: 12px;
  pointer-events: none; transition: transform .6s var(--ease);
}
.hd > * { pointer-events: auto; }
.hd.is-hidden { transform: translateY(-140%); }
.hd-brand {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px 0 8px; border-radius: 999px;
  background: var(--black); color: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; letter-spacing: -.01em;
}
.hd-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); position: relative; overflow: hidden; }
.hd-mark::after { content: ''; position: absolute; inset: 9px; background: var(--black); border-radius: 3px; transition: border-radius .5s var(--ease), transform .5s var(--ease); }
.hd-brand:hover .hd-mark::after { border-radius: 50%; transform: rotate(90deg) scale(.8); }
.hd-nav { margin-inline: auto; background: var(--black); border-radius: 999px; padding: 4px; }
.hd-nav ul { display: flex; }
.hd-nav a { display: block; padding: 10px 16px; border-radius: 999px; color: var(--white); text-decoration: none; font-size: 14px; font-weight: 500; transition: background-color .3s, color .3s; }
.hd-nav a:hover, .hd-nav a[aria-current='true'] { background: var(--lime); color: var(--black); }
.hd-cta { box-shadow: 0 0 0 1.5px var(--black) inset; }
.hd-menu {
  display: none; margin-left: auto; height: 46px; padding: 0 8px 0 18px; border-radius: 999px; border: 0; background: var(--black);
  color: var(--white); align-items: center; gap: 12px; cursor: pointer; font-weight: 600; font-size: 14px;
}
.hd-menu-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--lime); display: grid; place-content: center; gap: 4px; }
.hd-menu-icon i { display: block; width: 12px; height: 1.5px; background: var(--black); }

/* menu de ecrã inteiro (telemóvel) */
.menu {
  position: fixed; inset: 0; z-index: 120; background: var(--black); color: var(--white); padding: 18px var(--pad) 28px;
  display: flex; flex-direction: column; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu[hidden] { display: none; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 46px; }
.menu-close { background: var(--lime); color: var(--black); border: 0; border-radius: 999px; height: 46px; padding: 0 22px; font-weight: 600; cursor: pointer; }
.menu > nav { margin-top: auto; }
.menu-list li { overflow: hidden; border-bottom: 1px solid #262626; }
.menu-list a {
  display: flex; align-items: baseline; gap: 14px; padding: 10px 0; text-decoration: none; font-size: clamp(2.6rem, 13vw, 5rem);
  font-weight: 600; letter-spacing: -.05em; line-height: 1; text-transform: uppercase;
  transform: translateY(105%); transition: transform .8s var(--ease), color .3s;
}
.menu-list a:hover { color: var(--lime); }
.menu.is-open .menu-list a { transform: none; }
.menu.is-open .menu-list li:nth-child(2) a { transition-delay: .05s; }
.menu.is-open .menu-list li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open .menu-list li:nth-child(4) a { transition-delay: .15s; }
.menu.is-open .menu-list li:nth-child(5) a { transition-delay: .2s; }
.menu-n { font-size: 12px; letter-spacing: .08em; color: var(--lime); }
.menu-foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 28px; }
.menu-foot > a:first-child { color: var(--dim-on-dark); }

@media (max-width: 960px) {
  .hd-nav, .hd-cta { display: none; }
  .hd-menu { display: inline-flex; }
}

/* ---------- transição entre páginas ---------- */
.page-wipe { position: fixed; inset: 0; z-index: 150; background: var(--lime); pointer-events: none; transform: scaleY(0); transform-origin: bottom; }
html.is-leaving .page-wipe { transform: scaleY(1); transition: transform .5s var(--ease-in-out); }
html.is-entering .page-wipe { transform: scaleY(1); transform-origin: top; }
html.has-entered .page-wipe { transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease-in-out); }

/* ---------- cursor contextual (só ponteiro fino; nunca esconde o cursor nativo) ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 110; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%;
  background: var(--lime); color: var(--black); display: grid; place-items: center; pointer-events: none;
  transform: scale(0); opacity: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; text-align: center;
  transition: transform .35s var(--ease), opacity .25s;
}
.cursor.is-on { transform: scale(1); opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* =================================================================== */
/* CENA 01 · HERO                                                       */
/* =================================================================== */
.hero { position: relative; }
.hero-pin { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding: calc(var(--header-h) + 34px) 0 28px; overflow: hidden; }
.hero-meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; position: relative; z-index: 3; }
.hero-clock time { font-variant-numeric: tabular-nums; }
.hero-title { position: relative; z-index: 2; font-size: var(--t-hero); margin-top: auto; padding-top: 4vh; }
.hl { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; white-space: nowrap; }
.hl-2 { display: flex; align-items: center; gap: .14em; padding-left: 8vw; overflow: visible; }
.hl-2 .hl-text { overflow: hidden; display: block; padding-bottom: .06em; margin-bottom: -.06em; }
.hl-3 { text-align: right; }
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; transform: translateY(105%); animation: ch-up 1.1s var(--ease) forwards; will-change: transform; }
@keyframes ch-up { to { transform: none; } }
.d0{animation-delay:.10s}.d1{animation-delay:.13s}.d2{animation-delay:.16s}.d3{animation-delay:.19s}.d4{animation-delay:.22s}.d5{animation-delay:.25s}.d6{animation-delay:.28s}.d7{animation-delay:.31s}
.d8{animation-delay:.36s}.d9{animation-delay:.39s}.d10{animation-delay:.42s}.d11{animation-delay:.45s}.d12{animation-delay:.48s}.d13{animation-delay:.51s}
.d14{animation-delay:.58s}.d15{animation-delay:.61s}.d16{animation-delay:.64s}.d17{animation-delay:.67s}.d18{animation-delay:.70s}.d19{animation-delay:.73s}.d20{animation-delay:.76s}.d21{animation-delay:.79s}.d22{animation-delay:.82s}.d23{animation-delay:.85s}.d24{animation-delay:.88s}

.hero-pill {
  position: relative; display: block; flex: none; height: .78em; aspect-ratio: 16 / 9; border-radius: 999px; overflow: hidden;
  background: var(--black); transform: scaleX(0); transform-origin: left center; animation: pill-in 1s var(--ease) .55s forwards;
}
.hero-pill img { width: 100%; height: 100%; object-fit: cover; }
@keyframes pill-in { to { transform: none; } }
html.has-reel .hero-pill img { visibility: hidden; }
.hero-reel { position: absolute; inset: 0; z-index: 4; display: none; pointer-events: none; }
html.has-reel .hero-reel { display: block; }
.hero-reel video { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }

.hero-foot { position: relative; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 24px 40px; margin-top: 4vh; }
.hero-lead { max-width: 34ch; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.35; font-weight: 500; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.scroll-cue i { width: 1.5px; height: 38px; background: currentColor; transform-origin: top; animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.hero-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape { position: absolute; display: block; }
.shape-circle { width: clamp(90px, 13vw, 220px); aspect-ratio: 1; border-radius: 50%; background: var(--black); right: 9%; top: 19%; animation: pop 1.2s var(--ease) .9s both; }
.shape-square { width: clamp(40px, 4vw, 70px); aspect-ratio: 1; border: 1.5px solid var(--black); border-radius: 10px; left: 50%; top: 10.5%; animation: spin-in 1.4s var(--ease) 1s both; }
.shape-plus { width: 34px; height: 34px; left: calc(var(--pad) + 1.6vw); top: 50%; animation: pop 1s var(--ease) 1.15s both; }
.shape-plus::before, .shape-plus::after { content: ''; position: absolute; background: var(--black); }
.shape-plus::before { left: 50%; top: 0; bottom: 0; width: 1.5px; margin-left: -.75px; }
.shape-plus::after { top: 50%; left: 0; right: 0; height: 1.5px; margin-top: -.75px; }
.shape-arc { width: clamp(120px, 16vw, 260px); left: 22%; bottom: 23%; fill: none; stroke: var(--black); stroke-width: 1.5; overflow: visible; }
.shape-arc path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) 1.1s forwards; }
@keyframes pop { from { transform: scale(0); } to { transform: none; } }
@keyframes spin-in { from { transform: rotate(-135deg) scale(0); } to { transform: rotate(0) scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 760px) {
  .hero-pin { padding-top: calc(var(--header-h) + 18px); }
  .hero-meta .hero-clock { display: none; }
  .hl-2 { padding-left: 0; flex-wrap: nowrap; }
  .hl-3 { text-align: left; }
  .hero-pill { height: .7em; }
  .hero-foot { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .shape-circle { right: -6%; top: 14%; }
  .shape-square { left: auto; right: 30%; top: 30%; }
  .shape-arc, .shape-plus { display: none; }
}

/* Cenas presas ao ecrã (desktop, com JS): a secção é mais alta e o interior fica «sticky». */
.hero.is-sticky { height: 210vh; }
.hero.is-sticky .hero-pin { position: sticky; top: 0; height: 100vh; min-height: 0; }
.morph.is-sticky { height: 330vh; }
.morph.is-sticky .morph-pin { position: sticky; top: 0; height: 100vh; min-height: 0; }

/* =================================================================== */
/* CENA 02 · TRANSFORMAÇÃO                                              */
/* =================================================================== */
.morph { position: relative; }
.morph-pin {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center;
  gap: 4vw; padding: calc(var(--header-h) + 40px) var(--pad) 60px; overflow: hidden;
}
.morph-shape { position: absolute; left: 0; top: 0; width: 60px; height: 60px; z-index: 1; display: none; pointer-events: none;
  background: var(--lime); border: 2px solid var(--lime); border-radius: 8px; will-change: transform; }
@media (min-width: 900px) { html.has-motion .morph-shape { display: block; } }
.morph-copy { position: relative; z-index: 2; }
.morph-copy .label { color: var(--lime); margin-bottom: 26px; }
.morph-title { font-size: clamp(2.6rem, 7.2vw, 8rem); }
.morph-title .is-accent { color: var(--lime); }
.morph-text { margin-top: 30px; max-width: 40ch; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.45; color: var(--dim-on-dark); }
.bento {
  position: relative; z-index: 2; display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr));
  height: min(78svh, 760px);
}
.bento-cell { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; text-decoration: none; color: var(--white); }
.bento-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.bento-cell:hover img { transform: scale(1.05); }
.bento-cell.is-portrait img { object-position: center 30%; }
.bento-1 { grid-column: 1 / 5; grid-row: 1 / 4; }
.bento-2 { grid-column: 5 / 7; grid-row: 1 / 5; }
.bento-3 { grid-column: 1 / 3; grid-row: 4 / 7; }
.bento-4 { grid-column: 3 / 5; grid-row: 4 / 7; }
.bento-5 { grid-column: 5 / 7; grid-row: 5 / 7; }
.bento-cap {
  position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: var(--black); color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.bento-cap span { color: var(--lime); }
@media (max-width: 900px) {
  .morph-pin { grid-template-columns: 1fr; padding-top: 110px; }
  .bento { height: auto; grid-template-rows: none; grid-auto-rows: 34vw; }
  .bento-1 { grid-column: 1 / 7; grid-row: auto / span 2; }
  .bento-2 { grid-column: 1 / 4; grid-row: auto / span 3; }
  .bento-3 { grid-column: 4 / 7; grid-row: auto / span 3; }
  .bento-4 { grid-column: 1 / 4; grid-row: auto / span 3; }
  .bento-5 { grid-column: 4 / 7; grid-row: auto / span 3; }
}

/* =================================================================== */
/* CENA 03 · TRABALHOS                                                  */
/* =================================================================== */
.work { padding: clamp(90px, 13vw, 200px) 0 clamp(60px, 9vw, 140px); }
.sec-head { display: grid; gap: 22px; margin-bottom: clamp(50px, 8vw, 120px); }
.sec-lead { max-width: 44ch; font-size: clamp(17px, 1.3vw, 21px); color: var(--dim); }
[data-theme='black'] .sec-lead { color: var(--dim-on-dark); }
.work-list { display: grid; gap: clamp(70px, 11vw, 180px); }
.work-link { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(22px, 4vw, 70px); align-items: end; text-decoration: none; }
.work-item.is-flip .work-link { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
.work-item.is-flip .work-media { order: 2; }
.work-media {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--black);
  display: grid; place-items: center;
}
.work-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work-media.is-portrait video, .work-media.is-square video {
  position: absolute; top: 5%; left: 50%; translate: -50% 0; width: auto; height: 90%; border-radius: calc(var(--radius) * .7); object-fit: contain; }
.work-link:hover .work-media video { transform: scale(1.03); }
.work-badge { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; background: var(--lime); color: var(--black); font-size: 12px; font-weight: 600; }
.work-index { display: block; font-size: clamp(3rem, 7vw, 7rem); font-weight: 600; letter-spacing: -.06em; line-height: .8; color: var(--black); -webkit-text-stroke: 0; }
.work-title { margin-top: 18px; font-size: clamp(2rem, 3.6vw, 3.6rem); line-height: .95; letter-spacing: -.045em; font-weight: 600; text-transform: uppercase; }
.work-title span { display: block; font-size: .42em; letter-spacing: -.01em; text-transform: none; font-weight: 500; margin-top: 10px; color: var(--dim); }
.work-sum { margin-top: 18px; color: #333; max-width: 46ch; }
.meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; }
.meta dt { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.meta dd { font-weight: 600; font-size: 14px; }
[data-theme='black'] .meta dt { color: var(--dim-on-dark); }
.work-go { display: inline-flex; gap: 8px; margin-top: 26px; font-weight: 600; padding-bottom: 3px; border-bottom: 1.5px solid currentColor; }
@media (max-width: 860px) {
  .work-link, .work-item.is-flip .work-link { grid-template-columns: 1fr; }
  .work-item.is-flip .work-media { order: 0; }
  .work-media { aspect-ratio: 4 / 5; }
  .work-media.is-landscape { aspect-ratio: 16 / 10; }
}

/* apresentação horizontal */
.formats { padding: clamp(80px, 10vw, 150px) 0; overflow: clip; }
html.has-hpin .formats { padding: 0; }
html.has-hpin .formats-inner { position: sticky; top: 0; height: 100vh; padding: 96px 0 40px; overflow: hidden; }
html.has-hpin .formats-head { margin-bottom: 32px; }
.formats-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 16px 40px; align-items: end; margin-bottom: 50px; }
.formats-head .label { grid-column: 1 / -1; color: var(--lime); }
.formats-lead { color: var(--dim-on-dark); }
.formats-viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--lime) #1a1a1a; padding-bottom: 18px; }
.formats-viewport:focus-visible { outline-offset: -3px; }
.formats-track { display: flex; gap: clamp(12px, 1.6vw, 24px); padding-inline: var(--pad); width: max-content; }
.fmt { scroll-snap-align: start; width: clamp(200px, min(22vw, calc((100svh - 330px) * .5625)), 340px); }
.fmt a { display: block; text-decoration: none; }
.fmt-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 16; background: #111; display: grid; place-items: center; }
.fmt-media.is-square { aspect-ratio: 4 / 5; }
.fmt-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.fmt a:hover video { transform: scale(1.04); }
.fmt-cap { display: block; margin-top: 12px; font-size: 14px; color: var(--dim-on-dark); }
.fmt-cap b { color: var(--white); font-weight: 600; margin-right: 6px; }
html.has-hpin .formats-viewport { overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
@media (max-width: 760px) { .formats-head { grid-template-columns: 1fr; } }

/* =================================================================== */
/* SHOWREEL                                                             */
/* =================================================================== */
.reel { padding: clamp(80px, 11vw, 170px) 0; }
.reel-title { font-size: var(--t-display); margin-bottom: clamp(30px, 4vw, 60px); }
.reel-title .line:last-child { text-align: right; }
.reel-player, .case-player, .g-player { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--black); }
.reel-player video, .case-player video, .g-player video { width: 100%; height: auto; }
.reel-play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; border: 0; cursor: pointer;
  background: rgba(0, 0, 0, .18); color: var(--white); transition: background-color .4s;
}
.reel-play:hover { background: rgba(0, 0, 0, .05); }
.reel-play-dot { width: clamp(84px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%; background: var(--lime); position: relative; transition: transform .5s var(--ease); }
.reel-play-dot::after { content: ''; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--black); }
.reel-play:hover .reel-play-dot { transform: scale(1.08); }
.reel-play-text { font-weight: 600; font-size: 15px; background: var(--black); padding: 6px 14px; border-radius: 999px; }
.reel-play-sm .reel-play-dot { width: 64px; }
.reel-play-sm .reel-play-dot::after { border-width: 9px 0 9px 15px; }
.is-playing .reel-play { display: none; }
html.has-cursor [data-player]:hover .reel-play-dot { opacity: 0; }
html.has-cursor [data-player]:hover .reel-play { cursor: none; }
.reel-play-dot { transition: transform .5s var(--ease), opacity .3s; }
.reel-note { display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; margin-top: 18px; color: var(--dim); font-size: 14px; }

/* =================================================================== */
/* CENA 04 · SERVIÇOS                                                   */
/* =================================================================== */
.services { position: relative; padding: clamp(90px, 12vw, 190px) 0 clamp(60px, 8vw, 120px); }
.sec-head-split .label { color: var(--lime); }
.svc { border-top: 1px solid #2a2a2a; }
.svc:last-child { border-bottom: 1px solid #2a2a2a; }
.svc summary {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) 48px; align-items: center; gap: 16px; padding: clamp(18px, 2.4vw, 34px) 0;
  cursor: pointer; list-style: none;
}
.svc summary::-webkit-details-marker { display: none; }
.svc-n { font-size: 14px; font-weight: 500; color: var(--lime); font-variant-numeric: tabular-nums; }
.svc-t { font-size: clamp(2rem, 6vw, 5.8rem); font-weight: 600; letter-spacing: -.05em; line-height: .95; text-transform: uppercase; transition: color .4s, transform .6s var(--ease); }
.svc summary:hover .svc-t, .svc details[open] .svc-t { color: var(--lime); }
.svc summary:hover .svc-t { transform: translateX(10px); }
.svc-plus { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid #3a3a3a; position: relative; transition: transform .5s var(--ease), background-color .3s, border-color .3s; }
.svc-plus::before, .svc-plus::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: currentColor; }
.svc-plus::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
.svc details[open] .svc-plus { background: var(--lime); border-color: var(--lime); color: var(--black); transform: rotate(180deg); }
.svc details[open] .svc-plus::after { transform: rotate(0); }
.svc-body { display: grid; gap: 14px; justify-items: start; padding: 0 0 clamp(26px, 3vw, 40px) 86px; max-width: 760px; animation: svc-open .6s var(--ease); }
.svc-body p { font-size: clamp(17px, 1.4vw, 22px); line-height: 1.4; color: var(--white); }
.svc-ex { color: var(--dim-on-dark); font-size: 14px; }
@keyframes svc-open { from { opacity: 0; transform: translateY(-8px); } }
.svc-float {
  position: fixed; left: 0; top: 0; z-index: 30; width: 260px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .5s var(--ease); display: none;
}
.svc-float video { width: 100%; height: 100%; object-fit: cover; }
.svc-float.is-on { opacity: 1; transform: scale(1); }
html.has-cursor .svc-float { display: block; }
@media (max-width: 700px) {
  .svc summary { grid-template-columns: 34px minmax(0, 1fr) 40px; }
  .svc-plus { width: 40px; height: 40px; }
  .svc-body { padding-left: 50px; }
}

/* faixa em movimento */
.marquee { overflow: hidden; padding: clamp(18px, 2.6vw, 34px) 0; border-block: 1.5px solid var(--black); }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
html.has-motion .marquee-track { animation: none; }
.marquee-group { display: flex; align-items: center; }
.marquee-group span { font-size: clamp(2.2rem, 6vw, 5.6rem); font-weight: 600; letter-spacing: -.05em; text-transform: uppercase; padding: 0 .35em; white-space: nowrap; line-height: 1; }
.marquee-dot { width: .5em; height: .5em; font-size: clamp(2.2rem, 6vw, 5.6rem); background: var(--black); border-radius: 50%; display: inline-block; }
.marquee-group span:nth-child(4n+1) + .marquee-dot { border-radius: 4px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =================================================================== */
/* CENA 05 · SOBRE                                                      */
/* =================================================================== */
.about { padding: clamp(90px, 12vw, 190px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 110px); align-items: start; }
.about-photo { position: sticky; top: 110px; border-radius: var(--radius); overflow: hidden; background: var(--black); }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.about-tag { position: absolute; left: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; background: var(--lime); font-size: 13px; font-weight: 600; }
.about-text { display: grid; gap: 24px; }
.about-text .display { margin-bottom: 10px; }
.about-lead { font-size: clamp(1.4rem, 2.5vw, 2.4rem); line-height: 1.14; letter-spacing: -.03em; font-weight: 500; }
.about-text > p:not(.label):not(.about-lead) { max-width: 58ch; color: #2b2b2b; }
.principles { display: grid; gap: 0; margin-top: 16px; border-top: 1.5px solid var(--black); }
.principles li { display: grid; grid-template-columns: 50px 140px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid #c9c9c9; align-items: baseline; }
.principles b { font-size: 20px; letter-spacing: -.02em; }
.tools ul { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tools li, .tags li { padding: 8px 14px; border-radius: 999px; border: 1.5px solid currentColor; font-size: 14px; font-weight: 500; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { position: relative; top: 0; max-width: 480px; }
  .principles li { grid-template-columns: 40px minmax(0, 1fr); }
  .principles li > :last-child { grid-column: 2; }
}

/* =================================================================== */
/* CENA 06 · CONTACTO                                                   */
/* =================================================================== */
.contact { padding: clamp(100px, 12vw, 190px) 0 clamp(80px, 10vw, 150px); }
.contact-title { font-size: var(--t-display); margin: 24px 0 clamp(40px, 6vw, 90px); }
.contact-title .line:nth-child(2) { padding-left: 10vw; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 110px); align-items: start; }
.contact-lead { font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; }
.contact-time { margin-top: 16px; color: #3d3d3d; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-mail { margin-top: 26px; font-size: 15px; }
.qform { display: grid; gap: 22px; background: var(--black); color: var(--white); border-radius: calc(var(--radius) * 1.2); padding: clamp(22px, 3.4vw, 48px); }
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.qfield { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.qfield label, .qfield legend { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--white); padding: 0; }
.opt { color: var(--dim-on-dark); font-weight: 400; }
.qfield input[type='text'], .qfield input[type='email'], .qfield select, .qfield textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--white); background: #121212; border: 1.5px solid #333; border-radius: 12px;
  padding: 14px 16px; transition: border-color .3s, background-color .3s; appearance: none;
}
.qfield select { background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%), linear-gradient(135deg, var(--lime) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.qfield textarea { resize: vertical; min-height: 140px; line-height: 1.45; }
.qfield textarea::placeholder { color: #8a8a8a; }
.qfield input:focus, .qfield select:focus, .qfield textarea:focus { outline: none; border-color: var(--lime); background: #171717; }
.qfield input:focus-visible, .qfield select:focus-visible, .qfield textarea:focus-visible { box-shadow: 0 0 0 3px rgba(216, 252, 84, .35); }
.has-error input, .has-error select, .has-error textarea, [aria-invalid='true'] { border-color: var(--lime) !important; }
.qerror { font-size: 14px; font-weight: 600; color: var(--black); background: var(--lime); padding: 6px 12px; border-radius: 8px; justify-self: start; }
.qerror::before { content: '! '; }
.form-alert { background: var(--lime); color: var(--black); font-weight: 600; padding: 14px 18px; border-radius: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid #3a3a3a; font-size: 14px; font-weight: 500; transition: background-color .25s, color .25s, border-color .25s; }
.chip:hover span { border-color: var(--white); }
.chip input:checked + span { background: var(--lime); border-color: var(--lime); color: var(--black); }
.chip input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.qcheck label { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #d6d6d6; font-weight: 400; letter-spacing: 0; }
.qcheck input { width: 20px; height: 20px; accent-color: var(--lime); margin-top: 1px; flex: none; }
.qsubmit { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.qsubmit .btn-black { --bg: var(--lime); --fg: var(--black); }
.qsubmit .btn-black:hover { --bg: var(--white); }
.form-status { font-weight: 500; min-height: 1.5em; }
.form-status.is-error { color: var(--lime); }
.qnote { font-size: 14px; color: var(--dim-on-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .qrow { grid-template-columns: 1fr; } .contact-title .line:nth-child(2) { padding-left: 0; } }

/* =================================================================== */
/* RODAPÉ                                                               */
/* =================================================================== */
.ft { background: var(--black); color: var(--white); padding-top: clamp(70px, 9vw, 130px); overflow: hidden; }
.ft-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 40px; }
.ft .label { color: var(--dim-on-dark); margin-bottom: 14px; }
.ft-mail { font-size: clamp(1.6rem, 4vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; text-decoration: none; display: inline-block; transition: color .3s; word-break: break-all; }
.ft-mail:hover { color: var(--lime); }
.ft nav ul { display: grid; gap: 8px; }
.ft-word { display: flex; justify-content: space-between; font-size: clamp(3.4rem, 13.2vw, 15.5rem); font-weight: 600; letter-spacing: -.06em; line-height: .8; text-transform: uppercase; color: var(--lime); padding: 0 var(--pad); margin-top: clamp(50px, 8vw, 120px); white-space: nowrap; }
.ft-word span { display: block; }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding-block: 28px; font-size: 13px; color: var(--dim-on-dark); border-top: 1px solid #222; margin-top: 30px; }
@media (max-width: 700px) { .ft-top { grid-template-columns: 1fr; } .ft-word { flex-direction: column; } }

/* =================================================================== */
/* PÁGINA DE PROJETO                                                    */
/* =================================================================== */
.case-intro { padding: calc(var(--header-h) + 70px) 0 clamp(30px, 4vw, 60px); }
.case-crumbs { color: var(--dim-on-dark); }
.case-crumbs a { color: var(--white); }
.case-title { font-size: clamp(3.2rem, 13vw, 13rem); margin-top: 28px; }
.case-sub { font-size: clamp(1.3rem, 2.6vw, 2.6rem); letter-spacing: -.03em; font-weight: 500; color: var(--lime); margin-top: 14px; }
.meta-row { margin-top: clamp(30px, 4vw, 60px); padding-top: 22px; border-top: 1px solid #2a2a2a; gap: 18px 46px; }
.case-stage { padding: 0 var(--pad) clamp(60px, 8vw, 120px); }
.case-player { max-width: 1600px; margin-inline: auto; }
.case-stage.is-portrait .case-player, .case-stage.is-square .case-player { max-width: min(560px, 100%); }
.case-stage.is-portrait video, .case-stage.is-square video { max-height: 86svh; width: auto; margin-inline: auto; }
.case-body { padding: clamp(70px, 10vw, 160px) 0; }
.case-summary { font-size: clamp(1.6rem, 3.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 500; max-width: 28ch; }
.case-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 60px); margin-top: clamp(50px, 7vw, 110px); }
.case-cols > div { border-top: 1.5px solid var(--black); padding-top: 18px; display: grid; gap: 14px; align-content: start; }
.case-cols p:not(.label) { font-size: 17px; color: #2b2b2b; }
.case-gallery { padding: clamp(70px, 9vw, 140px) 0; }
.case-gallery h2 { margin-bottom: 30px; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.g-item { grid-column: span 6; }
.g-item.is-portrait, .g-item.is-square { grid-column: span 4; }
.g-item img { width: 100%; height: auto; border-radius: var(--radius); background: var(--black); }
.g-cap { margin-top: 10px; font-size: 14px; color: var(--dim); }
.case-details { padding: clamp(60px, 7vw, 110px) 0; }
.case-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.plain { display: grid; gap: 8px; margin-top: 14px; }
@media (max-width: 860px) {
  .case-cols, .case-details-grid { grid-template-columns: 1fr; }
  .g-item, .g-item.is-portrait, .g-item.is-square { grid-column: span 12; }
  .g-item.is-portrait, .g-item.is-square { max-width: 420px; }
}

.next { display: block; }
.next-link { position: relative; display: grid; gap: 10px; padding: clamp(80px, 11vw, 170px) var(--pad); text-decoration: none; overflow: hidden; }
.next-title { font-size: clamp(3.2rem, 12vw, 12rem); position: relative; z-index: 2; transition: transform .8s var(--ease); }
.next-sub { font-size: clamp(1.2rem, 2vw, 2rem); font-weight: 500; position: relative; z-index: 2; }
.next-link:hover .next-title { transform: translateX(2vw); }
.next-media {
  position: absolute; right: var(--pad); top: 50%; z-index: 1; width: clamp(160px, 22vw, 380px); aspect-ratio: 16 / 10; translate: 0 -50%;
  border-radius: var(--radius); overflow: hidden; background: var(--black); transform: rotate(4deg) scale(.9); opacity: 0;
  transition: transform .8s var(--ease), opacity .4s;
}
.next-media.is-portrait, .next-media.is-square { aspect-ratio: 9 / 14; width: clamp(130px, 14vw, 240px); }
.next-media video { width: 100%; height: 100%; object-fit: cover; }
.next-link:hover .next-media, .next-link:focus-visible .next-media { opacity: 1; transform: rotate(-3deg) scale(1); }
@media (hover: none) { .next-media { opacity: 1; transform: none; position: relative; right: auto; top: auto; translate: none; margin-top: 20px; } }
.cta-band { padding: clamp(60px, 8vw, 110px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta-band-text { font-size: clamp(2rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -.05em; line-height: .95; text-transform: uppercase; }

/* obrigado e privacidade */
.thanks { min-height: 88svh; display: grid; align-items: end; padding: calc(var(--header-h) + 80px) 0 clamp(60px, 8vw, 110px); }
.thanks .wrap { display: grid; gap: 26px; justify-items: start; }
.thanks-title { font-size: clamp(4rem, 19vw, 19rem); }
.thanks-lead { font-size: clamp(1.3rem, 2.2vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 500; max-width: 34ch; }
.thanks-small { color: #3d3d3d; }
.thanks-more { padding: clamp(60px, 8vw, 120px) 0; }
.thanks-more .label { color: var(--lime); margin-bottom: 24px; }
.thanks-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.thanks-list a { display: grid; gap: 10px; text-decoration: none; }
.thanks-list img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px) { .thanks-list { grid-template-columns: 1fr; } }
.legal { padding: calc(var(--header-h) + 80px) 0 120px; }
.legal-wrap { max-width: 860px; display: grid; gap: 16px; }
.legal h1 { margin: 10px 0 20px; }
.legal h2 { font-size: 22px; letter-spacing: -.02em; margin-top: 22px; }
.legal p { color: #262626; }

/* =================================================================== */
/* ESTADOS DE ANIMAÇÃO (só com JS e sem «movimento reduzido»)          */
/* =================================================================== */
html.has-motion [data-reveal-media] { clip-path: inset(100% 0 0 0 round var(--radius)); }
html.has-motion [data-reveal-media].is-in { clip-path: inset(0 0 0 0 round var(--radius)); transition: clip-path 1.2s var(--ease); }
html.has-motion .split-pending { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ch, .hero-pill { transform: none; }
  .marquee-track { animation: none; }
}
