/* ============================================================
   OUTTIME — espaços atemporais com alma
   inteligência + alma
   ============================================================ */

:root {
  --ink: #1e1e1e;
  --ink-2: #232323;
  --ink-3: #2b2b2b;
  --paper: #dcdbd7;
  --paper-2: #d3d2ce;
  --cream: #f0ede4;
  --orange: #e63c10;
  --orange-2: #ff5a24;
  --grey: #8b8b88;
  --line-dark: rgba(30, 30, 30, .18);
  --line-light: rgba(220, 219, 215, .16);

  --font-sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Anton", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Menlo", monospace;

  --gutter: clamp(20px, 4vw, 64px);
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: default;
}

::selection { background: var(--orange); color: var(--cream); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
figure { margin: 0; }

/* ---------- utilities ---------- */

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 500;
}

.orange { color: var(--orange); }

.section {
  position: relative;
  padding: clamp(90px, 12vh, 160px) var(--gutter);
}

.section--light { background: var(--paper); color: var(--ink); }
.section--cream { background: var(--cream); color: var(--ink); }
.section--dark  { background: var(--ink);  color: var(--paper); }

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 5vh, 56px);
}
.kicker .k-num { color: var(--orange); }
.kicker .k-line {
  flex: 0 0 44px;
  height: 1px;
  background: currentColor;
  opacity: .35;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: .005em;
}

.h-xl { font-size: clamp(52px, 9vw, 150px); }
.h-lg { font-size: clamp(40px, 6.4vw, 104px); }
.h-md { font-size: clamp(30px, 4.2vw, 66px); }

.lead {
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.55;
  max-width: 46ch;
  opacity: .78;
}

/* split-text reveal */
.split-line { display: block; overflow: hidden; }
.split-line > .split-inner {
  display: block;
  transform: translateY(115%);
  transition: transform 1.05s cubic-bezier(.19, 1, .22, 1);
}
.in .split-line > .split-inner { transform: translateY(0); }
.split-line:nth-child(2) > .split-inner { transition-delay: .08s; }
.split-line:nth-child(3) > .split-inner { transition-delay: .16s; }
.split-line:nth-child(4) > .split-inner { transition-delay: .24s; }

.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.19, 1, .22, 1);
}
.in.fade-up, .in .fade-up { opacity: 1; transform: none; }

[data-stagger] > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.19, 1, .22, 1);
}
.in[data-stagger] > *:nth-child(1) { transition-delay: .05s; }
.in[data-stagger] > *:nth-child(2) { transition-delay: .13s; }
.in[data-stagger] > *:nth-child(3) { transition-delay: .21s; }
.in[data-stagger] > *:nth-child(4) { transition-delay: .29s; }
.in[data-stagger] > *:nth-child(5) { transition-delay: .37s; }
.in[data-stagger] > *:nth-child(6) { transition-delay: .45s; }
.in[data-stagger] > *:nth-child(7) { transition-delay: .53s; }
.in[data-stagger] > *:nth-child(8) { transition-delay: .61s; }
.in[data-stagger] > *:nth-child(9) { transition-delay: .69s; }
.in[data-stagger] > * { opacity: 1; transform: none; }

/* svg draw + pop (shared) */
.draw-line {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2.2s cubic-bezier(.6, 0, .2, 1) .2s;
}
.in .draw-line { stroke-dashoffset: 0; }
.pop {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .7s ease .7s, transform .7s ease .7s;
}
.in .pop { opacity: 1; transform: none; }
.pop-2 { transition-delay: 1.05s, 1.05s; }
.pop-3 { transition-delay: 1.4s, 1.4s; }

/* ---------- noise ---------- */

.noise {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 2000;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

/* ---------- preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.preloader.done { transform: translateY(-101%); }
.preloader-inner { text-align: center; }
.preloader-mark { width: clamp(72px, 10vw, 120px); margin: 0 auto 28px; }
.preloader-mark svg { width: 100%; height: auto; }
.preloader-count {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--grey);
}
.preloader-count b { color: var(--paper); font-weight: 500; }
.preloader-paren {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(200px, 40vh, 420px);
  color: var(--orange);
  line-height: 1;
  opacity: .9;
}
.preloader-paren.pl { left: clamp(16px, 6vw, 90px); }
.preloader-paren.pr { right: clamp(16px, 6vw, 90px); }

/* ---------- progress bar / header ---------- */

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 1600;
  pointer-events: none;
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--orange);
  transform-origin: 0 0;
  transform: scaleX(0);
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1500;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  padding: 0 var(--gutter);
  mix-blend-mode: difference;
  color: #dcdbd7;
  transition: transform .5s ease;
}
.site-header.hide { transform: translateY(-110%); }
.header-brand { display: flex; align-items: center; gap: 12px; }
.header-brand svg { height: 16px; width: auto; }
.header-tag { text-align: center; opacity: .6; }
.header-nav {
  display: flex;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 30px);
}
.header-nav a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  opacity: .75;
  transition: opacity .3s;
}
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 0;
  transition: transform .4s cubic-bezier(.19, 1, .22, 1);
}
.header-nav a:hover { opacity: 1; }
.header-nav a:hover::after { transform: scaleX(1); transform-origin: 0 0; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--ink);
  padding: 0 var(--gutter) clamp(32px, 6vh, 72px);
}

.hero-photo {
  position: absolute;
  inset: -8% 0;
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 30%;
  opacity: .55;
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30,30,30,.96) 0%, rgba(30,30,30,.72) 45%, rgba(30,30,30,.25) 100%),
    linear-gradient(0deg, rgba(30,30,30,.95) 0%, rgba(30,30,30,.15) 45%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-bg svg {
  width: 125%;
  max-width: none;
  height: auto;
  opacity: .07;
}

.hero-frame {
  position: absolute;
  inset: clamp(12px, 2vw, 24px);
  border: 1px solid var(--line-light);
  pointer-events: none;
}

.hero-top {
  position: absolute;
  top: calc(var(--header-h) + 18px);
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  color: var(--grey);
}

.hero-main { position: relative; z-index: 2; }

.hero-eyebrow {
  color: var(--orange);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::after {
  content: "";
  height: 1px;
  width: 70px;
  background: var(--orange);
}

.hero-word svg {
  width: 100%;
  height: auto;
  overflow: hidden;
}
.wm-letter {
  transform-box: fill-box;
  transform: translateY(140%);
  transition: transform 1.15s cubic-bezier(.19, 1, .22, 1);
}
.in .wm-letter { transform: translateY(0); }
.wm-letter:nth-child(2) { transition-delay: .06s; }
.wm-letter:nth-child(3) { transition-delay: .12s; }
.wm-letter:nth-child(4) { transition-delay: .18s; }
.wm-letter:nth-child(5) { transition-delay: .24s; }
.wm-letter:nth-child(6) { transition-delay: .3s; }

.hero-tagline {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(14px, 2.4vh, 26px);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(12px, 1.7vw, 22px);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--paper);
}

.hero-sub {
  margin-top: clamp(22px, 4vh, 40px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  border-top: 1px solid var(--line-light);
  padding-top: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 48px);
}
.hero-meta .hm { display: grid; gap: 6px; }
.hero-meta .hm b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1;
  color: var(--cream);
  letter-spacing: .02em;
}
.hero-meta .hm span { color: var(--grey); }

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--grey);
}
.hero-scroll .dot {
  width: 34px; height: 52px;
  border: 1px solid var(--line-light);
  border-radius: 20px;
  position: relative;
}
.hero-scroll .dot::after {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--orange);
  animation: scrollhint 1.8s ease-in-out infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(22px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- marquee ---------- */

.marquee {
  background: var(--orange);
  color: var(--ink);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(0,0,0,.15);
  border-bottom: 1px solid rgba(0,0,0,.15);
  position: relative;
  z-index: 3;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-chunk {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 38px);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}
.marquee-chunk .amp {
  font-family: var(--font-mono);
  font-size: .55em;
  border: 1px solid var(--ink);
  border-radius: 50%;
  width: 1.9em; height: 1.9em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- manifesto ---------- */

.manifesto { background: var(--paper); color: var(--ink); }
.manifesto-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--gutter) 40px;
  overflow: hidden;
}
.manifesto-sticky .kicker { position: relative; z-index: 2; }
.manifesto-spacer { height: 220vh; }
.manifesto-text {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 5.4vw, 88px);
  line-height: 1.04;
  max-width: 18ch;
  position: relative;
  z-index: 2;
}
.manifesto-text .w { opacity: .12; transition: opacity .25s linear; }
.manifesto-text .w.lit { opacity: 1; }
.manifesto-text .w.hl { color: var(--orange); }
.manifesto-foot {
  margin-top: clamp(28px, 6vh, 60px);
  display: flex;
  justify-content: space-between;
  color: rgba(30,30,30,.55);
  position: relative;
  z-index: 2;
}
.manifesto-prog { color: var(--orange); letter-spacing: .1em; }
/* .manifesto-sticky reforça a especificidade: o JS adiciona .fig
   (position: relative) e derrubava o absolute — a foto caía no fluxo */
.manifesto-sticky .manifesto-img {
  position: absolute;
  right: clamp(16px, 6vw, 100px);
  top: 16%;
  width: clamp(160px, 22vw, 320px);
  transform: rotate(3deg);
  box-shadow: 0 30px 60px rgba(30,30,30,.25);
}
.manifesto-img img, .manifesto-img video { width: 100%; aspect-ratio: .85; object-fit: cover; }
.manifesto-img figcaption {
  position: absolute;
  left: 12px; bottom: 12px;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

/* constelação de memórias — fotos vivas reveladas pelo scroll */
.manifesto-scatter {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.msc {
  position: absolute;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  transform: rotate(var(--r, 0deg)) translateY(30px) scale(.94);
  transition: transform 1s cubic-bezier(.22, 1, .36, 1), opacity .7s ease, box-shadow 1s ease;
  box-shadow: 0 18px 40px rgba(30, 30, 30, 0);
}
.msc.fig-in {
  opacity: 1;
  transform: rotate(var(--r, 0deg)) translateY(0) scale(1);
  box-shadow: 0 24px 50px rgba(30, 30, 30, .25);
}
.msc video {
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, .9);
  object-fit: cover;
  transform: scale(1.35);
  filter: saturate(.1) brightness(.7) blur(10px);
  transition: filter .9s ease .12s;
  will-change: transform, filter;
}
.msc.fig-in video { filter: none; }
.msc.fig-in .fig-curtain { transform: scaleY(0); }
.msc.fig-in .fig-curtain::after { transform: scaleY(0); }
.msc figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 4;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--cream);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.msc figcaption b { color: var(--orange); font-weight: 500; margin-right: 8px; }
.msc.fig-float { animation: mscfloat 7.5s ease-in-out infinite alternate; }
.msc-2.fig-float, .msc-5.fig-float { animation-duration: 8.8s; animation-delay: .9s; }
.msc-3.fig-float, .msc-6.fig-float { animation-duration: 6.4s; animation-delay: 1.7s; }
@keyframes mscfloat {
  from { transform: rotate(var(--r, 0deg)) translateY(0) scale(1); }
  to { transform: rotate(var(--r, 0deg)) translateY(-10px) scale(1); }
}
.msc-1 { top: 4%; left: 41%; --r: -4deg; --ar: 1.05; width: clamp(120px, 12vw, 250px); }
.msc-2 { top: 56%; left: 58%; --r: 2.5deg; --ar: 1.2; width: clamp(140px, 15vw, 300px); }
.msc-3 { top: 7%; left: 63%; --r: -2deg; --ar: .85; width: clamp(100px, 10vw, 200px); }
.msc-4 { top: 66%; left: 38%; --r: 4deg; --ar: 1; width: clamp(100px, 10vw, 190px); }
.msc-5 { top: 55%; left: 86%; --r: -3.5deg; --ar: .8; width: clamp(110px, 11vw, 220px); }
.msc-6 { top: 2%; left: 24%; --r: 3deg; --ar: 1.1; width: clamp(100px, 9vw, 180px); }

/* ---------- tese / stats grid ---------- */

.num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.num-cell {
  background: var(--cream);
  padding: clamp(22px, 3vw, 44px);
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: clamp(200px, 26vh, 280px);
  position: relative;
  transition: background .4s ease, color .4s ease;
}
.num-cell:hover { background: var(--ink); color: var(--cream); }
.num-cell .nc-label { color: var(--orange); }
.num-cell .nc-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 84px);
  line-height: 1;
}
.num-cell .nc-sub { font-size: 14px; opacity: .6; max-width: 30ch; }
.num-cell--hero { background: var(--orange); color: var(--ink); }
.num-cell--hero .nc-label { color: var(--cream); }
.num-cell--hero:hover { background: var(--ink); color: var(--cream); }
.num-cell--photo {
  padding: 0;
  overflow: hidden;
  min-height: clamp(200px, 26vh, 280px);
}
.num-cell--photo img, .num-cell--photo video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.19, 1, .22, 1), filter .6s ease;
}
.num-cell--photo:hover img, .num-cell--photo:hover video { transform: scale(1.06); }
.num-cell--photo figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  z-index: 2;
  color: var(--cream);
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.num-cell--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,0) 45%);
}

/* ---------- inversão ---------- */

.inversao { background: var(--ink); }
.inv-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(44px, 8vh, 90px);
}
.inv-head .h-display .split-line:nth-child(2) { opacity: .25; }
.inv-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  margin-bottom: clamp(44px, 8vh, 90px);
}
.inv-num {
  background: var(--ink);
  padding: clamp(28px, 4vw, 60px);
  display: grid;
  gap: 16px;
}
.inv-num .inv-big {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 10vw, 190px);
  line-height: .9;
  color: var(--grey);
}
.inv-num .mono { color: var(--grey); max-width: 34ch; letter-spacing: .12em; }
.inv-num--hero .inv-big { color: var(--cream); }
.inv-num--hero .inv-big { }
.inv-num--hero { background: #241f1d; }
.inv-num--hero .mono { color: var(--orange); }

.inv-flow { max-width: 1100px; }
.flow-svg { width: 100%; height: auto; }
.inv-caption { margin-top: 18px; color: var(--grey); }

/* ---------- pilares ---------- */

.pilares { background: var(--paper); color: var(--ink); overflow: hidden; }
.pil-head { margin-bottom: clamp(30px, 5vh, 60px); }
.pil-svg-wrap { margin-bottom: clamp(50px, 9vh, 110px); }
.pil-svg { width: 100%; height: auto; }

.pil-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 28px);
  align-items: start;
}
.pg { position: relative; }
.pg img, .pg video {
  width: 100%;
  aspect-ratio: .8;
  object-fit: cover;
  filter: saturate(.92);
  transition: transform 1.1s cubic-bezier(.19, 1, .22, 1);
}
.pg--tall img, .pg--tall video { aspect-ratio: .68; }
.pg:nth-child(2) { margin-top: clamp(30px, 5vh, 70px); }
.pg:nth-child(4) { margin-top: clamp(20px, 3.4vh, 46px); }
.pg:hover img { transform: scale(1.04); }
.pg figcaption { padding: 14px 2px 0; display: grid; gap: 8px; }
.pg figcaption p { font-size: 13.5px; line-height: 1.5; color: rgba(30,30,30,.65); max-width: 30ch; }

/* ---------- projeto / volumetria 3D ---------- */

.volumetria { background: var(--ink-2); }
.vol-wrap { position: relative; height: 340vh; }
.vol-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

.vol-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.vol-sticky::before,
.vol-sticky::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 26%;
  z-index: 2;
  pointer-events: none;
}
.vol-sticky::before {
  top: 0;
  background: linear-gradient(180deg, rgba(30, 28, 32, .92), rgba(30, 28, 32, 0));
}
.vol-sticky::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(30, 28, 32, .9), rgba(30, 28, 32, 0));
}

.vol-head {
  position: absolute;
  top: calc(var(--header-h) + 8px);
  left: var(--gutter);
  right: var(--gutter);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  gap: 20px;
}
.vol-title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 64px);
  line-height: .95;
  color: var(--cream);
}
.vol-title em { font-style: normal; color: var(--orange); }
.vol-sub { color: var(--grey); margin-top: 10px; }
.vol-step {
  text-align: right;
  color: var(--grey);
  display: grid;
  gap: 4px;
}
.vol-step b { color: var(--orange); font-weight: 500; }

.vol-labels {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.vol-label {
  position: absolute;
  display: grid;
  gap: 4px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.vol-label.show { opacity: 1; transform: none; }
.vol-label .vl-line { width: 54px; height: 1px; background: var(--orange); }
.vol-label b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 30px);
  color: var(--cream);
  line-height: 1;
}
.vol-label span { color: var(--grey); }
.vl-1 { left: clamp(16px, 7vw, 120px); top: 40%; }
.vl-2 { right: clamp(16px, 7vw, 120px); top: 30%; text-align: right; justify-items: end; }
.vl-3 { left: clamp(16px, 7vw, 120px); bottom: 20%; }

.vol-meta {
  position: absolute;
  right: var(--gutter);
  bottom: 78px;
  z-index: 5;
  display: grid;
  gap: 10px;
  text-align: right;
  color: var(--grey);
}
.vol-meta b { color: var(--cream); font-weight: 500; }

.vol-foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 26px;
  display: flex;
  justify-content: space-between;
  color: var(--grey);
  z-index: 5;
  border-top: 1px solid var(--line-light);
  padding-top: 16px;
}

/* proj gallery */
.proj-gallery { padding-top: clamp(70px, 10vh, 130px); }
.pj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
}
.pj { position: relative; overflow: hidden; }
.pj img, .pj video {
  width: 100%;
  height: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.19, 1, .22, 1);
}
.pj--wide { grid-column: span 2; }
.pj--wide img, .pj--wide video { aspect-ratio: 2.1; }
.pj:hover img, .pj:hover video { transform: scale(1.045); }
.pj figcaption {
  position: absolute;
  left: 18px; right: 18px; bottom: 16px;
  color: var(--cream);
  text-shadow: 0 1px 10px rgba(0,0,0,.65);
  z-index: 2;
}
.pj::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20,20,20,.5) 0%, rgba(20,20,20,0) 40%);
}
.pj-note { margin-top: 20px; color: var(--grey); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--ink); color: var(--cream); }
.btn--solid:hover { background: var(--orange); color: var(--ink); }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--orange:hover { background: var(--cream); }
.btn--ghost { background: transparent; color: var(--cream); border-color: var(--line-light); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn--ghost-dark { background: transparent; color: var(--ink); border-color: var(--line-dark); }
.btn--ghost-dark:hover { border-color: var(--ink); }
.hero .btn--solid { background: var(--orange); color: var(--ink); }
.hero .btn--solid:hover { background: var(--cream); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.nav-cta { color: var(--orange); }

/* ---------- onboarding ---------- */

.onb-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(44px, 8vh, 90px);
}
.onb-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 28px);
}
.onb-card {
  border: 1px solid var(--line-dark);
  background: var(--paper);
  padding: clamp(26px, 3.4vw, 52px);
  display: grid;
  gap: clamp(18px, 2.6vh, 30px);
  align-content: start;
  transition: transform .4s cubic-bezier(.19, 1, .22, 1), box-shadow .4s;
}
.onb-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(30,30,30,.14); }
.onb-card--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.onb-card-top { display: flex; justify-content: space-between; }
.onb-card h3 { font-size: clamp(30px, 3.4vw, 52px); line-height: .95; }
.onb-list { list-style: none; display: grid; gap: 10px; }
.onb-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  opacity: .75;
}
.onb-list li::before {
  content: "(&)";
  position: absolute;
  left: 0; top: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--orange);
}
.onb-card .btn { justify-self: start; }

/* ---------- wizard ---------- */

.wizard {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.wizard.open { opacity: 1; pointer-events: auto; }
.wizard-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, .82);
  backdrop-filter: blur(6px);
}
.wizard-card {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--cream);
  color: var(--ink);
  padding: clamp(22px, 3.4vw, 44px);
  transform: translateY(30px) scale(.98);
  transition: transform .45s cubic-bezier(.19, 1, .22, 1);
}
.wizard.open .wizard-card { transform: none; }
.wizard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: rgba(30,30,30,.6);
}
.wizard-top #wiz-profile-label { color: var(--orange); }
.wizard-close { letter-spacing: .12em; opacity: .7; }
.wizard-close:hover { opacity: 1; color: var(--orange); }
.wizard-bar {
  height: 2px;
  background: rgba(30,30,30,.12);
  margin: 16px 0 26px;
}
.wizard-bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--orange);
  transition: width .5s cubic-bezier(.19, 1, .22, 1);
}
.wizard-body { min-height: 280px; }
.wiz-step { animation: wizin .45s cubic-bezier(.19, 1, .22, 1); }
@keyframes wizin {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.wiz-q {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1;
  margin-bottom: 6px;
}
.wiz-sub { font-size: 14px; color: rgba(30,30,30,.6); margin-bottom: 22px; max-width: 52ch; }
.wiz-choices { display: grid; gap: 10px; }
.wiz-choice {
  text-align: left;
  border: 1px solid var(--line-dark);
  background: transparent;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  transition: border-color .25s, background .25s, padding-left .25s;
}
.wiz-choice:hover { border-color: var(--ink); padding-left: 24px; }
.wiz-choice.sel { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.wiz-choice.sel::after { content: "( ✓ )"; font-family: var(--font-mono); font-size: 11px; color: var(--orange); }
.wiz-choice .wc-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--orange); }

.wiz-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  margin-bottom: 18px;
}
.wiz-stat { background: var(--cream); padding: 16px 18px; display: grid; gap: 4px; }
.wiz-stat b {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1;
}
.wiz-stat.hi { background: var(--orange); }
.wiz-stat span { font-size: 12px; opacity: .65; }
.wiz-stat .mono { font-size: 9.5px; color: var(--orange); opacity: 1; }
.wiz-stat.hi .mono { color: var(--ink); }
.wiz-note { font-size: 13px; color: rgba(30,30,30,.6); border-left: 2px solid var(--orange); padding-left: 14px; }

.wiz-form { display: grid; gap: 12px; }
.wiz-form label { display: grid; gap: 6px; }
.wiz-form .mono { color: rgba(30,30,30,.55); }
.wiz-form input {
  font: 15px/1.4 var(--font-sans);
  padding: 14px 16px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color .25s;
}
.wiz-form input:focus { border-color: var(--orange); }

.wiz-success { text-align: center; padding: 30px 0 10px; }
.wiz-success .ws-paren {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 110px);
  color: var(--orange);
  line-height: 1;
  margin-bottom: 18px;
}
.wiz-success h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, 3vw, 40px);
  margin-bottom: 12px;
}
.wiz-success p { font-size: 14.5px; color: rgba(30,30,30,.65); max-width: 40ch; margin: 0 auto; }

.wizard-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
#wiz-back[disabled] { opacity: .3; pointer-events: none; }
#wiz-next[disabled] { opacity: .3; pointer-events: none; }

/* ---------- statement ---------- */

.statement {
  position: relative;
  background: var(--orange);
  color: var(--ink);
  overflow: hidden;
  text-align: center;
  padding: clamp(110px, 18vh, 220px) var(--gutter);
}
.st-bg {
  position: absolute;
  inset: 0;
}
.st-bg img, .st-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: .55;
}
.st-kicker { position: relative; margin-bottom: 40px; color: rgba(30,30,30,.75); }
.st-big {
  position: relative;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(40px, 7.4vw, 130px);
  line-height: .95;
}
.st-big .par { color: var(--cream); }
.st-copy {
  position: relative;
  margin: 44px auto 0;
  max-width: 40ch;
  font-size: clamp(16px, 1.7vw, 22px);
  line-height: 1.5;
  font-weight: 500;
}

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  padding: clamp(90px, 14vh, 160px) var(--gutter) 0;
  overflow: hidden;
}
.footer-cta {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 90px);
  align-items: start;
  padding-bottom: clamp(60px, 10vh, 120px);
  border-bottom: 1px solid var(--line-light);
}
.footer-cta .lead { margin-top: 26px; }
.footer-links { display: grid; border-top: 1px solid var(--line-light); }
.footer-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-light);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper);
  transition: padding-left .35s cubic-bezier(.19, 1, .22, 1), color .3s;
}
.footer-link:hover { padding-left: 16px; color: var(--orange); }
.footer-link .fl-arrow { color: var(--orange); }

.footer-word { padding: clamp(50px, 9vh, 110px) 0 0; }
.footer-word svg { width: 100%; height: auto; }

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 28px;
  margin-top: clamp(30px, 5vh, 60px);
  border-top: 1px solid var(--line-light);
  color: var(--grey);
}

/* ---------- animated media (scroll) ---------- */

.fig {
  position: relative;
  overflow: hidden;
}
.fig > img, .fig > video {
  transform: scale(1.35);
  filter: saturate(.1) brightness(.7) blur(10px);
  transition: filter .9s ease .12s;
  will-change: transform, filter;
}
.fig.fig-in > img, .fig.fig-in > video { filter: none; }
.fig-curtain {
  position: absolute;
  inset: -1px;
  background: var(--orange);
  transform: scaleY(1);
  transform-origin: 50% 0;
  transition: transform .7s cubic-bezier(.76, 0, .24, 1) .08s;
  z-index: 3;
  pointer-events: none;
}
.fig-curtain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleY(1);
  transform-origin: 50% 0;
  transition: transform .55s cubic-bezier(.76, 0, .24, 1);
}
.fig.fig-in .fig-curtain { transform: scaleY(0); }
.fig.fig-in .fig-curtain::after { transform: scaleY(0); }
.fig figcaption { z-index: 4; }

/* respiração perpétua pós-reveal */
.fig-float { animation: figfloat 6s ease-in-out infinite alternate; }
.fig-float:nth-child(odd) { animation-duration: 7.4s; animation-delay: .8s; }
.fig-float:nth-child(3n) { animation-duration: 8.6s; animation-delay: 1.6s; }
@keyframes figfloat {
  from { transform: translateY(0); }
  to { transform: translateY(-9px); }
}

/* ---------- filmstrip ---------- */

.strip {
  background: var(--ink);
  padding: clamp(50px, 8vh, 100px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.strip-tag {
  padding: 0 var(--gutter);
  margin-bottom: 26px;
  color: var(--grey);
}
.strip-row {
  overflow: hidden;
  margin-bottom: clamp(12px, 2vh, 22px);
}
.strip-track {
  display: flex;
  gap: clamp(12px, 1.6vw, 22px);
  width: max-content;
  will-change: transform;
  padding-right: clamp(12px, 1.6vw, 22px);
}
.strip-track img {
  height: clamp(120px, 20vh, 210px);
  width: auto;
  flex: none;
  filter: grayscale(1) brightness(.72) contrast(1.1);
  transition: filter .45s ease, transform .45s ease;
}
.strip-track img:hover {
  filter: none;
  transform: scale(1.05);
}

/* ---------- hero media cycle + glitch ---------- */

.hero-media {
  position: absolute;
  inset: -8% 0;
  pointer-events: none;
  overflow: hidden;
}
.hm-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 32%;
  opacity: 0;
  transition: opacity .5s ease;
}
.hm-layer.is-active { opacity: .58; }
.hm-layer.is-glitching {
  animation: hm-glitch .62s steps(2, jump-none) both;
}
@keyframes hm-glitch {
  0%   { clip-path: inset(0 0 82% 0); transform: translate(-14px, 0) scale(1.02); filter: hue-rotate(18deg) saturate(2.4) contrast(1.4); }
  18%  { clip-path: inset(34% 0 38% 0); transform: translate(10px, -6px) scale(1.02); }
  36%  { clip-path: inset(68% 0 6% 0); transform: translate(-8px, 4px) scale(1.03); filter: hue-rotate(-14deg) saturate(2) contrast(1.3); }
  54%  { clip-path: inset(10% 0 64% 0); transform: translate(12px, 2px) scale(1.01); }
  72%  { clip-path: inset(46% 0 18% 0); transform: translate(-6px, -3px) scale(1.02); filter: saturate(1.6); }
  100% { clip-path: inset(0); transform: none; filter: none; }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(30,30,30,.96) 0%, rgba(30,30,30,.72) 45%, rgba(30,30,30,.25) 100%),
    linear-gradient(0deg, rgba(30,30,30,.95) 0%, rgba(30,30,30,.15) 45%);
}
.hero-scanflash {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(230, 60, 16, .14) 0 2px,
    transparent 2px 6px
  );
  mix-blend-mode: screen;
}
.hero-scanflash.burst { animation: scanburst .55s steps(3) both; }
@keyframes scanburst {
  0% { opacity: .9; transform: translateY(-6px); }
  60% { opacity: .35; transform: translateY(4px); }
  100% { opacity: 0; transform: none; }
}
.hm-layer.is-micro { animation: hm-micro .16s steps(2) both; }
@keyframes hm-micro {
  0% { transform: translateX(-7px); clip-path: inset(10% 0 66% 0); filter: saturate(2); }
  50% { transform: translateX(6px); clip-path: inset(56% 0 8% 0); }
  100% { transform: none; clip-path: inset(0); filter: none; }
}
.hero .btn--solid {
  position: relative;
}
.hero .btn--solid::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--orange);
  animation: cta-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes cta-pulse {
  0% { opacity: .9; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.18, 1.65); }
}
.hero-media-tag {
  position: absolute;
  top: calc(var(--header-h) + 54px);
  right: var(--gutter);
  z-index: 3;
  color: var(--grey);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-media-tag .rec {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: rec-blink 1.6s ease-in-out infinite;
}
@keyframes rec-blink { 50% { opacity: .15; } }

/* statement: dirigido pelo engine de fotos vivas (js) */
.st-bg img, .st-bg video { will-change: transform; }

/* ---------- cursor ---------- */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 4000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--orange); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(230, 60, 16, .5);
  transition: width .3s, height .3s, background .3s;
}
.cursor-ring.hovering {
  width: 64px; height: 64px;
  background: rgba(230, 60, 16, .12);
}
@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .num-grid { grid-template-columns: repeat(2, 1fr); }
  .inv-head { grid-template-columns: 1fr; }
  .inv-compare { grid-template-columns: 1fr; }
  .pil-gallery { grid-template-columns: repeat(2, 1fr); }
  .pj-grid { grid-template-columns: 1fr 1fr; }
  .pj--wide { grid-column: span 2; }
  .onb-head { grid-template-columns: 1fr; }
  .onb-cards { grid-template-columns: 1fr; }
  .footer-cta { grid-template-columns: 1fr; }
  .header-tag { display: none; }
  /* manifesto mobile: constelação completa, redimensionada para viewport estreito */
  .manifesto-sticky .manifesto-img { right: 4%; top: 6%; width: clamp(104px, 30vw, 190px); }
  .msc { width: clamp(90px, 26vw, 170px); }
  .msc figcaption { font-size: 9px; letter-spacing: .02em; left: 8px; bottom: 8px; }
  .msc-1 { top: 3%; left: 4%; }
  .msc-6 { top: 5%; left: 40%; width: clamp(84px, 24vw, 150px); }
  .msc-3 { top: 36%; left: auto; right: 3%; width: clamp(84px, 24vw, 160px); }
  .msc-5 { top: 54%; left: -1%; width: clamp(88px, 25vw, 165px); }
  .msc-5 figcaption { left: 12px; }
  .msc-2 { top: 79%; left: 6%; width: clamp(100px, 31vw, 190px); }
  .msc-4 { top: 80%; left: 56%; width: clamp(96px, 28vw, 175px); }
  .vol-meta { display: none; }
}

@media (max-width: 640px) {
  .header-nav a:not(:last-child) { display: none; }
  .manifesto-foot { font-size: 11px; }
  .manifesto-foot span:last-child { display: none; }
  .num-grid { grid-template-columns: 1fr; }
  .pil-gallery { grid-template-columns: 1fr; }
  .pg:nth-child(2), .pg:nth-child(4) { margin-top: 0; }
  .pj-grid { grid-template-columns: 1fr; }
  .pj--wide { grid-column: span 1; }
  .pj--wide img, .pj--wide video { aspect-ratio: 1.35; }
  .hero-top { display: none; }
  .hero-tagline { letter-spacing: .18em; }
  .vl-2 { top: 22%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
