@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../assets/fonts/dm-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #e8e7e2;
  --ink: #0a0a0b;
  --tile: #f7f6f2;
  --room: #0b0b0c;
  --mute: #5e5d59;
  --mark: #5a3df0;
  --gut: clamp(16px, 3.2vw, 48px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, Consolas, monospace;
  --per: 42svh;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
html.locked { overflow: hidden; }
body {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.15rem)/1.5 var(--display);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, p, ul, dl, dd, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.label, .nav nav a, .now-n, .now-go, .hero-cue, .p-bar, .path dt, .contact-list span, .foot p, .fact dt, .tile-cap {
  font-family: var(--mono);
  font-size: .75rem;
  line-height: 1.3;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Marcador do que ainda precisa ser preenchido */
.ph {
  display: inline-block;
  background: none;
  color: var(--mark);
  border: 1px dashed currentColor;
  padding: .1em .45em;
  font-family: var(--mono);
  font-size: .85em;
  line-height: 1.35;
}

/* ---------- Palco 3D ---------- */
#gl {
  position: fixed;
  inset: 0 0 auto 0;
  width: 100%;
  height: 100lvh;
  display: block;
}
.scrim {
  position: fixed;
  inset: auto 0 0 0;
  height: 46svh;
  background: linear-gradient(to top, rgba(11,11,12,.92), rgba(11,11,12,.6) 45%, rgba(11,11,12,0));
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s linear;
}
.scrim.on { opacity: 1; }

main { position: relative; pointer-events: none; }
main a, main .sheet { pointer-events: auto; }

/* ---------- Navegação ---------- */
.nav {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--gut);
  pointer-events: none;
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 132px;
  background: linear-gradient(to bottom, rgba(11,11,12,.86), rgba(11,11,12,0));
  opacity: 0;
  transition: opacity .25s linear;
  z-index: -1;
}
.nav[data-tone="paper"]::before { opacity: 1; }
/* Sobre a folha (Destaques, Sobre...), o menu ganha fundo sólido com uma linha embaixo */
.nav[data-solid="paper"]::before, .nav[data-solid="ink"]::before { opacity: 1; height: 100%; border-bottom: 1px solid currentColor; }
.nav[data-solid="paper"]::before { background: var(--paper); color: var(--ink); }
.nav[data-solid="ink"]::before { background: var(--ink); color: #3a3a38; }
.nav[data-solid] { padding-top: calc(var(--gut) * .6); padding-bottom: calc(var(--gut) * .6); transition: padding .25s ease; }
.nav[data-solid=""] { padding: var(--gut); }
.nav a { pointer-events: auto; text-decoration: none; }
.nav-mark {
  display: block;
  padding: 10px;
  margin: -10px;
  color: #000;
  transition: opacity .25s linear, transform .25s ease, color .25s linear;
  opacity: 0;
  transform: scale(.8);
  visibility: hidden;
}
.nav.show-mark .nav-mark { opacity: 1; transform: none; visibility: visible; }
.nav-mark svg { display: block; width: 48px; height: 32px; fill: currentColor; } /* 2px por célula: pixel nítido */
.nav[data-tone="paper"] .nav-mark { color: var(--tile); } /* preto sumiria na sala escura */
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 32px); margin: -12px; padding: 0; }
.nav nav a { padding: 16px 12px; transition: color .25s linear; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav[data-tone="ink"] nav a { color: var(--ink); }
.nav[data-tone="paper"] nav a { color: var(--tile); }

/* ---------- Abertura ---------- */
.hero {
  position: relative;
  height: 100svh;
  padding: var(--gut);
  padding-bottom: calc(var(--gut) + var(--safe-b));
  display: grid;
  grid-template-rows: 1fr auto;
}
.hero-eye {
  --eye: clamp(150px, 26vmin, 320px);
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--eye);
  aspect-ratio: 3 / 2;
  margin: calc(var(--eye) / -3) 0 0 calc(var(--eye) / -2);
  will-change: transform, opacity;
}
.hero-eye svg { width: 100%; height: 100%; fill: #000; display: block; }
@media (max-height: 520px) { .hero-eye { display: none; } }
.hero-foot {
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr minmax(0, 19rem);
  align-items: end;
  column-gap: var(--gut);
  will-change: opacity;
}
h1 {
  font-size: clamp(4.2rem, 17.4vw, 22rem);
  line-height: .78;
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -.012em;
  grid-column: 1 / -1;
  margin-bottom: clamp(14px, 2vw, 26px);
}
.hero-foot .hero-tag { grid-column: 1 / -1; color: var(--ink); margin-bottom: 14px; max-width: none; font-weight: 400; }
.hero-foot p { grid-column: 1; max-width: 30rem; line-height: 1.3; font-weight: 500; }
.hero-cue { grid-column: 2; justify-self: end; }
@media (max-width: 640px) {
  h1 { font-size: 22.6vw; }
  .hero-foot { grid-template-columns: 1fr; row-gap: 10px; }
  .hero-cue { grid-column: 1; justify-self: start; }
}

/* ---------- Espiral ---------- */
.works { height: calc(var(--per) * var(--n1, 23) + 120svh); }

.now {
  position: fixed;
  z-index: 5;
  left: var(--gut);
  right: var(--gut);
  bottom: calc(var(--gut) + var(--safe-b));
  color: var(--tile);
  text-decoration: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 20px;
  transition: opacity .2s linear;
}
.now[hidden] { display: none; }
.now.off { opacity: 0; pointer-events: none; }
.now-n { grid-column: 1 / -1; }
.now-t {
  font-size: clamp(3rem, 9.4vw, 9rem);
  line-height: .86;
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  min-width: 0;
  text-wrap: balance;
}
.now-t.swap { animation: swap .34s cubic-bezier(.2,.7,.2,1); }
@keyframes swap { from { transform: translateY(.1em); opacity: .55; } to { transform: none; opacity: 1; } }
/* Índice numerado fixo (ao lado da espiral) */
.windex {
  position: fixed;
  z-index: 5;
  left: var(--gut);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: .72rem;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--tile);
  text-shadow: 0 0 8px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.9);
  transition: opacity .2s linear;
}
.windex.off { opacity: 0; pointer-events: none; }
.windex-h { margin-bottom: 10px; }
.windex ol { list-style: none; margin: 0; padding: 0; }
.windex a { display: block; padding: 3px 0 3px 14px; text-decoration: none; opacity: .5; position: relative; transition: opacity .15s linear; }
.windex a:hover, .windex a:focus-visible { opacity: .9; }
.windex a.on { opacity: 1; }
.windex a.on::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; background: currentColor; }
@media (max-width: 899px), (max-height: 560px) { .windex { display: none; } }
html.static .windex { display: none; }

/* Rótulos em tom de terminal */
.label::before, .windex-h::before { content: ""; }
.label::before { content: "// "; }
.fact dt::before { content: "["; }
.fact dt::after { content: "]"; }
.now-go::before, .hero-cue::before, .hero-motion::before { content: "> "; }
#indexList sup { font-family: var(--mono); font-size: .22em; font-weight: 400; vertical-align: top; position: relative; top: .5em; margin-right: .35em; letter-spacing: 0; color: var(--mute); }
#indexList a:hover sup, #indexList a:focus-visible sup { color: inherit; }

.now-go { padding: 8px 0 .5em; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- Folha clara ---------- */
.sheet {
  position: relative;
  z-index: 6;
  background: var(--paper);
}
.sheet section { padding: clamp(72px, 10vw, 160px) var(--gut); }
.about { padding-top: clamp(96px, 12vw, 180px) !important; }
.label { margin-bottom: 20px; color: var(--mute); }

blockquote p {
  font-size: clamp(2.7rem, 7.7vw, 8.4rem);
  line-height: .92;
  font-weight: 700;
  font-stretch: 62%;
  text-transform: uppercase;
  letter-spacing: -.005em;
  max-width: 19ch;
  text-wrap: balance;
}
.about-body {
  margin: clamp(40px, 6vw, 88px) 0 clamp(56px, 8vw, 120px) auto;
  max-width: 38rem;
  font-size: clamp(1.15rem, 1.05rem + .55vw, 1.6rem);
  line-height: 1.32;
}
.about-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.path > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
}
.path dt { padding-top: .28em; }
.process { font-size: clamp(1.15rem, 1.05rem + .55vw, 1.6rem); line-height: 1.32; max-width: 34rem; }
@media (max-width: 760px) { .about-cols { grid-template-columns: 1fr; } }
.about-cols.kit { margin-top: clamp(56px, 8vw, 120px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-family: var(--mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  border: 1px solid var(--ink);
  padding: 6px 10px 5px;
  line-height: 1.2;
}

#indexList {
  font-size: clamp(2.5rem, 8.3vw, 9rem);
  line-height: 1.02;
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
}
#indexList li { display: inline; }
#indexList a { text-decoration: none; padding: .02em .06em; margin: 0 -.06em; }
#indexList a:hover, #indexList a:focus-visible { background: var(--ink); color: var(--paper); }
#indexList li:not(:last-child)::after { content: " / "; font-weight: 300; color: var(--mute); }

/* Free VJ loops: bloco em negativo, para chamar atenção entre o índice e o contato */
.sheet .loops {
  background: var(--ink);
  color: var(--paper);
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  justify-items: start;
}
.loops .label { color: #a3a29c; margin: 0; }
.loops h2 {
  font-size: clamp(2.8rem, 9vw, 10rem);
  line-height: .88;
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  max-width: 14ch;
}
.loops-txt { max-width: 36rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); line-height: 1.35; }
.loops-go {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: .9rem;
  letter-spacing: .02em;
  text-decoration: none;
  background: var(--paper);
  color: var(--ink);
  padding: 16px 22px 15px;
  transition: background .2s, color .2s;
}
.loops-go::before { content: "> "; }
.loops-go::after { content: " ↗"; }
.loops-go:hover, .loops-go:focus-visible { background: var(--mark); color: #fff; }
.loops .ph { color: #a99bff; }
.nav nav a.nav-loops::before { content: "↓ "; }
.nav nav a { white-space: nowrap; }
.nav nav { align-items: center; }

/* Seletor de idioma PT / EN / ES */
.lang { display: inline-flex; pointer-events: auto; margin-left: 6px; border: 1px solid currentColor; }
.nav[data-tone="ink"] .lang { color: var(--ink); }
.nav[data-tone="paper"] .lang { color: var(--tile); }
.lang button {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .02em;
  padding: 7px 8px 6px; min-width: 32px; line-height: 1;
  transition: background .2s, color .2s;
}
.nav[data-tone="ink"] .lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.nav[data-tone="paper"] .lang button[aria-pressed="true"] { background: var(--tile); color: var(--ink); }
.lang button:hover:not([aria-pressed="true"]) { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .nav nav a.nav-about, .nav nav a.nav-services { display: none; }
}
@media (max-width: 560px) {
  .nav nav { gap: 2px; }
  .nav nav a { padding: 16px 7px; }
  .nav nav a.nav-works { display: none; }   /* no celular, os trabalhos começam logo ao rolar */
  .nav nav a.nav-loops::before { content: none; }
  .lang button { min-width: 28px; padding: 7px 6px 6px; }
}

/* ---------- Já trabalhei com ---------- */
.sheet .clients { padding-left: 0; padding-right: 0; overflow: hidden; }
.clients > .label, .client-cols { padding: 0 var(--gut); }
.marquee {
  display: flex; overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--ink);
  font-size: clamp(2.6rem, 8vw, 8.5rem); line-height: 1.05; font-weight: 800; font-stretch: 62%; text-transform: uppercase;
  padding: .08em 0 .02em;
}
.marquee.rev { border-bottom: 1px solid var(--ink); }
.clients > .mq-label { border-top: 1px solid var(--ink); padding-top: 14px; padding-bottom: 2px; }
.mq-label + .marquee { border-top: 0; }
.mq-track { display: flex; flex: none; animation: mq 60s linear infinite; }
.marquee.rev .mq-track { animation-direction: reverse; animation-duration: 75s; }
/* nomes alternam entre preenchido e vazado; o asterisco é sempre preto */
.mq-track span { padding: 0 .35em; color: var(--ink); }
.mq-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee.rev .mq-track span { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.marquee.rev .mq-track span:nth-child(even) { color: var(--ink); -webkit-text-stroke: 0; }
.mq-track span::after { content: "✳"; font-size: .45em; vertical-align: .55em; margin-left: .7em; -webkit-text-stroke: 0; color: var(--ink); }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
html.static .mq-track { animation: none; }
html.static .marquee { flex-wrap: wrap; white-space: normal; }
html.static .mq-track span:nth-child(n + 99) { display: none; }
.client-cols {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 6vw, 80px);
}
.client-list { font-size: clamp(1.1rem, 1rem + .5vw, 1.45rem); line-height: 1.2; columns: 2; column-gap: 24px; }
.client-list li { padding: 10px 0; border-top: 1px solid var(--ink); break-inside: avoid; }
@media (max-width: 1100px) { .client-list { columns: 1; } }
@media (max-width: 760px) { .client-cols { grid-template-columns: 1fr; } .client-list { columns: 2; } }

/* ---------- Destaques ---------- */
.feat-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(20px, 3vw, 40px); }
.feat-head h2, .feat-n {
  font-size: clamp(3.4rem, 12vw, 13rem); line-height: .82; font-weight: 800; font-stretch: 62%; text-transform: uppercase;
}
.feat-n { font-weight: 300; }
.feat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.feat-grid li:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.feat-grid li:nth-child(6) { grid-column: span 2; }
.feat-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.feat-media { position: relative; display: block; flex: 1; min-height: 0; aspect-ratio: 4 / 3; background: var(--room); overflow: hidden; }
.feat-grid li:nth-child(1) .feat-media, .feat-grid li:nth-child(6) .feat-media { aspect-ratio: auto; }
.feat-media video, .feat-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s;
  filter: grayscale(.35) contrast(1.05);
}
.feat-card:hover .feat-media video, .feat-card:hover .feat-media img,
.feat-card:focus-visible .feat-media video, .feat-card:focus-visible .feat-media img { transform: scale(1.04); filter: none; }
.feat-cap {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0 4px; border-top: 1px solid var(--ink); margin-top: 8px;
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .02em;
}
.feat-cap strong { font-weight: 400; color: var(--ink); }
.feat-cap span { color: var(--mute); grid-column: 1; }
.feat-cap .feat-n2 { grid-column: 2; grid-row: 1; color: var(--ink); }
.feat-card:hover .feat-cap strong::before { content: "> "; }
.feat-all { margin-top: clamp(24px, 3vw, 40px); }
.feat-all a { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; text-underline-offset: 4px; }
.feat-all a::after { content: " ↓"; }
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-grid li:nth-child(6) { grid-column: auto; grid-row: auto; }
  .feat-grid li:nth-child(6) .feat-media { aspect-ratio: 4 / 3; }
  .feat-grid li:nth-child(1) .feat-media { aspect-ratio: 16 / 10; }
}

/* ---------- Serviços ---------- */
.services { border-top: 1px solid var(--ink); }
.services h2 {
  font-size: clamp(2.8rem, 9vw, 10rem); line-height: .88; font-weight: 800; font-stretch: 62%; text-transform: uppercase; max-width: 15ch;
}
.srv-intro { max-width: 38rem; margin: clamp(28px, 4vw, 56px) 0 clamp(40px, 6vw, 80px) auto; font-size: clamp(1.15rem, 1.05rem + .55vw, 1.6rem); line-height: 1.32; }
.srv-list { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.srv-list li {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 12px 24px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--ink);
}
.srv-list li:last-child { border-bottom: 1px solid var(--ink); }
.srv-n { font-family: var(--mono); font-size: .75rem; color: var(--mute); }
.srv-list h3 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.4rem); line-height: 1; font-weight: 800; font-stretch: 62%; text-transform: uppercase; }
.srv-list p { margin: 0; color: #2e2d2a; }
.srv-go {
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
  text-decoration: none; border: 1px solid var(--ink); padding: 9px 12px 8px; transition: background .2s, color .2s;
}
.srv-go::after { content: " →"; }
.srv-go:hover, .srv-go:focus-visible { background: var(--ink); color: var(--paper); }
@media (max-width: 900px) {
  .srv-list li { grid-template-columns: 3rem minmax(0, 1fr); }
  .srv-list p, .srv-go { grid-column: 2; justify-self: start; }
}
.brief { margin-top: clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; }
.brief ul { columns: 2; column-gap: 32px; }
.brief li { break-inside: avoid; padding: 8px 0 8px 1.6em; border-top: 1px solid var(--ink); position: relative; }
.brief li::before { content: "[ ]"; position: absolute; left: 0; top: 10px; font-family: var(--mono); font-size: .72rem; color: var(--mute); }
@media (max-width: 760px) { .brief { grid-template-columns: 1fr; } .brief ul { columns: 1; } }

.contact-list small { font-family: var(--mono); font-size: .75rem; text-transform: uppercase; color: var(--mute); }

.contact { border-top: 1px solid var(--ink); }
.contact h2 {
  font-size: clamp(3.6rem, 13vw, 15rem);
  line-height: .86;
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.contact-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--ink);
  font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem);
}
.contact-list .ph { justify-self: start; }
.contact-list a {
  justify-self: start;
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .25s ease;
  padding: 4px 0;
}
.contact-list a:hover, .contact-list a:focus-visible { background-size: 100% 2px; }
.contact-list a::after { content: " ↗"; color: var(--mute); }

.foot { padding: 0 var(--gut) calc(var(--gut) + var(--safe-b)); }
.foot svg { display: block; width: 100%; aspect-ratio: 3 / 2; max-height: 72vh; fill: #000; }
.foot p { margin-top: 16px; }

/* ---------- Página do projeto ---------- */
.project {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: var(--room);
  color: var(--tile);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: opacity .3s linear;
  --mute: #9b9a95;
  --mark: #a897ff;
}
.project.in { opacity: 1; }
.project[hidden] { display: none; }
.project:focus { outline: none; }
.p-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px var(--gut);
  background: var(--room);
}
.p-bar button { padding: 14px 14px 14px 0; text-transform: inherit; letter-spacing: inherit; font: inherit; }
.p-bar button::before { content: "← "; }
.p-bar button:hover { text-decoration: underline; text-underline-offset: 3px; }

.p-head { padding: clamp(36px, 7vw, 110px) var(--gut) clamp(32px, 5vw, 72px); }
.p-head h2 {
  font-size: clamp(3.4rem, 13.5vw, 17rem);
  line-height: .84;
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  text-wrap: balance;
}
.p-meta {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px var(--gut);
  margin-top: clamp(32px, 5vw, 72px);
}
.facts { grid-column: span 5; display: grid; }
.fact { display: grid; grid-template-columns: 6rem 1fr; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #3a3a3a; }
.fact dd .ph { font-size: .8rem; }
.p-text { grid-column: 7 / -1; font-size: clamp(1.15rem, 1.05rem + .55vw, 1.6rem); line-height: 1.32; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 16px);
  padding: 0 var(--gut);
}
.tile { position: relative; margin: 0; background: #181818; overflow: hidden; }
.tile canvas, .tile img, .tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; background: var(--tile); }
.tile-play::after { content: ""; position: absolute; left: 25px; top: 18px; border-left: 20px solid #000; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.tile-cap { position: absolute; right: 10px; bottom: 10px; background: #000; color: #fff; padding: 4px 6px; }
.t-a { grid-column: span 12; aspect-ratio: 16 / 9; }
.t-b { grid-column: span 7; aspect-ratio: 1; }
.t-c { grid-column: span 5; aspect-ratio: 7 / 7; align-self: end; }
.t-d { grid-column: 3 / span 8; aspect-ratio: 16 / 9; }
.t-e { grid-column: span 4; aspect-ratio: 4 / 5; }
.t-f { grid-column: span 8; aspect-ratio: 8 / 5; }
@media (max-width: 640px) {
  .facts, .p-text { grid-column: 1 / -1; }
  .t-b, .t-c, .t-d { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .t-a { aspect-ratio: 16 / 10; }
  .t-e { grid-column: span 5; aspect-ratio: 4 / 6; }
  .t-f { grid-column: span 7; aspect-ratio: auto; }
  .tile-play { width: 48px; height: 48px; margin: -24px; }
  .tile-play::after { left: 18px; top: 12px; border-left-width: 16px; border-top-width: 12px; border-bottom-width: 12px; }
}
.p-text p + p { margin-top: .8em; }
.p-lead { font-weight: 700; }
.p-link { text-decoration: underline; text-underline-offset: 4px; }
.p-link:hover { color: #fff; }

/* Galeria com material real: linhas justificadas, cada peça na proporção original */
.gallery.real {
  --row: clamp(170px, 24vw, 420px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
}
.gallery.real .tile {
  flex: var(--r) 1 calc(var(--r) * var(--row));
  max-width: calc(var(--r) * var(--row) * 1.45);   /* peça sozinha na linha não estica até virar gigante */
  aspect-ratio: var(--r);
  min-width: 0;
}
.gallery.real .m-lead { flex-basis: 100%; max-width: none; }
.gallery.real .g-fill { flex: 999 1 0; height: 0; }
.gallery.real video.v-loop { cursor: pointer; }
.tile .yt { display: block; position: absolute; inset: 0; }
.tile .yt img { opacity: .85; transition: opacity .2s linear; }
.tile .yt:hover img, .tile .yt:focus-visible img { opacity: 1; }
.tile iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
  .gallery.real .tile { flex-basis: 100%; max-width: none; }
  .gallery.real .g-fill { display: none; }
}

.p-next {
  display: block;
  margin-top: clamp(64px, 9vw, 140px);
  padding: 20px var(--gut) calc(var(--gut) + var(--safe-b));
  background: var(--tile);
  color: var(--ink);
  text-decoration: none;
  --mute: #5e5d59;
}
.p-next .label { margin-bottom: 8px; }
.p-next strong {
  display: block;
  font-size: clamp(3rem, 11vw, 13rem);
  line-height: .86;
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
}

/* ---------- Modo calmo: sem espiral rolando ---------- */
.hero-motion { display: none; }
html.os-calm .hero-motion {
  display: block;
  grid-column: 2;
  justify-self: end;
  pointer-events: auto;
  font-family: var(--mono);
  font-size: .75rem;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 12px 0;
  margin-bottom: -12px;
}
html.os-calm .hero-cue { display: none; }
@media (max-width: 640px) { html.os-calm .hero-motion { grid-column: 1; justify-self: start; } }
html.static #gl { position: absolute; height: 100svh; }
html.static .works, html.static .now, html.static .scrim { display: none; }
html.static .project { transition: none; }
html.static .now-t.swap { animation: none; }
html.static .nav-mark { transition: none; }
