/* ===========================================================
   LoopPilot.io — cinematic AI automation
   Black canvas · electric-blue glow · minimal premium type
   =========================================================== */

/* ---- Self-hosted Sora (no third-party font requests) ---- */
@font-face{font-family:'Sora';font-style:normal;font-weight:200;font-display:swap;src:url("assets/fonts/sora-200-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Sora';font-style:normal;font-weight:200;font-display:swap;src:url("assets/fonts/sora-200-latin.woff2") format("woff2");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:'Sora';font-style:normal;font-weight:300;font-display:swap;src:url("assets/fonts/sora-300-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Sora';font-style:normal;font-weight:300;font-display:swap;src:url("assets/fonts/sora-300-latin.woff2") format("woff2");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:'Sora';font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/sora-400-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Sora';font-style:normal;font-weight:400;font-display:swap;src:url("assets/fonts/sora-400-latin.woff2") format("woff2");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:'Sora';font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/sora-500-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Sora';font-style:normal;font-weight:500;font-display:swap;src:url("assets/fonts/sora-500-latin.woff2") format("woff2");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:'Sora';font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/sora-600-latin-ext.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Sora';font-style:normal;font-weight:600;font-display:swap;src:url("assets/fonts/sora-600-latin.woff2") format("woff2");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}

:root {
  --bg:        #000000;
  --bg-soft:   #06070b;
  --bg-panel:  #0a0c12;
  --ink:       #f4f6fb;
  --ink-dim:   rgba(244, 246, 251, 0.62);
  --ink-faint: rgba(244, 246, 251, 0.5);
  --line:      rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  --blue-deep: #1453ff;
  --blue:      #2f8bff;
  --blue-lite: #79b8ff;
  --blue-glow: rgba(47, 139, 255, 0.55);

  --grad-blue: linear-gradient(180deg, #8cc4ff 0%, #2f8bff 48%, #1453ff 100%);

  --font:  "Sora", system-ui, -apple-system, sans-serif;

  --ease-q:  cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1180px;
}

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Custom cursor is opt-in: main.js adds .cursor-custom only on non-touch.
   If JS never runs, the native cursor stays and the custom dots stay hidden
   (no dead/invisible pointer). */
.cursor-dot, .cursor-ring { display: none; }
body.cursor-custom { cursor: none; }
body.cursor-custom a,
body.cursor-custom button,
body.cursor-custom .btn,
body.cursor-custom input,
body.cursor-custom textarea,
body.cursor-custom summary,
body.cursor-custom .lang-opt { cursor: none; }
body.cursor-custom .cursor-dot,
body.cursor-custom .cursor-ring { display: block; }

::selection { background: rgba(47, 139, 255, 0.32); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* visually hidden, still read by assistive tech */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---- background field (fixed, behind everything) ---- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-field .grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
  opacity: 0.5;
}
.bg-field .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.bg-field .glow.a {
  width: 60vw; height: 60vw;
  left: 50%; top: -10%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(47,139,255,0.20), transparent 62%);
}
.bg-field .glow.b {
  width: 40vw; height: 40vw;
  right: -8vw; top: 38%;
  background: radial-gradient(circle, rgba(20,83,255,0.16), transparent 60%);
}
.bg-field .grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- cursor ---- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.7);
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease-q), height .35s var(--ease-q),
              border-color .35s var(--ease-q), opacity .35s var(--ease-q);
}
.cursor-ring.hover { width: 66px; height: 66px; border-color: var(--blue-lite); }
@media (max-width: 860px) { .cursor-dot, .cursor-ring { display: none; } }

/* ---- nav ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  transition: background .4s var(--ease-q), backdrop-filter .4s var(--ease-q),
              border-color .4s var(--ease-q), padding .4s var(--ease-q);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 5, 8, 0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
  padding-top: 16px; padding-bottom: 16px;
}
.nav .brand img { height: 24px; width: auto; }
.nav .brand .logo-mark { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-dim);
  transition: color .3s var(--ease-q);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px !important;
  color: var(--ink) !important;
  background: rgba(255,255,255,0.02);
  transition: border-color .3s var(--ease-q), background .3s var(--ease-q);
}
.nav-cta:hover { border-color: rgba(47,139,255,0.55); background: rgba(47,139,255,0.08); }
.nav-cta { white-space: nowrap; }
@media (max-width: 720px) {
  .nav { padding: 14px 16px; }
  .nav.scrolled { padding: 12px 16px; }
  .nav-links { gap: 12px; }
  .nav-links .nav-cta { padding: 9px 14px; font-size: 12.5px; }
  .nav-links .lang-opt { padding: 9px 12px; font-size: 12px; }
}
@media (max-width: 560px) {
  .nav .brand .logo-full { display: none; }
  .nav .brand .logo-mark { display: block; height: 28px; width: 28px; }
}
@media (max-width: 720px) { .nav-links .lnk { display: none; } }

/* ---- layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
section { position: relative; z-index: 1; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-lite);
}
.kicker::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
}

/* ---- hero ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 90px;
  overflow: hidden;
}
.hero canvas#flow {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0.9;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 {
  font-weight: 200;
  font-size: clamp(44px, 8.4vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin: 26px 0 0;
}
.hero h1 .em {
  font-weight: 500;
  background: var(--grad-blue);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .sub {
  max-width: 540px;
  margin-top: 32px;
  font-size: clamp(15px, 1.5vw, 19px);
  color: var(--ink-dim);
  font-weight: 300;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
@media (max-width: 560px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .3s var(--ease-q), box-shadow .4s var(--ease-q),
              background .3s var(--ease-q), border-color .3s var(--ease-q);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  color: #00040f;
  background: linear-gradient(180deg, #bcd9ff, #2f8bff);
  box-shadow: 0 0 0 0 var(--blue-glow), 0 14px 40px -12px rgba(47,139,255,0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px -2px var(--blue-glow), 0 20px 50px -14px rgba(47,139,255,0.7); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.28); transform: translateY(-2px); }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-faint);
}
.scroll-cue .bar {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--blue-lite), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .bar::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: #fff;
  animation: cue 2.2s var(--ease-q) infinite;
}
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ---- manifesto ---- */
.manifesto { padding: clamp(120px, 20vh, 240px) 0; }
.manifesto .line {
  font-weight: 200;
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.manifesto .line .word { display: inline; }
.manifesto .em { color: var(--blue-lite); font-weight: 400; }
.manifesto .dim { color: var(--ink-faint); }

/* ---- expansion / pinned visual ---- */
.expand {
  height: 100vh;
  position: relative;
}
.expand .panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.expand .frame {
  position: relative;
  width: 46vw;
  max-width: 760px;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: 0 40px 120px -40px rgba(0,0,0,0.9);
  will-change: width, border-radius;
}
/* during the pinned scroll expansion GSAP drives the inline width past the
   resting cap — lift max-width so it can actually grow to full-bleed */
.expand .frame[style*="width"] { max-width: 96vw; }

/* MOBILE: drop the pin/scrub. Normal-flow section; the frame grows once on
   enter (handled in main.js) and the page scrolls past it naturally. */
@media (max-width: 860px) {
  .expand { height: auto; padding: 64px 0 76px; }
  .expand .panel { position: static; inset: auto; padding: 0 16px; }
  .expand .frame { width: 92vw; max-width: none; aspect-ratio: 16 / 11; }
  .expand .frame .label { left: 18px; bottom: 16px; font-size: 12px; }
}
.expand .frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.expand .frame .label {
  position: absolute;
  left: 26px; bottom: 22px;
  z-index: 3;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.expand .frame .label b { color: var(--ink); font-weight: 500; }
.expand .frame .vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 40%, transparent 40%, rgba(0,0,0,0.55));
}

/* ---- generic section heading ---- */
.head { max-width: 760px; }
.head h2 {
  font-weight: 200;
  font-size: clamp(32px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-top: 22px;
}
.head h2 .em { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 400; }
.head p { margin-top: 22px; max-width: 520px; color: var(--ink-dim); font-size: 16.5px; }

/* ---- capabilities ---- */
.caps { padding: clamp(90px, 14vh, 160px) 0; }
.caps-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  overflow: hidden;
}
@media (max-width: 760px) { .caps-grid { grid-template-columns: 1fr; } }
.cap {
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background .5s var(--ease-q);
  overflow: hidden;
}
.cap::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 300px at var(--mx, 50%) var(--my, 0%), rgba(47,139,255,0.10), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease-q);
}
.cap:hover::before { opacity: 1; }
.cap .ic {
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--blue-lite);
  background: rgba(47,139,255,0.05);
}
.cap .ic svg { width: 22px; height: 22px; }
.cap .no { position: absolute; top: clamp(28px,4vw,48px); right: clamp(28px,4vw,48px); font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; letter-spacing: 0.1em; }
.cap h3 { margin-top: auto; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.cap p { margin-top: 12px; color: var(--ink-dim); font-size: 15px; }

/* ---- process / loop ---- */
.proc { padding: clamp(90px, 14vh, 160px) 0; }
.proc-rail { margin-top: 70px; display: flex; flex-direction: column; gap: 0; position: relative; }
.proc-track, .proc-fill { position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; pointer-events: none; }
.proc-track { background: var(--line); }
.proc-fill { bottom: auto; height: 0; background: linear-gradient(180deg, var(--blue-lite), var(--blue-deep)); box-shadow: 0 0 14px rgba(47,139,255,0.55); }
@media (max-width: 640px) { .proc-track, .proc-fill { left: 4px; } }
.step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(24px, 5vw, 80px);
  padding: 46px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step .idx { font-size: 13px; letter-spacing: 0.2em; color: var(--blue-lite); font-variant-numeric: tabular-nums; padding-top: 8px; padding-left: 30px; position: relative; }
.step .idx::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line);
  transition: border-color .45s var(--ease-q), background .45s var(--ease-q), box-shadow .45s var(--ease-q);
}
.step.active .idx::before {
  border-color: var(--blue-lite); background: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,139,255,0.14), 0 0 16px rgba(47,139,255,0.7);
}
.step h3 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 200; letter-spacing: -0.03em; }
.step p { margin-top: 14px; color: var(--ink-dim); max-width: 520px; font-size: 16px; }
@media (max-width: 640px) {
  .step { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .step .idx { padding-left: 0; padding-top: 0; }
  .step .idx::before { left: -34px; top: 1px; }
}

/* ---- stats ---- */
.stats { padding: clamp(90px, 14vh, 160px) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 5vw, 70px); }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr; gap: 44px; } }
.stat .n {
  font-size: clamp(54px, 8vw, 110px);
  font-weight: 200;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad-blue);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .l { margin-top: 16px; color: var(--ink-dim); font-size: 15.5px; max-width: 260px; }

/* ---- CTA ---- */
.cta {
  min-height: 100svh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.7; }
.cta .wrap { position: relative; z-index: 2; }
.cta .em { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 400; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 50px; position: relative; z-index: 1; background: var(--bg); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer .brand img { height: 26px; }
.footer .blurb { margin-top: 18px; color: var(--ink-dim); max-width: 300px; font-size: 14.5px; }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 90px); flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; font-weight: 500; }
.footer-col a { display: block; color: var(--ink-dim); font-size: 14.5px; margin-bottom: 12px; transition: color .3s var(--ease-q); }
@media (max-width: 760px) { .footer-col a { padding: 5px 0; margin-bottom: 8px; } }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: var(--ink-faint); font-size: 13px; }
.footer-legal { display: inline-flex; align-items: center; gap: 10px; }
.footer-legal a { color: var(--ink-dim); transition: color .3s var(--ease-q); }
.footer-legal a:hover { color: var(--ink); }
.footer-legal .dot { color: var(--ink-faint); }

/* ---- reveal primitives ---- */
.r-up { opacity: 0; transform: translateY(34px); }
.r-fade { opacity: 0; }
.split-line { overflow: hidden; }
.split-line > span { display: inline-block; }

/* ---- skip link ---- */
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 9999;
  padding: 10px 16px; border-radius: 10px;
  background: var(--blue); color: #00040f; font-size: 13px; font-weight: 500;
  transform: translateY(-150%); transition: transform .2s var(--ease-q);
}
.skip:focus { transform: translateY(0); }

/* ---- language toggle ---- */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.lang-opt {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 5px 11px;
  cursor: pointer;
  transition: color .3s var(--ease-q), background .3s var(--ease-q);
}
.lang-opt.on { color: #00040f; background: var(--blue-lite); }
.lang-opt:not(.on):hover { color: var(--ink); }
@media (max-width: 860px) { .lang-opt { cursor: pointer; } }

/* ---- stats source line ---- */
.stats-src {
  margin-top: 44px;
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}
.stat .l .src {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--blue-lite);
  vertical-align: middle;
}

/* ---- FAQ ---- */
.faq { padding: clamp(80px, 12vh, 150px) 0; }
.faq-list { margin-top: 56px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color .3s var(--ease-q);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-lite); }
.faq-item summary .faq-ic {
  flex: none;
  width: 20px; height: 20px;
  color: var(--blue-lite);
  transition: transform .3s var(--ease-q);
}
.faq-item[open] summary .faq-ic { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 28px;
  max-width: 680px;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.6;
}
@media (max-width: 860px) { .faq-item summary { cursor: pointer; } }

/* ---- contact ---- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  text-align: left;
}
@media (max-width: 880px) { .contact-wrap { grid-template-columns: 1fr; gap: 48px; } }
.contact-intro h2 {
  font-weight: 200;
  font-size: clamp(40px, 6.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin-top: 22px;
}
.contact-intro h2 .em { background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 400; }
.contact-intro > p { margin-top: 24px; max-width: 420px; color: var(--ink-dim); font-size: 17px; }
.contact-direct { margin-top: 40px; display: flex; flex-direction: column; gap: 6px; }
.contact-direct .cd-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.contact-direct .cd-mail { font-size: clamp(20px, 2.6vw, 28px); font-weight: 300; color: var(--ink); letter-spacing: -0.02em; width: max-content; transition: color .3s var(--ease-q); }
.contact-direct .cd-mail:hover { color: var(--blue-lite); }
.contact-direct .cd-resp { margin-top: 4px; font-size: 14px; color: var(--ink-dim); }

.contact-form {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 40px 120px -50px rgba(0,0,0,0.9);
}
.contact-form .field { margin-bottom: 12px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .3s var(--ease-q), background .3s var(--ease-q);
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--ink-faint); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(47,139,255,0.55);
  background: rgba(47,139,255,0.05);
}
.btn-block { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { min-height: 18px; margin-top: 12px; font-size: 13.5px; }
.form-note.ok { color: var(--blue-lite); }
.form-note.err { color: #ff7a7a; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-slot:not(:empty) { margin-top: 16px; }

/* ===========================================================
   Legal / privacy page (privacy.html) — moved out of inline <style>
   =========================================================== */
.legal-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.legal-bg .glow { position: absolute; width: 60vw; height: 60vw; left: 50%; top: -20%; transform: translateX(-50%); border-radius: 50%; filter: blur(90px); background: radial-gradient(circle, rgba(47,139,255,0.14), transparent 62%); }
.legal-nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(20px,5vw,56px); background: rgba(4,5,8,0.62); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid var(--line); }
.legal-nav .brand img { height: 22px; width: auto; display: block; }
.legal-nav .right { display: flex; align-items: center; gap: 18px; }
.legal-nav .back { font-size: 13.5px; color: var(--ink-dim); transition: color .3s var(--ease-q); }
.legal-nav .back:hover { color: var(--ink); }
.legal { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: clamp(56px,9vh,110px) clamp(20px,5vw,40px) 120px; }
.legal .kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-lite); }
.legal .kicker::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); }
.legal h1 { font-weight: 200; font-size: clamp(36px,6vw,68px); letter-spacing: -0.04em; line-height: 1.02; margin: 20px 0 14px; }
.legal .updated { color: var(--ink-faint); font-size: 14px; margin-bottom: 8px; }
.legal .intro { color: var(--ink-dim); font-size: 17px; margin: 22px 0 8px; }
.legal h2 { font-weight: 400; font-size: clamp(20px,2.6vw,26px); letter-spacing: -0.02em; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--ink-dim); font-size: 15.5px; line-height: 1.7; }
.legal strong { color: var(--ink); font-weight: 500; }
.legal ul { margin: 12px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.legal a.inline { color: var(--blue-lite); border-bottom: 1px solid var(--line); }
.legal a.inline:hover { border-color: var(--blue); }
.legal .note { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.02); color: var(--ink-faint); font-size: 13.5px; }
[data-lang-block] { display: none; }
.legal-foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 30px clamp(20px,5vw,40px); text-align: center; color: var(--ink-faint); font-size: 13px; }
