/* PolePosition redesign — shared design system
   Brand: teal + violet from the logo, asphalt night base, curb red for signals only. */

:root {
  --bg: #0b0a0f;
  --bg-2: #13111a;
  --bg-3: #1b1824;
  --ink: #f2eff7;
  --muted: #a7a1b4;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --teal: #5ce0d0;
  --teal-deep: #55b5aa;
  --violet: #b36ae6;
  --violet-deep: #6a1a7a;
  --curb: #ff3b3b;
  --amber: #ffc53d;
  --glass: rgba(19, 17, 26, .72);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --radius: 22px;
  --radius-s: 12px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --f-display: "Unbounded", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f2ee;
    --bg-2: #ebe7e0;
    --bg-3: #e1dcd3;
    --ink: #15121b;
    --muted: #5b5568;
    --line: rgba(20, 16, 28, .12);
    --line-2: rgba(20, 16, 28, .22);
    --teal: #0f8f83;
    --violet: #7a2bb8;
    --glass: rgba(244, 242, 238, .82);
    --shadow: 0 30px 80px -40px rgba(30, 20, 50, .35);
    color-scheme: light;
  }
}

/* Zones that always stay "night track" regardless of the OS theme */
.night {
  --bg: #0b0a0f; --bg-2: #13111a; --bg-3: #1b1824; --ink: #f2eff7; --muted: #a7a1b4;
  --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.18);
  --teal: #5ce0d0; --violet: #b36ae6; --glass: rgba(19,17,26,.72);
  color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #0b0a0f; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow {
  font: 500 12px/1.2 var(--f-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.h-display {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.h1 { font-size: clamp(40px, 7.8vw, 126px); }
.h2 { font-size: clamp(34px, 5.6vw, 84px); }
.h3 { font-size: clamp(22px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(100deg, var(--teal) 0%, var(--violet) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.split .grad { background: none; }
.split .grad .w > span { background: linear-gradient(100deg, var(--teal) 0%, var(--violet) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.outline { -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.mono { font-family: var(--f-mono); }

/* split words (JS adds .w spans; aria-label keeps the full text) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font: 600 15px/1 var(--f-body);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink); transform: translateX(-101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn .arr { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--teal); color: #071512; border-color: var(--teal); }
.btn-primary::before { background: var(--violet); }
.btn-primary:hover { color: #fff; border-color: var(--violet); }

/* ---------- nav ---------- */
.nav {
  position: fixed; z-index: 50; top: 14px; left: 14px; right: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
.nav.hide { transform: translateY(-140%); }
.nav .logo img { height: 26px; width: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav ul a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font: 500 14px/1 var(--f-body); text-decoration: none; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--ink); background: var(--line); }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .3s; }
@media (max-width: 1080px) {
  .nav ul {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; padding: 12px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .3s var(--ease);
  }
  .nav.open ul { opacity: 1; pointer-events: auto; transform: none; }
  .nav ul a { font-size: 18px; padding: 14px 16px; }
  .burger { display: block; }
  .nav .btn.cta-nav { display: none; }
}

/* ---------- checkered + marquee ---------- */
.checker {
  height: 22px;
  background: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%) 0 0 / 22px 22px;
  opacity: .9;
}
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee span {
  font: 800 clamp(28px, 4vw, 54px)/1 var(--f-display); letter-spacing: -.02em;
  padding: 22px 28px; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px;
}
.marquee span::after { content: ""; width: 18px; height: 18px; background: repeating-conic-gradient(var(--teal) 0 25%, var(--violet) 0 50%) 0 0/9px 9px; }
.marquee span:nth-child(even) { -webkit-text-stroke: 1.2px var(--ink); color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: clamp(80px, 12vw, 180px) 0; position: relative; z-index: 2; background: var(--bg); }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-head.row { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 760px) { .sec-head.row { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-2);
  font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }

/* reveal defaults (JS animates; no-JS stays visible) */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.reduced [data-reveal] { opacity: 1 !important; transform: none !important; }

/* ---------- page hero (inner pages) ---------- */
.phero {
  position: relative; min-height: 88vh; display: grid; align-items: end;
  padding: 140px 0 clamp(40px, 6vw, 80px); overflow: hidden; isolation: isolate;
}
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 115%; object-fit: cover; }
.phero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,10,15,.55) 0%, rgba(11,10,15,.2) 40%, var(--bg) 100%),
    radial-gradient(80% 60% at 0% 100%, rgba(106,26,122,.45), transparent 70%);
}
.phero .crumbs { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; display: flex; gap: 10px; }
.phero .crumbs a { text-decoration: none; }
.phero .crumbs a:hover { color: var(--teal); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.field { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 60px; padding: 24px 18px 8px;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg);
  font: 500 16px/1.3 var(--f-body); color: var(--ink);
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field label { position: absolute; left: 19px; top: 9px; font: 500 11px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in oklab, var(--teal) 22%, transparent); }
.form .note { font-size: 13px; color: var(--muted); }
.form .note a { color: var(--teal); }
.form .status { min-height: 1.5em; font-weight: 600; }
.form .status.ok { color: var(--teal); }
.form .status.err { color: var(--curb); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { cursor: pointer; height: 46px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; transition: .2s; }
.seg input:checked + label { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ---------- CTA block (seminar) ---------- */
.cta-block { position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px); padding: clamp(28px, 5vw, 72px); background: var(--bg-2); border: 1px solid var(--line); display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); isolation: isolate; }
.cta-block::before { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 120%; z-index: -1; background: radial-gradient(closest-side, color-mix(in oklab, var(--violet) 40%, transparent), transparent); filter: blur(20px); }
.cta-block .lights { display: flex; gap: 10px; margin-bottom: 28px; }
.cta-block .lights i { width: 26px; height: 26px; border-radius: 50%; background: #2a2530; box-shadow: inset 0 -3px 6px rgba(0,0,0,.5); transition: background .2s, box-shadow .2s; }
.cta-block .lights i.on { background: var(--curb); box-shadow: 0 0 18px var(--curb), inset 0 -3px 6px rgba(0,0,0,.3); }
.cta-block .lights.go i { background: var(--teal); box-shadow: 0 0 18px var(--teal); }
@media (max-width: 900px) { .cta-block { grid-template-columns: 1fr; } }
.cta-block .h2 { font-size: clamp(32px, 4.4vw, 66px); }

/* ---------- testimonials ---------- */
.quotes { columns: 2 380px; column-gap: 20px; }
.quote { break-inside: avoid; margin: 0 0 20px; padding: clamp(24px, 3vw, 40px); position: relative; }
.quote blockquote { margin: 0 0 28px; font-size: 17px; line-height: 1.7; }
.quote blockquote::before { content: "“"; display: block; font: 800 80px/0.6 var(--f-display); color: var(--violet); margin-bottom: 18px; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--teal); }
.quote figcaption b { display: block; font: 700 17px/1.2 var(--f-display); }
.quote figcaption span { font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 8px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat + .stat { padding-left: 24px; }
.stat .num { font: 800 clamp(48px, 7vw, 112px)/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat .num sup { font-size: .32em; color: var(--teal); vertical-align: top; margin-left: 4px; }
.stat b { display: block; font: 700 18px/1.2 var(--f-display); margin-top: 12px; }
.stat > span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(3) { padding-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 80px 0 40px; }
.foot h4 { font: 500 11px/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--teal); }
.foot__word { font: 900 clamp(44px, 11.4vw, 190px)/.8 var(--f-display); letter-spacing: -.06em; white-space: nowrap; padding: 30px 0 28px; text-align: center; }
.foot__word .p1 { color: var(--teal-deep); } .foot__word .p2 { color: var(--violet-deep); }
@media (prefers-color-scheme: dark) { .foot__word .p2 { color: #8a2ba0; } }
.foot__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: .2s; }
.socials a:hover { background: var(--teal); color: #071512; border-color: var(--teal); }
.socials svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }

/* ---------- page transition curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: grid; grid-template-columns: repeat(6, 1fr); }
.curtain i { background: var(--bg-3); transform: scaleY(0); transform-origin: top; }
.curtain i:nth-child(odd) { background: #0b0a0f; }

/* ---------- misc ---------- */
.tilt { transform-style: preserve-3d; transition: transform .5s var(--ease); will-change: transform; }
.noise::after {
  content: ""; position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress-bar { position: fixed; z-index: 60; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--teal), var(--violet)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
}
