/* Grafaze — site institucional */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-var.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* metric-matched fallbacks (measured in Chrome) keep layout stable while web fonts load */
@font-face {
  font-family: "Geist Fallback";
  src: local("Arial");
  size-adjust: 104.24%;
  ascent-override: 96.89%;
  descent-override: 27.82%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Serif Fallback";
  src: local("Georgia Italic"), local("Georgia-Italic");
  font-style: italic;
  size-adjust: 77.97%;
  ascent-override: 126.97%;
  descent-override: 39.76%;
  line-gap-override: 0%;
}

:root {
  --bg: #08090D;
  --bg-raised: #0E1016;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.16);
  --text: #F1F3F8;
  --text-2: #A4AABB;
  --text-3: #80869A;
  --azul: #3D7BFF;
  --azul-soft: #8FB0FF;
  --gelo: #E8EDF5;

  --sans: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Serif Fallback", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --header-h: 72px;
  --section-y: clamp(72px, 8vw, 112px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--bg);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1, h2 { line-height: 1.02; letter-spacing: -0.045em; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
::selection { background: var(--azul); color: #fff; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 2px; }

/* film grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 91; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 500;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

[data-parallax-img] { will-change: transform; transform: scale(1.18); }

/* ---------- type helpers ---------- */
.kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
}
.kicker::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 1px; background: var(--azul); box-shadow: 0 0 12px var(--azul); }

.section-title { font-size: clamp(2.2rem, 1.1rem + 3.1vw, 3.9rem); margin-bottom: 28px; max-width: 20ch; }
.section-title em { color: var(--azul-soft); }
.lead { font-size: clamp(1.04rem, 1rem + 0.25vw, 1.16rem); line-height: 1.7; color: var(--text-2); max-width: 54ch; }

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  height: 54px; padding: 0 8px 0 26px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.005em;
  transition: background-color 0.3s, box-shadow 0.4s;
}
.btn__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: var(--text); transition: transform 0.5s var(--ease-out); }
.btn__icon svg { width: 16px; height: 16px; transform: rotate(90deg); }
.btn:hover { background: #fff; box-shadow: 0 0 0 6px rgb(255 255 255 / 0.08), 0 12px 40px -8px rgb(61 123 255 / 0.6); }
.btn:hover .btn__icon { transform: translateY(3px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform 0.5s var(--ease-out), background-color 0.4s, border-color 0.4s;
}
.site-header.is-scrolled {
  background: rgb(8 9 13 / 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand__mark { width: 28px; height: 28px; fill: currentColor; overflow: visible; }
.bm { animation: bm-in 0.9s var(--ease-out) both; }
.bm--l0 { --bx: -6px; --by: -6px; animation-delay: 0.1s; }
.bm--l1 { --bx: 4px; --by: 4px; animation-delay: 0.3s; }
.bm--l2 { --bx: 6px; --by: 6px; animation-delay: 0.5s; }
.bm--core { --bx: 8px; --by: 8px; animation-delay: 0.7s; fill: var(--azul); }
@keyframes bm-in { from { opacity: 0; transform: translate(var(--bx), var(--by)); } }
.brand__name { font-weight: 600; font-size: 0.92rem; letter-spacing: 0.26em; }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: block; padding: 8px 16px; border-radius: 999px;
  font-size: 0.9rem; color: var(--text-2);
  transition: color 0.25s, background-color 0.25s, border-color 0.25s;
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--text); background: rgb(255 255 255 / 0.06); }
.nav__link--pill { margin-left: 8px; border: 1px solid var(--line-strong); color: var(--text); }
.nav__link--pill:hover { background: var(--text); color: var(--bg); border-color: var(--text); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; z-index: 2; border-radius: 50%; border: 1px solid var(--line-strong); }
.menu-toggle__bar {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.menu-toggle__bar:first-child { top: 18px; }
.menu-toggle__bar:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    display: flex; flex-direction: column; justify-content: center;
    padding: var(--header-h) var(--gutter) 40px;
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s var(--ease-out); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link, .nav__link--pill { margin: 0; padding: 18px 0; border: 0; border-radius: 0; font-size: 2rem; font-weight: 500; letter-spacing: -0.04em; color: var(--text); background: none; }
  .nav__link:hover, .nav__link--pill:hover, .nav__link[aria-current="true"] { background: none; color: var(--azul-soft); }
  .site-header.menu-open { transform: none; background: var(--bg); }
}

/* ---------- hero (sticky "curtain": the intro sheet slides over it) ---------- */
.curtain { position: relative; }
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  height: 100svh; min-height: 640px;
  display: flex; flex-direction: column;
  padding-top: var(--header-h);
  background: var(--bg);
}
@media (min-height: 640px) { .hero { position: sticky; top: 0; } }
/* Quadrante grid behind the copy, fading out from the panel */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(70% 65% at 72% 48%, #000 15%, transparent 75%);
  mask-image: radial-gradient(70% 65% at 72% 48%, #000 15%, transparent 75%);
  animation: fade-in 1.6s 0.1s var(--ease-out) both;
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; right: -220px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(closest-side, rgb(61 123 255 / 0.16), transparent);
}
/* --hp (0→1) is set by main.js while the intro sheet covers the hero */
.hero__inner, .hero__strip {
  opacity: calc(1 - var(--hp, 0) * 1.4);
  transform: translateY(calc(var(--hp, 0) * -60px)) scale(calc(1 - var(--hp, 0) * 0.04));
}
.hero__inner {
  flex: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding-block: clamp(16px, 4vh, 48px);
}
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 13px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--azul); box-shadow: 0 0 10px var(--azul); animation: blink 2.4s infinite; }
.hero__title {
  font-size: clamp(2.4rem, min(1rem + 4.6vw, 9.5vh), 5.6rem);
  line-height: 1; letter-spacing: -0.045em;
  margin: clamp(18px, 3.5vh, 30px) 0 clamp(16px, 3vh, 26px);
}
.hero__title em { padding-right: 0.06em; letter-spacing: -0.01em; color: var(--azul-soft); }
/* the H1 is the LCP element: words move and sharpen, but are never hidden */
.hero__title .sw { animation: word-in 1s var(--ease-out) both; animation-delay: calc(0.1s + var(--wi, 0) * 55ms); }
.hero__lead { max-width: 46ch; font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem); line-height: 1.65; color: var(--text-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4.5vh, 40px); }
.btn--go .btn__icon svg { transform: none; }
.btn--go:hover .btn__icon { transform: translateX(3px); }
.btn--ghost { padding: 0 26px; background: none; color: var(--text); border: 1px solid var(--line-strong); }
.btn--ghost:hover { background: none; border-color: var(--text); box-shadow: none; }
.hero__pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); max-width: 560px;
  margin-top: clamp(28px, 5.5vh, 52px); border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.hero__pillars li { padding: 16px 16px 0 0; }
.hero__pillars li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.hero__pillars small { display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--text-3); }

/* Quadrante panel: assembles level by level; main.js walks a highlight through the tiles */
.hq {
  position: relative; justify-self: end; width: min(100%, 520px, 60vh); aspect-ratio: 1;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.7s var(--ease-out);
}
.hq.is-tracking { transition-duration: 0.2s; }
.hq__tile {
  --g: 1.4%;
  position: absolute; overflow: hidden;
  left: calc(var(--x) * 1% + var(--g) / 2); top: calc(var(--y) * 1% + var(--g) / 2);
  width: calc(var(--s) * 1% - var(--g)); height: calc(var(--s) * 1% - var(--g));
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(10px, 1.4vw, 18px);
  border: 1px solid var(--line-strong); border-radius: 14px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.015));
  font-family: var(--mono); font-size: clamp(0.56rem, 0.8vw, 0.7rem); letter-spacing: 0.12em; text-transform: uppercase;
  animation: tile-in 0.9s var(--ease-out) both;
  animation-delay: calc(0.6s + var(--l) * 0.55s + var(--n) * 0.08s);
  transition: border-color 0.5s, background-color 0.5s;
}
.hq__tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / 0.09) 1px, transparent 1px); background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(135deg, transparent 35%, #000); mask-image: linear-gradient(135deg, transparent 35%, #000);
}
.hq__tile span { position: relative; color: var(--text-2); transition: color 0.5s; }
.hq__tile small { position: relative; align-self: flex-end; font-size: 1em; color: var(--text-3); }
.hq__tile.is-on { border-color: rgb(143 176 255 / 0.7); background-color: rgb(61 123 255 / 0.12); }
.hq__tile.is-on span { color: var(--text); }
.hq__tile--sm { padding: clamp(8px, 1vw, 12px); border-radius: 8px; }
.hq__tile--xs { padding: 0; border-radius: 4px; }
.hq__tile--xs::before, .hq__tile--sm::before { display: none; }
.hq__tile--core { background: var(--azul); border-color: var(--azul); animation: tile-in 0.9s var(--ease-out) both, pulse 2.4s 3s infinite; animation-delay: 2.25s, 3s; }
.hq__tag {
  position: absolute; right: 0; top: calc(100% + 22px);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--azul-soft); white-space: nowrap;
  animation: fade-in 0.8s 2.6s var(--ease-out) both;
}
.hq__tag::before { content: ""; position: absolute; right: 3%; bottom: calc(100% + 2px); width: 1px; height: 18px; background: linear-gradient(transparent, var(--azul)); }

.hero__strip { border-top: 1px solid var(--line); }
.hero__strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; min-height: 64px; padding-block: 14px; }
.hero__segments { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.88rem; color: var(--text-2); animation: rise 1.2s 0.75s var(--ease-out) both; }
.hero__segments li { display: flex; align-items: center; gap: 10px; }
.hero__segments li::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--text-3); }
.hero__cue { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); animation: rise 1.2s 0.85s var(--ease-out) both; }
.hero__cue i { position: relative; width: 1px; height: 28px; overflow: hidden; background: var(--line-strong); }
.hero__cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--text); animation: cue 2.2s var(--ease-out) infinite; }

@media (max-width: 900px) {
  .hero { height: auto; min-height: 100svh; }
  .hero__inner { grid-template-columns: 1fr; align-content: center; }
  .hq, .hero__pillars { display: none; }
}
@media (max-height: 760px) and (min-width: 901px) { .hero__pillars { display: none; } }

.hero__item { animation: rise 1.2s var(--ease-out) both; animation-delay: calc(0.15s + var(--i, 0) * 0.12s); }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes word-in { from { filter: blur(8px); transform: translateY(0.3em); } }
@keyframes tile-in { from { opacity: 0; transform: scale(0.92); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes blink { 50% { opacity: 0.35; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(61 123 255 / 0.55); } 70%, 100% { box-shadow: 0 0 0 14px rgb(61 123 255 / 0); } }
@keyframes cue { to { top: 100%; } }

/* ---------- intro sheet: slides over the sticky hero ---------- */
.intro {
  position: relative; z-index: 1;
  padding-block: var(--section-y);
  background: var(--bg-raised);
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -50px 100px -20px rgb(0 0 0 / 0.85);
}
.intro::before {
  content: ""; position: absolute; top: 0; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(143 176 255 / 0.7), rgb(61 123 255 / 0.6), transparent);
}
.intro__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 5vw, 88px); align-items: center; }

/* reel: muted autoplay while on screen, sound on request */
.reel { position: relative; margin: clamp(48px, 5vw, 72px) 0 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg); box-shadow: 0 30px 80px -30px rgb(61 123 255 / 0.35); }
.reel__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.reel__sound {
  position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px;
  padding: 10px 16px 10px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgb(8 9 13 / 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--text); font: 500 0.85rem/1 var(--sans); cursor: pointer; transition: background 0.3s;
}
.reel__sound[hidden] { display: none; }
.reel__sound:hover { background: rgb(61 123 255 / 0.55); }
.reel__sound svg { width: 20px; height: 20px; }
.reel__sound .reel__on, .reel__sound[aria-pressed="true"] .reel__off { display: none; }
.reel__sound[aria-pressed="true"] .reel__on { display: inline; }
@media (max-width: 600px) { .reel { border-radius: 16px; } .reel__sound { right: 10px; bottom: 10px; padding: 8px; } .reel__sound span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* technologies: two endless rows drifting in opposite directions */
.tech { margin-top: clamp(56px, 6vw, 80px); content-visibility: auto; contain-intrinsic-size: auto 260px; }
.tech__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; margin-bottom: 24px; }
.tech__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.tech__note { font-size: 0.92rem; color: var(--text-2); }
.marquee {
  display: grid; gap: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__row { display: flex; }
.marquee__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.marquee__list li {
  position: relative; display: grid; place-items: center;
  width: 68px; height: 68px; border: 1px solid var(--line); border-radius: 18px;
  background: rgb(255 255 255 / 0.02); color: var(--text-2);
  transition: color 0.3s, border-color 0.3s, background-color 0.3s, transform 0.45s var(--ease-out);
}
.marquee__list svg { width: 30px; height: 30px; fill: currentColor; }
/* each tile lights up in its own brand colour */
.marquee__list li:hover {
  color: var(--brand, var(--text));
  border-color: color-mix(in srgb, var(--brand, var(--text)) 45%, transparent);
  background: color-mix(in srgb, var(--brand, var(--text)) 10%, transparent);
  transform: translateY(-3px);
}
@media (max-width: 600px) {
  .marquee__list li { width: 56px; height: 56px; border-radius: 15px; }
  .marquee__list svg { width: 26px; height: 26px; }
}
/* with JS each list is cloned once, so shifting the row by half loops seamlessly */
.js .marquee__row { width: max-content; animation: marquee 56s linear infinite; }
.js .marquee__row--rev { animation-direction: reverse; animation-duration: 50s; }
.js .marquee__list { flex-wrap: nowrap; padding-right: 12px; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 3D quadrante built from extruded slices; each fractal level lifts off with scroll */
.quadrante { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; perspective: 1400px; }
.quadrante::before { content: ""; position: absolute; inset: -12%; background: radial-gradient(closest-side, rgb(61 123 255 / 0.24), rgb(61 123 255 / 0.05) 60%, transparent); }
.quadrante__scene {
  position: absolute; inset: 8%; transform-style: preserve-3d;
  transform: rotateX(var(--fx, 10deg)) rotateY(var(--fy, -26deg));
  transition: transform 0.7s var(--ease-out);
}
.quadrante.is-tracking .quadrante__scene { transition: transform 0.2s linear; }
.quadrante__part { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(var(--pz, 0px)); transition: transform 0.9s var(--ease-out); }
.quadrante__slice { position: absolute; inset: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--k) * 1.6px)); }
.quadrante__slice { fill: #7B8296; }
.quadrante__slice:last-child { fill: var(--text); }
[data-part="core"] .quadrante__slice { fill: #1F4FCC; }
[data-part="core"] .quadrante__slice:last-child { fill: var(--azul); }
.quadrante__shadow {
  position: absolute; left: 16%; right: 16%; bottom: 0; height: 11%; border-radius: 50%;
  border: 1px solid rgb(143 176 255 / 0.28);
  background: radial-gradient(closest-side, rgb(61 123 255 / 0.28), transparent);
  box-shadow: 0 0 40px -6px rgb(61 123 255 / 0.35);
  transform: scale(var(--sh, 1)); transition: transform 0.9s var(--ease-out);
}

/* services: hairline grid with a light that follows the pointer */
.svc-list {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(48px, 5vw, 64px);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.svc-list::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%), rgb(61 123 255 / 0.14), transparent 65%);
  opacity: 0; transition: opacity 0.5s;
}
.svc-list.is-lit::before { opacity: 1; }
.svc {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; align-content: start;
  padding: clamp(24px, 2.4vw, 32px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.svc__icon {
  grid-row: span 2; box-sizing: content-box;
  width: 20px; height: 20px; padding: 11px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgb(255 255 255 / 0.02); color: var(--azul-soft);
  transition: color 0.3s, border-color 0.3s, transform 0.5s var(--ease-out);
}
.svc:hover .svc__icon { color: var(--azul); border-color: rgb(61 123 255 / 0.4); transform: translateY(-2px); }
.svc h3 { align-self: end; font-size: 1.08rem; letter-spacing: -0.015em; }
.svc p { font-size: 0.92rem; line-height: 1.55; color: var(--text-2); max-width: 34ch; }

@media (max-width: 959px) {
  .intro__grid { grid-template-columns: 1fr; }
  .quadrante { width: min(100%, 280px); }
  .svc-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { .svc-list { grid-template-columns: 1fr; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: var(--section-y); }

/* reveal on scroll — only with JS, so content is never hidden without it */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal][data-split] { opacity: 1; transform: none; }
/* headings: each word comes into focus */
.sw { display: inline-block; transition: opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms); }
.js [data-split]:not(.is-in) .sw { opacity: 0; filter: blur(10px); transform: translateY(0.3em); }

/* ---------- graphene ---------- */
.graphene { overflow: hidden; }
.graphene::before {
  content: ""; position: absolute; left: -10%; top: 10%; width: 60%; height: 80%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(61 123 255 / 0.12), transparent);
}
.graphene__grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.graphene__copy { grid-column: 2; }
.graphene__grid .honeycomb { grid-column: 1; grid-row: 1; }
.honeycomb { position: relative; height: clamp(380px, 40vw, 560px); perspective: 1400px; }
.honeycomb__plane {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotateX(var(--hrx, 58deg)) rotateZ(var(--hrz, 0deg));
  transition: transform 0.8s var(--ease-out);
}
/* spins around the plane's own normal, after the tilt */
.honeycomb__spin { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; animation: hc-spin 50s linear infinite; }
.honeycomb.is-tracking .honeycomb__plane { transition: transform 0.2s linear; }
@keyframes hc-spin { to { transform: rotateZ(360deg); } }
.hc {
  position: absolute; left: 0; top: 0;
  width: calc(var(--hs) * 1.732); height: calc(var(--hs) * 2);
  margin: calc(var(--hs) * -1) 0 0 calc(var(--hs) * -0.866);
  transform: translate(var(--x), var(--y)) translateZ(calc(var(--d) * var(--hx, 0px)));
  transition: transform 1s var(--ease-out);
}
.hc svg { width: 100%; height: 100%; overflow: visible; }
.hc polygon { fill: rgb(61 123 255 / 0.08); stroke: rgb(143 176 255 / 0.6); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.hc circle { fill: var(--azul-soft); }
.hc--core polygon { fill: rgb(61 123 255 / 0.22); stroke: var(--azul); }
.hc--core circle { fill: var(--azul); }

.facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; border-top: 1px solid var(--line); }
.fact { padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(even) { padding: 24px 0 26px 24px; border-left: 1px solid var(--line); }
.fact__value {
  display: flex; align-items: baseline; gap: 6px;
  font-weight: 300; line-height: 1; letter-spacing: -0.045em;
  font-size: clamp(2.2rem, 1.5rem + 1.8vw, 3.3rem);
  font-variant-numeric: tabular-nums;
}
.fact__value small { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.55em; letter-spacing: 0; color: var(--azul-soft); }
.fact__label { margin: 10px 0 16px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.fact h3 { font-size: 1rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.fact p:last-child { font-size: 0.92rem; line-height: 1.55; color: var(--text-2); }
.footnote { margin-top: 20px; font-family: var(--mono); font-size: 0.7rem; line-height: 1.6; color: var(--text-3); }
@media (max-width: 859px) {
  .graphene__grid { grid-template-columns: 1fr; }
  .graphene__copy, .graphene__grid .honeycomb { grid-column: 1; grid-row: auto; }
  .honeycomb { height: clamp(220px, 60vw, 300px); }
}
@media (max-width: 480px) {
  .fact { padding-right: 14px; }
  .fact:nth-child(even) { padding-left: 14px; }
  .fact__value { font-size: 1.9rem; }
}

/* ---------- contact ---------- */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(88px, 10vw, 144px);
  text-align: center;
}
.contact__bg {
  position: absolute; inset: 0; z-index: -2; overflow: hidden; opacity: 0.5;
  -webkit-mask-image: radial-gradient(70% 75% at 50% 50%, #000 25%, transparent 100%);
  mask-image: radial-gradient(70% 75% at 50% 50%, #000 25%, transparent 100%);
}
.contact__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(0.75); }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 54% at 50% 50%, rgb(8 9 13 / 0.5), rgb(8 9 13 / 0.9)),
    linear-gradient(180deg, rgb(61 123 255 / 0.14), rgb(61 123 255 / 0.05));
}
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact .kicker { justify-content: center; }
.contact__title { font-size: clamp(3rem, 0.8rem + 7.4vw, 8.4rem); line-height: 0.95; letter-spacing: -0.055em; margin-bottom: 48px; }
.contact__title em { color: var(--azul-soft); }
.contact__mail {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 7px 7px 7px 28px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-style: normal;
}
.no-clipboard .contact__mail { padding-right: 28px; }
.contact__email { padding: 8px 12px 8px 0; font-size: clamp(1.02rem, 0.9rem + 0.8vw, 1.5rem); letter-spacing: -0.015em; overflow-wrap: anywhere; transition: color 0.3s; }
.contact__email:hover { color: var(--azul); }
.copy-btn {
  flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--text); color: var(--bg);
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}
.copy-btn svg { width: 18px; height: 18px; }
.copy-btn:hover { transform: scale(1.07); }
.copy-btn.is-done { background: var(--azul); }
.no-clipboard .copy-btn { display: none; }
.contact__note { margin-top: 28px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }

/* ---------- legal pages ---------- */
.legal { padding-block: calc(var(--header-h) + var(--section-y)) var(--section-y); }
.legal .section-title { margin-bottom: 12px; }
.legal__date { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 48px; }
.legal__body { max-width: 68ch; color: var(--text-2); line-height: 1.75; }
.legal__body > h2:first-child { margin-top: 0; }
@media (min-width: 960px) {
  .legal__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 112px); align-items: start; }
  .legal__head { position: sticky; top: calc(var(--header-h) + 40px); }
  .legal__date { margin-bottom: 0; }
}
.legal__body h2 { margin: 48px 0 14px; font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.02em; color: var(--text); }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 14px; }
.legal__body ul { padding-left: 1.2em; list-style: disc; }
.legal__body li + li { margin-top: 8px; }
.legal__body li::marker { color: var(--azul); }
.legal__body strong { color: var(--text); font-weight: 500; }
.legal__body a { color: var(--azul-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; color: var(--text-3); font-size: 0.82rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px; border-top: 1px solid var(--line); }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); transition: color 0.2s; }
.site-footer a:hover { color: var(--text); }
.footer-mark { height: 15vw; overflow: hidden; user-select: none; }
.footer-mark span {
  display: block; text-align: center; white-space: nowrap;
  font-weight: 600; font-size: 21vw; line-height: 0.8; letter-spacing: -0.045em;
  color: transparent;
  background: linear-gradient(180deg, rgb(241 243 248 / 0.16), rgb(241 243 248 / 0) 85%);
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- custom cursor (mouse only; created by main.js) ---------- */
.has-cursor, .has-cursor * { cursor: none !important; }
.cursor { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.cursor.is-visible { opacity: 1; }
.cursor__ring, .cursor__dot { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.cursor__dot::before {
  content: ""; position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text); transition: transform 0.3s var(--ease-out);
}
.cursor__shape {
  position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgb(241 243 248 / 0.45);
  transform: scale(calc(var(--cs, 1) * var(--cd, 1)));
  transition: transform 0.45s var(--ease-out), background-color 0.3s, border-color 0.3s;
}
.cursor__label {
  position: absolute; left: 0; top: 0; opacity: 0; transform: translate(-50%, -50%) scale(0.6);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; color: var(--bg);
  transition: opacity 0.25s, transform 0.45s var(--ease-out);
}
.cursor[data-state="link"] .cursor__shape { --cs: 1.6; background: rgb(61 123 255 / 0.3); border-color: rgb(143 176 255 / 0.75); }
.cursor[data-state="label"] .cursor__shape { --cs: 2.5; background: var(--text); border-color: var(--text); box-shadow: 0 6px 20px rgb(0 0 0 / 0.35); }
.cursor[data-state="label"] .cursor__label { opacity: 1; transform: translate(-50%, -50%); }
/* tag: a small solid dot with the name in a pill beside it */
.cursor[data-state="tag"] .cursor__shape { --cs: 0.4; background: var(--text); border-color: var(--text); }
.cursor[data-state="tag"] .cursor__label {
  opacity: 1; transform: translate(16px, -50%);
  padding: 6px 12px; border-radius: 999px; background: var(--text);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.4);
}
.cursor[data-state="link"] .cursor__dot::before, .cursor[data-state="label"] .cursor__dot::before, .cursor[data-state="tag"] .cursor__dot::before { transform: scale(0); }
.cursor.is-down .cursor__shape { --cd: 0.8; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  padding: 12px 22px; border-radius: 999px;
  background: rgb(14 16 22 / 0.85); color: var(--text); font-size: 0.9rem;
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -16px rgb(0 0 0 / 0.6);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-split]:not(.is-in) .sw { opacity: 1; filter: none; transform: none; }
  [data-parallax-img] { transform: none !important; }
  .hero__inner, .hero__strip { opacity: 1; transform: none; }
  .hero__cue i { display: none; }
  .js .marquee__row { width: auto; animation: none; }
  .js .marquee__list { flex-wrap: wrap; padding-right: 0; }
  .marquee { padding-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; }
  .marquee__list[aria-hidden] { display: none; }
}

/* ---------- blog ---------- */
/* subpages keep a small inline menu on mobile (no toggle there) */
@media (max-width: 767px) {
  .nav--inline { position: static; inset: auto; padding: 0; background: none; opacity: 1; visibility: visible; }
  .nav--inline .nav__list { flex-direction: row; }
  .nav--inline .nav__list li { border: 0; }
  .nav--inline .nav__list li:first-child { display: none; }
  .nav--inline .nav__link, .nav--inline .nav__link--pill { padding: 8px 12px; font-size: 0.9rem; font-weight: 400; letter-spacing: 0; }
}
.blog, .post { padding-block: calc(var(--header-h) + var(--section-y)) var(--section-y); }
.blog__head { margin-bottom: 56px; }
.blog__lead { max-width: 56ch; color: var(--text-2); font-size: 1.12rem; line-height: 1.6; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--bg-raised); transition: border-color 0.25s, transform 0.4s var(--ease-out); }
.post-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.post-card--big { grid-column: 1 / -1; flex-direction: row; }
.post-card--big .post-card__media { flex: 1.35; }
.post-card--big .post-card__body { flex: 1; justify-content: center; padding: 40px; }
.post-card--big .post-card__title { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.3rem); }
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__play { position: absolute; left: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: rgb(8 9 13 / 0.7); border: 1px solid var(--line-strong); backdrop-filter: blur(6px); }
.post-card__play::after { content: ""; position: absolute; left: 18px; top: 15px; border: 8px solid transparent; border-left: 12px solid var(--text); border-right: 0; }
.post-card__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; }
.post-card__meta { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.post-card__title { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); }
.post-card__title em { font-family: var(--serif); font-style: italic; color: var(--azul-soft); font-weight: 400; }
.post-card__sum { color: var(--text-2); line-height: 1.55; }
.blog-teaser__foot { margin-top: 36px; }
@media (max-width: 859px) {
  .post-grid, .post-grid--3 { grid-template-columns: 1fr; }
  .post-card--big { flex-direction: column; }
  .post-card--big .post-card__body { padding: 24px 26px 28px; }
}
.post__wrap, .post__more { max-width: 1040px; }
.post__body { font-size: 1.125rem; }
.post__body h2 { font-size: 1.45rem; }
.post .kicker a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

.post__body { max-width: none; }
.post__cta .btn { padding: 0 26px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 40px; padding: 8px 16px 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.86rem; color: var(--text-2); transition: color 0.2s, border-color 0.2s; }
.back-link:hover { color: var(--text); border-color: var(--text); }
.back-link svg { width: 18px; height: 18px; }

/* player */
.player { position: relative; margin: 44px 0 64px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; display: block; cursor: pointer; }
.player__big { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: 16px; padding: 28px; background: linear-gradient(transparent 55%, rgb(8 9 13 / 0.8)); color: var(--text); font-size: 1rem; font-weight: 500; transition: opacity 0.3s; }
.player__cta { display: flex; align-items: center; gap: 16px; }
.player__bigicon { flex: none; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--azul); box-shadow: 0 0 0 10px rgb(61 123 255 / 0.18), 0 18px 50px -10px rgb(61 123 255 / 0.7); transition: transform 0.3s var(--ease-out); }
.player__bigicon svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.player__big:hover .player__bigicon { transform: scale(1.06); }
.player.is-started .player__big { opacity: 0; pointer-events: none; }
.player__bar { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 16px; background: rgb(8 9 13 / 0.72); border: 1px solid var(--line); backdrop-filter: blur(10px); opacity: 0; transform: translateY(8px); transition: opacity 0.3s, transform 0.3s var(--ease-out); }
.player.is-started .player__bar { opacity: 1; transform: none; }
.player.is-playing.is-idle .player__bar { opacity: 0; transform: translateY(8px); }
.player.is-playing.is-idle { cursor: none; }
.player__btn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--text); }
.player__btn:hover { background: rgb(255 255 255 / 0.08); }
.player__btn svg { width: 20px; height: 20px; fill: currentColor; }
.player__time { font-family: var(--mono); font-size: 0.74rem; color: var(--text-2); min-width: 3.2em; font-variant-numeric: tabular-nums; }
.player__time--total { text-align: right; color: var(--text-3); }
.player__track { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.player__track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.16); }
.player__fill { position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: var(--azul); transform: scaleX(0); transform-origin: left; }
.player__track:focus-visible { outline: 2px solid var(--azul-soft); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 600px) { .player { border-radius: 16px; } .player__bar { left: 8px; right: 8px; bottom: 8px; gap: 6px; } .player__time--total { display: none; } .player__bigicon { width: 52px; height: 52px; } .player__big { padding: 16px; } }

/* post */
.post__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.post__meta span + span::before { content: "·"; margin-right: 20px; color: var(--line-strong); }
.post__intro { font-size: 1.28rem; line-height: 1.6; color: var(--text); }
.post__body ol { padding-left: 1.4em; list-style: decimal; }
.post__body ol li::marker { color: var(--azul-soft); font-family: var(--mono); }
.post__figure { margin: 48px 0; }
.post__figure img { width: 100%; height: auto; display: block; border-radius: 20px; border: 1px solid var(--line); }
.post__figure figcaption { margin-top: 12px; font-size: 0.8rem; color: var(--text-3); text-align: center; }
.post__figure figcaption a { color: inherit; }
.post__resumo { margin-top: 56px; padding: 28px 30px; border-radius: 20px; background: var(--bg-raised); border: 1px solid var(--line); border-left: 3px solid var(--azul); }
.post__resumo .kicker { margin-bottom: 14px; }
.post__resumo ul { margin: 0; }
.post__cta { margin-top: 64px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 36px 40px; border-radius: 24px; border: 1px solid var(--line-strong); background: radial-gradient(120% 140% at 100% 0%, rgb(61 123 255 / 0.14), transparent 60%), var(--bg-raised); }
.post__cta-title { font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; margin-top: 10px; }
.post__cta-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--azul-soft); }
.post__more { margin-top: var(--section-y); }
.post__more-title { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 24px; }

/* landing: blog rail */
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail-nav { display: flex; gap: 10px; margin-bottom: 28px; }
.rail-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--text); transition: background-color 0.2s, color 0.2s, opacity 0.2s; }
.rail-btn:hover { background: var(--text); color: var(--bg); }
.rail-btn:disabled { opacity: 0.3; pointer-events: none; }
.rail-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px max(var(--gutter), (100% - var(--wrap)) / 2) 8px; scroll-padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2); }
.rail::-webkit-scrollbar { display: none; }
.rail .post-card { flex: 0 0 min(400px, 82vw); scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) { .rail { scroll-behavior: auto; } }
.post__ask { margin: 28px 0 0; padding: 24px 28px; border-radius: 18px; background: var(--bg-raised); border: 1px solid var(--line); }
.post__ask .kicker { margin-bottom: 12px; }
.post__ask ul { margin: 0; list-style: none; padding: 0; }
.post__ask li { position: relative; padding-left: 28px; color: var(--text); }
.post__ask li::before { content: "?"; position: absolute; left: 0; top: 0; font-family: var(--serif); font-style: italic; font-size: 1.3em; line-height: 1.3; color: var(--azul-soft); }
.post__alert { margin-top: 16px; padding-left: 16px; border-left: 2px solid var(--line-strong); font-size: 0.95em; color: var(--text-3); }
.post__alert strong { color: var(--text-2); }
.post__lista { margin: 36px 0 24px; padding: 30px 34px; border-radius: 20px; border: 1px solid var(--azul); background: radial-gradient(120% 140% at 100% 0%, rgb(61 123 255 / 0.1), transparent 60%), var(--bg-raised); }
.post__lista .kicker { margin-bottom: 16px; }
.post__lista ol { margin: 0; padding-left: 1.6em; list-style: decimal-leading-zero; columns: 2; column-gap: 40px; }
.post__lista li { color: var(--text); break-inside: avoid; }
.post__lista li::marker { font-family: var(--mono); font-size: 0.8em; color: var(--azul-soft); }
@media (max-width: 700px) { .post__lista ol { columns: 1; } }
.post__ask--box li::before { content: ""; top: 0.72em; width: 8px; height: 8px; border-radius: 2px; background: var(--azul); font-size: 1em; }

/* nossas respostas */
.ans-list { list-style: none; padding: 0; margin: 8px 0 0; border-top: 1px solid var(--line); }
.ans { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.ans__n { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--azul-soft); }
.ans__q { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.ans__a { font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; color: var(--text); margin-bottom: 12px; }
.ans__d { color: var(--text-2); line-height: 1.7; max-width: 70ch; }
.ans-note { margin-top: 40px; color: var(--text-2); line-height: 1.7; }
.ans-note a { color: var(--azul-soft); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .ans { grid-template-columns: 1fr; gap: 10px; } .ans__n { font-size: 2rem; } }
