/* =========================================================
   NEOREME — thème principal (pro)
   ========================================================= */
:root {
  --bg: #07080a;
  --bg2: #0c0e12;
  --card: #0d0f14;
  --card2: #11141a;
  --text: #eceef2;
  --muted: #8b919c;
  --dim: #5a606b;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .16);
  --ion: #6ae3ff;
  --violet: #8b7bff;
  --hot: #ff7a45;
  --on-accent: #07080a;
  --glow: rgba(106, 227, 255, .10);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Logo : Canela Bold (police du logo) si installée, sinon DM Serif Display */
  --logo: "Canela", "Canela Trial", "DM Serif Display", Georgia, serif;
  --brand: #7ccbb9;

  --pad: clamp(20px, 4vw, 56px);
  --radius: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color .5s, color .5s;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ion); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--ion); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.muted { color: var(--muted); }
em { font-style: normal; }
.grad {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background: linear-gradient(100deg, var(--ion) 0%, var(--violet) 70%, var(--ion) 140%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 8s linear infinite;
  padding-right: .06em;
}
@keyframes gradShift { to { background-position: -200% 0; } }

/* pro / ninja swaps */
body:not(.ninja) .ninja-only { display: none !important; }
body.ninja .pro-only { display: none !important; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  body.has-cursor .cursor { display: block; }
  .cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .3s; }
  body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
  .cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--text); mix-blend-mode: difference; }
  .cursor-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
  .cursor-ring::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line2);
    transition: transform .4s var(--ease), background-color .3s, border-color .3s;
  }
  body.cursor-hover .cursor-ring::before { transform: scale(1.7); background: rgba(106, 227, 255, .06); border-color: rgba(106, 227, 255, .5); }
}

/* ---------- pulse ---------- */
.pulse { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ion); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ion); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: calc(16px + env(safe-area-inset-top, 0px)) var(--pad) 16px;
  transition: padding .5s var(--ease), background-color .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; background: rgba(7, 8, 10, .55); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav.hidden { transform: translateY(-100%); }
.brand { display: inline-flex; align-items: center; gap: 11px; user-select: none; }
.brand-mark { width: 26px; height: 26px; fill: var(--brand); transition: transform .7s var(--ease); }
.brand:hover .brand-mark { transform: rotate(90deg) scale(1.08); }
.brand-name { font-family: var(--logo); font-weight: 400; font-size: 1.45rem; letter-spacing: -.02em; line-height: 1; }
.nav-links {
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav-links a { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; color: var(--muted); transition: color .3s, background-color .3s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-cta { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line2); font-size: .9rem; font-weight: 500; transition: background-color .3s, color .3s, border-color .3s; }
.nav-cta:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; position: relative; cursor: pointer; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.menu-toggle span:first-child { top: 18px; } .menu-toggle span:last-child { top: 25px; }
body.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 70; background: var(--bg);
  display: flex; align-items: center; padding: var(--pad);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); pointer-events: none;
}
body.menu-open .mobile-menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a { font-size: clamp(2.2rem, 10vw, 3.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }

@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: block; }
}

/* =========================================================
   BUTTONS (pro)
   ========================================================= */
.cmp { min-width: 0; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  height: 54px; padding: 0 8px 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-size: .98rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), color .4s, border-color .4s, background-color .4s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(100deg, var(--ion), var(--violet));
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); color: var(--text); overflow: hidden; }
.btn-icon svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover .btn-icon svg { animation: arrowLoop .6s var(--ease); }
@keyframes arrowLoop { 0% { transform: translateX(0); } 45% { transform: translateX(24px); } 46% { transform: translateX(-24px); } 100% { transform: translateX(0); } }
.btn-ghost { padding: 0 26px; border-color: var(--line2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }
.btn.is-done .btn-label::after { content: " ✓"; }
.btn:active { transform: scale(.97); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
#plasma { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 18% 72%, rgba(7, 8, 10, .85), transparent 70%),
    linear-gradient(to top, var(--bg) 0%, transparent 28%);
}
.hero-speed { display: none; }
.hero-inner { padding-top: 140px; padding-bottom: 40px; will-change: transform, opacity; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero-title { margin: 0; font-weight: 500; font-size: clamp(3.1rem, 10.6vw, 11rem); line-height: .9; letter-spacing: -.055em; }
.hero-title .grad { letter-spacing: -.03em; }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
body.is-loaded .hero-title .line > span { transform: none; }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-eyebrow, .hero-bottom > *, .hero-meta { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
body.is-loaded .hero-eyebrow { opacity: 1; transform: none; transition-delay: .05s; }
body.is-loaded .hero-bottom > * { opacity: 1; transform: none; transition-delay: .45s; }
body.is-loaded .hero-bottom > *:nth-child(2) { transition-delay: .55s; }
body.is-loaded .hero-meta { opacity: 1; transform: none; transition-delay: .8s; }

.hero-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 56px); }
.hero-sub { max-width: 34rem; margin: 0; font-size: clamp(1.02rem, 1.3vw, 1.2rem); line-height: 1.6; color: var(--muted); }
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 28px; color: var(--dim); }
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; }
.scroll-hint i { position: relative; width: 1px; height: 34px; background: var(--line2); overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--text); animation: drip 1.8s var(--ease-io) infinite; }
@keyframes drip { to { top: 100%; } }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; user-select: none; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; align-items: center; flex: none; }
.marquee span { font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 500; letter-spacing: -.04em; padding: 0 .45em; white-space: nowrap; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1px var(--line2); }
.marquee b { color: var(--ion); font-size: 1.2rem; font-weight: 400; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding-block: clamp(100px, 13vw, 190px); position: relative; }
.section-tight { padding-block: clamp(60px, 8vw, 110px); }
.sec-head { margin-bottom: clamp(48px, 6vw, 88px); max-width: 980px; }
.sec-label { display: inline-block; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ion); margin-bottom: 26px; }
.sec-title { margin: 0; font-weight: 500; font-size: clamp(2.5rem, 6.2vw, 5.9rem); line-height: .96; letter-spacing: -.048em; }
.sec-title.big { font-size: clamp(2.8rem, 7.4vw, 7rem); }
.sec-sub { max-width: 38rem; margin: 28px 0 0; font-size: 1.08rem; }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--muted); margin: 0; }

.rl .line > span { transform: translateY(110%); }
.rl.in .line > span { transform: none; }
.rl.in .line:nth-child(2) > span { transition-delay: .1s; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.chip { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line2); font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* =========================================================
   MANIFESTE
   ========================================================= */
.manifesto { height: 260vh; position: relative; }
.manifesto-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.manifesto-text { margin: 0; max-width: 1180px; font-size: clamp(1.75rem, 4.1vw, 4.1rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 500; }
.manifesto-text em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--ion); }
.manifesto-text .w { opacity: .13; transition: opacity .25s linear; }

/* =========================================================
   MÉTHODE (horizontal)
   ========================================================= */
.method { position: relative; }
.method-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.method-track { display: flex; align-items: stretch; gap: 22px; width: max-content; padding-inline: var(--pad); will-change: transform; }
.method-intro { width: min(84vw, 520px); display: flex; flex-direction: column; justify-content: center; padding-right: 40px; }
.method-intro .muted { max-width: 26rem; font-size: 1.05rem; margin: 26px 0 30px; }
.method-hint { color: var(--dim); }
.step {
  position: relative; width: min(80vw, 430px); min-height: min(62vh, 520px); padding: 30px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card2), var(--card)); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  transition: border-color .4s;
}
.step:hover { border-color: var(--line2); }
.step:hover .step-glyph { -webkit-text-stroke-color: rgba(106, 227, 255, .4); transform: translate(-10px, -10px) rotate(-4deg); }
.step-glyph { position: absolute; right: -10px; bottom: -40px; z-index: -1; font-family: var(--serif); font-size: 21rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(106, 227, 255, .16); transition: -webkit-text-stroke-color .5s, transform 1s var(--ease); pointer-events: none; }
.step-top { display: flex; justify-content: space-between; align-items: center; color: var(--dim); }
.step-kicker { margin: auto 0 6px; font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--ion); }
.step h3 { margin: 0 0 14px; font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 500; letter-spacing: -.04em; }
.step p:last-child { margin: 0; color: var(--muted); max-width: 30ch; }
.method-progress { display: flex; align-items: center; gap: 16px; color: var(--dim); }
.method-progress .bar { flex: 1; height: 1px; background: var(--line2); position: relative; overflow: hidden; }
.method-progress .bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--ion), var(--violet)); transform-origin: left; transform: scaleX(0); }

@media (max-width: 900px) {
  .method-sticky { position: relative; height: auto; padding-block: 100px; }
  .method-track { flex-direction: column; width: 100%; transform: none !important; }
  .method-intro, .step { width: 100%; }
  .step { min-height: 360px; }
  .method-hint, .method-progress { display: none; }
}

/* =========================================================
   VISION
   ========================================================= */
.vision-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.vision-demo { position: sticky; top: 100px; }
.usecases { list-style: none; padding: 0; margin: 44px 0 0; }
.usecases li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--line); }
.usecases li:last-child { border-bottom: 1px solid var(--line); }
.usecases .mono { color: var(--ion); padding-top: 4px; }
.usecases h4 { margin: 0 0 4px; font-size: 1.15rem; font-weight: 500; letter-spacing: -.02em; }
.usecases p { margin: 0; color: var(--muted); font-size: .96rem; }

.vision-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.vision-live { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.vision-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.vision-screen { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line2); background: #090b0f; }
.vision-screen canvas { width: 100%; height: 100%; }
.hud { position: absolute; top: 16px; display: flex; align-items: center; gap: 8px; color: rgba(236, 238, 242, .75); font-size: .68rem; pointer-events: none; }
.hud-tl { left: 18px; } .hud-tr { right: 18px; }
.hud b { color: var(--ion); font-weight: 500; }
.rec { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; animation: blink 1.2s steps(2) infinite; }
.corner { position: absolute; width: 18px; height: 18px; border: 1.5px solid rgba(236, 238, 242, .55); pointer-events: none; }
.corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.vision-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.vision-stats div { padding: 14px 16px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vision-stats div:first-child { border-left: 0; }
.vision-stats span { color: var(--dim); font-size: .66rem; }
.vision-stats b { font-weight: 500; font-size: .95rem; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 960px) {
  .vision-grid { grid-template-columns: 1fr; }
  .vision-demo { position: relative; top: 0; order: -1; }
  .vision-stats { grid-template-columns: repeat(2, 1fr); }
  .vision-stats div:nth-child(3) { border-left: 0; }
  .vision-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* =========================================================
   BENTO
   ========================================================= */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; grid-column: span 2; padding: 30px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; min-height: 270px;
  transition: transform .6s var(--ease), border-color .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(520px circle at var(--x, 50%) var(--y, 50%), var(--glow), transparent 45%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(360px circle at var(--x, 50%) var(--y, 50%), rgba(106, 227, 255, .7), rgba(139, 123, 255, .3) 30%, transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.bento:hover .card::after, .card:hover::before { opacity: 1; }
.card-cv { grid-column: span 4; grid-row: span 2; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: auto; padding-bottom: 36px; }
.ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin: 0 0 10px; font-size: 1.45rem; font-weight: 500; letter-spacing: -.03em; }
.card p { margin: 0; color: var(--muted); }
.card-cv h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.card-cv p { max-width: 34rem; }
.cv-visual { width: 100%; margin-top: 30px; overflow: visible; }
.cv-dot { fill: rgba(255, 255, 255, .12); }
.cv-obj * { stroke: rgba(236, 238, 242, .35); stroke-width: 1.5; fill: rgba(255, 255, 255, .02); }
.cvb rect { stroke: var(--ion); stroke-width: 1.5; fill: rgba(106, 227, 255, .05); stroke-dasharray: 480; stroke-dashoffset: 480; animation: drawBox 6s var(--ease) infinite; }
.cvb text { fill: var(--ion); font: 500 12px var(--mono); opacity: 0; animation: showLbl 6s var(--ease) infinite; }
.cvb.hot rect { stroke: var(--hot); fill: rgba(255, 122, 69, .07); }
.cvb.hot text { fill: var(--hot); }
.cvb2 rect, .cvb2 text { animation-delay: .5s; }
.cvb3 rect, .cvb3 text { animation-delay: 1s; }
@keyframes drawBox { 0%, 8% { stroke-dashoffset: 480; } 28%, 82% { stroke-dashoffset: 0; opacity: 1; } 95%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes showLbl { 0%, 22% { opacity: 0; } 30%, 82% { opacity: 1; } 95%, 100% { opacity: 0; } }
.cv-scan { stroke: var(--ion); stroke-width: 2; filter: drop-shadow(0 0 6px var(--ion)); animation: scanX 6s var(--ease-io) infinite; }
@keyframes scanX { 0% { transform: translateX(0); opacity: 0; } 5% { opacity: 1; } 60% { transform: translateX(520px); opacity: 1; } 65%, 100% { transform: translateX(520px); opacity: 0; } }

@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card, .card-cv { grid-column: span 1; grid-row: auto; }
  .card-cv { grid-column: span 2; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .card, .card-cv { grid-column: auto; }
}

/* =========================================================
   DUO
   ========================================================= */
.duo-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.person { padding: clamp(26px, 3vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(165deg, var(--card2), var(--card)); display: flex; flex-direction: column; }
.person-top { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.person h3 { margin: 0; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.role { margin: 8px 0 0; color: var(--muted); }
.person > p { color: var(--muted); margin: 0 0 18px; }
.person .quote { font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.3; color: var(--text); margin: 8px 0 26px; }
.avatar { position: relative; width: 84px; height: 84px; flex: none; border-radius: 50%; display: grid; place-items: center; isolation: isolate; }
.avatar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -2; background: conic-gradient(from 0deg, var(--ion), var(--violet), transparent 60%, var(--ion)); animation: spin 6s linear infinite; }
.avatar::after { content: ""; position: absolute; inset: 1.5px; border-radius: 50%; z-index: -1; background: var(--card2); }
.avatar.alt::before { animation-direction: reverse; }
.avatar span { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.tags { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.duo-x { align-self: center; font-family: var(--serif); font-style: italic; font-size: 4rem; color: var(--ion); line-height: 1; }
.dna { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.dna-item { padding: 30px 30px 0 0; }
.dna-item + .dna-item { padding-left: 30px; border-left: 1px solid var(--line); }
.dna-item .mono { color: var(--ion); }
.dna-item p { margin: 14px 0 0; font-size: 1.12rem; line-height: 1.45; letter-spacing: -.01em; }
@media (max-width: 900px) {
  .duo-grid { grid-template-columns: 1fr; }
  .duo-x { justify-self: center; font-size: 3rem; }
  .dna { grid-template-columns: 1fr; }
  .dna-item, .dna-item + .dna-item { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* =========================================================
   STATS
   ========================================================= */
.stats { border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat b { display: flex; align-items: baseline; gap: 4px; font-size: clamp(3.4rem, 6.4vw, 6.2rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat small { font-size: .38em; color: var(--ion); letter-spacing: 0; font-weight: 400; }
.stat p { margin: 16px 0 0; color: var(--muted); max-width: 22ch; }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   CONTACT + FORM COMPONENTS (pro)
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy { position: sticky; top: 120px; }
.contact-copy .lead { margin-top: 30px; max-width: 30rem; }
.contact-mail { margin-top: 40px; display: flex; flex-direction: column; gap: 8px; }
.mail-link { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -.03em; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 4px; overflow-wrap: anywhere; }
.mail-link:hover { background-size: 100% 1px; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .contact-copy { position: relative; top: 0; } }

.brief { padding: clamp(22px, 3vw, 38px); border-radius: 28px; border: 1px solid var(--line); background: linear-gradient(170deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); backdrop-filter: blur(8px); display: flex; flex-direction: column; gap: 26px; }
.brief-head h3 { margin: 6px 0 0; font-size: 1.6rem; font-weight: 500; letter-spacing: -.03em; }
.brief-head .mono { margin: 0; }
.brief-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 560px) { .brief-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field-inline { flex-direction: row; align-items: center; gap: 14px; }
.field-label { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* input */
.input, .textarea {
  width: 100%; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .025);
  color: var(--text); font: 400 1rem var(--font); padding: 14px 16px; outline: none;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .textarea:focus { border-color: var(--ion); background: rgba(106, 227, 255, .04); box-shadow: 0 0 0 4px rgba(106, 227, 255, .1); }

/* checkbox */
.check { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 999px; border: 1px solid var(--line2); cursor: pointer; font-size: .9rem; transition: border-color .3s, background-color .3s; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line2); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.check-box svg { width: 12px; height: 12px; fill: none; stroke: var(--on-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease); }
.check:has(input:checked) { border-color: var(--ion); background: rgba(106, 227, 255, .07); }
.check input:checked + .check-box { background: var(--ion); border-color: var(--ion); }
.check input:checked + .check-box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check-box { outline: 2px solid var(--ion); outline-offset: 2px; }

/* radio (segmented) */
.radios { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .02); }
.radio { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border-radius: 999px; cursor: pointer; font-size: .9rem; color: var(--muted); transition: color .35s; text-align: center; }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; flex: none; }
.radio-dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; transform: scale(0); transition: transform .35s var(--ease); }
.radio:has(input:checked) { color: var(--on-accent); }
.radio input:checked + .radio-dot::after { transform: scale(1); }
.radio input:focus-visible + .radio-dot { outline: 2px solid var(--ion); outline-offset: 2px; }
.radios-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--text); transition: transform .5s var(--ease), width .5s var(--ease); }
@media (max-width: 480px) { .radio-dot { display: none; } .radio { padding-inline: 6px; font-size: .84rem; } }

/* slider */
.range { position: relative; display: flex; align-items: center; gap: 14px; height: 48px; }
.range input { -webkit-appearance: none; appearance: none; flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ion), var(--violet)) 0 0 / var(--p, 50%) 100% no-repeat, var(--line2); outline: none; cursor: pointer; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 5px solid var(--bg); box-shadow: 0 0 0 1px var(--line2), 0 0 18px rgba(106, 227, 255, .5); transition: transform .3s var(--ease); }
.range input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--text); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--line2), 0 0 18px rgba(106, 227, 255, .5); }
.range input:active::-webkit-slider-thumb { transform: scale(1.25); }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--ion); }
.range output { min-width: 62px; text-align: right; font-family: var(--mono); font-size: .85rem; color: var(--text); font-variant-numeric: tabular-nums; }

/* toggle */
.switch { position: relative; width: 52px; height: 30px; flex: none; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .05); cursor: pointer; padding: 0; transition: background-color .4s, border-color .4s; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .5s var(--ease), background-color .4s, width .25s var(--ease); }
.switch:active .switch-knob { width: 28px; }
.switch[aria-checked="true"] { background: linear-gradient(90deg, var(--ion), var(--violet)); border-color: transparent; }
.switch[aria-checked="true"] .switch-knob { transform: translateX(22px); background: var(--bg); }
.switch[aria-checked="true"]:active .switch-knob { transform: translateX(16px); }

/* rating */
.stars { display: inline-flex; gap: 4px; height: 48px; align-items: center; }
.star { width: 34px; height: 34px; padding: 4px; border: 0; background: none; cursor: pointer; color: var(--line2); transition: transform .35s var(--ease), color .25s; }
.star svg { width: 100%; height: 100%; fill: currentColor; }
.star.on { color: var(--ion); }
.star.hov { color: rgba(106, 227, 255, .55); }
.star:hover { transform: scale(1.18) rotate(-8deg); }
.star.pop { animation: starPop .45s var(--ease); }
@keyframes starPop { 40% { transform: scale(1.4) rotate(12deg); } }

/* tabs */
.tabs { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); }
.tab { position: relative; z-index: 1; border: 0; background: none; padding: 9px 16px; border-radius: 999px; font-size: .86rem; color: var(--muted); cursor: pointer; transition: color .35s; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--on-accent); }
.tabs-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 999px; background: var(--text); transition: transform .5s var(--ease), width .5s var(--ease); }
@media (max-width: 420px) { .tab { padding: 8px 11px; font-size: .8rem; } }

/* progress */
.progress-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: .88rem; color: var(--muted); }
.progress-top b { font-family: var(--mono); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.progress-track { position: relative; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress-track i { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, var(--ion), var(--violet)); transform-origin: left; transform: scaleX(0); transition: transform .9s var(--ease); }
.progress-track i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: shimmer 2.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.progress.full .progress-top b { color: var(--ion); }

/* tooltip */
.tip { position: relative; display: inline-flex; }
.tip-btn { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--muted); font: 500 .7rem var(--mono); cursor: help; display: grid; place-items: center; padding: 0; transition: color .3s, border-color .3s; }
.tip-btn:hover, .tip-btn:focus-visible { color: var(--text); border-color: var(--ion); }
.tip-bubble {
  position: absolute; bottom: calc(100% + 10px); left: 50%; z-index: 20; width: max-content; max-width: 230px;
  padding: 9px 12px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: .8rem; line-height: 1.4; text-transform: none; letter-spacing: 0;
  opacity: 0; transform: translate(-50%, 6px) scale(.96); transform-origin: 50% 100%; pointer-events: none; transition: opacity .25s, transform .35s var(--ease);
}
.tip-bubble::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--text); }
.tip:hover .tip-bubble, .tip.open .tip-bubble, .tip-btn:focus-visible + .tip-bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* toast */
.toast-slot { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 150; transform: translateX(-50%); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 999px; pointer-events: auto;
  background: rgba(20, 23, 29, .85); border: 1px solid var(--line2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); font-size: .92rem; white-space: nowrap;
  opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .35s, transform .6s var(--ease);
}
.toast.show { opacity: 1; transform: none; }
.toast-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--ion), var(--violet)); color: var(--on-accent); flex: none; }
.toast-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding-top: 70px; overflow: hidden; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-claim { margin: 10px 0 0; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-content: flex-start; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-word { text-align: center; line-height: 1; margin-top: 40px; padding-bottom: 2vw; user-select: none; }
.footer-word > span { display: inline-block; font-family: var(--logo); font-size: clamp(4.6rem, 22vw, 22rem); font-weight: 400; letter-spacing: -.035em; padding-inline: .05em; background: linear-gradient(180deg, var(--text) 10%, transparent 92%); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }
.footer-bottom { position: relative; z-index: 1; background: var(--bg); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px calc(22px + env(safe-area-inset-bottom, 0px)); color: var(--dim); border-top: 1px solid var(--line); }
.egg-hint { text-transform: none; letter-spacing: 0; }

/* easter-egg elements hidden in pro mode */
.egg-flash { position: fixed; inset: 0; z-index: 300; pointer-events: none; display: none; }
.ninja-mascot, .ninja-exit { display: none; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .line > span, .rl .line > span { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
  .manifesto-text .w { opacity: 1 !important; }
}
