/* =====================================================================
   Rafa Moreno — Home
   Dark, editorial: display condensado gigante, serifa leve, mono nos rótulos.
   Motion: intro com monograma, nav em pílula de vidro, parallax no hero,
   cabeçalho fixo com cards empilhados (sticky deck), reveals e marquee.
   ===================================================================== */

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

:root {
  /* Paleta */
  --crimson-violet:   #5f0f40;
  --deep-crimson:     #9a031e;
  --princeton-orange: #fb8b24;
  --autumn-leaf:      #e36414;
  --dark-teal:        #0f4c5c;

  /* Superfícies: quase preto puxado para o crimson violet */
  --bg:          #0d0a0c;
  --bg-hero:     #0d0a0c;
  --surface:     #170f14;
  --surface-2:   #21151c;
  --border:      #36232e;
  --border-soft: #1f141a;

  /* Texto */
  --text:        #f7ede6;
  --text-muted:  #c2adb5;
  --text-dim:    #8c7480;

  /* Papéis — troque aqui para mudar a cara do site inteiro */
  --primary:       var(--princeton-orange); /* botões, nome, números, links ativos */
  --primary-hover: #ffa456;
  --on-primary:    #2a0716;
  --warm:          var(--autumn-leaf);      /* só interação: hover de títulos e links */
  --title:         var(--text);             /* títulos grandes que não são o destaque principal */
  --band-bg:       var(--crimson-violet);   /* faixa cinética */
  --band-ink:      var(--princeton-orange);
  --curtain:       var(--deep-crimson);     /* cortina entre páginas */

  /* Tipo */
  --sans:    'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --display: 'Boldonse', 'Arial Black', 'Helvetica Neue', Helvetica, sans-serif;
  --stretch: 1; /* esticamento vertical dos títulos; a Boldonse não precisa */
  --serif:   'Newsreader', Georgia, serif;
  --mono:    'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --max:  1320px;
  --gap:  clamp(80px, 12vw, 140px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (não hidden) para não quebrar position: sticky */
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--primary); color: var(--on-primary); }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 32px; }
.section { padding-block: var(--gap); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.chip {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px;
}
.chip--accent { color: var(--text); background: var(--deep-crimson); border-color: var(--deep-crimson); }

/* ── Botões ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 1rem; font-weight: 500;
  padding: 14px 28px; border-radius: 100px;
  border: .5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--deep-crimson); color: var(--text); transform: translateY(-1px); }
.btn--ghost {
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  color: var(--text); border-color: rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }

/* ── Intro ──────────────────────────────────────────────────────── */
html.intro-lock, html.intro-lock body { overflow: hidden; }
html.intro-lock .nav { opacity: 0; pointer-events: none; }

.loadbar {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 100%; height: 3px; pointer-events: none;
  transform: scaleX(0); transform-origin: left center;
  background: var(--primary);
  opacity: 0;
}
html.intro-lock .loadbar { animation: load 1.4s ease forwards; }
@keyframes load {
  0%   { transform: scaleX(0); opacity: 1; }
  80%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ── Nav ────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 200; transition: opacity .5s ease; }
.nav__inner {
  position: relative; max-width: var(--max); margin: 0 auto; padding: 24px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .98rem; letter-spacing: -.01em; }
/* monograma RM: SVG embutido no HTML, na cor do texto */
.nav__mark { display: inline-block; width: 40px; height: 22px; flex: 0 0 auto; color: var(--text); }
.nav__mark, .nav__name { transition: opacity .25s ease, visibility .25s ease; }
/* Na home o hero já mostra o nome grande: logo só aparece depois do hero. */
body.home:not(.show-brand) .nav__mark,
body.home:not(.show-brand) .nav__name { opacity: 0; visibility: hidden; }

.nav__links { display: flex; gap: 30px; align-items: center; }
.nav__links a { font-family: var(--mono); font-size: .92rem; letter-spacing: .02em; color: #fff; transition: color .2s; }
.nav__links a:hover, .nav__links a.active { color: var(--primary); }

@media (min-width: 861px) {
  .nav__links {
    position: absolute; left: 50%; top: 16px; transform: translateX(-50%);
    background: rgba(13, 10, 12, .6);
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px; padding: 14px 32px;
  }
}

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 8px; }
.nav__toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav__toggle span + span { margin-top: 5px; }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__inner { padding: 16px 20px; }
  .nav__toggle { display: block; position: relative; z-index: 2; }
  .nav__links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 22px;
    background: rgba(13, 10, 12, .96);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  }
  .nav__links a { font-family: var(--display); font-size: 1.7rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .01em; }
  .nav.open .nav__links { opacity: 1; visibility: visible; }
  body.home .nav.open .nav__mark, body.home .nav.open .nav__name { opacity: 1; visibility: visible; }
  .nav__logo { position: relative; z-index: 2; }
}

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; text-align: center;
  background: var(--bg);
}
/* grade sutil que desliza devagar */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(#000 60%, transparent 100%);
          mask-image: linear-gradient(#000 60%, transparent 100%);
  opacity: .6;
  animation: grid-pan 10s linear infinite;
}
@keyframes grid-pan { to { background-position: -40px 0; } }

/* Monograma gigante atrás do nome: chega branco, segura, afunda no escuro. */
.hero__mark {
  position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none;
  font-family: var(--display); line-height: .8; letter-spacing: -.02em;
  font-size: min(56vw, 560px);
  color: #1f141a;
  transform: translate(-50%, -50%) translateY(var(--plx-mark, 0px)) scaleY(var(--stretch));
  opacity: var(--plx-fade, 1);
  will-change: transform;
  animation: mark-tone 1.4s ease .1s both;
}
@keyframes mark-tone {
  0%, 30% { color: #ffffff; }
  100%    { color: #1f141a; }
}

.hero__content {
  position: relative; z-index: 3; width: 100%;
  padding: 0 24px 7vh;
  container-type: inline-size;
  transform: translateY(var(--plx-name, 0px));
  will-change: transform;
}
.hero__content.is-intro { animation: content-rise .7s var(--ease) 1.5s both; }
@keyframes content-rise {
  from { opacity: 0; transform: translateY(48px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow { margin-bottom: 8px; color: var(--text-muted); }
.hero__br { display: none; }
.hero__name {
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 8.6vw, 7.6rem); /* fallback */
  font-size: 7.4cqw;
  line-height: 1.25; letter-spacing: -.01em;
  white-space: nowrap;
  margin: 0 0 24px;
  transform: scaleY(var(--stretch)); transform-origin: bottom center;
  color: var(--primary);
}
.hero__lede {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.15rem, 2.3vw, 2rem); line-height: 1.25;
  max-width: 28em; margin: 0 auto 28px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 560px) {
  .hero { align-items: stretch; }
  .hero__content {
    min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
    padding-bottom: 150px;
  }
  .hero__br { display: inline; }
  .hero__name { font-size: 16.5cqw; line-height: 1.3; white-space: normal; margin-top: 0; }
  .hero__mark { top: 42lvh; }
  .hero__actions { position: absolute; left: 20px; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); }
  .hero__actions .btn { flex: 1; justify-content: center; }
}

/* ── Info ───────────────────────────────────────────────────────── */
.info__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 80px; align-items: start; }
.info__text { min-width: 0; }
.info__big {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.3; letter-spacing: -.015em;
  max-width: 22em; margin-bottom: 32px; text-wrap: balance;
}
.info__more { display: flex; flex-direction: column; gap: 16px; max-width: 36em; margin-bottom: 40px; }
.info__more p { font-family: var(--serif); font-weight: 300; font-size: 1.18rem; line-height: 1.6; color: var(--text-muted); }
.info__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 36em; margin-bottom: 40px; }
.info__stat { padding-top: 18px; border-top: 1px solid var(--border); }
.info__stat dt {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.3;
  display: inline-block; transform: scaleY(var(--stretch)); transform-origin: bottom left; margin: 0 0 10px;
  color: var(--primary);
}
.info__stat dd { font-size: .95rem; line-height: 1.5; color: var(--text-muted); }
.info__chips-label { margin-bottom: 12px; }
.info__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.timeline { display: flex; flex-direction: column; gap: 88px; padding-block: 24px; }
.timeline__photo {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface);
}
.timeline__photo.in { transform: none; }

/* Foto como crachá: bloco sólido e contorno atrás (paralaxe com o mouse),
   foto com placa de identificação em mono. Bloco e contorno se mexem com o mouse (home.js). */
.timeline__photo { border: 0; background: none; border-radius: 0; }
.photo-back, .photo-line {
  position: absolute; inset: 0; pointer-events: none; border-radius: 6px;
  transition: transform .6s var(--ease);
}
.photo-back {
  background: var(--crimson-violet);
  transform: translate(calc(18px + var(--mx, 0) * -10px), calc(18px + var(--my, 0) * -10px));
}
.photo-line {
  border: 1.5px solid var(--princeton-orange);
  transform: translate(calc(-14px + var(--mx, 0) * 8px), calc(-14px + var(--my, 0) * 8px));
}
.photo-card {
  position: absolute; inset: 0; margin: 0; z-index: 1;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 6px; background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  transform: none;
  transition: transform .5s var(--ease);
}
.photo-card img { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: cover; object-position: 50% 28%; }
.photo-plate {
  display: grid; gap: 2px; padding: 12px 16px 14px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); background: var(--surface); border-top: 1px solid var(--border);
}
.photo-plate__name { color: var(--primary); font-weight: 500; letter-spacing: .14em; }
.timeline__photo .badge { z-index: 2; }

/* Selo circular girando no canto da foto */
.badge {
  position: absolute; right: -52px; top: -52px; z-index: 2; width: 150px; height: 150px; pointer-events: none; color: var(--primary);
  /* disco sólido atrás do texto: legível sobre qualquer parte da foto */
  background: var(--bg); border: 1px solid var(--border); border-radius: 50%;
}
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge__ring  { animation: spin 28s linear infinite; }
.badge__burst { animation: spin 28s linear infinite reverse; }
.badge__burst line { stroke-width: .6; opacity: .8; }
.badge text { fill: currentColor; font-family: var(--mono); font-size: 6.6px; letter-spacing: .7px; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Trajetória: faixa horizontal abaixo do texto e da foto */
.career {
  list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  margin-top: clamp(72px, 9vw, 120px);
  border-top: 1px solid var(--border);
}
.timeline__group {
  padding: 28px 24px 8px 0;
  opacity: 0; transform: translateY(32px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.timeline__group + .timeline__group { padding-left: 24px; border-left: 1px solid var(--border); }
.timeline__group:nth-child(2) { transition-delay: .07s; }
.timeline__group:nth-child(3) { transition-delay: .14s; }
.timeline__group:nth-child(4) { transition-delay: .21s; }
.timeline__group:nth-child(5) { transition-delay: .28s; }
.timeline__group.visible { opacity: 1; transform: none; }
.timeline__label {
  font-family: var(--display); text-transform: uppercase;
  font-size: 1.15rem; line-height: 1.3; letter-spacing: 0;
  color: var(--title); margin: 0 0 16px;
  display: inline-block; transform: scaleY(var(--stretch)); transform-origin: bottom left;
}
.timeline__item strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.timeline__item em { display: block; font-style: normal; font-size: .88rem; line-height: 1.5; color: var(--text-muted); }

/* Logos das empresas: SVG embutido no HTML (fill = currentColor).
   Todos na mesma altura; acendem em laranja no hover da coluna. */
.co-logo { display: block; height: 30px; width: auto; margin-bottom: 16px; color: var(--text); transition: color .3s ease; }
.timeline__group:hover .co-logo { color: var(--primary); }

@media (max-width: 1080px) {
  .career { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline__group:nth-child(4) { padding-left: 0; border-left: 0; }
  .timeline__group:nth-child(n+4) { border-top: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .info__grid { grid-template-columns: 1fr; gap: 64px; }
  .info__text { position: static; }
  .timeline { max-width: 420px; margin: 0 auto; width: 100%; gap: 56px; }
  .badge { right: 2px; top: -40px; width: 104px; height: 104px; }
  .photo-back { transform: translate(10px, 10px); }
  .photo-line { transform: translate(-8px, -8px); }
  .timeline__photo { width: calc(100% - 20px); margin-inline: auto; }
}
@media (max-width: 640px) {
  .career { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline__group, .timeline__group + .timeline__group { padding: 22px 16px 18px 0; border-left: 0; }
  .timeline__group:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--border); }
  .timeline__group:nth-child(n+3) { border-top: 1px solid var(--border); }
  .timeline__group:nth-child(5) { grid-column: 1 / -1; }
  .timeline__label { font-size: 1rem; }
}

/* ── Cabeçalhos de seção ────────────────────────────────────────── */
.section-head, [data-phead] { text-align: center; }
.display-head {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem); line-height: 1.25; letter-spacing: -.01em;
  display: inline-block; transform: scaleY(var(--stretch)); transform-origin: bottom center;
}
.head-sub {
  font-family: var(--serif); font-weight: 300;
  font-size: 1.2rem; line-height: 1.55; color: var(--text-muted);
  max-width: 34em; margin: 22px auto 0;
}
.section-head { margin-bottom: 56px; }

/* ── Trabalhos: cabeçalho fixo + deck de cards ──────────────────── */
.phead-wrap { position: relative; padding-top: var(--gap); }
.phead { position: sticky; top: 96px; z-index: 1; padding-bottom: clamp(80px, 12vh, 150px); }
.phead [data-phead] { will-change: opacity, transform; }
.phead-body { position: relative; z-index: 2; }

.deck { display: flex; flex-direction: column; }
.card {
  position: sticky; top: var(--stick-top, 96px);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 3.5vw, 52px);
  border-radius: 24px 24px 0 0;
  background: var(--bg); /* opaco: cobre o cabeçalho fixo */
  cursor: pointer;
  transition: transform .25s var(--ease);
  will-change: transform;
}
/* contorno de "pasta" que some em direção à base */
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .16); border-bottom: none;
  border-radius: inherit;
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
          mask-image: linear-gradient(to bottom, #000 35%, transparent 95%);
  transition: border-color .2s;
}
.card:hover::before { border-color: rgba(255, 255, 255, .3); }
.card:hover { transform: translateY(-3px); }
.card:nth-child(odd) .card__media { order: 2; }

.card__media {
  aspect-ratio: 16 / 10; position: relative; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .12);
  background: var(--surface-2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__media--soon {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
}

.card__num { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.card__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(24px, 3.4vw, 50px); line-height: 1.3; letter-spacing: -.01em;
  margin-bottom: 18px;
  /* branco sólido; no hover a cor troca para pêssego de uma vez, como uma cortina subindo */
  color: #fff;
  transition: color .35s ease;
}
.card:hover .card__title { color: var(--warm); }
.card__desc { font-family: var(--serif); font-weight: 300; font-size: 1.2rem; line-height: 1.5; color: #fff; margin-bottom: 20px; max-width: 30em; }
.card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.card--soon { cursor: default; }
.card--soon:hover { transform: none; }

@media (max-width: 860px) {
  .card { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px 32px; }
  .card:nth-child(odd) .card__media { order: 0; }
  .card__desc { font-size: 1.05rem; }
}

/* ── Faixa (marquee) ────────────────────────────────────────────── */
.strip { overflow: hidden; padding-block: 40px 0; }
.strip__track { display: flex; gap: 24px; width: max-content; padding-right: 24px; animation: marquee 60s linear infinite; }
.strip__track img {
  height: 300px; width: auto; border-radius: 10px; border: 1px solid var(--border); object-fit: cover;
}
.strip__track img:nth-child(odd)  { transform: translateY(-20px); }
.strip__track img:nth-child(even) { transform: translateY(20px); height: 260px; }
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 860px) { .strip__track img { height: 200px; } .strip__track img:nth-child(even) { height: 170px; } }

/* ── Contato ────────────────────────────────────────────────────── */
.contact { text-align: center; padding-bottom: clamp(120px, 18vh, 200px); }
.contact__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.3rem, 7.4vw, 6.4rem); line-height: 1.25;
  display: inline-block; transform: scaleY(var(--stretch)); transform-origin: bottom center;
  margin-top: 40px;
  color: var(--primary);
}
.contact__sub { color: #fff; }
.contact__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.contact__socials { display: flex; gap: 28px; justify-content: center; margin-top: 40px; }
.contact__socials a { font-family: var(--mono); font-size: .9rem; color: var(--text-muted); transition: color .2s; }
.contact__socials a:hover { color: var(--primary); }
@media (max-width: 560px) { .contact__actions .btn { width: 100%; justify-content: center; white-space: normal; } }

/* ── Footer ─────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border-soft); padding-block: 32px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer small, .footer__top { font-family: var(--mono); font-size: .82rem; color: var(--text-dim); }
.footer__top:hover { color: var(--text); }

@media (max-width: 560px) { .container { padding-inline: 20px; } }

/* ── Reveal ao rolar ────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }
.timeline__photo[data-reveal].in { transform: none; }

/* ── Movimento reduzido ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .loadbar { display: none; }
  .hero::before, .hero__mark, .hero__content.is-intro, .badge svg, .strip__track { animation: none; }
  .hero__mark { color: #1f141a; }
  [data-reveal], .timeline__group { opacity: 1; transform: none; transition: none; }
  .timeline__photo { transform: none; }
  .phead { position: static; padding-bottom: 56px; }
  .phead [data-phead] { opacity: 1 !important; transform: none !important; }
  .strip { overflow-x: auto; }
}

/* =====================================================================
   MOTION CINÉTICO — anéis de texto, colunas de palavras, parede de capas,
   reveal em fatias. Velocidade dos anéis/colunas reage ao scroll (home.js).
   ===================================================================== */

/* ── Anéis de texto no hero ─────────────────────────────────────── */
.rings {
  position: absolute; left: 50%; top: 50%; z-index: 2; pointer-events: none;
  width: min(118vw, 1080px); height: auto; overflow: visible;
  transform: translate(-50%, -50%) translateY(var(--plx-mark, 0px));
  opacity: var(--plx-fade, 1);
  will-change: transform;
}
.ring__text {
  font-family: var(--mono); font-size: 30px; font-weight: 500; letter-spacing: 0;
  fill: #33202b;
}
.ring__text--big { font-family: var(--display); font-size: 40px; fill: #26161f; }
/* intro: chegam brancos e girando, e afundam no escuro (como o monograma antes) */
.rings .ring { transform-origin: 500px 500px; }
.rings .ring__text { animation: ring-tone 1.5s ease .1s backwards; }
@keyframes ring-tone { 0%, 35% { fill: #ffffff; } }
.rings { animation: rings-in 1.5s var(--ease) backwards; }
@keyframes rings-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-40deg); }
}
@media (max-width: 560px) {
  .rings { width: 150vw; top: 42%; }
}

/* ── Faixa cinética: 3 linhas horizontais em sentidos alternados ───
   Velocidade e sentido seguem o scroll; o texto inclina (skew) com a velocidade.
   O kinetic.js repete o conteúdo até cobrir 2x a largura, depois da fonte carregar. */
.kinetic {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, .8vw, 12px);
  padding-block: clamp(28px, 4vw, 56px);
  background: var(--band-bg); color: var(--band-ink);
}
.kinetic__row { white-space: nowrap; line-height: 0; }
.kinetic__track {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 4.4rem); line-height: 1.3; letter-spacing: -.01em;
  will-change: transform; transform-origin: 50% 50%;
}
.kinetic__row--alt .kinetic__track { color: var(--text); }
.kw { flex: 0 0 auto; }
.kw--outline { color: transparent; -webkit-text-stroke: 1.5px currentColor; }
.kinetic__row .kw--outline { -webkit-text-stroke-color: var(--band-ink); }
.kinetic__row--alt .kw--outline { -webkit-text-stroke-color: var(--text); }
.kw__sep { flex: 0 0 auto; font-family: var(--sans); font-size: .42em; color: var(--text); opacity: .85; }
.kinetic__row--alt .kw__sep { color: var(--band-ink); }
@media (max-width: 860px) {
  .kinetic__track { font-size: clamp(1.6rem, 8.5vw, 2.6rem); }
  .kw--outline { -webkit-text-stroke-width: 1.2px; }
}
@media (prefers-reduced-motion: reduce) {
  .kinetic__row { overflow-x: auto; }
}

/* ── Parede de capas (zoom-out preso à rolagem) ─────────────────── */
.wall { position: relative; height: 260vh; margin-top: clamp(40px, 6vw, 80px); }
.wall__sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
.wall__grid {
  width: 100vw; display: flex; flex-direction: column; gap: 1.2vw;
  transform: scale(var(--wall-scale, 4.6)); transform-origin: 50% 50%;
  will-change: transform;
}
.wall__row { display: flex; gap: 1.2vw; justify-content: center; transform: translateX(var(--row-x, 0)); will-change: transform; }
.wall__row img {
  width: calc((100vw - 4.8vw) / 5); aspect-ratio: 16 / 10; object-fit: cover; flex: 0 0 auto;
  border-radius: .5vw; background: var(--surface);
  filter: grayscale(var(--wall-gray, 0)) brightness(var(--wall-dim, 1));
}
.wall__ring {
  position: absolute; left: 50%; top: 50%; width: min(56vw, 440px); height: auto;
  transform: translate(-50%, -50%) scale(var(--wall-ring, 0)) rotate(calc(var(--wall-ring, 0) * 90deg - 90deg));
  pointer-events: none; overflow: visible;
}
.wall__disc { fill: var(--primary); }
.ring__text--wall { font-family: var(--mono); font-size: 26px; font-weight: 500; fill: var(--primary); }
.wall__ring .ring { transform-origin: 300px 300px; }
.wall__center { font-family: var(--display); font-size: 130px; fill: var(--on-primary); }
@media (max-width: 860px) {
  .wall { height: 200vh; }
  .wall__ring { width: 54vw; }
}

/* ── Reveal em fatias (injetado pelo JS) ────────────────────────── */
.slices { position: absolute; inset: 0; z-index: 3; display: flex; pointer-events: none; }
.slices span {
  flex: 1; background: var(--slice-bg, var(--bg));
  transform-origin: 50% 0%;
  transition: transform .9s var(--ease);
}
.slices span:nth-child(even) { transform-origin: 50% 100%; }
.is-sliced .slices span { transform: scaleY(0); }

@media (prefers-reduced-motion: reduce) {
  .rings, .rings .ring__text { animation: none; }
  .wall { height: auto; }
  .wall__sticky { position: static; height: auto; padding-block: 40px; }
  .wall__grid { transform: none; }
  .wall__ring { transform: translate(-50%, -50%); }
  .slices { display: none; }
}

/* =====================================================================
   TRANSIÇÃO ENTRE PÁGINAS (home ⇄ cases)
   View Transitions entre documentos: a capa do card vira a capa do case
   (e volta), o título faz morph, e a página nova entra numa cortina —
   de baixo na ida, de cima na volta. O sentido vem do transition.js.
   ===================================================================== */
@view-transition { navigation: auto; }

/* a nav fica parada durante a troca */
.nav { view-transition-name: site-nav; }
.deck__anchor { display: block; height: 0; scroll-margin-top: 96px; }

::view-transition-group(*) {
  animation-duration: .9s;
  animation-timing-function: cubic-bezier(.76, 0, .24, 1);
}
::view-transition-old(root) { animation: vt-recede .9s cubic-bezier(.76, 0, .24, 1) both; }
::view-transition-new(root) { animation: vt-wipe-up .9s cubic-bezier(.76, 0, .24, 1) both; }
html:active-view-transition-type(back)::view-transition-old(root) { animation-name: vt-recede-back; }
html:active-view-transition-type(back)::view-transition-new(root) { animation-name: vt-wipe-down; }

@keyframes vt-recede      { to { opacity: .3; transform: scale(.94) translateY(-3%); } }
@keyframes vt-recede-back { to { opacity: .3; transform: scale(.94) translateY(3%); } }
@keyframes vt-wipe-up     { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes vt-wipe-down   { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

/* imagem e título que fazem morph ficam por cima da cortina, sem fade duplo */
::view-transition-old(*):only-child, ::view-transition-new(*):only-child { animation-duration: .5s; }

/* ── Fallback (sem View Transitions): cortina em fatias ─────────── */
.curtain {
  position: fixed; inset: 0; z-index: 10000; pointer-events: none;
  display: flex;
}
.curtain span {
  flex: 1; background: var(--curtain);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .55s cubic-bezier(.76, 0, .24, 1);
}
.curtain span:nth-child(1) { transition-delay: 0s; }
.curtain span:nth-child(2) { transition-delay: .04s; }
.curtain span:nth-child(3) { transition-delay: .08s; }
.curtain span:nth-child(4) { transition-delay: .12s; }
.curtain span:nth-child(5) { transition-delay: .16s; }
.curtain span:nth-child(6) { transition-delay: .2s; }
/* fechando: sobe de baixo (ida) ou desce de cima (volta) */
html.curtain-closing .curtain span,
html.curtain-closing-back .curtain span { transform: scaleY(1); }
html.curtain-closing-back .curtain span { transform-origin: 50% 0%; }
/* página nova chega coberta e abre */
html.curtain-cover .curtain span { transform: scaleY(1); transition: none; }
html.curtain-open .curtain span { transform-origin: 50% 0%; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .curtain { display: none; }
}

/* =====================================================================
   SHORT STORIES — faixa na home
   Cards coloridos que deslizam na horizontal (arrastar, roda, setas).
   ===================================================================== */
:root {
  --tint-ink-dark:  #2a0716;
  --tint-ink-light: #f7ede6;
}
.qs-teaser {
  overflow: hidden; background: var(--dark-teal);
  margin-block: clamp(40px, 6vw, 80px);
}
.qs-teaser .eyebrow, .qs-teaser .head-sub { color: rgba(247, 237, 230, .72); }
.qs-teaser .qs-rail__bar { background: rgba(247, 237, 230, .18); }
.qs-teaser .qs-rail__btn { border-color: rgba(247, 237, 230, .3); }
.qs-teaser__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.qs-teaser__head .display-head { transform-origin: bottom left; margin-top: 0; }
.qs-teaser__aside { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 26em; }
.qs-teaser__aside .head-sub { margin: 0; text-align: left; }

.qs-rail {
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-inline: max(32px, calc((100vw - var(--max)) / 2 + 32px));
  scroll-padding-inline: max(32px, calc((100vw - var(--max)) / 2 + 32px));
}
.qs-rail::-webkit-scrollbar { display: none; }
.qs-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.qs-rail.is-dragging a { pointer-events: none; }
.qs-rail__track { display: flex; gap: 20px; width: max-content; padding-block: 8px 24px; }

.qs-card {
  scroll-snap-align: start;
  flex: 0 0 auto; width: clamp(260px, 26vw, 340px); aspect-ratio: 3 / 4.2;
  display: flex; flex-direction: column;
  border-radius: 18px; overflow: hidden;
  background: var(--tint, var(--crimson-violet)); color: var(--ink, var(--tint-ink-light));
  transition: transform .5s var(--ease), border-radius .5s var(--ease);
  --slice-bg: var(--tint, var(--crimson-violet));
}
.qs-card--peri  { --tint: var(--crimson-violet);   --ink: var(--tint-ink-light); }
.qs-card--peach { --tint: var(--princeton-orange); --ink: var(--tint-ink-dark); }
.qs-card--mint  { --tint: var(--text);             --ink: var(--tint-ink-dark); }
.qs-card--lilac { --tint: var(--deep-crimson);     --ink: var(--tint-ink-light); }
.qs-card--sand  { --tint: var(--autumn-leaf);      --ink: var(--tint-ink-dark); }
.qs-card--rose  { --tint: var(--crimson-violet);   --ink: var(--tint-ink-light); }
.qs-card--sky   { --tint: var(--text);             --ink: var(--tint-ink-dark); }
.qs-card:hover { transform: translateY(-6px) rotate(-1deg); border-radius: 26px; }
.qs-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }

.qs-card__media { position: relative; flex: 1 1 auto; min-height: 0; margin: 10px 10px 0; border-radius: 12px; overflow: hidden; }
.qs-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); -webkit-user-drag: none; user-select: none; }
.qs-card:hover .qs-card__media img { transform: scale(1.06); }
.qs-card__text { padding: 16px 18px 20px; }
/* card sem imagem: o assunto vira o visual */
.qs-card__glyph {
  display: grid; place-items: center; width: 100%; height: 100%; padding: 16px; text-align: center;
  background: rgba(20, 21, 27, .08);
  font-family: var(--display); text-transform: uppercase; font-size: 1.4rem; line-height: 1.35;
}
.qs-card__meta { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-bottom: 8px; }
.qs-card__title { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 1.4rem; line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }

.qs-rail__controls { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.qs-rail__btn {
  width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  font-size: 1.1rem; transition: border-color .2s, color .2s, opacity .2s;
}
.qs-rail__btn:hover { border-color: var(--primary); color: var(--primary); }
.qs-rail__btn:disabled { opacity: .3; cursor: default; }
.qs-rail__bar { flex: 1; height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.qs-rail__bar span { display: block; height: 100%; width: 100%; background: var(--primary); transform-origin: left; transform: scaleX(var(--rail, .2)); transition: transform .2s linear; }

@media (max-width: 560px) {
  .qs-rail { padding-inline: 20px; scroll-padding-inline: 20px; }
  .qs-card { width: 76vw; }
}
@media (prefers-reduced-motion: reduce) {
  .qs-rail { scroll-behavior: auto; }
  .qs-card, .qs-card:hover { transform: none; }
}
