/* TH FILMS — main.css */

@font-face { font-family: "Archivo"; src: url(../fonts/archivo-latin-standard-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; 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: "Archivo"; src: url(../fonts/archivo-latin-ext-standard-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; 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; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); font-weight: 400 700; font-display: swap; 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: "Instrument Sans"; src: url(../fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #07080f;
  --bg-2: #0e1020;
  --bg-3: #171a30;
  --ink: #eef0fa;
  --ink-2: #aab0cc;
  --mute: #6d7394;
  --line: rgba(238, 240, 250, .12);
  --line-2: rgba(238, 240, 250, .22);
  /* Cor de destaque da marca (roxo) e apoio (azul escuro). O painel troca a de destaque. */
  --accent: #8b5cff;
  --accent-ink: #ffffff;
  --accent-2: #2a3bdb;

  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  --radius: 4px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 14px; }
.skip:focus { top: 16px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: flex; align-items: center; gap: 14px; margin: 0 0 28px;
  font: 400 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow .idx { color: var(--accent); }
.eyebrow .idx::after { content: ""; display: inline-block; width: 28px; height: 1px; background: var(--line-2); margin-left: 14px; vertical-align: middle; }

.display {
  margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 78%;
  font-size: clamp(44px, 8.4vw, 132px); line-height: .9; letter-spacing: -.02em; text-transform: uppercase;
}
.section-head { margin-bottom: clamp(48px, 7vw, 96px); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.line-mask { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }

/* Buttons */
.btn {
  --h: 54px; position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: var(--h); padding: 0 28px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font: 600 14px/1 var(--f-body); letter-spacing: .02em; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn span { position: relative; z-index: 1; display: block; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: none; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent::before { background: var(--ink); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--bg); border-color: var(--ink); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 13px; }
.btn--block { width: 100%; }

.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e5372b; box-shadow: 0 0 12px #e5372b; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* Intro */
.intro { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.intro__bar { position: absolute; left: 0; right: 0; height: 50.5%; background: #04050b; }
.intro__bar--top { top: 0; } .intro__bar--bottom { bottom: 0; }
.intro__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; }
.intro__mark { display: flex; gap: .18em; font: 800 clamp(28px, 4vw, 48px)/1 var(--f-display); font-stretch: 125%; letter-spacing: .02em; overflow: hidden; }
.intro__mark span { display: block; }
.intro__mark span:last-child { color: var(--accent); font-stretch: 62%; font-weight: 300; letter-spacing: .3em; }
.intro__tc { display: flex; align-items: center; gap: 10px; font: 12px/1 var(--f-mono); letter-spacing: .12em; color: var(--ink-2); }
.no-js .intro, .reduced .intro { display: none; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter);
  transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(7, 8, 15, .6); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__logo { font: 800 20px/1 var(--f-display); font-stretch: 125%; letter-spacing: .02em; display: flex; gap: 6px; align-items: baseline; }
.nav__logo span { font-weight: 300; font-stretch: 62%; letter-spacing: .28em; font-size: 13px; color: var(--accent); }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; font-size: 14px; }
.nav__links a { position: relative; color: var(--ink-2); transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.nav__burger span:first-child { top: 18px; } .nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + 24px) var(--gutter) 32px; 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 nav { display: grid; gap: 4px; }
.menu nav a { display: flex; align-items: baseline; gap: 14px; font: 800 clamp(44px, 13vw, 72px)/1.02 var(--f-display); font-stretch: 78%; text-transform: uppercase; }
.menu nav a i { font: 400 12px/1 var(--f-mono); font-style: normal; color: var(--accent); }
.menu__foot { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
.menu__foot a { border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }

/* Hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; transform-origin: 50% 60%; will-change: transform; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,15,.55) 0%, rgba(7,8,15,.05) 30%, rgba(7,8,15,.2) 60%, rgba(7,8,15,.92) 100%); pointer-events: none; }
.hero__content { position: relative; z-index: 2; width: 100%; padding: 0 var(--gutter) clamp(28px, 5vh, 56px); }
.hero__eyebrow { margin-bottom: 18px; color: var(--ink); }
.hero__eyebrow:empty { display: none; }
.hero__title { margin: 0; font-family: var(--f-display); text-transform: uppercase; line-height: .8; letter-spacing: -.035em; }
.hero__line { display: block; overflow: hidden; padding-top: .04em; }
.hero__line > span { display: block; }
.hero__line:first-child { font-weight: 900; font-stretch: 125%; font-size: clamp(128px, 21vw, 340px); }
.hero__line--wide { font-weight: 300; font-stretch: 62%; font-size: clamp(64px, 12.2vw, 196px); letter-spacing: .14em; color: var(--accent); margin-top: -.02em; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(20px, 3vw, 36px); flex-wrap: wrap; }
.hero__tagline { margin: 0; max-width: 34ch; font-size: clamp(16px, 1.4vw, 20px); color: var(--ink-2); }
.hero__tagline:empty { display: none; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__hud { position: absolute; z-index: 2; top: calc(var(--nav-h) + 8px); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; font: 11px/1 var(--f-mono); letter-spacing: .14em; color: rgba(238,240,250,.7); pointer-events: none; }
.hud__rec { display: flex; gap: 8px; align-items: center; }
.hero__scroll { position: absolute; z-index: 2; right: var(--gutter); bottom: 50%; display: grid; justify-items: center; gap: 12px; font: 10px/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); writing-mode: vertical-rl; }
.hero__scroll i { width: 1px; height: 56px; background: linear-gradient(var(--ink), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Placeholder (aparece só enquanto a mídia real não existe) */
.ph { position: relative; width: 100%; height: 100%; background: radial-gradient(120% 90% at 30% 20%, #262421 0%, #151413 55%, #0d0d0c 100%); display: grid; place-items: center; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 14px; border: 1px solid var(--line); }
.ph::after { content: attr(data-label); font: 11px/1.4 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); text-align: center; padding: 0 24px; }

/* Media frames */
.media { position: relative; overflow: hidden; background: var(--bg-2); }
.media > video, .media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media > img { transition: opacity .6s; }
.media video { opacity: 0; transition: opacity .6s; }
.media video.is-ready { opacity: 1; }

/* Filmstrip */
.strip { padding: clamp(56px, 8vw, 110px) 0; display: grid; gap: 12px; overflow: hidden; }
.strip__row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.strip__item { position: relative; height: clamp(120px, 16vw, 230px); flex: none; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); filter: grayscale(.85) brightness(.75); transition: filter .7s var(--ease); }
.strip__item:hover { filter: none; }
.strip__item img, .strip__item video { width: 100%; height: 100%; object-fit: cover; }

/* About */
.about { padding: clamp(96px, 14vw, 200px) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 112px); align-items: center; }
.about__photo { margin: 0; position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.about__photo img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.about__name { margin: 0 0 32px; font: 800 clamp(40px, 6vw, 92px)/.92 var(--f-display); font-stretch: 82%; text-transform: uppercase; letter-spacing: -.02em; }
.about__statement { margin: 0; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.3; letter-spacing: -.01em; max-width: 28ch; }
.about__statement:empty { display: none; }
.about__statement .w { opacity: .18; transition: opacity .2s; }
.about__facts { display: flex; flex-wrap: wrap; gap: 40px; margin: 44px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.about__facts:empty { display: none; }
.about__facts dt { font: 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.about__facts dd { margin: 0; font-size: 16px; }

/* Reel */
.reel { position: relative; height: 260vh; }
.reel__pin { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.reel__frame { position: relative; z-index: 2; width: 100%; height: 100%; clip-path: inset(30% 34% 30% 34% round 6px); will-change: clip-path; }
.reel__media { position: absolute; inset: 0; }
.reel__media video, .reel__media img { width: 100%; height: 100%; object-fit: cover; }
.reel__media::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.reel__play { position: absolute; z-index: 3; left: 50%; top: 50%; width: 128px; height: 128px; margin: -64px 0 0 -64px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); opacity: 0; transform: scale(.6); }
.reel__play-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(238,240,250,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(7,8,15,.2); transition: transform .6s var(--ease), background-color .4s; }
.reel__play:hover .reel__play-ring { transform: scale(1.12); background: var(--accent); border-color: var(--accent); }
.reel__play:hover { color: var(--accent-ink); }
.reel__play-label { position: relative; font: 600 13px/1.25 var(--f-body); text-transform: uppercase; letter-spacing: .12em; text-align: center; }
.reel__play-label small { font: 10px var(--f-mono); letter-spacing: .1em; opacity: .7; }
.reel__title { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: space-between; margin: 0; padding-inline: var(--gutter); pointer-events: none; font: 900 clamp(56px, 15vw, 260px)/1 var(--f-display); font-stretch: 70%; text-transform: uppercase; letter-spacing: -.03em; }
.reel__title span:last-child { color: var(--accent); }

/* Projects — cartões empilhados */
.projects { padding: clamp(96px, 12vw, 180px) 0 0; }
.projects__stack { padding: 0 var(--gutter); max-width: calc(var(--maxw) + 0px); margin: 0 auto; }
.project { position: sticky; top: calc(var(--nav-h) + 8px); height: calc(100svh - var(--nav-h) - 32px); min-height: 480px; margin-bottom: 24px; border-radius: 10px; overflow: hidden; background: var(--bg-2); transform-origin: 50% 0; will-change: transform; }
.project:last-child { margin-bottom: clamp(96px, 12vw, 180px); }
.project__media { position: absolute; inset: 0; }
.project__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,8,15,.1) 40%, rgba(7,8,15,.9) 100%); }
.project__shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 3; }
.project__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3vw, 44px); display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 48px); align-items: end; }
.project__num { font: 900 clamp(56px, 9vw, 140px)/.8 var(--f-display); font-stretch: 70%; color: var(--accent); }
.project__title { margin: 0 0 10px; font: 800 clamp(26px, 3.6vw, 56px)/.95 var(--f-display); font-stretch: 85%; text-transform: uppercase; letter-spacing: -.01em; }
.project__meta { display: flex; gap: 16px; flex-wrap: wrap; font: 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.project__desc { margin: 0; max-width: 52ch; color: var(--ink-2); font-size: 15px; }
.project__desc:empty { display: none; }
.project__credits { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.project__credits span { font-size: 12px; padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.project__open { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .4s, color .4s, border-color .4s, transform .6s var(--ease); flex: none; }
.project__open svg { width: 18px; height: 18px; }
.project:hover .project__open { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: rotate(-45deg); }
.project--vertical .project__media { inset: 0; }
.project--vertical .project__media .media__blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(.45); transform: scale(1.1); }
.project--vertical .project__media .media__fg { position: absolute; top: 0; bottom: 0; right: clamp(16px, 6vw, 120px); aspect-ratio: 9/16; height: 100%; overflow: hidden; }
.project--vertical .project__media .media__fg video, .project--vertical .project__media .media__fg img { width: 100%; height: 100%; object-fit: cover; }

/* Gallery */
.work { padding-bottom: clamp(96px, 12vw, 180px); }
.filters { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; }
.filters button { white-space: nowrap; padding: 10px 18px; border-radius: 999px; font-size: 14px; color: var(--ink-2); transition: background-color .4s, color .4s; }
.filters button sup { font: 10px var(--f-mono); color: var(--mute); margin-left: 2px; }
.filters button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.filters button[aria-selected="true"] sup { color: var(--bg); opacity: .6; }
.grid { display: flex; gap: 14px; align-items: flex-start; }
.grid__col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.tile { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; display: block; width: 100%; text-align: left; }
.tile.is-hidden { display: none; }
.tile .media { width: 100%; }
.tile .media > img, .tile .media > video { transition: transform 1.2s var(--ease), opacity .6s; }
.tile:hover .media > img, .tile:hover .media > video { transform: scale(1.04); }
.tile__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; display: flex; justify-content: space-between; align-items: end; gap: 12px; background: linear-gradient(transparent, rgba(0,0,0,.75)); opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); font-size: 14px; }
.tile__cap i { font: 10px/1 var(--f-mono); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
.grid__empty { padding: 64px 0; color: var(--mute); font: 12px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }

/* Services */
.services { position: relative; padding-bottom: clamp(96px, 12vw, 180px); }
.services__list { list-style: none; margin: 0 auto; }
.service { position: relative; display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: baseline; padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: var(--bg-3); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease); z-index: -1; }
.service:hover::before { transform: scaleY(1); }
.service__n { font: 12px var(--f-mono); color: var(--accent); letter-spacing: .1em; }
.service__t { margin: 0; font: 700 clamp(26px, 3.6vw, 54px)/1 var(--f-display); font-stretch: 85%; text-transform: uppercase; letter-spacing: -.01em; transition: transform .6s var(--ease); }
.service:hover .service__t { transform: translateX(14px); }
.service__d { margin: 0; color: var(--ink-2); max-width: 44ch; }
.services__float { position: fixed; left: 0; top: 0; z-index: 30; width: 300px; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); }
.services__float img { width: 100%; height: 100%; object-fit: cover; }

/* Clients marquee */
.clients { padding-bottom: clamp(96px, 12vw, 160px); }
.marquee { display: flex; overflow: hidden; border-block: 1px solid var(--line); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex: none; align-items: center; gap: clamp(48px, 7vw, 110px); padding: 36px clamp(24px, 3.5vw, 55px); animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; font: 700 clamp(22px, 2.6vw, 36px)/1 var(--f-display); font-stretch: 90%; text-transform: uppercase; color: var(--ink-2); transition: color .3s; }
.marquee__item:hover { color: var(--ink); }
.marquee__item img { height: clamp(28px, 3vw, 44px); width: auto; opacity: .7; filter: grayscale(1) brightness(1.6); transition: opacity .3s, filter .3s; }
.marquee__item:hover img { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Proof */
.proof { padding-bottom: clamp(96px, 12vw, 180px); }
.proof__results { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; border-top: 1px solid var(--line); margin-bottom: clamp(56px, 7vw, 96px); }
.proof__results:empty { display: none; }
.result { padding: 32px 24px 32px 0; border-bottom: 1px solid var(--line); }
.result__v { font: 900 clamp(56px, 7vw, 112px)/.9 var(--f-display); font-stretch: 72%; color: var(--ink); }
.result__l { margin-top: 12px; color: var(--ink-2); font-size: 15px; max-width: 26ch; }
.proof__diffs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(32px, 4vw, 56px); counter-reset: d; }
.proof__diffs li { counter-increment: d; }
.proof__diffs li::before { content: counter(d, decimal-leading-zero); display: block; font: 12px var(--f-mono); color: var(--accent); margin-bottom: 18px; }
.proof__diffs h3 { margin: 0 0 10px; font: 700 22px/1.15 var(--f-display); font-stretch: 90%; text-transform: uppercase; }
.proof__diffs p { margin: 0; color: var(--ink-2); }

/* Contact */
.contact { padding: clamp(96px, 12vw, 160px) 0 clamp(64px, 8vw, 120px); background: var(--bg-2); border-radius: 20px 20px 0 0; position: relative; }
.contact__title { margin: 0 0 clamp(48px, 7vw, 96px); font: 900 clamp(64px, 15vw, 250px)/.82 var(--f-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: -.03em; }
.contact__line { display: block; overflow: hidden; padding-top: .05em; }
.contact__line > span { display: block; }
.contact__line--accent { color: var(--accent); padding-left: .9em; }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.contact__lead { margin: 0 0 36px; font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); max-width: 38ch; }
.contact__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contact__links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); font: 600 clamp(18px, 1.8vw, 24px)/1 var(--f-display); font-stretch: 95%; transition: color .3s, padding .5s var(--ease); }
.contact__links a small { font: 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.contact__links a:hover { color: var(--accent); padding-left: 10px; }
.form { display: grid; gap: 28px; }
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 26px 0 12px; background: none; border: 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font: 400 18px/1.4 var(--f-body); border-radius: 0; resize: vertical; transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field label { position: absolute; left: 0; top: 26px; color: var(--mute); font-size: 18px; pointer-events: none; transform-origin: left top; transition: transform .4s var(--ease), color .3s; }
.field label small { font-size: .75em; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-24px) scale(.72); color: var(--ink-2); }
.chips { border: 0; padding: 0; margin: 0; }
.chips legend { font: 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 14px; padding: 0; }
.chips > div { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form__error { margin: -8px 0 0; min-height: 1.2em; color: #ff8a7a; font-size: 14px; }

.footer { background: var(--bg-2); padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font: 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.footer__mark { font: 800 16px/1 var(--f-display); font-stretch: 125%; color: var(--ink); letter-spacing: .02em; }
.footer__mark span { font-weight: 300; font-stretch: 62%; letter-spacing: .28em; font-size: 11px; color: var(--accent); margin-left: 4px; }
.footer__top:hover { color: var(--ink); }

.wa-float { position: fixed; z-index: 40; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.4); transform: scale(0); transition: transform .5s var(--ease); }
.wa-float.is-visible { transform: scale(1); }
.wa-float svg { width: 26px; height: 26px; }

/* Player */
.player { position: fixed; inset: 0; z-index: 120; background: rgba(5,5,5,.96); display: grid; grid-template-rows: auto 1fr auto; padding: 16px var(--gutter) 24px; }
.player__close { justify-self: end; display: flex; gap: 10px; align-items: center; height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; }
.player__close span { font: 10px var(--f-mono); color: var(--mute); }
.player__stage { display: grid; place-items: center; min-height: 0; padding: 16px 0; }
.player__stage video, .player__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: var(--radius); background: #000; }
.player__caption { margin: 0; text-align: center; color: var(--ink-2); font-size: 14px; }

/* Cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); pointer-events: none; mix-blend-mode: difference; display: grid; place-items: center; opacity: 0; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, opacity .3s; }
.cursor span { font: 600 11px/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; transition: opacity .2s; }
.cursor.is-on { opacity: 1; }
.cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); mix-blend-mode: normal; }
.cursor.is-big span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055; 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' 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(-3%,2%); } 40% { transform: translate(2%,-4%); } 60% { transform: translate(-4%,-1%); } 80% { transform: translate(3%,4%); } }

/* Responsive */
@media (max-width: 1024px) {
  .service { grid-template-columns: 56px 1fr; }
  .service__d { grid-column: 2; }
}
@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 520px; }
  .project__body { grid-template-columns: 1fr auto; }
  .project__num { grid-column: 1 / -1; font-size: 56px; }
  .project--vertical .project__media .media__fg { right: 50%; transform: translateX(50%); height: 64%; top: 0; }
  .services__float { display: none; }
  .hero__scroll { display: none; }
  .reel { height: 200vh; }
}
@media (max-width: 560px) {
  .grid, .grid__col { gap: 8px; }
  .tile__cap { opacity: 1; transform: none; padding: 28px 10px 10px; font-size: 12px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; padding: 0 16px; }
  .hero__hud .hud__meta { display: none; }
  .filters { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .filters button { flex: none; padding: 10px 14px; }
  .project { height: calc(100svh - var(--nav-h) - 24px); }
  .project__desc { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .project__open { width: 52px; height: 52px; }
  .service { grid-template-columns: 1fr; gap: 10px; }
  .service__d { grid-column: auto; }
  .wa-float { width: 50px; height: 50px; }
  .footer__row { padding-right: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .reel { height: auto; }
  .reel__pin { position: relative; height: 80svh; }
  .reel__frame { clip-path: none; }
  .reel__play { opacity: 1; transform: none; }
  .reel__title { display: none; }
  .about__statement .w { opacity: 1; }
}

/* Tema claro ("leve") — ativado no painel de dono */
:root[data-theme="light"] {
  --bg: #f1f2f8; --bg-2: #e6e8f2; --bg-3: #d9dcea;
  --ink: #0c0e1c; --ink-2: #444a66; --mute: #7d83a0;
  --line: rgba(12, 14, 28, .12); --line-2: rgba(12, 14, 28, .24);
}
:root[data-theme="light"] .hero, :root[data-theme="light"] .reel__frame, :root[data-theme="light"] .project, :root[data-theme="light"] .chapter, :root[data-theme="light"] .cut__monitor, :root[data-theme="light"] .player { --ink: #eef0fa; --ink-2: #cfd3e6; --line-2: rgba(238,240,250,.3); color: #eef0fa; }
:root[data-theme="light"] .reel__title { color: var(--ink); }
:root[data-theme="light"] .nav.is-scrolled { background: rgba(241, 242, 248, .72); }
:root[data-theme="light"] .nav:not(.is-scrolled) { --ink: #eef0fa; --ink-2: #dfe2f0; color: #eef0fa; }
:root[data-theme="light"] .grain { opacity: .04; }
:root[data-theme="light"] .cursor { background: #111; }

/* Variações quando animações são desligadas no painel */
.no-reveal .w { opacity: 1 !important; }
.reel--simple { height: auto; }
.reel--simple .reel__pin { position: relative; height: 88svh; }
.reel--simple .reel__frame { clip-path: none; }
.reel--simple .reel__play { opacity: 1; transform: none; }
.reel--simple .reel__title { display: none; }
.projects--grid .projects__stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 16px; padding-bottom: clamp(96px, 12vw, 180px); }
.projects--grid .project { position: relative; top: auto; height: auto; min-height: 0; aspect-ratio: 4/5; margin: 0; }

/* ===== Ilha de edição (substitui as faixas) ===== */
.cut { position: relative; --u: 26px; /* largura por segundo de clipe */ }
.cut__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 14px; padding: calc(var(--nav-h) + 8px) var(--gutter) 18px; overflow: hidden; }
.cut__monitor { position: relative; min-height: 0; border-radius: 6px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.cut__screen { position: absolute; inset: 0; }
.cut__layer { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.cut__layer.is-on { opacity: 1; }
.cut__bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(36px) brightness(.4) saturate(1.2); }
.cut__fg { position: absolute; inset: 0; display: grid; place-items: center; }
.cut__fg img, .cut__fg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cut__fg video { opacity: 0; transition: opacity .4s; }
.cut__fg video.is-ready { opacity: 1; }
.cut__osd { position: absolute; z-index: 2; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; font: 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(238,240,250,.85); pointer-events: none; }
.cut__tag { display: flex; gap: 8px; align-items: center; }
.cut__tc { font-variant-numeric: tabular-nums; }
.cut__monitor::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(238,240,250,.14); pointer-events: none; z-index: 2;
  /* marcas de enquadramento (safe area) */
  -webkit-mask: linear-gradient(#000 0 0) top left / 22px 22px no-repeat, linear-gradient(#000 0 0) top right / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom left / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat;
  mask: linear-gradient(#000 0 0) top left / 22px 22px no-repeat, linear-gradient(#000 0 0) top right / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom left / 22px 22px no-repeat, linear-gradient(#000 0 0) bottom right / 22px 22px no-repeat; }
.cut__open { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 48px 20px 16px; background: linear-gradient(transparent, rgba(4,5,11,.8)); text-align: left; }
.cut__name { font: 800 clamp(22px, 3vw, 44px)/1 var(--f-display); font-stretch: 80%; text-transform: uppercase; letter-spacing: -.01em; }
.cut__cat { font: 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.cut__deck { display: grid; grid-template-columns: 34px minmax(0, 1fr); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.cut__labels { display: grid; grid-template-rows: 22px 74px 40px; border-right: 1px solid var(--line); font: 10px/1 var(--f-mono); color: var(--mute); }
.cut__labels span { display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.cut__labels span:last-child { border: 0; }
.cut__window { position: relative; overflow: hidden; cursor: grab; touch-action: pan-y; }
.cut__window:active { cursor: grabbing; }
.cut__reel { position: relative; display: grid; grid-template-rows: 22px 74px 40px; width: max-content; padding-left: 50%; padding-right: 50%; will-change: transform; }
.cut__ruler { position: relative; border-bottom: 1px solid var(--line); background-image: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px calc(var(--u))); background-size: auto 6px; background-repeat: repeat-x; background-position: left bottom; width: calc(var(--total) * var(--u)); }
.cut__ruler span { position: absolute; left: calc(var(--at) * var(--u)); top: 5px; padding-left: 4px; border-left: 1px solid var(--line-2); font: 9px/1 var(--f-mono); color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cut__clips { display: flex; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cut__clip { position: relative; flex: none; width: calc(var(--d) * var(--u)); height: 100%; margin-right: 2px; border-radius: 4px; overflow: hidden; background: var(--bg-3); border: 1px solid rgba(139, 92, 255, .35); text-align: left; transition: border-color .3s, filter .3s; filter: saturate(.6) brightness(.8); }
.cut__clip--foto { border-color: rgba(42, 59, 219, .55); }
.cut__clip.is-on { border-color: var(--ink); filter: none; }
.cut__clip:hover { filter: none; }
.cut__thumb { position: absolute; inset: 0; background-size: auto 100%; background-repeat: repeat-x; background-position: left center; }
.cut__label { position: absolute; left: 0; right: 0; top: 0; padding: 4px 6px; font: 600 10px/1.2 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(rgba(4,5,11,.75), transparent); }
.cut__wave { display: block; height: 40px; }
.cut__head { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; pointer-events: none; }
.cut__head i { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.cut__head i::before { content: ""; position: absolute; top: 0; left: -6px; width: 14px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.cut__hint { display: flex; justify-content: space-between; gap: 12px; margin: 0; font: 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
@media (max-width: 860px) {
  .cut { --u: 17px; }
  .cut__pin { padding-bottom: 14px; gap: 10px; }
  .cut__labels, .cut__reel { grid-template-rows: 20px 60px 30px; }
  .cut__wave { height: 30px; }
  .cut__open { padding: 40px 14px 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ===== Capítulos (projetos em destaque) ===== */
.chapters { position: relative; height: calc(var(--n, 3) * 100svh); }
.chapters__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.chapters__layers { position: absolute; inset: 0; }
.chapter { position: absolute; inset: 0; overflow: hidden; background: var(--bg); will-change: clip-path; }
.chapter__media { position: absolute; inset: 0; }
.chapter__fg { position: absolute; inset: 0; will-change: transform; }
.chapter__fg img, .chapter__fg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter__fg video { opacity: 0; transition: opacity .6s; }
.chapter__fg video.is-ready { opacity: 1; }
.chapter__media--v .chapter__blur { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(48px) brightness(.4) saturate(1.3); }
.chapter__media--v .chapter__fg { left: auto; right: clamp(16px, 9vw, 160px); top: 9vh; bottom: 9vh; aspect-ratio: 9/16; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.chapter__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(4,5,11,.85) 0%, rgba(4,5,11,.35) 45%, rgba(4,5,11,0) 70%), linear-gradient(180deg, transparent 60%, rgba(4,5,11,.6)); }
/* tarjas de cinema em cima e embaixo */
.chapters__pin::before, .chapters__pin::after { content: ""; position: absolute; left: 0; right: 0; height: 7vh; background: #04050b; z-index: 4; pointer-events: none; }
.chapters__pin::before { top: 0; } .chapters__pin::after { bottom: 0; }
.chapter__info { position: absolute; z-index: 3; left: var(--gutter); bottom: calc(7vh + clamp(20px, 4vh, 44px)); width: min(560px, 100% - var(--gutter) * 2); display: grid; gap: 16px; justify-items: start; }
.chapter__title { margin: 0; font: 900 clamp(40px, 6.4vw, 104px)/.88 var(--f-display); font-stretch: 72%; text-transform: uppercase; letter-spacing: -.02em; text-wrap: balance; }
.chapter__desc { margin: 0; color: var(--ink-2); max-width: 46ch; }
.chapter__credits { margin: 0; font: 11px/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
/* claquete */
.slate { width: min(360px, 100%); border: 1px solid rgba(238,240,250,.28); border-radius: 4px; overflow: hidden; background: rgba(4,5,11,.55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.slate__bar { height: 14px; background: repeating-linear-gradient(-55deg, var(--ink) 0 12px, var(--accent) 12px 24px); }
.chapter.is-on .slate__bar { animation: clap .6s var(--ease) .15s both; transform-origin: 0 100%; }
@keyframes clap { 0% { transform: rotate(-9deg); } 60% { transform: rotate(0); } 75% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
.slate__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); margin: 0; }
.slate__grid div { padding: 8px 10px; border-left: 1px solid rgba(238,240,250,.16); }
.slate__grid div:first-child { border-left: 0; }
.slate__grid dt { font: 9px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.slate__grid dd { margin: 0; font: 600 13px/1.1 var(--f-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapters__index { position: absolute; z-index: 5; right: var(--gutter); top: 50%; transform: translateY(-50%); list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chapters__index button { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 6px 0; color: var(--ink-2); font-size: 13px; }
.chapters__index button span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .5s var(--ease), opacity .4s; }
.chapters__index button i { font: 11px/1 var(--f-mono); font-style: normal; width: 34px; text-align: right; padding-right: 10px; border-right: 2px solid var(--line-2); transition: border-color .3s, color .3s; }
.chapters__index button.is-on i, .chapters__index button:hover i { color: var(--accent); border-color: var(--accent); }
.chapters__index button.is-on span, .chapters__index button:hover span { max-width: 220px; opacity: 1; color: var(--ink); }
.chapters__index:has(button:hover) button.is-on:not(:hover) span { max-width: 0; opacity: 0; }
/* versão sem animação: capítulos um embaixo do outro */
.chapters--flat { height: auto; }
.chapters--flat .chapters__pin { position: relative; height: auto; overflow: visible; }
.chapters--flat .chapters__pin::before, .chapters--flat .chapters__pin::after { display: none; }
.chapters--flat .chapters__layers { position: relative; display: grid; gap: 16px; padding-inline: var(--gutter); }
.chapters--flat .chapter { position: relative; inset: auto; height: min(86svh, 820px); border-radius: 8px; }
.chapters--flat .chapter__info { bottom: clamp(20px, 4vh, 40px); }
@media (max-width: 860px) {
  .chapters__index { display: none; }
  .chapter__media--v .chapter__fg { left: 50%; right: auto; transform: translateX(-50%); top: 9vh; bottom: auto; height: 50svh; }
  .chapter__shade { background: linear-gradient(180deg, rgba(4,5,11,0) 35%, rgba(4,5,11,.92) 78%); }
  .chapter__info { gap: 12px; }
  .chapter__desc { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ===== Briefing em forma de frase ===== */
.brief { display: grid; gap: 28px; max-width: 1100px; }
.brief__label { margin: 0; display: flex; gap: 14px; flex-wrap: wrap; font: 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.brief__label span { color: var(--mute); }
.brief__text { margin: 0; font: 500 clamp(24px, 3.3vw, 50px)/1.42 var(--f-display); font-stretch: 92%; letter-spacing: -.01em; color: var(--ink-2); text-wrap: pretty; }
.slot { display: inline-block; position: relative; vertical-align: baseline; }
.slot input, .slot select { font: inherit; color: var(--ink); background: none; border: 0; border-bottom: 2px solid var(--accent); padding: 0 .1em; border-radius: 0; max-width: 100%; min-width: 3ch; }
.slot input::placeholder { color: var(--mute); opacity: 1; }
.slot input:focus, .slot select:focus { outline: none; background: rgba(139, 92, 255, .14); }
.slot--select select { appearance: none; -webkit-appearance: none; padding-right: 1.1em; cursor: pointer; background: linear-gradient(45deg, transparent 50%, var(--accent) 50%) right .15em center / .35em .35em no-repeat; }
.slot--select select option { color: #0c0e1c; }
.brief__more { display: grid; gap: 8px; max-width: 720px; }
.brief__more label { font: 11px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.brief__more textarea { background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); padding: 14px 16px; font: 16px/1.5 var(--f-body); resize: vertical; }
.brief__more textarea:focus { outline: none; border-color: var(--accent); }
.brief__actions { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.brief__actions .contact__links { border: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.brief__actions .contact__links a { border: 0; padding: 6px 0; font-size: 16px; }
.brief__actions .contact__links a small { display: none; }
.chapter__title { overflow-wrap: anywhere; }
@media (max-width: 860px) { .cut__hint { padding-right: 64px; } .chapter__title { font-size: clamp(32px, 10vw, 52px); } }
