/* ==========================================================================
   Rafaela Canuto · Advocacia
   Sistema visual: grafite de estúdio, branco-pérola, champanhe.
   Somente HTML + CSS. Animações por tempo (load) e por rolagem
   (scroll-driven animations), sempre com fallback estático.
   ========================================================================== */

@property --nav-fg {
  syntax: '<color>';
  inherits: true;
  initial-value: #ffffff;
}

:root {
  /* Cor */
  --graphite-950: #1b1a1d;
  --graphite-900: #252427;
  --graphite-800: #2f2e32;
  --graphite-700: #3d3c40;
  --graphite-500: #5a585d;
  --pearl: #f6f6f4;
  --white: #ffffff;
  --ink: #1d1c1f;
  --stone: #66636b;
  --stone-light: #a7a4ab;
  --champagne: #c2a36b;
  --champagne-soft: #dcc9a2;
  --champagne-deep: #7a5c2c;
  --line: rgb(29 28 31 / .12);
  --line-dark: rgb(255 255 255 / .14);
  --highlight: rgb(194 163 107 / .38);

  /* Tipo */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.4vw, 2rem);
  --fs-2xl: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);
  --fs-3xl: clamp(2.75rem, 1.6rem + 5vw, 5.25rem);
  --fs-hero: clamp(3.9rem, 1.6rem + 9.4vw, 10.25rem);

  /* Espaço e forma */
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --section: clamp(96px, 14vw, 200px);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  /* Movimento */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --nav-h: 72px;
  --nav-switch-start: 0vh;
  --nav-switch-end: 92vh;

  color-scheme: light;
  interpolate-size: allow-keywords;
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--pearl);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--champagne-soft); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 4px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Tipografia base -------------------------------------------------------- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: .98;
}
.h2 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-3xl); line-height: 1; letter-spacing: -.02em; text-wrap: balance; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: var(--fs-2xl); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--stone); max-width: 38ch; text-wrap: pretty; }
.muted { color: var(--stone); }

/* Monograma + marca ----------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; line-height: 1; }
.mono {
  position: relative; display: inline-flex; align-items: baseline;
  font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: 0;
}
.mono__c { margin-left: -.36em; color: var(--champagne); transform: translateY(.08em); }
.brand__text { display: grid; gap: 3px; }
.brand__name { font-family: var(--serif); font-size: 21px; letter-spacing: .005em; }
.brand__role { font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .7; }

/* Botões ----------------------------------------------------------------- */
.btn {
  --btn-bg: var(--champagne);
  --btn-fg: var(--graphite-950);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / .45) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -14px rgb(194 163 107 / .7); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--ghost {
  --btn-bg: transparent; --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--ghost::before { background: currentColor; opacity: .08; transform: translateY(101%); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost:hover::before { transform: translateY(0); }

.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--ink:hover { box-shadow: 0 14px 34px -16px rgb(29 28 31 / .6); }

.link-u {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0% 1px;
  transition: background-size .6s var(--ease);
  padding-bottom: 2px;
}
.link-u:hover { background-size: 100% 1px; }

/* Navegação -------------------------------------------------------------- */
.progress { display: none; }

.nav {
  --nav-fg: #ffffff;
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  color: var(--nav-fg);
  background: rgb(37 36 39 / .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 rgb(255 255 255 / .06);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: var(--fs-sm); }
.nav__links a:not(.btn) { opacity: .82; transition: opacity .3s; }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav .btn { min-height: 42px; padding: 0 20px; font-size: 14px; }
.nav__toggle { display: none; align-items: center; gap: 10px; font-size: var(--fs-sm); min-height: 44px; padding: 0 4px; }
.nav__toggle i { display: grid; gap: 5px; width: 22px; }
.nav__toggle i::before, .nav__toggle i::after { content: ''; height: 1.5px; background: currentColor; border-radius: 2px; }

/* Menu mobile: abre por :target (#menu), fecha sozinho ao seguir um link. Sem JS. */
.sheet {
  position: fixed; inset: 0; z-index: 70;
  display: none;
  background: var(--graphite-900); color: var(--white);
  opacity: 0; transform: translateY(-12px);
  transition: opacity .45s var(--ease), transform .6s var(--ease), display .45s allow-discrete;
}
.sheet:target { display: block; opacity: 1; transform: none; }
@starting-style { .sheet:target { opacity: 0; transform: translateY(-12px); } }
.sheet__inner { height: 100%; display: flex; flex-direction: column; padding: 22px var(--gutter) 36px; }
.sheet__top { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.sheet__close { display: inline-flex; align-items: center; font-size: var(--fs-sm); min-height: 44px; padding: 0 4px; }
.sheet__links { margin-top: 8vh; display: grid; gap: 6px; }
.sheet__links a { font-family: var(--serif); font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1.12; letter-spacing: -.01em; }
.sheet__links li { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.sheet:target .sheet__links li { opacity: 1; transform: none; }
.sheet:target .sheet__links li:nth-child(2) { transition-delay: .05s; }
.sheet:target .sheet__links li:nth-child(3) { transition-delay: .1s; }
.sheet:target .sheet__links li:nth-child(4) { transition-delay: .15s; }
.sheet:target .sheet__links li:nth-child(5) { transition-delay: .2s; }
.sheet:target .sheet__links li:nth-child(6) { transition-delay: .25s; }
@starting-style { .sheet:target .sheet__links li { opacity: 0; transform: translateY(18px); } }
.sheet__foot { margin-top: auto; display: grid; gap: 18px; }
.sheet__foot .btn { width: 100%; }
.sheet__meta { font-size: var(--fs-xs); color: var(--stone-light); }

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* WhatsApp flutuante ---------------------------------------------------- */
.float-wa {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; border-radius: 999px;
  background: var(--graphite-900); color: var(--white);
  font-size: 14px; font-weight: 600;
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .08);
  transition: transform .5s var(--ease);
}
.float-wa:hover { transform: translateY(-3px); }
.float-wa svg { width: 22px; height: 22px; color: var(--champagne); }
@media (max-width: 560px) {
  .float-wa span { display: none; }
  .float-wa { padding: 0; width: 56px; height: 56px; justify-content: center; }
}

/* HERO ------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  color: var(--white);
  background:
    radial-gradient(70% 80% at 74% 46%, #5c5a5f 0%, #47454a 36%, #2e2d31 72%, #232225 100%);
  overflow: clip;
  isolation: isolate;
}
.hero::after { /* grão fotográfico sutil */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__grid {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: end;
  padding-top: var(--nav-h);
}
.hero__copy { padding-bottom: clamp(40px, 9vh, 112px); position: relative; z-index: 2; }
.hero__kicker {
  display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center;
  font-size: var(--fs-sm); color: rgb(255 255 255 / .74); margin-bottom: clamp(18px, 3vh, 30px);
}
.hero__kicker b { font-weight: 500; color: var(--white); }
.hero__kicker .sep { width: 28px; height: 1px; background: var(--champagne); }
.hero__title { font-size: var(--fs-hero); line-height: .88; letter-spacing: -.03em; margin-left: -.04em; }
.hero__title .line { display: block; overflow: hidden; padding: .04em .08em .12em; margin: -.04em -.08em -.12em; }
.hero__title .line--2 { padding-bottom: .34em; margin-bottom: -.34em; }
.hero__title .wd { display: inline-block; white-space: nowrap; }
.hero__title .ch { display: inline-block; }
.line__ink { position: relative; display: inline-block; }
.swash {
  position: absolute; left: -3%; bottom: -.2em; width: 106%; height: .3em; overflow: visible;
  fill: none; stroke: var(--champagne); stroke-width: 3.2; stroke-linecap: round;
}
.swash path { vector-effect: non-scaling-stroke; }
.swash path + path { stroke-width: 1.6; opacity: .55; }
.hero__sub { margin-top: clamp(22px, 3.4vh, 36px); font-size: var(--fs-lg); line-height: 1.55; color: rgb(255 255 255 / .78); max-width: 34ch; text-wrap: pretty; }
.hero__ctas { margin-top: clamp(26px, 4vh, 40px); display: flex; flex-wrap: wrap; gap: 12px; }
.hero__creds {
  margin-top: clamp(36px, 6vh, 64px);
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  border-top: 1px solid var(--line-dark);
  max-width: 640px;
}
.hero__creds li { padding: 16px 28px 0 0; font-size: var(--fs-xs); line-height: 1.45; color: rgb(255 255 255 / .62); max-width: 210px; }
.hero__creds li + li { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.hero__creds strong { display: block; color: var(--white); font-weight: 500; font-size: var(--fs-sm); margin-bottom: 2px; }

.hero__media {
  position: relative; z-index: 1;
  align-self: end;
  margin-right: calc(var(--gutter) * -1);
  margin-left: -8vw;
}
.hero__frame { position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 34%), linear-gradient(to right, transparent 0%, #000 32%), linear-gradient(to bottom, transparent 0%, #000 22%), linear-gradient(to left, transparent 0%, #000 8%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to top, transparent 0%, #000 34%), linear-gradient(to right, transparent 0%, #000 32%), linear-gradient(to bottom, transparent 0%, #000 22%), linear-gradient(to left, transparent 0%, #000 8%);
  mask-composite: intersect;
}
.hero__frame img { width: 100%; aspect-ratio: 1000 / 910; object-fit: cover; }
.hero__sheen {
  position: absolute; inset: -10% -30%; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(100deg, transparent 38%, rgb(255 236 200 / .55) 50%, transparent 62%);
  translate: -120% 0;
}

/* Luz ambiente do hero */
.hero__ambient { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; aspect-ratio: 1; }
.orb--1 { width: 52vw; left: 46%; top: -2%; background: radial-gradient(circle, rgb(194 163 107 / .26), transparent 62%); }
.orb--2 { width: 70vw; left: -24%; bottom: -46%; background: radial-gradient(circle, rgb(255 255 255 / .07), transparent 60%); }
.orb--3 { width: 34vw; right: -8%; top: -16%; background: radial-gradient(circle, rgb(220 201 162 / .16), transparent 64%); }

/* Selo giratório */
.seal {
  position: absolute; z-index: 3; left: 1%; bottom: 40%;
  width: clamp(112px, 10vw, 150px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--champagne-soft);
  background: rgb(37 36 39 / .42);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgb(194 163 107 / .38), 0 24px 50px -24px rgb(0 0 0 / .7);
}
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal__ring text { font: 600 12.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; fill: currentColor; }
.seal__mono { font-size: clamp(30px, 2.8vw, 42px); color: var(--white); }

/* Indicação de rolagem */
.hero__scroll {
  position: absolute; z-index: 3; right: var(--gutter); bottom: 22px;
  display: grid; justify-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgb(255 255 255 / .55);
}
.hero__scroll i { position: relative; width: 1px; height: 46px; background: rgb(255 255 255 / .18); overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; inset: 0; background: var(--champagne); transform: translateY(-100%); }

/* Contador */
@property --num { syntax: '<integer>'; inherits: false; initial-value: 9; }
.count { counter-reset: num var(--num); }
.count::after { content: counter(num); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; align-items: start; padding-top: calc(var(--nav-h) - 8px); }
  .hero__media { order: -1; margin: 0 calc(var(--gutter) * -1); }
  .hero__frame {
    -webkit-mask-image: linear-gradient(to top, transparent 2%, #000 42%);
    mask-image: linear-gradient(to top, transparent 2%, #000 42%);
  }
  .hero__frame img { aspect-ratio: 1000 / 860; object-position: 60% 0; }
  .seal { left: auto; right: var(--gutter); top: 16%; bottom: auto; width: 96px; }
  .seal__ring text { font-size: 13px; }
  .orb--1 { width: 110vw; left: -5%; top: -6%; }
  .orb--3 { width: 70vw; }
  .hero__copy { margin-top: -22vw; padding-bottom: 56px; }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .hero__creds { grid-template-columns: 1fr 1fr; }
  .hero__creds li:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-top: 14px; max-width: none; }
  .hero__creds li { padding-right: 16px; }
  .hero__creds li + li { padding-left: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
}

/* MANIFESTO -------------------------------------------------------------- */
.manifesto { padding: var(--section) 0 calc(var(--section) * .7); background: var(--pearl); }
.manifesto__text {
  font-family: var(--serif); font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.6rem);
  line-height: 1.08; letter-spacing: -.018em; max-width: 21ch; text-wrap: pretty;
}
.manifesto__text .w { color: var(--ink); }
.manifesto__sign { margin-top: 40px; display: flex; align-items: center; gap: 16px; font-size: var(--fs-sm); color: var(--stone); }
.manifesto__sign img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.manifesto__sign b { display: block; color: var(--ink); font-weight: 600; }

/* LETRAS MIÚDAS (contrato) ---------------------------------------------- */
.fine { position: relative; background: var(--white); }
.fine__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: var(--section);
}
.fine__paper-wrap { position: relative; }
.contract {
  position: relative;
  background: #fdfdfb;
  border-radius: 6px;
  padding: clamp(24px, 3.4vw, 44px) clamp(22px, 3.4vw, 46px);
  font-size: 12.5px; line-height: 1.62; color: #4a4850;
  box-shadow:
    0 1px 0 rgb(0 0 0 / .04),
    0 30px 60px -30px rgb(29 28 31 / .35),
    0 70px 120px -60px rgb(29 28 31 / .3);
  outline: 1px solid rgb(29 28 31 / .06);
  rotate: -1.2deg;
}
.contract::after { /* textura de papel */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0) 60%, rgb(29 28 31 / .025));
}
.contract__head { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid rgb(29 28 31 / .1); }
.contract__title { font-family: var(--serif); font-size: 22px; line-height: 1.1; color: var(--ink); }
.contract__no { font-size: 11px; color: #8b8890; text-align: right; }
.contract h4 { font-size: 11.5px; font-weight: 700; color: var(--ink); margin: 14px 0 4px; letter-spacing: .01em; }
.contract p + p { margin-top: 6px; }
.contract__sign { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 26px; font-size: 10.5px; color: #8b8890; }
.contract__sign span { border-top: 1px solid rgb(29 28 31 / .25); padding-top: 6px; }
.hl {
  color: var(--ink); font-weight: 600;
  background: linear-gradient(var(--highlight), var(--highlight)) no-repeat 0 88% / 100% 72%;
  border-radius: 2px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 2px;
}
.note {
  display: inline-block; margin-top: 6px;
  font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.15; color: var(--champagne-deep);
}
.note::before { content: ''; display: inline-block; width: 18px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 8px; }
.fine__caption { margin-top: 26px; font-size: var(--fs-xs); color: var(--stone); padding-left: 6px; }

.fine__panels { display: grid; gap: 56px; }
.fine__panel h2, .fine__panel h3 { text-wrap: balance; }
.fine__panel .h2 { font-size: clamp(2.5rem, 1.5rem + 3.8vw, 4.4rem); }
.fine__panel p { margin-top: 18px; color: var(--stone); font-size: var(--fs-lg); max-width: 36ch; text-wrap: pretty; }
.fine__panel .law { align-self: flex-start; display: inline-flex; margin-top: 20px; font-size: var(--fs-xs); color: var(--champagne-deep); border: 1px solid rgb(122 92 44 / .3); border-radius: 999px; padding: 6px 12px; }
.fine__panel .h3 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); }
.fine__hint { display: none; }

@media (max-width: 900px) {
  .fine__stage { grid-template-columns: 1fr; }
  .contract { rotate: 0deg; font-size: 11.5px; }
}

/* SITUAÇÕES -------------------------------------------------------------- */
.cases { background: var(--graphite-900); color: var(--white); padding: var(--section) 0; position: relative; overflow: clip; }
.cases__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.cases__head { position: sticky; top: calc(var(--nav-h) + 48px); }
.cases__head .h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); }
.cases__head p { margin-top: 22px; color: rgb(255 255 255 / .66); max-width: 32ch; }
.cases__head .btn { margin-top: 32px; }
.cases__list { border-top: 1px solid var(--line-dark); }
.case { padding: clamp(26px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 28px 1fr; gap: 0 18px; }
.case::before { content: ''; width: 9px; height: 9px; margin-top: .9em; border-radius: 50%; border: 1px solid var(--champagne); }
.case h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.35rem); line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
.case p { grid-column: 2; margin-top: 10px; color: rgb(255 255 255 / .62); max-width: 52ch; font-size: var(--fs-base); }
@media (max-width: 900px) {
  .cases__grid { grid-template-columns: 1fr; }
  .cases__head { position: static; }
}

/* ÁREAS DE ATUAÇÃO ------------------------------------------------------- */
.areas { padding: var(--section) 0; background: var(--pearl); }
.areas__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.areas__top .lead { justify-self: end; }
.area { border-top: 1px solid var(--line); }
.area:last-child { border-bottom: 1px solid var(--line); }
.area summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px; gap: 24px; align-items: center;
  padding: clamp(24px, 3.2vw, 38px) 0;
  transition: padding .6s var(--ease);
}
.area summary::-webkit-details-marker { display: none; }
.area__name { font-family: var(--serif); font-size: clamp(2.1rem, 1.3rem + 3vw, 3.9rem); line-height: 1; letter-spacing: -.02em; transition: transform .7s var(--ease), color .4s; }
.area__brief { color: var(--stone); max-width: 40ch; font-size: var(--fs-base); }
.area__icon {
  justify-self: end; width: 48px; height: 48px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line); position: relative;
  transition: background .5s var(--ease), box-shadow .5s, rotate .6s var(--ease);
}
.area__icon::before, .area__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--ink); translate: -50% -50%; transition: rotate .6s var(--ease), background .4s; }
.area__icon::after { rotate: 90deg; }
.area summary:hover .area__name { transform: translateX(10px); }
.area summary:hover .area__icon { box-shadow: inset 0 0 0 1px var(--ink); }
.area[open] .area__icon { background: var(--ink); rotate: 180deg; }
.area[open] .area__icon::before, .area[open] .area__icon::after { background: var(--white); }
.area[open] .area__icon::after { rotate: 0deg; }
.area__body { padding: 0 0 clamp(32px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 52px; gap: 24px; }
.area__body ul { grid-column: 2; columns: 1; }
.area__body li { padding: 12px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); display: flex; gap: 14px; break-inside: avoid; }
.area__body li::before { content: ''; flex: none; width: 5px; height: 5px; margin-top: .62em; border-radius: 50%; background: var(--champagne); }
.area__aside { color: var(--stone); font-size: var(--fs-sm); max-width: 30ch; }
.area__aside strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.15; color: var(--ink); margin-bottom: 8px; }

@supports selector(::details-content) {
  .area::details-content {
    block-size: 0; overflow: clip; opacity: 0;
    transition: block-size .7s var(--ease), opacity .5s var(--ease), content-visibility .7s allow-discrete;
  }
  .area[open]::details-content { block-size: auto; opacity: 1; }
}
@media (max-width: 900px) {
  .areas__top { grid-template-columns: 1fr; }
  .areas__top .lead { justify-self: start; }
  .area summary { grid-template-columns: 1fr 48px; }
  .area__brief { grid-column: 1; grid-row: 2; font-size: var(--fs-sm); }
  .area__icon { grid-column: 2; grid-row: 1 / span 2; }
  .area__body { grid-template-columns: 1fr; }
  .area__body ul { grid-column: 1; }
}

/* SOBRE ------------------------------------------------------------------ */
.about { padding: var(--section) 0; background: var(--white); }
.about__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.about__media { position: sticky; top: calc(var(--nav-h) + 32px); }
.about__photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: #ddd; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.about__badge {
  position: absolute; right: -18px; bottom: 32px;
  background: var(--graphite-900); color: var(--white);
  border-radius: var(--radius-md); padding: 18px 22px; max-width: 250px;
  font-size: var(--fs-xs); line-height: 1.45; color: rgb(255 255 255 / .7);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5);
}
.about__badge strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.1; color: var(--white); margin-bottom: 6px; }
.about__copy .h2 { font-size: clamp(2.8rem, 1.6rem + 5vw, 5.6rem); }
.about__copy .h2 span { display: block; }
.about__text { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 18px; font-size: var(--fs-lg); line-height: 1.65; max-width: 54ch; }
.about__text p { text-wrap: pretty; }
.about__quote {
  margin: clamp(36px, 5vw, 56px) 0; padding-left: 28px; border-left: 2px solid var(--champagne);
  font-family: var(--serif); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.15; max-width: 24ch; text-wrap: balance;
}
.roles { border-top: 1px solid var(--line); }
.roles li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.roles b { font-weight: 600; font-size: var(--fs-base); }
.roles span { color: var(--stone); font-size: var(--fs-sm); text-align: right; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { position: relative; top: 0; max-width: 520px; }
  .about__badge { right: 12px; bottom: 12px; }
  .roles li { grid-template-columns: 1fr; gap: 2px; }
  .roles span { text-align: left; }
}

/* PRESENÇA (galeria) ---------------------------------------------------- */
.presence { padding: var(--section) 0; background: var(--pearl); }
.presence__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.presence__top .lead { justify-self: end; }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.shot { position: relative; border-radius: var(--radius-md); overflow: hidden; background: #d9d8d5; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px;
  color: var(--white); font-size: var(--fs-xs); line-height: 1.45;
  background: linear-gradient(to top, rgb(20 19 22 / .82), transparent);
}
.shot figcaption b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.15; margin-bottom: 2px; }
.gallery { grid-auto-rows: clamp(190px, 21vw, 300px); }
.shot img { position: absolute; inset: 0; }
.shot--a { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.shot--b { grid-column: 6 / span 7; grid-row: 1; }
.shot--c { grid-column: 6 / span 3; grid-row: 2; }
.shot--d { grid-column: 9 / span 4; grid-row: 2; }
.shot--e { grid-column: 1 / span 7; grid-row: 3 / span 1; }
.shot--f { grid-column: 8 / span 5; grid-row: 3; }
.shot--a img { object-position: 50% 30%; }
.shot--c img { object-position: 50% 20%; }
@media (max-width: 900px) {
  .presence__top { grid-template-columns: 1fr; }
  .presence__top .lead { justify-self: start; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 230px; }
  .shot--a { grid-column: 1 / -1; grid-row: span 2; }
  .shot--b, .shot--e, .shot--f { grid-column: 1 / -1; grid-row: auto; }
  .shot--c, .shot--d { grid-column: span 1; grid-row: auto; }
  .shot figcaption { padding: 40px 14px 12px; }
  .shot figcaption b { font-size: 1.1rem; }
}

/* COMO FUNCIONA --------------------------------------------------------- */
.steps { padding: var(--section) 0; background: var(--white); }
.steps__top { max-width: 760px; margin-bottom: clamp(48px, 7vw, 96px); }
.steps__top .lead { margin-top: 20px; max-width: 46ch; }
.steps__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); position: relative; counter-reset: step; }
.steps__list::before { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line); }
.steps__list::after { content: ''; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--champagne); transform-origin: left; transform: scaleX(1); }
.step { position: relative; counter-increment: step; }
.step__n {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--champagne);
  font-family: var(--serif); font-size: 1.3rem; color: var(--champagne-deep);
}
.step__n::before { content: counter(step); }
.step h3 { margin-top: 28px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem); line-height: 1.1; }
.step p { margin-top: 12px; color: var(--stone); font-size: var(--fs-sm); line-height: 1.6; max-width: 30ch; }
@media (max-width: 900px) {
  .steps__list { grid-template-columns: 1fr; gap: 36px; padding-left: 0; }
  .steps__list::before, .steps__list::after { left: 23px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; transform-origin: top; }
  .step { display: grid; grid-template-columns: 47px 1fr; gap: 0 22px; }
  .step h3 { margin-top: 8px; }
  .step p { grid-column: 2; }
}

/* BLOG (cards e capas tipográficas) ------------------------------------ */
.journal { padding: var(--section) 0; background: var(--pearl); }
.journal__top { display: flex; justify-content: space-between; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 72px); }
.posts { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
.posts__side { display: grid; gap: clamp(16px, 2vw, 28px); }
.post-card { display: grid; gap: 22px; align-content: start; }
.post-card--row { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: center; }
.post-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.post-card--feature h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.post-card p { margin-top: 12px; color: var(--stone); font-size: var(--fs-sm); max-width: 48ch; }
.post-card__meta { margin-top: 14px; font-size: var(--fs-xs); color: var(--stone); display: flex; gap: 14px; }
.post-card__meta span + span::before { content: ''; display: inline-block; width: 14px; height: 1px; background: currentColor; vertical-align: middle; margin-right: 14px; opacity: .5; }
.post-card:hover .cover__art { transform: scale(1.06) rotate(-1deg); }
.post-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.cover {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  aspect-ratio: 16 / 11; display: grid; place-items: center; isolation: isolate;
}
.cover__art { font-family: var(--serif); line-height: .8; letter-spacing: -.04em; transition: transform 1.2s var(--ease); }
.cover__tag { position: absolute; left: 18px; bottom: 16px; font-size: 12px; letter-spacing: .02em; opacity: .75; }
.cover--juros { background: radial-gradient(90% 90% at 70% 30%, #4a484d, #252427); color: var(--champagne); }
.cover--juros .cover__art { font-size: clamp(9rem, 20vw, 17rem); }
.cover--juros .cover__tag { color: var(--white); }
.cover--rmc { background: #e7e1d4; color: var(--ink); }
.cover--rmc .cover__art { font-size: clamp(4.4rem, 9vw, 7.4rem); }
.cover--rmc::after { content: ''; position: absolute; inset: 22% 18%; border: 1px solid rgb(29 28 31 / .2); border-radius: 14px; z-index: -1; rotate: -6deg; }
.cover--super { background: #d9d8d5; color: var(--ink); }
.cover--super .cover__art { font-size: clamp(4rem, 8.4vw, 7rem); text-align: center; }
.cover--super .cover__art small { display: block; font-size: .32em; letter-spacing: 0; margin-top: .25em; color: var(--stone); }
.post-card--row .cover { aspect-ratio: 1 / 1; }
.post-card--row .cover--rmc .cover__art { font-size: clamp(3.4rem, 6vw, 5.2rem); }
.post-card--row .cover--super .cover__art { font-size: clamp(3.2rem, 5.6vw, 5rem); }
@media (max-width: 900px) {
  .posts { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .post-card--row { grid-template-columns: 1fr; }
  .post-card--row .cover { aspect-ratio: 16 / 10; }
}

/* FAQ -------------------------------------------------------------------- */
.faq { padding: var(--section) 0; background: var(--white); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 48px); }
.faq__head p { margin-top: 20px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 26px 0; font-size: var(--fs-lg); font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; translate: 0 -3px; transition: rotate .5s var(--ease), translate .5s var(--ease); }
.qa[open] summary::after { rotate: 225deg; translate: 0 3px; }
.qa__a { padding-bottom: 28px; color: var(--stone); max-width: 60ch; }
@supports selector(::details-content) {
  .qa::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .55s var(--ease), opacity .45s, content-visibility .55s allow-discrete; }
  .qa[open]::details-content { block-size: auto; opacity: 1; }
}
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}

/* CONTATO ---------------------------------------------------------------- */
.contact { background: var(--graphite-900); color: var(--white); padding: var(--section) 0 clamp(48px, 6vw, 80px); position: relative; overflow: clip; }
.contact__title { font-family: var(--serif); font-size: clamp(3.2rem, 1.6rem + 7vw, 8.4rem); line-height: .92; letter-spacing: -.03em; max-width: 12ch; text-wrap: balance; }
.contact__title span { color: var(--champagne-soft); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); margin-top: clamp(48px, 7vw, 96px); align-items: stretch; }
.contact__lead { color: rgb(255 255 255 / .7); font-size: var(--fs-lg); max-width: 40ch; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact__list { margin-top: 44px; border-top: 1px solid var(--line-dark); }
.contact__list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-dark); font-size: var(--fs-sm); }
.contact__list dt, .contact__list .k { color: rgb(255 255 255 / .5); }
.contact__list a { color: var(--white); }
.map { border-radius: var(--radius-lg); overflow: hidden; min-height: 420px; background: var(--graphite-800); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05) brightness(.92); }
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
  .contact__ctas .btn { flex: 1 1 100%; }
  .map { min-height: 320px; }
}

/* RODAPÉ ----------------------------------------------------------------- */
.footer { background: var(--graphite-950); color: rgb(255 255 255 / .62); padding: 56px 0 40px; font-size: var(--fs-xs); }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer .brand { color: var(--white); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: var(--fs-sm); }
.footer__nav a:hover { color: var(--white); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding-top: 28px; line-height: 1.55; }
.footer__bottom p { max-width: 70ch; }

/* ==========================================================================
   BLOG
   ========================================================================== */
.page-head { background: var(--graphite-900); color: var(--white); padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 104px); position: relative; overflow: clip; }
.page-head__title { font-family: var(--serif); font-size: clamp(3.4rem, 1.8rem + 7vw, 8rem); line-height: .92; letter-spacing: -.03em; }
.page-head__lead { margin-top: 24px; color: rgb(255 255 255 / .7); font-size: var(--fs-lg); max-width: 46ch; }
.crumbs { display: flex; gap: 10px; font-size: var(--fs-xs); color: rgb(255 255 255 / .55); margin-bottom: 28px; }
.crumbs a:hover { color: var(--white); }
.crumbs span::before { content: '/'; margin-right: 10px; opacity: .5; }

.blog-list { padding: clamp(56px, 8vw, 112px) 0 var(--section); }
.blog-list .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-list .post-card .cover { aspect-ratio: 4 / 5; }
.blog-list .cover--juros .cover__art { font-size: clamp(8rem, 16vw, 13rem); }
@media (max-width: 900px) { .blog-list .posts { grid-template-columns: 1fr; } .blog-list .post-card .cover { aspect-ratio: 16 / 11; } }

/* Artigo */
.article-head { background: var(--graphite-900); color: var(--white); padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 7vw, 88px); }
.article-head__inner { max-width: 900px; }
.article-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.7rem, 1.5rem + 4.6vw, 5.6rem); line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.article-head__lead { margin-top: 26px; font-size: var(--fs-lg); color: rgb(255 255 255 / .74); max-width: 52ch; text-wrap: pretty; }
.byline { margin-top: 36px; display: flex; align-items: center; gap: 14px; font-size: var(--fs-sm); color: rgb(255 255 255 / .6); }
.byline img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.byline b { display: block; color: var(--white); font-weight: 600; }

.article { padding: clamp(56px, 8vw, 104px) 0 var(--section); background: var(--white); }
.article__grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 680px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.toc { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; font-size: var(--fs-xs); }
.toc p { color: var(--stone); margin-bottom: 14px; }
.toc ol { display: grid; gap: 10px; border-left: 1px solid var(--line); }
.toc a { display: block; padding-left: 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--stone); line-height: 1.4; transition: color .3s, border-color .3s; }
.toc a:hover { color: var(--ink); border-left-color: var(--champagne); }
.prose { font-size: 1.125rem; line-height: 1.75; color: #2c2b2f; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.6rem); line-height: 1.08; letter-spacing: -.012em; color: var(--ink); margin-top: 2.2em; text-wrap: balance; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin-top: 1.8em; color: var(--ink); }
.prose ul, .prose ol { display: grid; gap: .55em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; position: relative; padding-left: 36px; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: .1em; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--champagne); font-size: .78rem; display: grid; place-items: center; color: var(--champagne-deep); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose a { color: var(--champagne-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a.btn { color: var(--btn-fg); text-decoration: none; }
.prose blockquote { font-family: var(--serif); font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); line-height: 1.2; color: var(--ink); padding-left: 24px; border-left: 2px solid var(--champagne); margin-block: 1.8em; }
.callout { background: var(--pearl); border-radius: var(--radius-md); padding: 26px 28px; font-size: 1rem; line-height: 1.65; }
.callout > b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin-bottom: 8px; color: var(--ink); }
.callout ul { margin-top: 10px; }
.disclaimer { margin-top: 3em !important; padding-top: 22px; border-top: 1px solid var(--line); font-size: .875rem; line-height: 1.6; color: var(--stone); }
.author { margin-top: 2.6em !important; display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: center; padding: 26px; border-radius: var(--radius-md); background: var(--graphite-900); color: rgb(255 255 255 / .7); font-size: .95rem; line-height: 1.55; }
.author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.author b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; color: var(--white); line-height: 1.1; margin-bottom: 4px; }
.author .btn { margin-top: 14px; min-height: 44px; padding: 0 18px; font-size: 14px; }
.article__aside { align-self: start; position: sticky; top: calc(var(--nav-h) + 40px); }
.aside-card { border-radius: var(--radius-md); background: var(--pearl); padding: 24px; font-size: var(--fs-sm); color: var(--stone); max-width: 280px; }
.aside-card b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.12; color: var(--ink); margin-bottom: 10px; }
.aside-card .btn { margin-top: 18px; width: 100%; min-height: 46px; font-size: 14px; }
@media (max-width: 1100px) {
  .article__grid { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
  .toc, .article__aside { position: static; }
  .toc { display: none; }
  .aside-card { max-width: none; }
}
.related { padding: var(--section) 0; background: var(--pearl); }
.related .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .related .posts { grid-template-columns: 1fr; } }

/* ==========================================================================
   LINK NA BIO
   ========================================================================== */
.bio {
  min-height: 100svh; color: var(--white);
  background: radial-gradient(120% 70% at 50% 0%, #4d4b50 0%, #2e2d31 48%, #1d1c1f 100%);
  display: grid; justify-items: center;
  padding: clamp(40px, 8vh, 72px) 20px 40px;
  overflow-x: clip; position: relative; isolation: isolate;
}
.bio::before {
  content: ''; position: absolute; z-index: -1; width: 140vmax; height: 140vmax; left: 50%; top: -70vmax; translate: -50% 0;
  background: conic-gradient(from 0deg, transparent 0 40%, rgb(194 163 107 / .12) 50%, transparent 60% 100%);
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 72%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 72%);
}
.bio__wrap { width: 100%; max-width: 440px; display: grid; justify-items: center; text-align: center; }
.bio__avatar { position: relative; width: 116px; height: 116px; border-radius: 50%; padding: 4px; background: conic-gradient(from 210deg, var(--champagne), #f1e3c3, var(--champagne), #8d6f3d, var(--champagne)); }
.bio__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #2e2d31; }
.bio__mono { margin-top: 22px; color: var(--white); }
.bio__name { margin-top: 10px; font-family: var(--serif); font-size: 2.6rem; line-height: 1; letter-spacing: -.015em; }
.bio__role { margin-top: 10px; font-size: var(--fs-sm); color: rgb(255 255 255 / .7); }
.bio__oab { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--champagne-soft); border: 1px solid rgb(194 163 107 / .35); border-radius: 999px; padding: 6px 12px; }
.bio__links { width: 100%; margin-top: 32px; display: grid; gap: 12px; }
.bio-link {
  position: relative; display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 14px;
  min-height: 68px; padding: 10px 18px 10px 12px; border-radius: 20px; text-align: left;
  background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), background .4s, box-shadow .4s;
  overflow: hidden;
}
.bio-link:hover { transform: translateY(-2px) scale(1.01); background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(194 163 107 / .5); }
.bio-link:active { transform: scale(.985); }
.bio-link__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgb(255 255 255 / .08); color: var(--champagne); }
.bio-link__ico svg { width: 22px; height: 22px; }
.bio-link__t { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.bio-link__t small { display: block; font-weight: 400; font-size: 12.5px; color: rgb(255 255 255 / .56); margin-top: 2px; }
.bio-link__go { width: 20px; height: 20px; color: rgb(255 255 255 / .45); transition: transform .5s var(--ease), color .3s; }
.bio-link:hover .bio-link__go { transform: translateX(3px); color: var(--champagne); }
.bio-link--primary { background: var(--champagne); color: var(--graphite-950); box-shadow: none; }
.bio-link--primary:hover { background: #cdb07a; box-shadow: 0 18px 40px -20px rgb(194 163 107 / .8); }
.bio-link--primary .bio-link__ico { background: rgb(29 28 31 / .1); color: var(--graphite-950); }
.bio-link--primary .bio-link__t small { color: rgb(29 28 31 / .66); }
.bio-link--primary .bio-link__go { color: var(--graphite-950); }
.bio__group { width: 100%; margin-top: 30px; text-align: left; }
.bio__group h2 { font-size: 13px; font-weight: 500; color: rgb(255 255 255 / .5); margin: 0 0 12px 6px; }
.bio__reads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bio-read { display: grid; align-content: space-between; gap: 18px; aspect-ratio: 3 / 4; padding: 14px; border-radius: 18px; font-size: 12.5px; line-height: 1.3; font-weight: 500; transition: transform .5s var(--ease); }
.bio-read:hover { transform: translateY(-3px); }
.bio-read i { font-style: normal; font-family: var(--serif); font-size: 2.2rem; line-height: .9; }
.bio-read--a { background: #3b3a3e; color: var(--white); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.bio-read--a i { color: var(--champagne); font-size: 3rem; }
.bio-read--b { background: #e7e1d4; color: var(--ink); }
.bio-read--c { background: #d9d8d5; color: var(--ink); }
.bio__socials { margin-top: 30px; display: flex; gap: 12px; justify-content: center; }
.bio__socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); transition: background .3s, transform .4s var(--ease); }
.bio__socials a:hover { background: rgb(255 255 255 / .1); transform: translateY(-2px); }
.bio__socials svg { width: 20px; height: 20px; }
.bio__foot { margin-top: 34px; font-size: 13px; color: rgb(255 255 255 / .42); line-height: 1.6; max-width: 34ch; }

/* ==========================================================================
   MOVIMENTO
   Tudo abaixo só roda quando a pessoa aceita movimento.
   ========================================================================== */
@keyframes line-up { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes portrait-in {
  from { opacity: 0; transform: scale(1.08) translateY(3%); filter: blur(14px) saturate(.6); }
  to { opacity: 1; transform: none; filter: blur(0) saturate(1); }
}
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
@keyframes ring-spin { to { rotate: 360deg; } }
@keyframes sweep { to { rotate: 360deg; } }
@keyframes avatar-in { from { opacity: 0; transform: scale(.85); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* Hero: uma única sequência orquestrada de entrada */

  .page-head__title, .article-head h1 { animation: fade-up 1.2s var(--ease) .15s both; }
  .page-head__lead, .article-head__lead, .byline { animation: fade-up 1.2s var(--ease) .35s both; }

  /* Link na bio */
  .bio::before { animation: sweep 18s linear infinite; }
  .bio__avatar { animation: avatar-in 1.2s var(--ease) .1s both; }
  .bio__avatar::after {
    content: ''; position: absolute; inset: -8px; border-radius: 50%;
    border: 1px solid rgb(194 163 107 / .35); border-top-color: transparent; border-left-color: transparent;
    animation: ring-spin 7s linear infinite;
  }
  .bio__mono, .bio__name, .bio__role, .bio__oab { animation: fade-up 1s var(--ease) both; }
  .bio__mono { animation-delay: .25s; }
  .bio__name { animation-delay: .32s; }
  .bio__role { animation-delay: .4s; }
  .bio__oab { animation-delay: .48s; }
  .bio__links > *, .bio__group, .bio__socials, .bio__foot { animation: fade-up 1s var(--ease) both; }
  .bio__links > :nth-child(1) { animation-delay: .55s; }
  .bio__links > :nth-child(2) { animation-delay: .62s; }
  .bio__links > :nth-child(3) { animation-delay: .69s; }
  .bio__links > :nth-child(4) { animation-delay: .76s; }
  .bio__links > :nth-child(5) { animation-delay: .83s; }
  .bio__group { animation-delay: .92s; }
  .bio__socials { animation-delay: 1s; }
  .bio__foot { animation-delay: 1.06s; }
  .bio-link--primary::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .5) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: shine 4.5s var(--ease-in-out) 1.6s infinite;
  }
}
@keyframes shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }

/* Animações guiadas pela rolagem ----------------------------------------- */
@keyframes nav-solid {
  0% { --nav-fg: #ffffff; background: rgb(37 36 39 / 0); box-shadow: 0 1px 0 rgb(255 255 255 / 0); -webkit-backdrop-filter: blur(0) saturate(1); backdrop-filter: blur(0) saturate(1); }
  8%, 84% { --nav-fg: #ffffff; background: rgb(37 36 39 / .62); box-shadow: 0 1px 0 rgb(255 255 255 / .06); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
  100% { --nav-fg: #1d1c1f; background: rgb(246 246 244 / .8); box-shadow: 0 1px 0 rgb(29 28 31 / .08); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes parallax-portrait { to { transform: translateY(14%) scale(1.06); opacity: .35; } }
@keyframes parallax-copy { to { transform: translateY(-12%); opacity: 0; } }
@keyframes word-on { from { color: #cfcdd2; } to { color: var(--ink); } }
@keyframes rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(14% 10% 14% 10% round 28px); transform: scale(1.06); } to { clip-path: inset(0 0 0 0 round 18px); transform: none; } }
@keyframes mark { from { background-size: 0% 72%; } to { background-size: 100% 72%; } }
@keyframes note-in { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes panel-window {
  0% { opacity: 0; transform: translateY(40px); filter: blur(6px); }
  18%, 82% { opacity: 1; transform: none; filter: blur(0); }
  100% { opacity: 0; transform: translateY(-40px); filter: blur(6px); }
}
@keyframes panel-last { 0% { opacity: 0; transform: translateY(40px); filter: blur(6px); } 30%, 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes panel-first { 0%, 70% { opacity: 1; transform: none; filter: blur(0); } 100% { opacity: 0; transform: translateY(-40px); filter: blur(6px); } }
@keyframes paper-travel { from { transform: translateY(0); } to { transform: translateY(var(--travel, 0px)); } }
@keyframes paper-tilt { from { rotate: -3deg; transform: translateY(60px) scale(.95); } to { rotate: 0deg; transform: none; } }
@keyframes case-on { from { opacity: .22; } to { opacity: 1; } }
@keyframes dot-fill { from { background: transparent; } to { background: var(--champagne); } }
@keyframes appear { from { opacity: 0; visibility: hidden; transform: translateY(20px); } to { opacity: 1; visibility: visible; transform: none; } }
@keyframes area-in { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes title-scale { from { clip-path: inset(100% -5% -25% -5%); transform: translateY(35%); opacity: 0; } to { clip-path: inset(-15% -5% -25% -5%); transform: none; opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {

    /* Barra de leitura */
    .progress {
      display: block; position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
      background: var(--champagne); transform-origin: 0 50%;
      animation: grow-x linear both; animation-timeline: scroll(root);
    }

    /* Navegação: transparente sobre o grafite, pérola depois */
    .nav {
      animation: nav-solid linear both;
      animation-timeline: scroll(root);
      animation-range: var(--nav-switch-start) var(--nav-switch-end);
    }
    .nav .btn--ghost { color: var(--nav-fg); }

    /* WhatsApp flutuante só aparece depois do hero */
    .float-wa {
      animation: appear linear both;
      animation-timeline: scroll(root);
      animation-range: 85vh 100vh;
    }

    /* Hero recua com profundidade ao rolar */

    /* Manifesto: palavra por palavra */
    .manifesto__text { view-timeline: --manifesto block; }
    .manifesto__text .w {
      color: #cfcdd2;
      animation: word-on linear both;
      animation-timeline: --manifesto;
      animation-range: cover calc(18% + var(--i) * 1.45%) cover calc(22% + var(--i) * 1.45%);
    }

    /* Revelações gerais */
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    .unveil { animation: unveil linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .title-in { animation: title-scale linear both; animation-timeline: view(); animation-range: entry 10% cover 35%; transform-origin: left bottom; }

    /* Letras miúdas: palco fixo, rolagem conduz os grifos */
    .fine { view-timeline: --fine block; height: 420vh; }
    .fine__stage {
      position: sticky; top: 0; height: 100svh; padding-block: calc(var(--nav-h) + 24px) 32px;
    }
    .fine__paper-wrap { animation: paper-tilt linear both; animation-timeline: --fine; animation-range: entry 30% contain 6%; }
    .contract { rotate: 0deg; }
    .contract__body { animation: paper-travel linear both; animation-timeline: --fine; animation-range: contain 10% contain 92%; }
    .contract-clip { max-height: calc(100svh - var(--nav-h) - 110px); overflow: hidden; border-radius: 6px; }
    .contract__body { --travel: -34%; }

    .hl { background-size: 0% 72%; animation: mark linear both; animation-timeline: --fine; }
    .note { animation: note-in linear both; animation-timeline: --fine; }
    .hl--1 { animation-range: contain 14% contain 24%; }
    .hl--2 { animation-range: contain 40% contain 50%; }
    .hl--3 { animation-range: contain 66% contain 76%; }
    .note--1 { animation-range: contain 22% contain 28%; }
    .note--2 { animation-range: contain 48% contain 54%; }
    .note--3 { animation-range: contain 74% contain 80%; }

    .fine__panels { position: relative; display: block; height: min(520px, 60svh); }
    .fine__panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; animation: panel-window linear both; animation-timeline: --fine; }
    .fine__panel--0 { animation-name: panel-first; animation-range: contain 0% contain 12%; }
    .fine__panel--1 { animation-range: contain 11% contain 38%; }
    .fine__panel--2 { animation-range: contain 37% contain 64%; }
    .fine__panel--3 { animation-name: panel-last; animation-range: contain 63% contain 100%; }
    .fine__hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; font-size: var(--fs-xs); color: var(--stone); }
    .fine__hint i { width: 1px; height: 36px; background: var(--line); position: relative; overflow: hidden; }
    .fine__hint i::after { content: ''; position: absolute; inset: 0; background: var(--champagne); animation: scroll-cue 2.4s var(--ease-in-out) infinite; }
    .fine__caption { animation: fade-in linear both; animation-timeline: --fine; animation-range: contain 85% contain 95%; }

    /* Situações: cada linha acende ao cruzar o centro */
    .case { animation: case-on linear both; animation-timeline: view(); animation-range: cover 18% cover 42%; }
    .case::before { animation: dot-fill linear both; animation-timeline: view(); animation-range: cover 30% cover 42%; }

    /* Áreas */
    .area { animation: area-in linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }

    /* Passos: a linha se desenha conforme a seção entra */
    .steps__list { view-timeline: --steps block; }
    .steps__list::after { animation: grow-x linear both; animation-timeline: --steps; animation-range: entry 40% cover 55%; }
    .step { animation: rise linear both; animation-timeline: --steps; }
    .step:nth-child(1) { animation-range: entry 20% cover 30%; }
    .step:nth-child(2) { animation-range: entry 35% cover 38%; }
    .step:nth-child(3) { animation-range: entry 50% cover 46%; }
    .step:nth-child(4) { animation-range: entry 65% cover 54%; }

    /* Galeria */
    .shot { animation: unveil linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }

    /* Contato: título surge escalando */
    .contact__title { animation: title-scale linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; transform-origin: left bottom; }

    /* Leitura do artigo */
    .article-progress { display: block; }
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  @supports (animation-timeline: view()) {
    .steps__list::after { animation-name: grow-y; }
    .fine { height: 460vh; }
    .fine__stage { grid-template-rows: auto 1fr; gap: 18px; align-content: start; padding-top: calc(var(--nav-h) + 12px); }
    .fine__panels { order: -1; height: 272px; }
    .fine__panel .h2 { font-size: 2.15rem; }
    .fine__panel .h3 { font-size: 1.85rem; }
    .fine__panel p { font-size: var(--fs-sm); margin-top: 10px; }
    .fine__panel .law { margin-top: 12px; }
    .fine__panel .btn { display: none; }
    .fine__hint { margin-top: 12px; }
    .contract-clip { max-height: calc(100svh - var(--nav-h) - 330px); }
    .contract__body { --travel: -58%; }
    .contract { padding: 18px 18px; }
    .contract__title { font-size: 18px; }
    .note { font-size: 15px; }
    .fine__caption { display: none; }
  }
}

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


/* ==========================================================================
   FAIXA DE ÁREAS (ticker)
   ========================================================================== */
.ticker {
  background: var(--graphite-900); color: var(--white);
  padding: clamp(26px, 4vw, 52px) 0 clamp(30px, 4.4vw, 58px);
  overflow: clip; display: grid; gap: clamp(2px, .6vw, 8px);
  border-top: 1px solid rgb(255 255 255 / .06);
}
.ticker__row { display: flex; width: max-content; }
.ticker__track { display: flex; flex: none; }
.ticker__track li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(2.3rem, 1.2rem + 4.2vw, 5.4rem); line-height: 1.12; letter-spacing: -.015em;
}
.ticker__track li::after { content: '§'; font-size: .46em; color: var(--champagne); margin: 0 .8em; translate: 0 -.08em; }
.ticker__row--rev li { font-style: italic; color: transparent; -webkit-text-stroke: 1px rgb(255 255 255 / .32); }
.ticker__row--rev li::after { -webkit-text-stroke: 0; }

/* Assinatura gigante no rodapé */
.footer__mark {
  display: block; margin: 8px 0 40px; white-space: nowrap; overflow: hidden;
  font-family: var(--serif); font-size: clamp(4.2rem, 1rem + 14.6vw, 16rem); line-height: .86; letter-spacing: -.035em;
  background: linear-gradient(180deg, rgb(194 163 107 / .62), rgb(194 163 107 / .04) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

/* Luz ambiente no contato */
.contact::before {
  content: ''; position: absolute; width: 60vw; aspect-ratio: 1; right: -18vw; top: -20vw; border-radius: 50%;
  background: radial-gradient(circle, rgb(194 163 107 / .16), transparent 62%); pointer-events: none;
}
.contact > .container { position: relative; }

/* Abertura (só na home, só com movimento) */
.intro { display: none; }

/* ==========================================================================
   COREOGRAFIA 2.0
   ========================================================================== */
@keyframes ch-in {
  from { transform: translateY(112%) rotate(7deg); opacity: 0; filter: blur(10px); }
  to { transform: none; opacity: 1; filter: blur(0); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes frame-open {
  from { clip-path: inset(10% 44% 0 44% round 240px); }
  to { clip-path: inset(0 0 0 0 round 0); }
}
@keyframes img-settle { from { scale: 1.28; filter: saturate(.3) brightness(.7); } to { scale: 1; filter: none; } }
@keyframes breathe { from { scale: 1; } to { scale: 1.03; } }
@keyframes sheen { 0% { translate: -120% 0; } 26%, 100% { translate: 120% 0; } }
@keyframes orb-a { to { translate: -7vw 6vh; scale: 1.12; } }
@keyframes orb-b { to { translate: 9vw -5vh; scale: .9; } }
@keyframes orb-c { to { translate: -4vw 9vh; } }
@keyframes seal-in { from { opacity: 0; scale: .4; rotate: -140deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes count-up { from { --num: 0; } to { --num: 9; } }
@keyframes ring-pulse { 0% { box-shadow: 0 0 0 0 rgb(194 163 107 / .5); } 70%, 100% { box-shadow: 0 0 0 16px rgb(194 163 107 / 0); } }
@keyframes rule-x { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes drift-l { to { translate: -14% 0; opacity: 0; } }
@keyframes drift-r { to { translate: 11% 0; opacity: 0; } }
@keyframes copy-up { 0% { translate: 0 0; opacity: 1; } 75% { opacity: 0; } 100% { translate: 0 -12%; opacity: 0; } }
@keyframes media-out { to { translate: 0 16%; opacity: .2; filter: blur(6px); } }
@keyframes marquee { to { translate: -50% 0; } }
@keyframes curtain { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 100% 0); visibility: hidden; } }
@keyframes mark-out { to { opacity: 0; translate: 0 -28px; } }
@keyframes mono-draw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes mono-fill { to { fill: var(--champagne-soft); stroke-opacity: 0; } }
@keyframes img-par { from { translate: 0 -7%; } to { translate: 0 7%; } }
@keyframes art-drift { from { translate: 0 22%; } to { translate: 0 -22%; } }
@keyframes li-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes n-fill { from { background: var(--white); color: var(--champagne-deep); } to { background: var(--champagne); color: var(--graphite-950); } }
@keyframes mark-rise { from { translate: 0 45%; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes glow-drift { to { translate: -10vw 12vw; } }
@keyframes vt-out { to { opacity: 0; translate: 0 -24px; filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; translate: 0 32px; filter: blur(4px); } }

@media (prefers-reduced-motion: no-preference) {
  :root { --intro: 0s; }
  body.home { --intro: 1.05s; }

  /* Abertura: monograma se desenha e a cortina sobe */
  .home .intro {
    display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
    background: var(--graphite-900); pointer-events: none;
    animation: curtain .95s var(--ease-in-out) .95s both;
  }
  .intro__mark { display: grid; justify-items: center; gap: 14px; animation: mark-out .55s var(--ease) .9s both; }
  .intro__svg { width: clamp(180px, 18vw, 240px); height: auto; overflow: visible; }
  .intro__svg text {
    font-family: var(--serif); font-size: 118px; fill: transparent;
    stroke: var(--champagne); stroke-width: 1; stroke-dasharray: 420; stroke-dashoffset: 420;
    animation: mono-draw 1s var(--ease-in-out) .05s forwards, mono-fill .5s ease .62s forwards;
  }
  .intro__rule { width: 160px; height: 1px; background: var(--champagne); transform-origin: center; animation: rule-x .7s var(--ease) .25s both; }
  .intro__name { font-family: var(--serif); font-size: 26px; letter-spacing: .01em; color: rgb(255 255 255 / .78); animation: fade-up .7s var(--ease) .4s both; }

  /* Hero: letra por letra */
  .hero__title .ch { animation: ch-in 1.15s var(--ease) both; animation-delay: calc(var(--intro) + 160ms + var(--c) * 36ms); }
  .swash path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease-in-out) calc(var(--intro) + 1.05s) forwards; }
  .swash path + path { animation-delay: calc(var(--intro) + 1.4s); animation-duration: .8s; }
  .hero__kicker { animation: fade-up 1s var(--ease) calc(var(--intro) + .05s) both; }
  .hero__sub { animation: fade-up 1.1s var(--ease) calc(var(--intro) + .75s) both; }
  .hero__ctas { animation: fade-up 1.1s var(--ease) calc(var(--intro) + .9s) both; }
  .hero__creds { animation: fade-in 1.2s var(--ease) calc(var(--intro) + 1.1s) both; }
  .hero__creds .count { animation: count-up 1.8s cubic-bezier(.2,.7,.2,1) calc(var(--intro) + 1.2s) both; }
  .btn--glow { animation: ring-pulse 2.8s var(--ease) calc(var(--intro) + 2.4s) infinite; }

  /* Retrato: a moldura se abre, a imagem assenta, a luz passa */
  .hero__frame { animation: frame-open 1.9s var(--ease) calc(var(--intro) - .15s) both; }
  .hero__frame img { animation: img-settle 2.4s var(--ease) calc(var(--intro) - .15s) both; }
  .hero__sheen { animation: sheen 9s var(--ease-in-out) calc(var(--intro) + 1.6s) infinite; }
  .seal { animation: seal-in 1.4s var(--ease) calc(var(--intro) + 1.3s) both; }
  .seal__ring { animation: spin 30s linear infinite; }

  /* Luz ambiente em movimento contínuo e lento */
  .orb--1 { animation: orb-a 14s ease-in-out infinite alternate; }
  .orb--2 { animation: orb-b 19s ease-in-out infinite alternate; }
  .orb--3 { animation: orb-c 16s ease-in-out infinite alternate; }
  .hero__scroll { animation: fade-in 1s ease calc(var(--intro) + 2s) both; }
  .hero__scroll i::after { animation: scroll-cue 2.4s var(--ease-in-out) calc(var(--intro) + 2.2s) infinite; }

  /* Faixa de áreas */
  .ticker__row { animation: marquee 52s linear infinite; }
  .ticker__row--rev { animation-duration: 64s; animation-direction: reverse; }
  .ticker:hover .ticker__row { animation-play-state: paused; }

  /* Áreas: itens entram em cascata quando o painel abre */
  .area[open] .area__body li, .area[open] .area__aside { animation: li-in .7s var(--ease) both; }
  .area[open] .area__aside { animation-delay: .05s; }
  .area[open] .area__body li:nth-child(1) { animation-delay: .08s; }
  .area[open] .area__body li:nth-child(2) { animation-delay: .12s; }
  .area[open] .area__body li:nth-child(3) { animation-delay: .16s; }
  .area[open] .area__body li:nth-child(4) { animation-delay: .2s; }
  .area[open] .area__body li:nth-child(5) { animation-delay: .24s; }
  .area[open] .area__body li:nth-child(6) { animation-delay: .28s; }
  .area[open] .area__body li:nth-child(7) { animation-delay: .32s; }
  .area[open] .area__body li:nth-child(8) { animation-delay: .36s; }
  .qa[open] .qa__a { animation: li-in .6s var(--ease) both; }

  .contact::before { animation: glow-drift 18s ease-in-out infinite alternate; }

  /* Transições suaves entre páginas (mesma origem) */
  @view-transition { navigation: auto; }
  .nav { view-transition-name: site-nav; }
  ::view-transition-old(root) { animation: vt-out .35s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .6s var(--ease) both; }

  @supports (animation-timeline: view()) {
    /* Saída do hero: o título se abre para os lados, o retrato recua */
    .hero__title .line--1 { animation: drift-l linear both; animation-timeline: scroll(root); animation-range: 0 75vh; }
    .hero__title .line--2 { animation: drift-r linear both; animation-timeline: scroll(root); animation-range: 0 75vh; }
    .hero__copy-inner { animation: copy-up linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    .hero__media {
      animation: breathe 9s ease-in-out infinite alternate, media-out linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 100vh;
      animation-delay: calc(var(--intro) + 2s), 0s;
    }

    /* Fotos com profundidade dentro da moldura */
    .shot img, .about__photo img { scale: 1.16; animation: img-par linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .cover__art { animation: art-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }

    /* Números dos passos acendem */
    .step__n { animation: n-fill linear both; animation-timeline: view(); animation-range: cover 25% cover 42%; }

    /* Assinatura do rodapé */
    .footer__mark { animation: mark-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }

    .cases__head .h2, .faq__head .h2, .about__copy .h2 { animation: title-scale linear both; animation-timeline: view(); animation-range: entry 10% cover 30%; }
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  @supports (animation-timeline: view()) {
    .hero__title .line--1, .hero__title .line--2, .hero__copy-inner { animation: none; }
  }
}
