/* =========================================================
   VITALAID — Executive Grade v2
   Dark-first · dual theme · animated · textured
   ========================================================= */

/* ── Theme tokens ──────────────────────────────────────── */
[data-theme="dark"] {
  --bg:            #060B18;
  --bg-2:          #080D1E;
  --surface:       #0C1224;
  --surface-2:     #111827;
  --surface-3:     #182035;
  --text:          #F0EDE6;
  --text-soft:     #9BA3B2;
  --text-faint:    rgba(240,237,230,.32);
  --line:          rgba(240,237,230,.09);
  --line-soft:     rgba(240,237,230,.05);
  --accent-red:    #E03050;
  --accent-red-2:  #C4253F;
  --accent-blue:   #4068F5;
  --accent-blue-2: #2F52D4;
  --mute:          #6B7585;
  --nav-bg:        rgba(6,11,24,.9);
  --footer-bg:     #040810;
  --shadow-lg:     0 24px 64px -20px rgba(0,0,0,.6);
  --shadow-xl:     0 48px 120px -30px rgba(0,0,0,.85);
  --shadow-card:   0 2px 0 rgba(255,255,255,.04) inset, 0 1px 0 rgba(255,255,255,.06) inset;
  --orb-red:       rgba(224,48,80,.22);
  --orb-blue:      rgba(64,104,245,.22);
  --logo-bg:       rgba(255,255,255,1);
  --logo-radius:   10px;
  --logo-pad:      5px 14px 5px 5px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg:            #FAFAF8;
  --bg-2:          #F5F3EE;
  --surface:       #F0EDE6;
  --surface-2:     #E5E1D8;
  --surface-3:     #D8D3C8;
  --text:          #080B18;
  --text-soft:     #3E4555;
  --text-faint:    rgba(8,11,24,.36);
  --line:          rgba(8,11,24,.10);
  --line-soft:     rgba(8,11,24,.055);
  --accent-red:    #C41533;
  --accent-red-2:  #A30F28;
  --accent-blue:   #1B3FD8;
  --accent-blue-2: #1330B0;
  --mute:          #777E8E;
  --nav-bg:        rgba(250,250,248,.92);
  --footer-bg:     #060B18;
  --shadow-lg:     0 24px 64px -20px rgba(8,11,24,.14);
  --shadow-xl:     0 48px 120px -30px rgba(8,11,24,.22);
  --shadow-card:   0 1px 0 rgba(255,255,255,.8) inset;
  --orb-red:       rgba(196,21,51,.13);
  --orb-blue:      rgba(27,63,216,.13);
  --logo-bg:       transparent;
  --logo-radius:   0px;
  --logo-pad:      0px;
  color-scheme: light;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-feature-settings: "ss01","cv11";
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background .35s, color .35s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; }

/* ── Type helpers ──────────────────────────────────────── */
.display { font-family: "Sora", sans-serif; font-weight: 700; letter-spacing: -0.025em; }
.serif   { font-family: "Cormorant Garant", serif; font-style: italic; font-weight: 400; }
.mono    { font-family: "JetBrains Mono", monospace; font-weight: 500; }

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--mute);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: currentColor; opacity: .5;
}

/* ── Layout ────────────────────────────────────────────── */
.shell { max-width: 1440px; margin: 0 auto; padding: 0 60px; }
@media (max-width: 760px) { .shell { padding: 0 20px; } }
.page-pad { padding-top: 140px; padding-bottom: 100px; }

/* ── Navigation ────────────────────────────────────────── */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
  transition: background .3s, border-color .3s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo { display: flex; align-items: center; cursor: pointer; }

/* Logo — blend mode removes white PNG background without requiring transparent PNG */
.nav-logo-img {
  height: 36px; width: auto; display: block;
  mix-blend-mode: multiply;
  transition: filter .3s;
}
[data-theme="dark"] .nav-logo-img {
  mix-blend-mode: normal;
  filter: invert(1) hue-rotate(180deg);
}

/* Brand wordmark split — VITAL (red) + AID (blue) */
.brand-word { font-family: "Sora", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: -0.03em; line-height: 1; }
.brand-vital { color: #C41533; }
.brand-aid   { color: #3B6EE8; }

.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-link {
  padding: 9px 14px; font-size: 13.5px; font-weight: 500;
  color: var(--text-soft); border-radius: 999px; transition: all .2s;
}
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: var(--text); color: var(--bg); }

.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  background: var(--accent-red); color: #fff;
  padding: 10px 20px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--accent-red-2); transform: translateX(2px); }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-soft); background: var(--surface);
  transition: all .2s;
}
.theme-toggle:hover { border-color: var(--text-soft); color: var(--text); }

.mobile-toggle { display: none; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .mobile-toggle { display: inline-flex; }
}
.mobile-drawer { border-top: 1px solid var(--line); background: var(--surface); }
.mobile-drawer .shell { padding-top: 16px; padding-bottom: 20px; }
.mobile-drawer .nav-link { display: block; width: 100%; text-align: left; padding: 13px 14px; font-size: 15px; }

/* ── Scroll progress ───────────────────────────────────── */
.scroll-bar {
  position: fixed; top: 72px; left: 0; right: 0;
  height: 2px; background: transparent; z-index: 49;
}
.scroll-bar .fill { height: 100%; background: var(--accent-red); width: 0%; transition: width .1s linear; }

/* ── Animations ────────────────────────────────────────── */
@keyframes orb-pulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: .8; }
  33%       { transform: scale(1.08) translate(20px, -15px); opacity: 1; }
  66%       { transform: scale(.94) translate(-12px, 18px); opacity: .7; }
}
@keyframes marquee-fwd { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes counter-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── Noise / grain overlay ─────────────────────────────── */
.grain::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: .028;
  mix-blend-mode: overlay;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding-top: 130px; padding-bottom: 0;
  background: var(--bg);
  isolation: isolate;
}
.hero-orb-1 {
  position: absolute; width: 960px; height: 960px;
  top: -280px; right: -300px; border-radius: 50%;
  background: radial-gradient(circle, var(--orb-blue) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  animation: orb-pulse 14s ease-in-out infinite;
}
.hero .shell { position: relative; z-index: 1; }

.hero-kicker-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 52px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.hero-kicker-row .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: var(--mute);
  text-transform: uppercase; letter-spacing: 0.14em;
}

.hero-grid {
  display: grid; grid-template-columns: 1.55fr 0.8fr;
  gap: 72px; align-items: end;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.hero-title {
  font-family: "Sora", sans-serif; font-weight: 800;
  font-size: clamp(46px, 6.8vw, 108px);
  line-height: .92; letter-spacing: -0.042em;
  color: var(--text); margin: 0;
}
.hero-title .accent-red  { color: var(--accent-red); }
.hero-title .accent-blue { color: var(--accent-blue); }
.hero-title .italic { font-family: "Cormorant Garant", serif; font-style: italic; font-weight: 400; letter-spacing: -0.02em; }

.hero-side { display: flex; flex-direction: column; gap: 28px; padding-bottom: 8px; }
.hero-body { font-size: 16px; line-height: 1.68; color: var(--text-soft); max-width: 420px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-size: 14px; font-weight: 600; transition: all .2s;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: var(--accent-red); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text-soft); }
.btn-red { background: var(--accent-red); color: #fff; }
.btn-red:hover { background: var(--accent-red-2); transform: translateX(2px); }

.btn-arrow {
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--accent-red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.btn-primary .btn-arrow { background: var(--bg); color: var(--text); }

/* ── Hero visual ────────────────────────────────────────── */
.hero-visual {
  margin-top: 72px; position: relative;
  border-radius: 20px 20px 0 0; overflow: hidden;
  border: 1px solid var(--line); border-bottom: none;
  background: var(--surface); height: 480px;
  box-shadow: var(--shadow-xl);
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1566676838420-0f8e7ce70dcc?w=1600&q=80');
  background-size: cover; background-position: center;
  opacity: .10; z-index: 1;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(6,11,24,.55) 45%, rgba(6,11,24,.97) 100%),
    radial-gradient(circle at 14% 82%, var(--orb-blue), transparent 48%),
    radial-gradient(circle at 82% 18%, var(--orb-red), transparent 48%);
  z-index: 2;
}
.hero-visual-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 72%);
  z-index: 3;
}
.hero-visual-content {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; height: 100%; background: var(--line);
}
.hv-cell {
  background: var(--surface); padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--text); position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
/* Bottom accent line (::before) */
.hv-cell::before {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; z-index: 3;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-blue));
  opacity: 0; transition: opacity .3s;
}
.hv-cell:hover::before { opacity: 1; }
/* Dark gradient overlay for image cells (::after) */
.hv-cell::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(4,8,18,.22) 0%, rgba(4,8,18,.78) 55%, rgba(4,8,18,.96) 100%);
  opacity: 0; transition: opacity .4s;
}
.hv-cell.has-img::after { opacity: 1; }
/* Text above overlay */
.hv-cell .num, .hv-cell .big, .hv-cell .lbl { position: relative; z-index: 2; }
.hv-cell.has-img .num { color: rgba(240,237,230,.5); }
.hv-cell.has-img .big, .hv-cell.has-img .lbl { color: #F0EDE6 !important; }
/* Keyword text */
.hv-cell .num { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--mute); letter-spacing: 0.18em; }
.hv-cell .big { font-family: "Sora", sans-serif; font-size: 44px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.hv-cell .lbl { font-size: 12px; color: var(--text-soft); line-height: 1.45; margin-top: 4px; }
.hv-cell.accent-red .big  { color: var(--accent-red); }
.hv-cell.accent-blue .big { color: var(--accent-blue); }
@media (max-width: 900px) { .hero-visual-content { grid-template-columns: repeat(2, 1fr); } }

.hero-mark {
  position: absolute; bottom: 28px; right: 28px; z-index: 5;
  display: flex; align-items: center; gap: 12px;
}
.hero-mark-logo {
  height: 28px; width: auto;
  filter: invert(1) hue-rotate(180deg);
}

/* ── Sections ───────────────────────────────────────────── */
.section {
  padding: 88px 0; border-top: 1px solid var(--line);
  position: relative;
}
.section.with-image { padding: 0; border: none; }
.section.dark-section { background: var(--footer-bg); }

.section-head {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 64px; margin-bottom: 40px; align-items: end;
}
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; gap: 28px; } }

.section-title {
  font-family: "Sora", sans-serif; font-weight: 700;
  font-size: clamp(30px, 3.8vw, 52px);
  letter-spacing: -0.032em; line-height: 1.02; color: var(--text);
}
.section-title .italic { font-family: "Cormorant Garant", serif; font-style: italic; font-weight: 400; }
.section-body { font-size: 15.5px; line-height: 1.68; color: var(--text-soft); }

/* ── Client marquee (double-row) ───────────────────────── */
.client-marquee-wrap {
  overflow: hidden;
  padding: 20px 0;
  background: var(--surface);
}
.client-track {
  display: flex; gap: 28px; align-items: center;
  white-space: nowrap; flex-shrink: 0;
  animation: marquee-fwd 48s linear infinite;
}
.client-logo-img {
  height: 28px; width: auto; display: block;
  background: var(--logo-bg);
  border-radius: var(--logo-radius);
  padding: var(--logo-pad);
  max-width: 120px; object-fit: contain;
}

.client-badge {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, background .2s;
  cursor: default;
}
.client-badge:hover { border-color: var(--text-soft); background: var(--surface-2); }
.client-badge-mono {
  width: 34px; height: 34px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Sora", sans-serif; font-size: 12px; font-weight: 800;
  letter-spacing: -0.02em; flex-shrink: 0;
}
.client-badge-name {
  font-family: "Sora", sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--text);
  white-space: nowrap;
}
.client-badge-sub {
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  color: var(--mute); text-transform: uppercase; letter-spacing: 0.12em;
  margin-top: 1px;
}

/* services marquee (old — kept for backward compat) */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface); overflow: hidden; padding: 24px 0;
}
.marquee-track { display: flex; gap: 48px; white-space: nowrap; animation: marquee-fwd 42s linear infinite; }
.marquee-item {
  font-family: "Sora", sans-serif; font-weight: 600;
  font-size: 24px; letter-spacing: -0.02em; color: var(--text);
  display: inline-flex; align-items: center; gap: 48px;
}
.marquee-item::after { content: ""; width: 7px; height: 7px; background: var(--accent-red); border-radius: 50%; display: inline-block; }

/* ── Services list ─────────────────────────────────────── */
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: 72px 1.2fr 2fr 64px;
  padding: 28px 0; gap: 32px;
  border-bottom: 1px solid var(--line);
  align-items: center; transition: all .2s; cursor: pointer;
}
.service-row:hover {
  background: var(--surface);
  padding-left: 24px; padding-right: 24px;
  margin-left: -24px; margin-right: -24px;
  border-radius: 14px; border-color: transparent;
}
.service-num { font-family: "JetBrains Mono", monospace; font-size: 11.5px; color: var(--mute); letter-spacing: 0.16em; }
.service-name { font-family: "Sora", sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.service-desc { font-size: 14px; color: var(--text-soft); line-height: 1.65; }
.service-row .arrow {
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-soft);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .2s; margin-left: auto;
}
.service-row:hover .arrow { background: var(--accent-red); color: #fff; border-color: var(--accent-red); transform: translateX(4px); }
@media (max-width: 800px) {
  .service-row { grid-template-columns: 48px 1fr 40px; }
  .service-desc { display: none; }
}

/* ── Service image cards ───────────────────────────────── */
.service-img-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.service-img-card {
  position: relative; border-radius: 16px; overflow: hidden;
  height: 320px; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 24px;
  background-size: cover; background-position: center;
  transition: transform .35s;
}
.service-img-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(4,8,18,.08) 0%, rgba(4,8,18,.68) 50%, rgba(4,8,18,.94) 100%);
}
.service-img-card:hover { transform: translateY(-5px); }
.service-img-card > * { position: relative; z-index: 1; }
.sic-num {
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .18em;
  color: rgba(240,237,230,.45); margin-bottom: auto;
}
.sic-icon { margin-bottom: 10px; opacity: .75; color: #F0EDE6; }
.sic-title {
  font-family: "Sora", sans-serif; font-size: 17px; font-weight: 700;
  letter-spacing: -.025em; margin-bottom: 5px; color: #F0EDE6;
}
.sic-short { font-size: 12.5px; line-height: 1.5; color: rgba(240,237,230,.68); }
@media (max-width: 900px) { .service-img-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-img-grid { grid-template-columns: 1fr; } .service-img-card { height: 260px; } }

/* ── Feature cards ─────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface); padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .25s; position: relative;
  box-shadow: var(--shadow-card);
}
.feature-card:hover { background: var(--surface-2); }
.feature-card .icon-box {
  width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-red); background: var(--surface-2);
  transition: background .2s;
}
.feature-card:hover .icon-box { background: var(--surface-3); }
.feature-card h3 { font-family: "Sora", sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
.feature-card p { color: var(--text-soft); font-size: 14px; line-height: 1.65; }

/* ── Metrics ────────────────────────────────────────────── */
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric { padding: 44px 28px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: none; }
.metric .val { font-family: "Sora", sans-serif; font-size: clamp(38px, 4.5vw, 62px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--text); }
.metric .val .accent { color: var(--accent-red); }
.metric .lbl { font-size: 13px; color: var(--mute); margin-top: 12px; line-height: 1.4; }
@media (max-width: 800px) { .metric-strip { grid-template-columns: repeat(2, 1fr); } .metric:nth-child(2n) { border-right: none; } }

/* ── Image section ─────────────────────────────────────── */
.image-section {
  position: relative; min-height: 640px; display: flex; align-items: center; overflow: hidden;
}
.image-section::before {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-position: center; z-index: 1;
}
.image-section::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4,8,16,.95) 0%, rgba(4,8,16,.75) 55%, rgba(4,8,16,.2) 100%);
  z-index: 2;
}
.image-section .shell { position: relative; z-index: 3; }
.image-section.img-port::before  { background-image: url('https://images.unsplash.com/photo-1578575437130-527eed3abbec?w=1600&q=80'); }
.image-section.img-ship::before  { background-image: url('https://images.unsplash.com/photo-1605648916319-cf082f7524a1?w=1600&q=80'); }
.image-section.img-air::before   { background-image: url('https://images.unsplash.com/photo-1464037866556-6812c9d1c72e?w=1600&q=80'); }
.image-section.img-oil::before   { background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1600&q=80'); }
.image-section.img-drone::before { background-image: url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?w=1600&q=80'); }
[data-theme="light"] .image-section::after {
  background: linear-gradient(90deg, rgba(245,242,235,.96) 0%, rgba(245,242,235,.78) 55%, rgba(245,242,235,.15) 100%);
}

/* ── Full-width service hero ───────────────────────────── */
.service-hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 40px 40px 44px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 2px;
  box-shadow: var(--shadow-card);
}
.service-hero::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--accent-red), var(--accent-blue));
}
.service-hero-num {
  font-family: "Sora", sans-serif; font-size: 120px; font-weight: 800;
  letter-spacing: -0.06em; line-height: 1;
  color: var(--accent-red); opacity: .12;
  position: absolute; top: -10px; right: 40px;
}
.service-hero-title {
  font-family: "Sora", sans-serif; font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700; letter-spacing: -0.035em; color: var(--text); margin-bottom: 16px;
}
.service-hero-desc { font-size: 15.5px; line-height: 1.7; color: var(--text-soft); }
.service-hero-meta { display: flex; flex-direction: column; gap: 16px; }
.service-hero-kv { border-top: 1px solid var(--line); padding-top: 16px; }
.service-hero-kv .k { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .16em; }
.service-hero-kv .v { font-size: 15px; color: var(--text); margin-top: 4px; }
@media (max-width: 860px) { .service-hero { grid-template-columns: 1fr; padding: 36px; } .service-hero-num { display: none; } }

/* ── Footer ─────────────────────────────────────────────── */
.footer { background: var(--footer-bg); color: #F0EDE6; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(240,237,230,.08); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: "JetBrains Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(240,237,230,.38); margin: 0 0 20px; font-weight: 500; }
.footer-link { display: block; padding: 5px 0; color: rgba(240,237,230,.62); font-size: 14px; transition: color .2s; }
.footer-link:hover { color: var(--accent-red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: rgba(240,237,230,.3); text-transform: uppercase; letter-spacing: 0.16em; }
.footer-tag { font-family: "Sora", sans-serif; font-size: clamp(68px, 10.5vw, 168px); font-weight: 800; letter-spacing: -0.055em; line-height: .85; color: rgba(240,237,230,.88); padding: 52px 0 36px; }
.footer-tag .vital { color: #C41533; }
.footer-tag .aid   { color: #3B6EE8; }
.footer-tag .t { color: var(--accent-blue); }
.footer-logo { height: 44px; width: auto; background: rgba(255,255,255,.95); padding: 5px 12px; border-radius: 10px; margin-bottom: 20px; }

/* ── Contact ────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: var(--shadow-card); }
.contact-row { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.contact-row:last-child { border-bottom: none; }
.contact-row .icn { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--accent-red); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .label { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.14em; }
.contact-row .val { font-size: 15px; color: var(--text); margin-top: 4px; line-height: 1.5; }

/* ── Forms ─────────────────────────────────────────────── */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 8px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 13px 16px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; font-size: 14.5px; color: var(--text);
  font-family: inherit; transition: border-color .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--text-soft); }
.form-field.error input, .form-field.error textarea { border-color: var(--accent-red); }
.form-error { color: var(--accent-red); font-size: 11.5px; margin-top: 6px; font-family: "JetBrains Mono", monospace; }

/* ── Companies ──────────────────────────────────────────── */
.company-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
@media (max-width: 900px) { .company-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .company-grid { grid-template-columns: 1fr; } }
.company-card { background: var(--surface); padding: 32px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; transition: background .2s; }
.company-card:hover { background: var(--surface-2); }
.company-card.featured { background: var(--surface-3); }
.company-card .name { font-family: "Sora", sans-serif; font-size: 17px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
.company-card .meta { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.5; }
.company-card .index { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--mute); letter-spacing: 0.14em; }
.company-card .tag { display: inline-flex; align-items: center; gap: 6px; font-family: "JetBrains Mono", monospace; font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent-red); }
.company-card .tag::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }

/* ── Leadership ─────────────────────────────────────────── */
.lead-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: stretch; }
@media (max-width: 900px) { .lead-grid { grid-template-columns: 1fr; } }
.portrait-block { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; aspect-ratio: 3/4; position: relative; overflow: hidden; }
.portrait-block::before {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 22px, var(--line-soft) 22px, var(--line-soft) 23px), radial-gradient(circle at 30% 30%, var(--orb-blue), transparent 60%), radial-gradient(circle at 70% 80%, var(--orb-red), transparent 60%);
}
.portrait-block .corner { position: absolute; top: 24px; left: 24px; color: var(--text-soft); font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; }
.portrait-block .placeholder { position: absolute; bottom: 24px; left: 24px; right: 24px; color: var(--text-faint); font-size: 12px; font-family: "JetBrains Mono", monospace; }

.staff-row { display: grid; grid-template-columns: 28px 1.2fr 1.1fr auto; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.staff-row:last-child { border-bottom: none; }
.staff-num { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--mute); }
.staff-name { font-family: "Sora", sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.staff-role-label { font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--mute); text-transform: uppercase; letter-spacing: .14em; margin-top: 3px; }
.staff-qual { font-size: 13px; color: var(--text-soft); line-height: 1.45; }
.staff-exp { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--mute); white-space: nowrap; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; }
@media (max-width: 800px) { .staff-row { grid-template-columns: 1fr auto; } .staff-num, .staff-qual { display: none; } }

/* ── Process ────────────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
@media (max-width: 800px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { padding: 28px 24px 28px 0; border-right: 1px solid var(--line); position: relative; }
.process-step:last-child { border-right: none; }
.process-step:not(:first-child) { padding-left: 24px; }
.process-step .step-num { font-family: "Sora", sans-serif; font-size: 56px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--accent-red); }
.process-step h4 { font-family: "Sora", sans-serif; font-size: 18px; font-weight: 700; margin: 18px 0 10px; letter-spacing: -0.02em; color: var(--text); }
.process-step p { font-size: 13.5px; line-height: 1.65; color: var(--text-soft); }
.process-connector { position: absolute; top: 54px; right: -1px; width: 20px; height: 20px; background: var(--accent-red); clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.process-step:last-child .process-connector { display: none; }

/* ── Slogan ─────────────────────────────────────────────── */
.slogan {
  font-family: "Sora", sans-serif; font-weight: 800;
  font-size: clamp(30px, 4.8vw, 78px); line-height: 1.0;
  letter-spacing: -0.042em; max-width: 1200px; color: var(--text);
}
.slogan .italic { font-family: "Cormorant Garant", serif; font-style: italic; font-weight: 400; }

/* ── Sub-page hero ──────────────────────────────────────── */
.sub-hero {
  padding-top: 108px; padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
  background: var(--bg); position: relative; overflow: hidden; isolation: isolate;
}
.sub-hero .shell { position: relative; z-index: 1; }
.sub-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
@media (max-width: 800px) { .sub-hero-grid { grid-template-columns: 1fr; } }
.sub-hero h1 { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(42px, 6vw, 92px); line-height: .94; letter-spacing: -0.042em; color: var(--text); }
.sub-hero h1 .italic { font-family: "Cormorant Garant", serif; font-style: italic; font-weight: 400; }
.sub-hero h1 .accent-red  { color: var(--accent-red); }
.sub-hero h1 .accent-blue { color: var(--accent-blue); }
.sub-hero .lead { font-size: 16.5px; line-height: 1.68; color: var(--text-soft); max-width: 480px; }

.bread { display: inline-flex; align-items: center; gap: 10px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--mute); margin-bottom: 24px; }
.bread .dot { width: 5px; height: 5px; background: var(--accent-red); border-radius: 50%; }

/* ── Quote section ──────────────────────────────────────── */
.big-quote-section {
  padding: 80px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; background: var(--surface);
}
.big-quote-mark {
  font-family: "Cormorant Garant", serif; font-size: 200px; line-height: .6;
  color: var(--accent-red); opacity: .18; position: absolute; top: 30px; left: 44px;
  pointer-events: none;
}
.big-quote {
  font-family: "Cormorant Garant", serif; font-style: italic;
  font-size: clamp(24px, 3.1vw, 42px); line-height: 1.2; letter-spacing: -0.01em; color: var(--text);
  max-width: 900px; position: relative; z-index: 1;
}
.big-quote .mark { color: var(--accent-red); }
.quote-attr { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.18em; margin-top: 24px; }

/* ── Utility ────────────────────────────────────────────── */
.divider { height: 1px; background: var(--line); }
.spacer-l { height: 80px; }
.spacer-m { height: 48px; }
.fade-in { opacity: 1; }

.kv { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.kv .k { font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.14em; padding-top: 4px; }
.kv .v { font-size: 15.5px; line-height: 1.55; color: var(--text); }
@media (max-width: 700px) { .kv { grid-template-columns: 1fr; gap: 6px; } }

.placeholder-img { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-family: "JetBrains Mono", monospace; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); }

.accent-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px; position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
.accent-card::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 4px; background: var(--accent-red); }
.accent-card.blue::before { background: var(--accent-blue); }

/* ── Credential chip ────────────────────────────────────── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .12em; background: var(--surface-2); white-space: nowrap; }
.chip.red  { border-color: rgba(224,48,80,.3); color: var(--accent-red); }
.chip.blue { border-color: rgba(64,104,245,.3); color: var(--accent-blue); }

/* ── Chat widget ────────────────────────────────────────── */
.chat-bubble {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--accent-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 0 var(--accent-red);
  transition: transform .2s, box-shadow .2s; border: none;
}
.chat-bubble:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 8px rgba(224,48,80,.15); }
.chat-bubble.is-open { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.chat-panel {
  position: fixed; bottom: 96px; right: 28px; z-index: 200;
  width: 360px; max-height: 540px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; overflow: hidden;
  animation: chatSlideIn .22s cubic-bezier(.32,1.2,.55,1);
}
@keyframes chatSlideIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 480px) { .chat-panel { right: 12px; left: 12px; width: auto; bottom: 88px; } .chat-bubble { right: 18px; bottom: 18px; } }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-header-logo { height: 28px; width: auto; border-radius: 6px; mix-blend-mode: multiply; }
[data-theme="dark"] .chat-header-logo { mix-blend-mode: normal; filter: invert(1) hue-rotate(180deg); }
.chat-header-title { font-family: "Sora", sans-serif; font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.chat-header-sub { font-size: 11.5px; color: var(--mute); }
.chat-close { margin-left: auto; width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: var(--text-soft); background: var(--surface-2); transition: background .2s; }
.chat-close:hover { background: var(--surface-3); color: var(--text); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.chat-bubble-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; }
.chat-bubble-bot { background: var(--surface-2); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-bubble-user { background: var(--accent-red); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-options { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 7px; }
.chat-option { width: 100%; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; text-align: left; font-size: 13px; color: var(--text); font-weight: 500; transition: all .15s; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-option:hover { background: var(--surface-3); border-color: var(--text-soft); }
.chat-option-arrow { flex-shrink: 0; opacity: .5; }
.chat-reset { margin: 0 16px 14px; font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: var(--mute); text-transform: uppercase; letter-spacing: 0.12em; text-align: center; cursor: pointer; background: none; border: none; transition: color .2s; }
.chat-reset:hover { color: var(--text-soft); }
