/* ==========================================================================
   EBEX.ai — site styles
   Brand tokens follow the EBEX design system (navy / cyan, Mulish).
   ========================================================================== */

:root {
  /* Brand */
  --navy-950: #000A2B;
  --navy-900: #000F3C;   /* hero */
  --navy-800: #001650;
  --navy-700: #0A1F6B;
  --ink-brand: #070E78;  /* logo navy */
  --cyan: #0AD9E1;       /* logo cyan */
  --accent: #00D4C8;
  --accent-dim: #00B8AE;
  --accent-deep: #007A73;
  --accent-glow: rgba(0, 212, 200, 0.15);

  /* Neutrals */
  --surface: #F6F8FA;
  --panel: #FFFFFF;
  --text: #0B1433;
  --text-soft: #3A4566;
  --muted: #64748B;
  --line: #E3E8EF;
  --line-strong: #CFD7E2;
  --danger: #D93B3B;

  /* Type */
  --font-display: "Unbounded", "Mulish", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Mulish", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--navy-900); font-weight: 700; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.eyebrow .idx { color: var(--muted); }
.eyebrow-light { color: var(--accent); }
.eyebrow-light .idx { color: rgba(255,255,255,.5); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 46px);
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}
.section-title.narrow { max-width: 22ch; }

.prose p + p { margin-top: 1em; }
.prose, .prose-lead { color: var(--text-soft); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy-900); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px; border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 15.5px; letter-spacing: .01em; text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, border-color .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-accent { --bg: var(--accent); --fg: var(--navy-900); box-shadow: 0 8px 24px -10px rgba(0,212,200,.7); }
.btn-accent:hover { --bg: #1ee3d7; box-shadow: 0 12px 30px -10px rgba(0,212,200,.85); }
.btn-ghost { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.28); }
.btn-ghost:hover { --bd: var(--accent); --fg: var(--accent); }
.btn-primary { --bg: var(--navy-900); --fg: #fff; }
.btn-primary:hover { --bg: var(--navy-700); box-shadow: 0 12px 30px -14px rgba(0,15,60,.6); }
.btn-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  --logo-ink: #fff; --logo-disc: var(--cyan); --logo-x: var(--navy-900);
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  transition: background-color .3s, box-shadow .3s, color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  --logo-ink: var(--ink-brand); --logo-disc: var(--ink-brand); --logo-x: var(--cyan);
  color: var(--text);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; flex-shrink: 0; }
.logo { width: 118px; height: auto; aspect-ratio: 940 / 245; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  position: relative; display: block; padding: 8px 14px;
  font-weight: 600; font-size: 15px; text-decoration: none; opacity: .86;
  transition: opacity .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.is-active { opacity: 1; }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 22%, transparent);
}
.lang-switch button {
  border: 0; background: none; cursor: pointer;
  padding: 5px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .06em;
  opacity: .7; transition: background-color .2s, color .2s, opacity .2s;
}
.lang-switch button:hover { opacity: 1; }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--navy-900); opacity: 1; }

.nav-toggle { display: none; }

/* "Saving Dashboard" — internal visitors only */
.btn-dashboard {
  --bg: transparent; --fg: currentColor; --bd: color-mix(in srgb, currentColor 32%, transparent);
  gap: 8px; box-shadow: none;
}
.btn-dashboard:hover { --bd: var(--accent); --fg: var(--accent); }
.site-header.is-scrolled .btn-dashboard:hover { --fg: var(--accent-deep); --bd: var(--accent-dim); }
.dash-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.main-nav .nav-dashboard { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 920px);
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  background:
    radial-gradient(1100px 600px at 78% 40%, rgba(0,212,200,.10), transparent 60%),
    radial-gradient(900px 700px at 10% 110%, rgba(7,14,120,.55), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 55%, #001247);
  color: #fff;
}
.hero-map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,10,43,.92) 0%, rgba(0,10,43,.7) 32%, rgba(0,10,43,0) 62%),
    linear-gradient(0deg, rgba(0,10,43,.9) 0%, rgba(0,10,43,0) 22%);
}
.hero-inner {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
  padding-block: clamp(48px, 10vh, 120px) clamp(36px, 6vh, 64px);
}
.hero-copy { max-width: 780px; align-self: center; }
.hero-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.04; letter-spacing: -0.03em;
  text-wrap: balance;
}
:lang(ru) .hero-title { font-size: clamp(30px, 4.4vw, 56px); }
.hero-title em {
  font-style: normal; display: block;
  background: linear-gradient(90deg, var(--cyan), #7CF3EC 60%, #fff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: 26px; max-width: 58ch; font-size: clamp(16.5px, 1.35vw, 19px); color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* entrance */
.hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .22s; }
.hero-copy > :nth-child(4) { animation-delay: .34s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hud {
  width: 260px; padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  background: rgba(0, 15, 60, .55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  opacity: 0; animation: rise .9s .6s var(--ease) forwards;
}
.hud-head { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0,212,200,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(0,212,200,.6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(0,212,200,0); } }
.hud-stats { margin: 14px 0 0; display: grid; gap: 10px; }
.hud-stats div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.12); }
.hud-stats dt { font-size: 12px; color: rgba(255,255,255,.62); }
.hud-stats dd { margin: 0; font-size: 18px; font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }

.ticker {
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.1);
  background: rgba(0,10,43,.6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-list { display: flex; flex-shrink: 0; }
.ticker-list li {
  display: flex; align-items: center; gap: 28px; padding: 16px 0 16px 28px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.62);
}
.ticker-list li::after { content: ""; width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: clamp(80px, 11vw, 140px); }
.section-head { margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }

/* map-sheet grid behind light sections */
.about, .contact {
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
}
.about::before, .contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, rgba(246,248,250,.55), var(--surface) 75%);
}
.about > .container, .contact > .container { position: relative; }

/* ---------- About ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principles li {
  position: relative; padding: 30px 28px 32px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.principles li:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(0,15,60,.25); }
.principle-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 22px;
  border-radius: 50%; background: var(--navy-900); color: var(--cyan);
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
}
.principles h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.principles p { color: var(--text-soft); font-size: 16px; }

.route-block { margin-top: clamp(64px, 8vw, 104px); }
.route-title { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 40px; }
.route { --p: 0; position: relative; }
.route-line { position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 10px, transparent 10px 18px); }
.route-progress { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent-dim), var(--accent)); transform: scaleX(var(--p)); transform-origin: left; }
.route-truck {
  position: absolute; top: 12px; left: calc(var(--p) * (100% - 48px));
  width: 48px; height: 24px; fill: var(--navy-900);
  transition: left .15s linear;
}
.route-stops { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 58px; }
.route-stops li { position: relative; padding-right: 12px; }
.stop-dot {
  position: absolute; top: -32px; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line-strong);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.route-stops li.is-reached .stop-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px var(--accent-glow); }
.stop-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.route-stops h4 { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 6px 0 8px; }
.route-stops p { color: var(--text-soft); font-size: 15.5px; }

/* ---------- Expertise ---------- */
.expertise { background: var(--panel); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card {
  position: relative; padding: clamp(28px, 3.4vw, 48px);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel);
  transition: background-color .35s;
}
.card::before, .card::after {
  content: ""; position: absolute; width: 22px; height: 22px; opacity: 0;
  border: 2px solid var(--accent); transition: opacity .3s, transform .35s var(--ease);
}
.card::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; transform: translate(6px, 6px); }
.card::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; transform: translate(-6px, -6px); }
.card:hover { background: #FBFCFD; }
.card:hover::before, .card:hover::after { opacity: 1; transform: none; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.card-num { font-family: var(--font-mono); font-size: 13px; color: var(--muted); letter-spacing: .08em; }
.card-icon {
  width: 46px; height: 46px; padding: 10px; border-radius: 12px;
  background: var(--navy-900); stroke: var(--cyan); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 1.9vw, 25px); letter-spacing: -.015em; margin-bottom: 14px; max-width: 22ch; }
.card p { color: var(--text-soft); font-size: 16.5px; max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.tags li {
  padding: 5px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-soft);
}

/* ---------- Career ---------- */
.career {
  color: #fff;
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(0,212,200,.12), transparent 60%),
    radial-gradient(700px 600px at 0% 100%, rgba(7,14,120,.6), transparent 60%),
    var(--navy-900);
  overflow: hidden;
}
.career::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
          mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.career > .container { position: relative; }
.lead-light { color: rgba(255,255,255,.75); font-size: 18px; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; }
.perks li { padding: 28px 24px 30px; background: var(--navy-900); transition: background-color .3s; }
.perks li:hover { background: #02164a; }
.perks h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.perks h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); flex-shrink: 0; }
.perks p { color: rgba(255,255,255,.68); font-size: 15.5px; }

.board {
  margin-top: clamp(48px, 6vw, 72px);
  border-radius: var(--radius); overflow: hidden;
  background: var(--navy-950);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.6);
}
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid rgba(255,255,255,.08); }
.board-head h3 { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.board-clock { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.board-row {
  display: grid; grid-template-columns: 1.3fr 1.2fr .8fr 20px; gap: 16px; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: var(--font-mono); font-size: 14.5px;
  color: inherit; text-decoration: none;
  transition: background-color .25s;
}
a.board-row:hover, a.board-row:focus-visible { background: rgba(0,212,200,.07); }
.board-row-head { padding-block: 12px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.board-role { color: #fff; font-weight: 500; }
.board-focus { color: rgba(255,255,255,.62); }
.board-arrow { width: 18px; height: 18px; fill: none; stroke: rgba(255,255,255,.4); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease), stroke .25s; }
a.board-row:hover .board-arrow { transform: translateX(4px); stroke: var(--accent); }
.board-empty { padding: 22px 24px; color: rgba(255,255,255,.62); border-bottom: 1px solid rgba(255,255,255,.06); }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.8s steps(2, jump-none) infinite; }
.status-hiring { justify-self: start; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--accent); color: var(--navy-900); font-weight: 500; }
.status-hiring::before { background: var(--navy-900); }
@keyframes blink { 50% { opacity: .25; } }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; flex-wrap: wrap; }
.board-foot p { color: rgba(255,255,255,.72); max-width: 60ch; font-size: 16px; }

/* flip-in rows when board is revealed (and when rows are rendered later) */
.js .board .board-row { opacity: 0; transform: rotateX(-70deg); transform-origin: top; }
.board.is-in .board-row { animation: flip .6s var(--ease) forwards; }
.board.is-in .board-list li:nth-child(1) .board-row { animation-delay: .08s; }
.board.is-in .board-list li:nth-child(2) .board-row { animation-delay: .16s; }
.board.is-in .board-list li:nth-child(3) .board-row { animation-delay: .24s; }
.board.is-in .board-list li:nth-child(4) .board-row { animation-delay: .32s; }
.board.is-in .board-list li:nth-child(n+5) .board-row { animation-delay: .40s; }
@keyframes flip { to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-intro .prose-lead { margin-top: 22px; max-width: 44ch; }
.contact-details { margin: 40px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); max-width: 420px; }
.contact-details div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.contact-details dt { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-details dd { margin: 0; font-weight: 700; }
.contact-details a { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
.contact-details a:hover { background-size: 100% 2px; }

.contact-form {
  padding: clamp(24px, 3.4vw, 44px);
  background: var(--panel); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 30px 70px -40px rgba(0,15,60,.3);
  display: grid; gap: 20px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 14px; font-weight: 700; color: var(--text); }
.optional { font-weight: 400; color: var(--muted); }
.field input:not([type=radio]):not([type=checkbox]), .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #98A2B3; }
.field input:not([type=radio]):not([type=checkbox]):hover, .field textarea:hover { border-color: #B5C0CF; }
.field input:not([type=radio]):not([type=checkbox]):focus, .field textarea:focus { outline: none; border-color: var(--accent-dim); background: #fff; box-shadow: 0 0 0 4px var(--accent-glow); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { font-size: 13px; color: var(--danger); min-height: 0; }
.field-error:empty { display: none; }

.topics { border: 0; margin: 0; padding: 0; min-width: 0; }
.topics legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 8px 14px; border-radius: 20px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--text-soft);
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.chip:hover span { border-color: #B5C0CF; color: var(--text); }
.chip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-glow); border-color: var(--accent-dim); }

.field-check { grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.field-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent-dim); cursor: pointer; }
.field-check label { font-weight: 400; font-size: 14.5px; color: var(--text-soft); cursor: pointer; }
.field-check .field-error { grid-column: 2; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 4px; }
.form-status { font-size: 15px; font-weight: 600; }
.form-status.ok { color: var(--accent-deep); }
.form-status.err { color: var(--danger); }
.form-status a { color: inherit; }

/* link pills (from content/config.md → ## Links) */
.link-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.link-pills a {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--panel);
  font-size: 14px; font-weight: 700; text-decoration: none; transition: border-color .2s, color .2s;
}
.link-pills a::after { content: "↗"; font-weight: 400; color: var(--muted); }
.link-pills a:hover { border-color: var(--accent-dim); color: var(--accent-deep); }

/* ---------- Job dialog ---------- */
body.dialog-open { overflow: hidden; }
.job-dialog {
  width: min(860px, calc(100% - 32px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 0; border-radius: calc(var(--radius) + 6px);
  background: var(--panel); color: var(--text);
  box-shadow: 0 40px 120px -30px rgba(0,10,43,.6);
  overflow: hidden;
}
.job-dialog::backdrop { background: rgba(0,10,43,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.job-dialog[open] { animation: dialogIn .35s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.job-dialog-scroll { max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }

.job-head {
  position: relative; padding: 40px clamp(24px, 5vw, 56px) 32px;
  color: #fff;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(0,212,200,.18), transparent 60%),
    var(--navy-900);
}
.job-head .eyebrow { margin-bottom: 14px; }
.job-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3.4vw, 36px); letter-spacing: -.02em; padding-right: 48px; text-wrap: balance; }
.job-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 22px; }
.job-facts li { display: grid; gap: 2px; }
.fact-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.fact-value { font-weight: 700; font-size: 15px; }
.dialog-close {
  position: absolute; top: 20px; right: 20px;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .25s var(--ease);
}
.dialog-close:hover { background: rgba(255,255,255,.14); border-color: var(--accent); transform: rotate(90deg); }
.dialog-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.job-content { padding: 36px clamp(24px, 5vw, 56px) 44px; }

/* rendered Markdown */
.md { color: var(--text-soft); font-size: 16.5px; }
.md > :first-child { margin-top: 0; }
.md h2, .md h3, .md h4 { font-family: var(--font-display); font-weight: 600; color: var(--text); letter-spacing: -.01em; margin: 30px 0 12px; }
.md h2 { font-size: 22px; } .md h3 { font-size: 19px; } .md h4 { font-size: 16px; }
.md p { margin: 0 0 14px; }
.md ul, .md ol { margin: 0 0 16px; padding-left: 0; display: grid; gap: 8px; }
.md ul li { position: relative; padding-left: 22px; }
.md ul li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.md ol { list-style: decimal; padding-left: 22px; }
.md a { color: var(--accent-deep); font-weight: 700; }
.md strong { color: var(--text); }
.md code { font-family: var(--font-mono); font-size: .88em; padding: 2px 6px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); }
.md blockquote { margin: 0 0 16px; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.md blockquote p { margin: 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

.apply { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.apply-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 22px; }
.apply-form { display: grid; gap: 18px; }
.apply-note { font-size: 14.5px; color: var(--text-soft); padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-glow); }
.field-hint { font-size: 13px; color: var(--muted); }
.file-input { padding: 10px !important; cursor: pointer; font-size: 14.5px !important; }
.file-input::file-selector-button {
  margin-right: 14px; padding: 8px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--navy-900); color: #fff; font: inherit; font-weight: 700; font-size: 14px;
  transition: background-color .2s;
}
.file-input:hover::file-selector-button { background: var(--navy-700); }
.apply-sent { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--accent-glow); color: var(--text); font-weight: 700; }
.apply-sent svg { flex-shrink: 0; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--accent); fill: none; stroke: var(--navy-900); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.site-footer {
  --logo-ink: #fff; --logo-disc: var(--cyan); --logo-x: var(--navy-900);
  background: var(--navy-950); color: rgba(255,255,255,.7);
  padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px));
}
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 40px; align-items: start; }
.footer-brand .logo { width: 132px; margin-bottom: 16px; }
.footer-brand p { font-size: 15px; max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; }
.footer-links a { font-size: 14.5px; text-decoration: none; color: rgba(255,255,255,.8); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 32px; justify-content: start; }
.footer-nav a, .to-top { text-decoration: none; font-size: 15px; transition: color .2s; }
.footer-nav a:hover, .to-top:hover { color: var(--accent); }
.footer-meta { display: grid; gap: 10px; justify-items: end; font-size: 14px; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
  .hud { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 64px; }
  .nav-toggle {
    display: inline-grid; place-content: center; gap: 6px;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: none; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease); }
  .nav-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }

  .main-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    background: rgba(255,255,255,.98); color: var(--text);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(0,15,60,.25);
    padding: 12px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
  }
  .nav-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .nav-open.site-header:not(.is-scrolled) { background: rgba(255,255,255,.98); color: var(--text); --logo-ink: var(--ink-brand); --logo-disc: var(--ink-brand); --logo-x: var(--cyan); }
  .header-cta { display: none; }
  .header-actions .btn-dashboard { display: none; }
  .main-nav .nav-dashboard { display: block; }
  .main-nav .nav-dashboard a { color: var(--accent-deep); }
  .main-nav .nav-dashboard a::before { content: "↗ "; }

  .section-head.split { grid-template-columns: 1fr; align-items: start; }
  .principles { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  /* route becomes vertical */
  .route-line { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 10px, transparent 10px 18px); }
  .route-progress { transform: scaleY(var(--p)); transform-origin: top; }
  .route-truck { display: none; }
  .route-stops { grid-template-columns: 1fr; gap: 32px; padding: 0 0 0 40px; }
  .stop-dot { top: 4px; left: -40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-meta { justify-items: start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-shade { background: linear-gradient(180deg, rgba(0,10,43,.5), rgba(0,10,43,.75) 60%, rgba(0,10,43,.95)); }
  .board-row { grid-template-columns: 1fr 20px; gap: 4px 12px; padding: 14px 18px; }
  .board-row > span { grid-column: 1; }
  .board-arrow { grid-column: 2; grid-row: 1 / span 3; }
  .job-dialog { width: 100%; max-height: 100dvh; height: 100dvh; max-width: none; border-radius: 0; margin: 0; }
  .job-dialog-scroll { max-height: 100dvh; height: 100%; }
  .board-row-head { display: none; }
  .board-head, .board-foot { padding-inline: 18px; }
  .lang-switch button { padding: 5px 8px; }
  .logo { width: 104px; }
  .header-inner { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .ticker-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .board .board-row { opacity: 1; transform: none; }
}
