/* Pegasi Transportation — brand colors & fonts from PEGASI_LOGOBOOK 2026
   Colors: #00218A navy, #4062CE blue, #588CE8 sky, white, black
   Fonts: Archivo (headlines, text), Bomber Escort (the PEGASI wordmark font: accent words),
   Aldrich (small uppercase labels)
   Layout idea: two-color base (near-black + white). Pegasi blue is only the accent:
   buttons, highlighted words, the hero tiles. */

/* Brand fonts from the logobook */
@font-face {
  font-family: "Bomber Escort";
  src: url("fonts/BomberEscort-SemiLeft.woff") format("woff");
  font-display: swap;
}
@font-face {
  font-family: "Aldrich";
  src: url("fonts/Aldrich-Regular.woff") format("woff");
  font-display: swap;
}

:root {
  --navy: #00218A;
  --blue: #4062CE;
  --sky: #588CE8;
  --black: #0A0A0B;
  --graphite: #141416;
  --graphite-2: #1D1E21;
  --bg: #F3F3F1;
  --card: #FFFFFF;
  --ink: #0B0B0C;
  --muted: #66666C;
  --line: rgba(10, 10, 11, .08);
  --line-2: rgba(10, 10, 11, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 40px -26px rgba(0, 0, 0, .22);
  --display: "Archivo", system-ui, sans-serif;
  --tech: "Aldrich", "Archivo", system-ui, sans-serif;
  --brand: "Bomber Escort", "Archivo", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --field: #FAFAF9;
  --nav-bg: rgba(243, 243, 241, .84);
  --link: var(--ink);
  --label: var(--blue);
  --em: var(--blue);
  --num: var(--ink);
  --tag-bg: rgba(10, 10, 11, .05);
  --tag: #3A3A40;
  --chip-bg: var(--black);
  /* first screen (hero + story band): light in day mode, near-black in dark mode */
  --stage: #EBEBE8;
  --stage-ink: #0B0B0C;
  --stage-muted: #5E5E65;
  --stage-line: rgba(10, 10, 11, .12);
  --stage-glass: rgba(255, 255, 255, .5);
  --stage-scrim: rgba(235, 235, 232, .7);
  --wrap: 1200px;
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[data-theme="dark"] {
  --bg: #0A0A0B;
  --card: #131315;
  --ink: #F2F2F0;
  --muted: #9B9BA2;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
  --field: #0F0F11;
  --nav-bg: rgba(10, 10, 11, .82);
  --link: #fff;
  --label: var(--sky);
  --em: var(--sky);
  --num: #fff;
  --tag-bg: rgba(255, 255, 255, .06);
  --tag: #D9D9DE;
  --chip-bg: var(--graphite-2);
  --stage: #0A0A0B;
  --stage-ink: #fff;
  --stage-muted: #A6A6AD;
  --stage-line: rgba(255, 255, 255, .12);
  --stage-glass: rgba(255, 255, 255, .04);
  --stage-scrim: rgba(10, 10, 11, .6);
  color-scheme: dark;
}
/* dark blocks always use the lighter accent */
.path, .partners-intro, .calc, .cta-band, .card-feature { --em: var(--sky); --label: var(--sky); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--blue); color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; font-stretch: 112%; line-height: 1.04; margin: 0 0 .5em; letter-spacing: -.03em; }
/* accent words are set in the wordmark font, like the PEGASI logo */
h2 em, h3 em, .display em { display: inline-block; transform: skewX(-16deg); font-family: var(--brand); font-style: normal; font-weight: 400; font-stretch: normal; letter-spacing: .01em; color: var(--em); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: 1.4rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.accent { color: var(--em); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 8px 8px 8px 28px; min-height: 58px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 1rem/1 var(--body); white-space: nowrap; transition: transform .2s, box-shadow .25s, background .2s, color .2s, border-color .2s;
}
.btn .arrow { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s; }
.btn .arrow .ico { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: rotate(45deg); }
.btn-accent { background: var(--blue); color: #fff; }
.btn-accent .arrow { background: #fff; color: var(--blue); }
.btn-accent:hover { background: #4b6fe0; box-shadow: 0 14px 34px -14px rgba(64, 98, 206, .9); }
.btn-white { background: #fff; color: var(--black); }
.btn-white .arrow { background: var(--black); color: #fff; }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark .arrow { background: var(--blue); }
[data-theme="dark"] .btn-dark { background: #fff; color: var(--black); }
.btn-ghost { padding: 0 26px; border-color: rgba(255, 255, 255, .22); color: #fff; background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.hero .btn-ghost { color: var(--stage-ink); border-color: var(--stage-line); background: var(--stage-glass); }
.hero .btn-ghost:hover { border-color: var(--stage-ink); }
.btn-line { padding: 0 26px; border-color: var(--line-2); color: var(--link); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: .92rem; }
.btn-sm.has-arrow { padding: 5px 5px 5px 20px; }
.btn-sm .arrow { width: 36px; height: 36px; }
button.btn:disabled { opacity: .6; cursor: progress; }

.label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 400 .78rem/1 var(--tech); letter-spacing: .16em; text-transform: uppercase; color: var(--label); }
.label::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
/* the horse from the logo: list bullets (instead of checkmarks) and ONE big faint watermark in the home story block.
   Kept to one on purpose: the owner found the horse "everywhere" and overlapping the footer wordmark (11-13). */
.story::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; aspect-ratio: 980 / 745; background: currentColor; opacity: .05;
  -webkit-mask: url("mark-white.svg") center / contain no-repeat; mask: url("mark-white.svg") center / contain no-repeat;
  right: -4%; top: 8%; width: min(920px, 78vw);
}
.calc, .card-feature, .footer { position: relative; overflow: hidden; isolation: isolate; }

/* ---------- Header ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; color: var(--stage-ink); transition: color .3s; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: rgba(10, 10, 11, .7); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.nav.scrolled::before { opacity: 1; }
.nav.light { color: var(--ink); }
.nav.light::before { background: var(--nav-bg); border-bottom-color: var(--line); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; height: 84px; }
.nav-cta { justify-self: end; }
/* Logo: blue mark + wordmark (white on dark, black on light) */
.brand { display: flex; align-items: center; gap: 4px; justify-self: start; }
.brand img { height: 34px; width: auto; }
.brand img.word { height: 15px; margin-top: 2px; transition: filter .3s; }
[data-theme="light"] .brand img.word { filter: brightness(0); }
.menu { position: relative; isolation: isolate; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--stage-glass); border: 1px solid var(--stage-line); backdrop-filter: blur(10px); transition: background .3s, border-color .3s; }
.nav.light .menu { background: var(--tag-bg); border-color: var(--line); }
.menu a { position: relative; z-index: 1; padding: 9px 18px; border-radius: 999px; font: 500 .94rem/1 var(--body); opacity: .75; transition: opacity .2s, background .2s; }
.menu a:hover { opacity: 1; }
.menu a[aria-current="page"] { opacity: 1; background: var(--stage-line); }
.nav.light .menu a[aria-current="page"] { background: var(--card); color: var(--link); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
/* liquid menu (liquid-nav.js): a drop of water marks the current page instead of the flat pill */
.js .menu a[aria-current="page"], .js .nav.light .menu a[aria-current="page"] { background: none; box-shadow: none; }
.liquid-water { position: absolute; left: -14px; top: -14px; z-index: -1; pointer-events: none; }
.liquid-drop { display: none; position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; z-index: -1; pointer-events: none; will-change: transform, width;
  background: radial-gradient(120% 140% at 30% 0%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 55%), rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -2px 6px rgba(88, 140, 232, .25), inset 0 0 0 1px rgba(255, 255, 255, .5), 0 6px 16px -6px rgba(0, 30, 90, .45); }
.menu[data-gl="off"] .liquid-water { display: none; }
.menu[data-gl="off"] .liquid-drop { display: block; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font: 600 .94rem/1 var(--body); white-space: nowrap; }
.nav-phone .ico { width: 16px; height: 16px; color: var(--sky); }
.theme-toggle { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--stage-line); background: var(--stage-glass); color: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.nav.light .theme-toggle { border-color: var(--line-2); background: transparent; }
.theme-toggle .ico { width: 20px; height: 20px; }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }

/* ---------- Hero with chrome shader (light or dark with the theme) ---------- */
.hero {
  position: relative; z-index: 1; overflow: hidden; isolation: isolate; color: var(--stage-ink); text-align: center;
  padding: 130px 0 72px; min-height: min(100svh, 980px); display: flex; align-items: center;
  background: var(--stage);
  border-radius: 0 0 40px 40px;
}
.hero-sub { min-height: 0; padding: 130px 0 64px; }
.hero-sub .lead { max-width: 74ch; text-wrap: balance; }
canvas.silk { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s ease; }
canvas.silk.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 55% 50% at 50% 60%, var(--stage-scrim), transparent 75%); }
.hero .wrap { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border-radius: 999px; background: var(--stage-glass); border: 1px solid var(--stage-line); backdrop-filter: blur(10px); font: 500 .9rem/1 var(--body); color: var(--stage-muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(88, 140, 232, .8); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(88, 140, 232, 0); } 100% { box-shadow: 0 0 0 0 rgba(88, 140, 232, 0); } }
.display { font-size: clamp(2.6rem, 7vw, 6.2rem); line-height: .98; letter-spacing: -.04em; margin: 22px auto 18px; max-width: 14ch; }
.display .dot-accent { color: var(--em); }
.lead { color: var(--stage-muted); font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 58ch; margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* Hero word: PEGASI spelled with the designer's video letters.
   All six letters are one video (one decode instead of six — six at once made the page stutter),
   cut to the letter shapes by pegasi-mask.png; a light glint sweeps across the word. */
.hero-word {
  position: relative; overflow: hidden; isolation: isolate; width: min(880px, 100%); aspect-ratio: 2380 / 380; margin: 0 auto 8px;
  /* the mask image is set on the element in index.html, so build.mjs can version-stamp it */
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.hero-word > video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-word::after {
  content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: soft-light; pointer-events: none;
  background: linear-gradient(105deg, transparent 45%, rgba(255, 255, 255, .7) 50%, transparent 55%) no-repeat;
  background-size: 300% 100%; animation: glint 7s cubic-bezier(.5, 0, .3, 1) infinite;
}
@keyframes glint { 0% { background-position: 150% 0; } 45%, 100% { background-position: -50% 0; } }


/* Big "every mile" line at the top of the story band; it moves with the scroll */
.miles-line { overflow: hidden; margin: 0 0 clamp(32px, 4.5vw, 56px); }
.miles-track { display: flex; align-items: center; gap: .5em; width: max-content; font: 400 clamp(2.6rem, 8vw, 7rem)/1 var(--brand); text-transform: uppercase; white-space: nowrap; will-change: transform; }
.miles-track span { display: inline-block; transform: skewX(-16deg); }
.miles-track .o { color: transparent; -webkit-text-stroke: 1.5px var(--stage-ink); }
.miles-track i { width: .2em; height: .2em; flex: none; border-radius: 50%; background: var(--em); }
.story .miles-line + .wrap { margin-top: 0; }

/* Glass stats strip in hero */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 40px auto 0; max-width: 980px; border-radius: 22px; overflow: hidden; background: var(--stage-glass); border: 1px solid var(--stage-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero-stats div { padding: 22px 18px; }
.hero-stats div + div { border-left: 1px solid var(--stage-line); }
.hero-stats b { display: block; font: 700 clamp(1.5rem, 2.6vw, 2.2rem)/1 var(--display); margin-bottom: 8px; white-space: nowrap; }
.hero-stats span { font-size: .86rem; color: var(--stage-muted); }

/* ---------- Story band (scroll-revealed text + chips moving with the scroll) ---------- */
.story { position: relative; z-index: 0; overflow: hidden; color: var(--stage-ink); background: var(--stage); margin-top: -40px; padding: calc(clamp(56px, 7vw, 96px) + 40px) 0 clamp(48px, 6vw, 80px); border-radius: 0 0 40px 40px; }
.story-text { font: 700 clamp(1.7rem, 3.8vw, 3.2rem)/1.18 var(--display); font-stretch: 108%; max-width: 26ch; letter-spacing: -.03em; margin: 0; }
.story-text .w { opacity: .16; transition: opacity .25s; }
.story-text .w.lit { opacity: 1; }
.chips { margin-top: clamp(32px, 4.5vw, 56px); display: grid; gap: 12px; }
.chip-row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.chip-track { display: flex; gap: 12px; width: max-content; will-change: transform; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--stage-line); background: var(--stage-glass); font: 500 1rem/1 var(--body); color: var(--stage-muted); white-space: nowrap; }
.chip.hot { color: var(--stage-ink); }
.chip.hot::before { content: "↗"; color: var(--em); font-weight: 700; }

/* ---------- Light sections ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-tight { padding-top: 0; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(26px, 3.5vw, 40px); }
.section-head h2 { margin: 0; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; max-width: 46ch; justify-self: end; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Audience cards: dark graphite, blue only on details */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.path { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 440px; padding: 32px; border-radius: 30px; color: #fff; background: var(--graphite); border: 1px solid rgba(255, 255, 255, .06); transition: transform .3s, box-shadow .3s, border-color .3s; }
.path::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(420px 260px at 100% 0%, rgba(64, 98, 206, .35), transparent 70%); }
.path:hover { transform: translateY(-6px); border-color: rgba(88, 140, 232, .4); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .6); }
.path:hover::before { opacity: 1; }
.path-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 40px; }
.path-num { font: 400 .82rem/1 var(--tech); letter-spacing: .16em; color: #8D8D94; }
.path-icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: var(--sky); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.path-icon .ico { width: 30px; height: 30px; }
.path h3 { position: relative; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.02; }
.path ul { position: relative; list-style: none; padding: 0; margin: 4px 0 26px; display: grid; gap: 8px; }
.path li { display: flex; gap: 10px; color: #B4B4BA; }
.path li::before { content: ""; flex: none; width: 18px; height: 14px; margin-top: .3em; background: var(--sky); -webkit-mask: url("mark-white.svg") center / contain no-repeat; mask: url("mark-white.svg") center / contain no-repeat; }
.path .btn { align-self: flex-start; position: relative; z-index: 1; }

/* White cards */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 26px 46px -24px rgba(0, 0, 0, .28); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); margin: 0; }
.icon-chip { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; color: var(--sky); background: var(--chip-bg); }
.icon-chip .ico { width: 26px; height: 26px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--tag-bg); color: var(--tag); font: 600 .78rem/1.2 var(--body); }
.card-feature { grid-column: span 2; color: #fff; border-color: rgba(255, 255, 255, .06); background: radial-gradient(500px 300px at 100% 0%, rgba(64, 98, 206, .28), transparent 65%), var(--graphite); }
.card-feature p { color: #B4B4BA; }
.card-feature .icon-chip { background: rgba(255, 255, 255, .06); }
.card-feature .tag { background: rgba(255, 255, 255, .08); color: #fff; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.step-num { font: 700 3.2rem/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--em); margin-bottom: 18px; }
.step-meta { font: 400 .76rem/1 var(--tech); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.step h3 { margin-bottom: .4em; }
.step p { color: var(--muted); margin: 0; }

/* Counters */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.counters div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.counters b { display: block; font: 700 clamp(2.2rem, 4vw, 3.4rem)/1 var(--display); color: var(--num); margin-bottom: 10px; white-space: nowrap; }
.counters span { color: var(--muted); }

/* Drivers: truck photo gallery (filled by build.mjs from assets/images/trucks/) */
.equip-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.equip-chips .chip { border-color: var(--line); background: var(--card); color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery .shot { margin: 0; overflow: hidden; border-radius: 24px; background: var(--card); border: 1px solid var(--line); aspect-ratio: 1; }
.gallery .shot:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery .shot:hover img { transform: scale(1.04); }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* Partners: logo wall */
.partners { display: grid; grid-template-columns: minmax(280px, 1fr) 1.7fr; gap: 18px; align-items: stretch; }
.partners-intro { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: 36px; border-radius: 30px; color: #fff; background: var(--graphite); border: 1px solid rgba(255, 255, 255, .06); }
.partners-intro h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.partners-intro p { color: #B4B4BA; }
.partners-intro .btn { position: relative; z-index: 1; margin-top: auto; }
.logo-wall { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.logo-tile {
  position: relative; overflow: hidden; display: grid; place-items: center; min-height: 128px; padding: 20px 16px;
  border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s;
}
.logo-tile img { max-width: 88%; max-height: 42px; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.15); opacity: .6; transition: filter .35s, opacity .35s, transform .35s; }
.logo-tile .name { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: .72rem; font-weight: 600; color: var(--muted); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.logo-tile:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 26px 40px -24px rgba(0, 0, 0, .35); }
.logo-tile:hover img { filter: none; opacity: 1; transform: scale(1.06) translateY(-6px); }
.logo-tile:hover .name { opacity: 1; transform: none; }
/* dark mode: logos turn white instead of colored */
[data-theme="dark"] .logo-tile img, [data-theme="dark"] .logo-tile:hover img { filter: brightness(0) invert(1); }
/* a soft light sweep passes over the tiles one after another */
.logo-tile::after { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(128, 128, 140, .12), transparent); transform: skewX(-20deg); animation: sweep 9s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .45s); }
@keyframes sweep { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@media (hover: none) { .logo-tile img { filter: none; opacity: 1; } }
.logo-tile .fallback { font: 800 1.05rem/1.1 var(--display); font-stretch: 110%; color: var(--ink); text-align: center; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
.split > div > p { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; color: var(--muted); }
.ticks li::before { content: ""; flex: none; width: 18px; height: 14px; margin-top: .35em; background: var(--em); -webkit-mask: url("mark-white.svg") center / contain no-repeat; mask: url("mark-white.svg") center / contain no-repeat; }

/* Info panel */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 28px; box-shadow: var(--shadow); }
.panel .row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.panel .row:last-child { border-bottom: 0; }
.panel .row span { color: var(--muted); }
.panel .row b { font-weight: 600; text-align: right; }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.facts span { display: block; font: 400 .74rem/1 var(--tech); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.facts b { font-weight: 600; font-size: 1.1rem; }

/* Pay calculator (dark card for contrast) */
.calc { border-radius: 26px; padding: clamp(20px, 2.6vw, 28px); color: #fff; background: radial-gradient(500px 300px at 100% 0%, rgba(64, 98, 206, .22), transparent 65%), var(--graphite); border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .6); }
.calc-mode { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.calc-mode button { min-width: 84px; padding: 9px 18px; border: 0; border-radius: 999px; background: none; color: #A6A6AD; font: 600 .9rem/1 var(--body); cursor: pointer; transition: background .2s, color .2s; }
.calc-mode button:hover { color: #fff; }
.calc-mode button[aria-checked="true"] { background: var(--blue); color: #fff; }
.calc-out { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.calc-out div { border-radius: 14px; padding: 12px 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.calc-out .calc-main { border-color: rgba(88, 140, 232, .45); }
.calc-out b { display: block; font: 700 clamp(1.05rem, 1.7vw, 1.4rem)/1.1 var(--display); margin-bottom: 4px; white-space: nowrap; }
.calc-out .calc-main b { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.calc-out span { color: #9B9BA2; font-size: .78rem; line-height: 1.3; display: block; }
.calc-team { margin: 0 0 10px; color: #A6A6AD; font-size: .84rem; }
.calc-team b { color: #fff; }
.range { margin-top: 14px; }
.range label { display: flex; justify-content: space-between; font-size: .92rem; font-weight: 600; margin-bottom: 8px; }
.range output { color: var(--sky); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 6px solid var(--blue); cursor: pointer; }
.calc .fine { color: #85858C; font-size: .78rem; line-height: 1.5; margin: 14px 0 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 40px; padding: clamp(44px, 6vw, 80px) clamp(24px, 6vw, 80px); background: radial-gradient(640px 300px at 50% 0%, rgba(64, 98, 206, .3), transparent 70%), var(--black); border: 1px solid rgba(255, 255, 255, .06); }
.cta-band h2 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 16ch; margin-inline: auto; }
.cta-band p { color: #A6A6AD; max-width: 56ch; margin-inline: auto; font-size: 1.1rem; }
.cta-band .label { justify-content: center; }

/* ---------- Forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; padding: 15px 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font: 400 1rem/1.4 var(--body); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(64, 98, 206, .15); background: var(--card); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 600; }
.form-status.ok { color: #0f7a3d; }
.form-status.err { color: #b42318; }
[data-theme="dark"] .form-status.ok { color: #5ad18a; }
[data-theme="dark"] .form-status.err { color: #ff8a80; }
.hp { position: absolute; left: -9999px; }

.contact-list { display: grid; gap: 12px; margin-top: 26px; }
.contact-item { display: flex; gap: 16px; align-items: center; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); transition: border-color .2s; }
a.contact-item:hover { border-color: var(--line-2); }
.contact-item .icon-chip { margin: 0; width: 46px; height: 46px; border-radius: 14px; }
.contact-item .icon-chip .ico { width: 22px; height: 22px; }
.contact-item div > span { display: block; color: var(--muted); font-size: .85rem; }
.contact-item b { font-weight: 600; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 24px; margin-top: clamp(48px, 6vw, 80px); background: var(--card); border-top: 1px solid var(--line); border-radius: 40px 40px 0 0; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.footer p, .footer li { color: var(--muted); }
.footer h4 { font: 400 .78rem/1 var(--tech); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin: 6px 0 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--link); }
.footer-logo { display: flex; align-items: center; gap: 5px; margin-bottom: 16px; }
.footer-logo img:first-child { height: 42px; width: auto; }
.footer-logo img:last-child { height: 18px; width: auto; margin-top: 2px; }
.footer-logo img.word, .footer-giant img { filter: brightness(0); }
[data-theme="dark"] .footer-logo img.word, [data-theme="dark"] .footer-giant img { filter: none; }
.footer-giant { margin: 56px 0 18px; opacity: .06; }
.footer-giant img { width: 100%; height: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; font-size: .88rem; color: var(--muted); }


/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.hero .hero-word { --d: .05s; } .hero .pill { --d: .15s; } .hero .display { --d: .25s; } .hero .lead { --d: .4s; } .hero .actions { --d: .5s; } .hero .hero-stats { --d: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .pill .dot { animation: none; }
  .chip-track { flex-wrap: wrap; width: auto; }
  .logo-tile::after, .hero-word::after { display: none; }
  .story-text .w { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-phone { display: none; }
  .grid-4, .counters { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: 1fr; }
  .partners-intro .btn { margin-top: 8px; }
}
@media (max-width: 920px) {
  .section-head, .split, .grid-2 { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .grid-3, .steps, .facts { grid-template-columns: 1fr 1fr; }
  .paths { grid-template-columns: 1fr; }
  .path { min-height: 0; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats div:nth-child(3) { border-left: 0; }
  .hero-stats div:nth-child(n+3) { border-top: 1px solid var(--stage-line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav .wrap { display: flex; flex-wrap: wrap; height: auto; gap: 10px; padding: 12px 0; }
  .nav-cta { margin-left: auto; gap: 8px; }
  .menu { order: 3; width: 100%; margin: 0; }
  .menu a { flex: 1; text-align: center; padding: 10px 4px; }
  .hero, .hero-sub { padding-top: 160px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .paths, .steps, .form, .facts, .counters { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  .logo-tile { min-height: 104px; }
  .card-feature { grid-column: auto; }
  .path { min-height: 0; }
  .hero { padding-bottom: 56px; border-radius: 0 0 28px 28px; }
  .actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand img { height: 30px; }
  .brand img.word { height: 13px; }
  .story { border-radius: 0 0 28px 28px; }
  .menu a { font-size: .86rem; padding: 10px 2px; }
  .theme-toggle { width: 42px; height: 42px; }
  .calc-out { grid-template-columns: 1fr 1fr; }
  .calc-out .calc-main { grid-column: 1 / -1; }
}

/* wide numerals & labels */
.hero-stats b, .counters b, .calc-out b, .step-num, .path-num, .label, .footer h4, .facts span, .step-meta { font-stretch: 118%; }
