/* Madhup Bajpai portfolio. No inline styles, no external requests. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens: light (default) ---------- */
:root {
  --bg: #f3f5f7;
  --bg-2: #e9edf1;
  --ink: #0d1117;
  --ink-2: #3c4552;
  --muted: #667181;
  --line: rgba(13, 17, 23, 0.08);
  --line-strong: rgba(13, 17, 23, 0.14);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --glass-edge: rgba(255, 255, 255, 0.85);
  --shadow: 0 1px 1px rgba(13, 17, 23, 0.03), 0 8px 24px -6px rgba(13, 17, 23, 0.08), 0 30px 60px -30px rgba(13, 17, 23, 0.12);
  --shadow-lift: 0 1px 1px rgba(13, 17, 23, 0.04), 0 16px 36px -8px rgba(13, 17, 23, 0.14), 0 40px 80px -40px rgba(13, 17, 23, 0.18);
  --accent: #0b7f73;
  --accent-ink: #ffffff;
  --accent-soft: rgba(11, 127, 115, 0.1);
  --accent-2: #3d6df2;
  --pass: #0f8a5f;
  --pass-soft: rgba(15, 138, 95, 0.12);
  --warn: #9a6200;
  --warn-soft: rgba(196, 128, 0, 0.13);
  --dot-land: rgba(13, 17, 23, 0.22);
  --dot-lit: rgba(11, 127, 115, 0.55);
  --orb-a: rgba(52, 199, 176, 0.35);
  --orb-b: rgba(92, 132, 255, 0.28);
  --orb-c: rgba(140, 220, 255, 0.25);
  --btn-solid: #0d1117;
  --btn-solid-ink: #ffffff;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 0.8, 0.16, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --font: "Geist", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07090c;
    --bg-2: #0e1217;
    --ink: #eef2f6;
    --ink-2: #c3cad3;
    --muted: #8a94a2;
    --line: rgba(238, 242, 246, 0.08);
    --line-strong: rgba(238, 242, 246, 0.16);
    --glass: rgba(24, 29, 36, 0.55);
    --glass-hi: rgba(34, 40, 48, 0.8);
    --glass-edge: rgba(255, 255, 255, 0.09);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 70px -24px rgba(0, 0, 0, 0.85);
    --accent: #3fd5c1;
    --accent-ink: #04211d;
    --accent-soft: rgba(63, 213, 193, 0.12);
    --accent-2: #7d9dff;
    --pass: #4ade9b;
    --pass-soft: rgba(74, 222, 155, 0.13);
    --warn: #f5bd4f;
    --warn-soft: rgba(245, 189, 79, 0.14);
    --dot-land: rgba(238, 242, 246, 0.2);
    --dot-lit: rgba(63, 213, 193, 0.6);
    --orb-a: rgba(33, 170, 150, 0.28);
    --orb-b: rgba(70, 100, 230, 0.26);
    --orb-c: rgba(40, 140, 200, 0.16);
    --btn-solid: #eef2f6;
    --btn-solid-ink: #07090c;
  }
}
:root[data-theme="dark"] {
  --bg: #07090c;
  --bg-2: #0e1217;
  --ink: #eef2f6;
  --ink-2: #c3cad3;
  --muted: #8a94a2;
  --line: rgba(238, 242, 246, 0.08);
  --line-strong: rgba(238, 242, 246, 0.16);
  --glass: rgba(24, 29, 36, 0.55);
  --glass-hi: rgba(34, 40, 48, 0.8);
  --glass-edge: rgba(255, 255, 255, 0.09);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 70px -24px rgba(0, 0, 0, 0.85);
  --accent: #3fd5c1;
  --accent-ink: #04211d;
  --accent-soft: rgba(63, 213, 193, 0.12);
  --accent-2: #7d9dff;
  --pass: #4ade9b;
  --pass-soft: rgba(74, 222, 155, 0.13);
  --warn: #f5bd4f;
  --warn-soft: rgba(245, 189, 79, 0.14);
  --dot-land: rgba(238, 242, 246, 0.2);
  --dot-lit: rgba(63, 213, 193, 0.6);
  --orb-a: rgba(33, 170, 150, 0.28);
  --orb-b: rgba(70, 100, 230, 0.26);
  --orb-c: rgba(40, 140, 200, 0.16);
  --btn-solid: #eef2f6;
  --btn-solid-ink: #07090c;
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
img, svg { max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 16px; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 100; transform: translateY(-200%);
  background: var(--btn-solid); color: var(--btn-solid-ink);
  padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500;
  transition: transform 0.3s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Ambient light ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.orb-a { width: 52vw; height: 52vw; max-width: 720px; max-height: 720px; background: var(--orb-a); top: -18vw; right: -12vw; animation: drift-a 26s ease-in-out infinite alternate; }
.orb-b { width: 44vw; height: 44vw; max-width: 620px; max-height: 620px; background: var(--orb-b); top: 22vh; left: -18vw; animation: drift-b 32s ease-in-out infinite alternate; }
.orb-c { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; background: var(--orb-c); bottom: -14vw; right: 12vw; animation: drift-a 38s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(-6vw, 5vh, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(7vw, -4vh, 0) scale(0.94); } }

/* ---------- Glass surfaces ---------- */
.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: saturate(170%) blur(22px);
  backdrop-filter: saturate(170%) blur(22px);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}
/* pointer-following sheen, position set via CSS custom properties from JS */
.glass::after {
  content: "";
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), var(--accent-soft), transparent 60%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.glass.is-lit::after { opacity: 1; }

/* ---------- Navigation ---------- */
.nav-wrap {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  max-width: 980px; margin-inline: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: max-width 0.7s var(--ease), padding 0.7s var(--ease), background-color 0.5s var(--ease), transform 0.6s var(--ease);
}
.nav-wrap.is-scrolled .nav { max-width: 900px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.mono-mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 12.5px; font-weight: 650; letter-spacing: 0.02em;
}
.brand-name { font-size: 15px; }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a {
  display: block; padding: 7px 13px; border-radius: var(--r-pill);
  text-decoration: none; font-size: 14px; color: var(--ink-2);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { background: var(--line); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease-spring);
}
.icon-btn:hover { background: var(--line); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
.menu-btn { display: none; }

/* ---------- Buttons, chips, tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  font-size: 15.5px; font-weight: 550; text-decoration: none; letter-spacing: -0.005em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.5s var(--ease-spring), background-color 0.3s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-solid { background: var(--btn-solid); color: var(--btn-solid-ink); box-shadow: 0 8px 20px -8px rgba(13, 17, 23, 0.4); }
.btn-ghost { background: var(--glass-hi); border-color: var(--line-strong); color: var(--ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 14px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
}
.chip-pass { background: var(--pass-soft); color: var(--pass); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--glass-hi); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2); line-height: 1.3;
}
.tags-quiet li { background: transparent; font-family: var(--mono); font-size: 12px; padding: 4px 10px; }

.label, .kicker {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.kicker { color: var(--accent); margin-bottom: 14px; }

/* ---------- Type ---------- */
.display {
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 640;
  text-wrap: balance;
}
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.04; letter-spacing: -0.035em; font-weight: 620;
  text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 36em; letter-spacing: -0.01em; }
.section-sub { color: var(--muted); font-size: 17px; max-width: 40em; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding-block: calc(env(safe-area-inset-top, 0px) + 150px) 60px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-copy { display: grid; gap: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pass); box-shadow: 0 0 0 0 var(--pass); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 var(--pass-soft); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.snapshot { padding: 24px; border-radius: var(--r-xl); display: grid; gap: 22px; }
.snap-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.snap-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.snap-stats > div { background: var(--glass-hi); padding: 16px 18px; display: flex; flex-direction: column-reverse; gap: 2px; }
.snap-stats dt { font-size: 13px; color: var(--muted); }
.snap-stats dd { font-size: 38px; font-weight: 620; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.snap-scope { display: grid; gap: 12px; }
.snap-scope .tags li { font-size: 12.5px; padding: 5px 11px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 150px) 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px) clamp(32px, 6vw, 96px); }
.about-body { display: grid; gap: 18px; font-size: 18px; color: var(--ink-2); max-width: 36em; }
.facts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 20px 22px; border-radius: var(--r-md); display: grid; gap: 6px; align-content: start; }
.fact dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fact dd { font-size: 16px; font-weight: 520; line-height: 1.4; letter-spacing: -0.01em; }
.fact .sub { display: block; font-size: 13.5px; font-weight: 400; color: var(--muted); margin-top: 4px; }

/* Experience */
.timeline { display: grid; gap: 16px; position: relative; }
.role {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 12px 40px;
  padding: clamp(22px, 3vw, 34px);
}
.role:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.role-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.role-when { font-family: var(--mono); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.role-main { display: grid; gap: 14px; }
.role-title { font-size: clamp(22px, 2.4vw, 27px); font-weight: 610; letter-spacing: -0.025em; line-height: 1.15; }
.role-org { color: var(--accent); font-weight: 520; margin-top: -8px; }
.role-points { display: grid; gap: 8px; color: var(--ink-2); max-width: 44em; }
.role-points li { position: relative; padding-left: 22px; }
.role-points li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 8px; height: 1.5px; border-radius: 2px; background: var(--muted); }
.earlier { margin-top: 22px; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding-inline: 4px; }

/* Skills bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { padding: clamp(22px, 3vw, 32px); display: grid; gap: 20px; align-content: start; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.tile-wide { grid-column: span 2; }
.tile-h { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.fw-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fw-list li {
  display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; border-radius: var(--r-md);
  background: var(--glass-hi); border: 1px solid var(--line);
}
.fw-name { font-weight: 580; letter-spacing: -0.01em; }
.fw-mode { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; }
.plain-list { display: grid; gap: 0; }
.plain-list li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.plain-list li:last-child { border-bottom: 0; }
.tile-quote { align-content: center; background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--glass); }
.quote { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -0.025em; font-weight: 520; text-wrap: balance; max-width: 30em; }

/* Clients map */
.map-card { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0; border-radius: var(--r-xl); overflow: hidden; }
.map-stage { position: relative; padding: clamp(14px, 2.5vw, 30px); min-width: 0; display: grid; align-content: center; }
.map-svg { display: block; width: 100%; height: auto; overflow: visible; }
.map-land { fill: none; stroke: var(--dot-land); stroke-width: 3.2; stroke-linecap: round; }
.map-lit { fill: none; stroke: var(--dot-lit); stroke-width: 3.6; stroke-linecap: round; }
.marker { cursor: pointer; outline: none; }
.marker-core { fill: var(--accent); fill-opacity: 0.2; stroke: var(--accent); stroke-width: 1.4; transition: fill-opacity 0.35s var(--ease), transform 0.5s var(--ease-spring); transform-box: fill-box; transform-origin: center; }
.marker-halo { fill: var(--accent); fill-opacity: 0.18; transform-box: fill-box; transform-origin: center; animation: halo 3.2s var(--ease) infinite; }
.marker-dot { fill: var(--accent); }
.marker:nth-child(2) .marker-halo { animation-delay: 0.4s; }
.marker:nth-child(3) .marker-halo { animation-delay: 0.8s; }
.marker:nth-child(4) .marker-halo { animation-delay: 1.2s; }
.marker:nth-child(5) .marker-halo { animation-delay: 1.6s; }
.marker:nth-child(6) .marker-halo { animation-delay: 2s; }
.marker:nth-child(7) .marker-halo { animation-delay: 2.4s; }
.marker:nth-child(8) .marker-halo { animation-delay: 2.8s; }
@keyframes halo { 0% { transform: scale(1); opacity: 0.9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
.marker:hover .marker-core, .marker:focus-visible .marker-core, .marker.is-active .marker-core { fill-opacity: 0.45; transform: scale(1.12); }
.marker:focus-visible .marker-core { stroke-width: 2.6; }

.map-tip {
  position: absolute; z-index: 3; left: 0; top: 0;
  min-width: 200px; max-width: 250px; padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--glass-hi); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lift);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
  animation: tip-in 0.35s var(--ease);
}
@keyframes tip-in { from { opacity: 0; transform: translate(-50%, calc(-100% - 6px)) scale(0.96); } }
.tip-country { font-weight: 600; letter-spacing: -0.01em; }
.tip-total { font-family: var(--mono); font-size: 12.5px; color: var(--accent); margin-top: 2px; }
.tip-mix { margin-top: 10px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
.tip-mix li { display: flex; justify-content: space-between; gap: 16px; font-variant-numeric: tabular-nums; }

.map-side { border-left: 1px solid var(--line); padding: 22px; display: grid; gap: 26px; align-content: start; background: var(--glass-hi); }
.country-list { display: grid; gap: 2px; }
.country-list button {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px;
  padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer;
  transition: background-color 0.3s var(--ease);
}
.country-list button:hover, .country-list button.is-active { background: var(--accent-soft); }
.c-name { font-size: 15px; font-weight: 520; }
.c-count { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; color: var(--ink); }
.c-bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.c-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); width: 0; transition: width 1.2s var(--ease); }
.fw-bars { display: grid; gap: 12px; }
.bars { display: grid; gap: 9px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; font-size: 13.5px; color: var(--ink-2); }
.bars .b-val { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink); }
.bars .b-track { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bars .b-track i { display: block; height: 100%; border-radius: inherit; background: var(--ink-2); opacity: 0.55; width: 0; transition: width 1.2s var(--ease); }

/* Certifications */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.cert { padding: 24px; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 18px 18px; align-items: center; }
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.seal {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  font-family: var(--mono); font-size: 11px; font-weight: 600; line-height: 1.1; text-align: center; letter-spacing: 0.04em;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.seal::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.5); }
.seal span { position: relative; }
.seal-a { background: linear-gradient(145deg, #1f7bb8, #0c3f69); }
.seal-b { background: linear-gradient(145deg, #3b4a5e, #151c26); }
.seal-c { background: linear-gradient(145deg, #0e9384, #0a5a52); }
.seal-d { background: linear-gradient(145deg, #7a8594, #4b5563); }
.cert-body { display: grid; gap: 4px; }
.cert-name { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.cert-issuer { font-size: 14px; color: var(--muted); }
.verify {
  grid-column: 1 / -1; justify-self: start;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: var(--pass-soft); color: var(--pass);
  font-size: 13.5px; font-weight: 550; text-decoration: none;
  transition: transform 0.4s var(--ease-spring), background-color 0.3s var(--ease);
}
a.verify:hover { transform: translateX(3px); }
.verify svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.verify-static { background: var(--line); color: var(--ink-2); }
.verify-progress { background: var(--warn-soft); color: var(--warn); }

/* Contact */
.contact { padding-bottom: clamp(80px, 10vw, 130px); }
.contact-card { text-align: center; padding: clamp(40px, 7vw, 88px) clamp(20px, 5vw, 64px); border-radius: var(--r-xl); display: grid; justify-items: center; overflow: hidden; }
.contact-card .section-sub { margin-inline: auto; }
.cta-center { justify-content: center; margin-top: 32px; }
.email-link { font-family: var(--mono); font-size: 14.5px; animation: tip-in-flat 0.5s var(--ease); }
@keyframes tip-in-flat { from { opacity: 0; transform: translateY(6px); } }
.fine { font-size: 13px; color: var(--muted); margin-top: 20px; max-width: 34em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 28px calc(env(safe-area-inset-bottom, 0px) + 28px); font-size: 14px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-sec { display: inline-flex; align-items: center; gap: 8px; }
.footer-sec svg { width: 16px; height: 16px; fill: none; stroke: var(--pass); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Motion: load + scroll reveal ---------- */
/* Content is visible by default; JS opts elements into motion only when it runs. */
.js .load { animation: rise 1.1s var(--ease) both; }
.js .load[data-i="1"] { animation-delay: 0.11s; }
.js .load[data-i="2"] { animation-delay: 0.22s; }
.js .load[data-i="3"] { animation-delay: 0.33s; }
.js .load[data-i="4"] { animation-delay: 0.46s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
.js .reveal.is-pending { opacity: 0; transform: translateY(34px) scale(0.985); filter: blur(6px); }
.js .reveal {
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease), box-shadow 0.6s var(--ease), background-color 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-shown { transition-delay: 0s; transition-duration: 0.6s; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .snapshot { max-width: 560px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-card { grid-template-columns: 1fr; }
  .map-side { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .brand-name { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-cta { display: none; }
  .nav { justify-content: space-between; }
  .nav-links {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    flex-direction: column; gap: 2px; padding: 8px;
    border-radius: var(--r-lg);
    background: var(--glass-hi); border: 1px solid var(--glass-edge); box-shadow: var(--shadow-lift);
    -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    opacity: 0; transform: translateY(-8px) scale(0.98); pointer-events: none; visibility: hidden;
    transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav-links a { padding: 12px 16px; font-size: 16px; border-radius: 14px; }
  .nav-wrap { position: fixed; }
  .nav { position: relative; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; }
  .about-grid { grid-template-columns: 1fr; }
  .role { grid-template-columns: 1fr; }
  .role-meta { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-block: calc(env(safe-area-inset-top, 0px) + 116px) 32px; }
  .facts { grid-template-columns: 1fr; }
  .fw-list { grid-template-columns: 1fr; }
  .map-side { grid-template-columns: 1fr; }
  .snap-stats dd { font-size: 32px; }
  .cta-row .btn { flex: 1 1 auto; }
  .cert { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal.is-pending { opacity: 1; transform: none; filter: none; }
}

/* ---------- Services (home) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 3.4vw, 36px); text-decoration: none; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.svc-tag { justify-self: start; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: var(--r-pill); }
.svc-h { font-size: clamp(24px, 2.6vw, 30px); font-weight: 620; letter-spacing: -0.03em; line-height: 1.15; }
.svc-p { color: var(--ink-2); max-width: 34em; }
.svc-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; font-size: 15px; margin-top: 6px; }
.svc-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--ease-spring); }
.svc:hover .svc-more svg { transform: translateX(4px); }

/* ---------- Service pages ---------- */
.page-hero { padding-block: calc(env(safe-area-inset-top, 0px) + 140px) 20px; }
.page-hero .wrap { display: grid; gap: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.page-title { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.045em; font-weight: 640; text-wrap: balance; max-width: 16ch; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 6px; }
.proof div { display: grid; }
.proof dt { font-size: 13px; color: var(--muted); order: 2; }
.proof dd { font-size: 30px; font-weight: 620; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; order: 1; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 26px; display: grid; gap: 10px; align-content: start; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card-h { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.card p { color: var(--ink-2); font-size: 16px; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 22px 26px; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 14px; color: var(--accent); background: var(--accent-soft);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
}
.step h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.step p { color: var(--ink-2); font-size: 16px; margin-top: 4px; max-width: 46em; }
.prose { display: grid; gap: 16px; font-size: 18px; color: var(--ink-2); max-width: 40em; }
.prose strong { color: var(--ink); font-weight: 600; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { padding: 0; border-radius: var(--r-md); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 580; letter-spacing: -0.01em; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted);
  transform: rotate(45deg); transition: transform 0.4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .ans { padding: 0 24px 22px; color: var(--ink-2); display: grid; gap: 10px; max-width: 48em; }
.region-list { display: flex; flex-wrap: wrap; gap: 8px; }
.region-list li { padding: 8px 14px; border-radius: var(--r-pill); background: var(--glass-hi); border: 1px solid var(--line); font-size: 14.5px; }
.region-list b { font-family: var(--mono); font-weight: 500; color: var(--accent); margin-left: 6px; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }

@media (max-width: 860px) {
  .svc-grid, .card-grid, .split { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; }
}
