/* ---------- fonts (self-hosted) ---------- */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 200 800; font-style: normal; font-display: swap; src: url("assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400 700; font-style: normal; font-display: swap; src: url("assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-style: normal; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  --ink: #060a15;
  --navy: #0b1226;
  --paper: #f2f5fb;
  --white: #fff;
  --blue: #2563eb;
  --sky: #6e9bff;
  --text-d: #a3aecb;
  --text-l: #4d5873;
  --line-d: rgba(255, 255, 255, .12);
  --line-l: #dde3f0;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { font-family: var(--body); background: var(--ink); color: var(--text-l); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: #fff; padding: 8px 14px; border-radius: 999px; }
.ar { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--ink); color: #fff; display: grid; place-items: center; }
.loader-inner { display: grid; gap: 10px; justify-items: center; }
.loader-name { font-family: var(--mono); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-d); }
.loader-count { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 24vw, 13rem); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .08); }
.loader-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); transform: scaleX(0); transform-origin: 0 50%; }
@keyframes loaderOut { to { visibility: hidden; opacity: 0; } }
.loader { animation: loaderOut .01s 9s forwards; }

/* ---------- cursor ---------- */
.cursor { display: none; }
html.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 250; pointer-events: none; mix-blend-mode: difference; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.cursor-dot { width: 7px; height: 7px; background: #fff; }
.cursor-ring { width: 40px; height: 40px; border: 1.5px solid #fff; display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), background .3s; }
.cursor-ring em { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #000; opacity: 0; font-style: normal; transition: opacity .2s; }
.cursor.hover .cursor-ring { width: 64px; height: 64px; }
.cursor.label .cursor-ring { width: 96px; height: 96px; background: #fff; }
.cursor.label .cursor-ring em { opacity: 1; }
.cursor.label .cursor-dot { opacity: 0; }

/* ---------- progress + nav ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--blue), var(--sky)); }
.nav {
  position: fixed; z-index: 100; top: 14px; left: 0; right: 0; margin-inline: auto;
  width: min(1180px, 100% - 28px); display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 14px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; box-shadow: 0 14px 40px -16px rgba(0, 0, 0, .45);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ink); color: #fff; font: 600 12px var(--mono); letter-spacing: .04em; }
.nav-links { display: none; gap: 28px; font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 30px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 16px; border: 1px solid transparent; will-change: transform; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 14px 34px -12px rgba(37, 99, 235, .85); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .4) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-small { padding: 11px 20px; font-size: 14px; }
.btn-xl { padding: 24px 44px; font-size: clamp(1rem, 2.6vw, 1.25rem); }
.btn .ar { transition: transform .3s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); line-height: 1; letter-spacing: -.04em; font-weight: 700; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.dark em { color: var(--sky); }
.light em { color: var(--blue); }
.display { font-size: clamp(2.3rem, 6.4vw, 5.2rem); max-width: 16em; }
.display em { font-size: 1.12em; line-height: .9; }
.light .display, .light h3 { color: var(--ink); }
.dark .display, .dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 26px; font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.light .eyebrow { color: var(--blue); }
.dark .eyebrow { color: var(--sky); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 18%, transparent); animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, currentColor 0%, transparent); } }
.sub { margin-top: 26px; max-width: 40em; font-size: 1.1rem; }
.dark .sub { color: var(--text-d); }
.body-lg { font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.45; margin-top: 30px; letter-spacing: -.01em; }
.light .body-lg { color: var(--ink); }
.dark .body-lg { color: #fff; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- sections ---------- */
.section { padding: clamp(84px, 13vw, 170px) 0; position: relative; }
.dark { background: var(--ink); color: var(--text-d); }
.light { background: var(--paper); }
.sheet { border-radius: 44px 44px 0 0; margin-top: -44px; z-index: 2; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; padding: 130px 0 90px; overflow: hidden; display: flex; align-items: center; }
.gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%); }
.hero-inner { position: relative; z-index: 2; }
.pill { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 30px; padding: 5px 18px 5px 5px; border-radius: 28px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-d); backdrop-filter: blur(10px); font-size: 14px; color: #dfe6fa; }
.pill-tag { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: 7px 14px; border-radius: 999px; font-weight: 600; }
.pill-tag::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); animation: shine 4.5s ease-in-out infinite; }
.hero-title { color: #fff; font-size: clamp(2.6rem, 8.6vw, 7.4rem); font-weight: 800; letter-spacing: -.05em; line-height: .96; }
.hero-title .ln { display: block; overflow: hidden; padding: .04em 0 .12em; margin-bottom: -.1em; }
.hero-title .ln > span { display: block; will-change: transform; }
.hero-title em { font-size: 1.14em; line-height: .85; color: var(--sky); }
.hero-lower { display: grid; gap: 40px; margin-top: clamp(34px, 5vw, 64px); align-items: end; }
.lead { max-width: 36em; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-d); }
.cta { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.portrait { margin: 0; justify-self: start; width: min(300px, 78%); }
.portrait-wrap { position: relative; }
.portrait-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; background: linear-gradient(160deg, #1a2a55, #0b1226); border: 1px solid var(--line-d); box-shadow: 0 30px 70px -30px rgba(37, 99, 235, .6); }
.portrait-frame img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 50% 30%; max-width: none; }
.portrait-fallback { position: absolute; inset: 0; display: grid; place-items: center; font: 800 4rem var(--display); color: var(--sky); opacity: .5; }
.portrait figcaption { margin-top: 14px; display: grid; font-size: 14px; color: var(--text-d); }
.portrait figcaption strong { color: #fff; font: 600 16px var(--display); }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; z-index: 2; translate: -50% 0; display: none; flex-direction: column; align-items: center; gap: 10px; font: 500 11px var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--text-d); }
.scroll-hint i { width: 1px; height: 46px; background: linear-gradient(var(--sky), transparent); transform-origin: 50% 0; animation: drop 2s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: clamp(36px, 6vw, 80px) 0; display: grid; gap: 14px; border-top: 1px solid var(--line-d); }
.mq-row { overflow: hidden; }
.mq-track { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); width: max-content; white-space: nowrap; will-change: transform; }
.mq-track span { font: 700 clamp(2.6rem, 9vw, 7rem)/1 var(--display); letter-spacing: -.045em; color: #fff; }
.mq-track span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .55); }
.mq-track i { width: clamp(16px, 2.6vw, 34px); height: clamp(16px, 2.6vw, 34px); background: var(--blue); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); flex: none; }

/* ---------- apport: stacked cards ---------- */
.stack { margin-top: clamp(40px, 7vw, 90px); display: grid; gap: 0; }
.stack-card {
  position: sticky; top: calc(92px + var(--i) * 18px); display: grid; gap: 28px; align-items: center;
  min-height: min(60vh, 440px); margin-bottom: 5vh; padding: clamp(26px, 4.4vw, 56px);
  border-radius: 34px; color: var(--text-d); background: linear-gradient(145deg, #101a38, var(--navy) 60%); border: 1px solid var(--line-d);
  box-shadow: 0 40px 80px -40px rgba(6, 10, 21, .8); transform-origin: 50% 0;
  transform: scale(var(--sc, 1)); translate: 0 var(--ty, 0px);
}
.stack-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); opacity: var(--dim, 0); pointer-events: none; }
.stack-card h3 { font-size: clamp(1.7rem, 4vw, 3rem); margin: 14px 0 16px; color: #fff; letter-spacing: -.035em; }
.stack-card p { max-width: 28em; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.num { font: 500 13px var(--mono); letter-spacing: .14em; color: var(--sky); }
.viz { color: var(--sky); justify-self: center; width: min(100%, 340px); }
.viz-code { display: grid; gap: 12px; }
.viz-code i { display: block; height: 12px; border-radius: 8px; width: var(--w); background: linear-gradient(90deg, var(--blue), var(--sky)); transform-origin: 0 50%; animation: typing 3.6s ease-in-out infinite; }
.viz-code i:nth-child(even) { background: rgba(255, 255, 255, .18); }
.viz-code i:nth-child(2) { animation-delay: .2s; } .viz-code i:nth-child(3) { animation-delay: .4s; } .viz-code i:nth-child(4) { animation-delay: .6s; } .viz-code i:nth-child(5) { animation-delay: .8s; } .viz-code i:nth-child(6) { animation-delay: 1s; } .viz-code i:nth-child(7) { animation-delay: 1.2s; }
@keyframes typing { 0% { transform: scaleX(0); } 35%, 80% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.viz-net svg { width: 100%; height: auto; overflow: visible; }
.viz-rings { position: relative; aspect-ratio: 1; max-width: 240px; }
.viz-rings b { position: absolute; inset: 0; border: 1.5px solid var(--sky); border-radius: 50%; opacity: 0; animation: ring 3.6s ease-out infinite; }
.viz-rings b:nth-child(2) { animation-delay: 1.2s; } .viz-rings b:nth-child(3) { animation-delay: 2.4s; }
.viz-rings span { position: absolute; inset: 40%; border-radius: 50%; background: var(--blue); box-shadow: 0 0 40px 8px rgba(37, 99, 235, .7); }
@keyframes ring { 0% { transform: scale(.25); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.viz-path { position: relative; display: flex; justify-content: space-between; padding-top: 34px; font: 500 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-d); }
.vp-line { position: absolute; left: 6px; right: 6px; top: 8px; height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; }
.vp-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--sky)); transform-origin: 0 50%; animation: fill 4.5s ease-in-out infinite; box-shadow: 0 0 14px var(--blue); }
.viz-path span { position: relative; }
.viz-path span::before { content: ""; position: absolute; left: 0; top: -34px; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 2px solid var(--sky); }
.viz-path span:nth-of-type(2)::before { left: 50%; translate: -50% 0; } .viz-path span:nth-of-type(3)::before { left: auto; right: 0; }
.viz-path span:nth-of-type(2) { margin-inline: auto; }
@keyframes fill { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }

/* ---------- projects: pinned horizontal scroll (desktop + mobile) ---------- */
.hscroll { padding-bottom: 0; }
.h-head .sub { margin-bottom: 0; }
.h-pin { position: relative; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.h-track { display: flex; width: max-content; gap: 16px; padding: 0 20px; will-change: transform; }
.proj {
  position: relative; overflow: hidden; flex: none; display: flex; flex-direction: column; align-items: flex-start;
  width: min(84vw, 420px); height: min(66svh, 540px); padding: clamp(22px, 3.4vw, 44px);
  border-radius: 30px; background: linear-gradient(160deg, #0f1731, #080d1c); border: 1px solid var(--line-d); isolation: isolate;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1)); transition: transform .3s var(--ease), border-color .3s;
}
.proj:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.proj-glow { position: absolute; z-index: -1; width: 420px; height: 420px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 55%, transparent), transparent 65%); opacity: .6; transition: opacity .4s, transform .6s var(--ease); }
.proj:hover .proj-glow { opacity: .95; transform: scale(1.2); }
.proj-idx { position: absolute; right: 20px; bottom: -18px; z-index: -1; font: 800 clamp(7rem, 16vw, 12rem)/1 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .1); }
.logo-slot { position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; overflow: hidden; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-d); color: var(--sky); font: 800 1.6rem var(--display); margin-bottom: auto; transition: transform .5s var(--ease); }
.logo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.proj:hover .logo-slot { transform: scale(1.1) rotate(-5deg); }
.tag { font: 500 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--c); margin: 28px 0 10px; }
.proj h3 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin-bottom: 14px; }
.proj p:not(.tag) { max-width: 24em; color: var(--text-d); margin-bottom: 24px; font-size: .98rem; }
.proj-cta { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--ink); font: 600 14px var(--display); transition: background .3s, color .3s, gap .3s; }
.proj:hover .proj-cta { background: var(--c); gap: 16px; }
.h-progress { position: absolute; left: 20px; right: 20px; bottom: 4svh; height: 2px; background: var(--line-d); border-radius: 2px; }
.h-progress i { display: block; height: 100%; background: var(--sky); transform-origin: 0 50%; transform: scaleX(0); border-radius: 2px; }
.h-head { padding-bottom: clamp(36px, 7vw, 70px); }
@media (min-width: 900px) {
  .h-track { gap: 28px; padding: 0 max(20px, calc((100vw - 1180px) / 2)); }
  .proj { width: min(520px, 42vw); height: min(60vh, 500px); border-radius: 34px; }
  .h-progress { left: max(20px, calc((100vw - 1180px) / 2)); right: max(20px, calc((100vw - 1180px) / 2)); }
}

/* ---------- collaboration ---------- */
.nots-label { margin-top: 54px; font: 500 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); }
.nots { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.nots li { position: relative; padding: 11px 18px; border: 1px dashed #b4bdd3; border-radius: 999px; font-size: 14px; color: var(--text-l); background: #fff; overflow: hidden; }
.nots li::after { content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 1.5px; background: #e5484d; transform: scaleX(var(--strike, 1)); transform-origin: 0 50%; }

/* ---------- profil ---------- */
.profil { overflow: hidden; }
.profil-glow { position: absolute; width: 760px; height: 760px; left: 50%; top: 22%; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .28), transparent 62%); filter: blur(20px); pointer-events: none; }
.profil .container { position: relative; }
.rows { margin-top: clamp(40px, 6vw, 80px); }
.rows li { position: relative; display: flex; align-items: baseline; gap: clamp(16px, 4vw, 48px); padding: clamp(20px, 3vw, 34px) 0; transition: padding .4s var(--ease); }
.rows li::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-d); transform: scaleX(var(--line, 1)); transform-origin: 0 50%; }
.rows li::after { content: ""; position: absolute; inset: 0 -16px; z-index: -1; background: linear-gradient(90deg, rgba(37, 99, 235, .16), transparent); opacity: 0; transition: opacity .35s; border-radius: 16px; }
.rows li:hover::after { opacity: 1; }
.rows li:hover { padding-left: 14px; }
.rows .n { font: 500 13px var(--mono); letter-spacing: .12em; color: var(--sky); min-width: 2.2em; }
.rows .t { font: 600 clamp(1.25rem, 3.4vw, 2.4rem)/1.15 var(--display); letter-spacing: -.03em; color: #fff; }
.profil .body-lg { margin-top: clamp(40px, 6vw, 80px); max-width: 30em; }

/* ---------- modalités ---------- */
.split { display: grid; gap: 40px; margin-top: clamp(40px, 6vw, 72px); align-items: center; }
.donut { position: relative; width: min(340px, 78%); aspect-ratio: 1; justify-self: center; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.donut circle { fill: none; stroke-width: 18; }
.d-track { stroke: var(--line-l); }
.d-a, .d-b { stroke-linecap: butt; stroke-dasharray: 273 553; stroke-dashoffset: var(--off, 0); }
.d-a { stroke: var(--blue); }
.d-b { stroke: var(--ink); transform: rotate(180deg); transform-origin: 110px 110px; }
.d-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.d-center strong { font: 800 clamp(2.6rem, 8vw, 4.4rem)/1 var(--display); letter-spacing: -.05em; color: var(--ink); }
.d-center strong span { color: var(--blue); font-family: var(--serif); font-style: italic; font-weight: 400; margin: 0 .04em; }
.d-center small { margin-top: 8px; font: 500 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--text-l); }
.split-cards { display: grid; gap: 16px; }
.card { padding: clamp(24px, 3vw, 38px); background: #fff; border: 1px solid var(--line-l); border-radius: 30px; box-shadow: 0 18px 44px -24px rgba(37, 99, 235, .3); transition: translate .3s var(--ease), box-shadow .3s; }
.card:hover { translate: 0 -5px; box-shadow: 0 28px 54px -24px rgba(37, 99, 235, .45); }
.card h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.03em; }
.mini { margin-top: 18px; display: grid; gap: 12px; }
.mini li { display: flex; gap: 12px; align-items: baseline; color: var(--text-l); }
.mini li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); transform: translateY(-1px); }
.note { margin-top: 48px; max-width: 30em; font-size: clamp(1.05rem, 2vw, 1.3rem); }

/* ---------- final ---------- */
.final { position: relative; overflow: hidden; padding: clamp(110px, 18vw, 230px) 0 0; }
.final-inner { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; }
.mega { font-size: clamp(2.8rem, 10.4vw, 9rem); font-weight: 800; letter-spacing: -.055em; line-height: .95; color: #fff; max-width: 12em; }
.mega em { font-size: 1.12em; line-height: .85; }
.final .body-lg { max-width: 30em; color: var(--text-d); font-size: clamp(1.05rem, 2vw, 1.35rem); }
.final .btn-xl { margin-top: 44px; }
.footer { position: relative; z-index: 2; margin-top: clamp(90px, 14vw, 180px); border-top: 1px solid var(--line-d); padding: 28px 0; font-size: 14px; color: var(--text-d); }
.footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer a:hover { color: #fff; }

/* ---------- whatsapp ---------- */
.wa { position: fixed; right: 16px; bottom: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; display: flex; align-items: center; gap: 0; height: 58px; min-width: 58px; padding: 0 17px; border-radius: 999px; background: #25d366; color: #fff; box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .75); transition: box-shadow .3s, filter .3s; }
.wa svg { width: 24px; height: 24px; flex: none; }
.wa::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25d366; z-index: -1; animation: waPulse 2.8s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.wa-label { max-width: 0; overflow: hidden; white-space: nowrap; font: 600 14px var(--display); transition: max-width .45s var(--ease), margin .45s var(--ease); }
.wa:hover { filter: brightness(1.06); }
@media (hover: hover) { .wa:hover .wa-label { max-width: 200px; margin-left: 10px; } }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .nav-links { display: flex; }
  .cta { flex-direction: row; }
  .stack-card { grid-template-columns: 1.15fr .85fr; }
  .scroll-hint { display: flex; }
  .split-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .hero-lower { grid-template-columns: 1.4fr .6fr; gap: 60px; }
  .portrait { justify-self: end; margin-top: -6vw; }
  .split { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .split-cards { grid-template-columns: 1fr; }
}
@media (max-width: 719px) {
      .sheet { border-radius: 30px 30px 0 0; margin-top: -30px; }
  .stack-card { top: calc(84px + var(--i) * 12px); min-height: 0; }
}

/* ---------- static fallback (no JS libs / reduced motion) ---------- */
html.static .loader, html.static .cursor { display: none; }
html.static .stack-card { position: static; }
html.static .h-pin { height: auto; overflow: visible; padding-bottom: 80px; }
html.static .h-track { width: auto; flex-wrap: wrap; justify-content: center; }
html.static .h-progress { display: none; }
html.static .mq-track { flex-wrap: wrap; width: auto; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
