/* =============================================================
   Sahithi. — Digital & Performance Marketer
   Theme: black · blue · white
   ============================================================= */
:root {
  /* Brand */
  --black: #000000;
  --black-1: #0a0a0e;
  --black-2: #101017;
  --black-3: #16161f;
  --black-4: #22222c;

  --blue: #2563eb;
  --blue-500: #2f6ef0;
  --blue-400: #5b8cff;
  --blue-700: #1d4ed8;
  --blue-800: #1a41ad;
  --blue-ink: #7aa2ff;

  /* Light-scheme semantics (default) */
  --page: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f6ff;
  --surface-3: #eaefff;
  --line: #dde5f6;
  --line-strong: #c2d0ea;
  --heading: #05060b;
  --text: #3a4153;
  --muted: #565d73;
  --accent: #1d4ed8;
  --accent-fill: #2563eb;
  --accent-on: #ffffff;
  --accent-soft: #e9efff;
  --accent-line: #c9d9fb;
  --accent-300: #1d4ed8;
  --spot: rgba(37, 99, 235, .11);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --fs-root: 17px;
  --lh-body: 1.68;

  /* Space */
  --gutter: 24px;
  --section-y: clamp(64px, 7.5vw, 112px);

  /* Shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Elevation */
  --sh-xs: 0 1px 2px rgba(10, 14, 30, .07);
  --sh-sm: 0 2px 10px rgba(10, 14, 30, .06);
  --sh-md: 0 12px 28px -16px rgba(10, 14, 30, .3);
  --sh-lg: 0 28px 56px -32px rgba(10, 14, 30, .45);
  --sh-accent: 0 14px 26px -14px rgba(37, 99, 235, .62);

  --header-h: 74px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* Dark sections: same components, inverted tokens */
[data-scheme="dark"] {
  color-scheme: dark;
  /* must be re-declared here: body's `color` already resolved with light tokens */
  color: var(--text);
  --page: #000000;
  --surface: #0c0c12;
  --surface-2: #14141d;
  --surface-3: #1b1b25;
  --line: #232330;
  --line-strong: #35354a;
  --heading: #ffffff;
  --text: #c6cad8;
  --muted: #a8aec2;
  --accent: #7aa2ff;
  --accent-fill: #2563eb;
  --accent-on: #ffffff;
  --accent-soft: rgba(91, 140, 255, .14);
  --accent-line: rgba(91, 140, 255, .34);
  --accent-300: #7aa2ff;
  --spot: rgba(91, 140, 255, .13);
  --sh-xs: 0 1px 2px rgba(0, 0, 0, .5);
  --sh-sm: 0 2px 12px rgba(0, 0, 0, .5);
  --sh-md: 0 14px 30px -16px rgba(0, 0, 0, .8);
  --sh-lg: 0 30px 60px -30px rgba(0, 0, 0, .9);
}

@media (max-width: 900px) { :root { --gutter: 22px; --fs-root: 16.5px; } }
@media (max-width: 560px) { :root { --gutter: 18px; --fs-root: 16px; --header-h: 66px; } }

/* =============================================================
   Base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-root);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  color: var(--heading);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.16;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(38px, 6vw, 70px); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(20px, 1.9vw, 25px); line-height: 1.25; letter-spacing: -0.018em; }
h4 { font-size: clamp(16px, 1.5vw, 18px); line-height: 1.35; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }
img { height: auto; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 20px; height: 20px; flex: 0 0 auto; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  background: var(--blue);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* =============================================================
   Cursor glow + ring
   ============================================================= */
.cursor-glow,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.cursor-glow {
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .22), rgba(37, 99, 235, .07) 45%, transparent 72%);
}
.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  z-index: 2;
  transition: opacity .3s var(--ease);
}
.cursor-ring span {
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(91, 140, 255, .85);
  border-radius: 50%;
  transition: transform .28s var(--ease), border-color .28s var(--ease), background-color .28s var(--ease);
}
.cursor-ring.is-hot span {
  transform: scale(1.7);
  border-color: rgba(37, 99, 235, 1);
  background: rgba(37, 99, 235, .08);
}
body.has-cursor .cursor-glow,
body.has-cursor .cursor-ring { opacity: 1; }

@media (hover: none), (pointer: coarse) {
  .cursor-glow, .cursor-ring { display: none !important; }
}

/* =============================================================
   Layout
   ============================================================= */
.container {
  width: 100%;
  max-width: 1216px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); background: var(--page); }
.section-alt { background: var(--page); }

.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.grid { display: grid; gap: clamp(18px, 1.8vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.section-head { max-width: 760px; margin-bottom: clamp(30px, 3.4vw, 52px); }
.section-lede { font-size: clamp(17px, 1.3vw, 19px); color: var(--text); max-width: 62ch; }
.sub-head { margin-top: clamp(30px, 3vw, 46px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.eyebrow .i { width: 17px; height: 17px; }
.eyebrow-light { color: var(--accent-300); }

.note {
  margin-top: clamp(24px, 2.6vw, 38px);
  font-size: 14.5px;
  color: var(--muted);
  border-left: 3px solid var(--line-strong);
  padding-left: 16px;
  max-width: 78ch;
}

/* Pointer-tracked spotlight on cards */
.card, .stat, .flow-step, .soft-item, .edu-card, .mini-card,
.contact-form-wrap { position: relative; }

@media (hover: hover) and (pointer: fine) {
  .card::before, .stat::before, .flow-step::before, .soft-item::before,
  .edu-card::before, .mini-card::before, .contact-form-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s var(--ease);
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 65%);
  }
  .card:hover::before, .stat:hover::before, .flow-step:hover::before, .soft-item:hover::before,
  .edu-card:hover::before, .mini-card:hover::before, .contact-form-wrap:hover::before { opacity: 1; }
}

/* =============================================================
   Buttons
   ============================================================= */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .i { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, #2f6ef0, #2563eb);
  color: var(--accent-on);
  box-shadow: var(--sh-accent);
  isolation: isolate;
}
.btn-primary:hover { background: linear-gradient(180deg, #2f6ef0, #1a41ad); box-shadow: 0 18px 30px -14px rgba(37, 99, 235, .72); }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, .38) 50%, transparent 68%);
  transform: translateX(-130%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }

.btn-outline {
  background: var(--surface);
  color: var(--heading);
  border-color: var(--line-strong);
  box-shadow: var(--sh-xs);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--sh-md); }

.btn-ghost-light {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .32);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .6); }

.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

@media (hover: hover) and (pointer: fine) {
  .btn {
    --mx: 0px;
    --my: 0px;
    transform: translate3d(calc(var(--mx) * .13), calc(var(--my) * .13), 0);
    transition: transform .16s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  }
  .btn:hover { transform: translate3d(calc(var(--mx) * .13), calc(var(--my) * .13 - 2px), 0); }
  .btn:active { transform: translate3d(calc(var(--mx) * .13), calc(var(--my) * .13), 0); }
}

/* =============================================================
   Header
   ============================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid transparent;
  color: var(--text);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, .93);
  border-bottom-color: var(--line);
}

.scroll-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.scroll-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-400), var(--blue-400));
  box-shadow: 0 0 12px rgba(91, 140, 255, .8);
  transition: width .1s linear;
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: height .25s var(--ease);
}
.site-header.is-scrolled .header-inner { height: calc(var(--header-h) - 12px); }

.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--heading);
  line-height: 1;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand-dot { color: var(--blue-400); }

.nav-links ul { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--text);
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.nav-links a.is-active { color: var(--blue-ink); font-weight: 600; background: rgba(91, 140, 255, .14); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--heading);
  cursor: pointer;
}
.nav-toggle .i { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

.mobile-nav {
  display: none;
  background: #000;
  border-top: 1px solid var(--line);
  padding: 10px var(--gutter) 22px;
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav a { display: block; }
.mobile-nav nav ul { display: grid; gap: 2px; }
.mobile-nav nav a {
  padding: 14px 12px;
  border-radius: var(--r-sm);
  font-size: 17px;
  font-weight: 500;
  color: var(--heading);
  border-bottom: 1px solid var(--line);
}
.mobile-nav nav li:last-child a { border-bottom: 0; }
.mobile-nav nav a:hover { background: var(--surface-2); text-decoration: none; }
.mobile-nav-foot { margin-top: 18px; display: grid; gap: 12px; }
.mobile-mail { font-size: 15px; text-align: center; word-break: break-word; }

@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hide-sm { display: none; }
}
@media (min-width: 1021px) {
  .mobile-nav { display: none !important; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: #000;
  padding-top: calc(var(--header-h) + clamp(34px, 5vw, 74px));
  padding-bottom: clamp(52px, 6vw, 92px);
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(91, 140, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 140, 255, .08) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 8%, transparent 68%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 8%, transparent 68%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  inset: -30% 40% 30% -25%;
  z-index: 0;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .34), transparent 72%);
  pointer-events: none;
  animation: glowDrift 16s var(--ease) infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(6%, 4%, 0) scale(1.12); }
}

.hero .container { position: relative; z-index: 1; }
.hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); align-items: center; gap: clamp(30px, 4vw, 60px); }
.hero-copy > * { max-width: 40em; }

.hero-copy > *,
.hero-visual { animation: heroIn .85s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes heroIn {
  from { opacity: 0; transform: translate3d(0, 22px, 0); filter: blur(5px); }
  to { opacity: 1; transform: none; filter: none; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 16px 8px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
}
.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue-400);
  position: relative;
}
.badge-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(91, 140, 255, .45);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% { transform: scale(.7); opacity: 1; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.hero h1 { margin-bottom: 22px; }
.accent-text {
  color: var(--blue-400);
  background: linear-gradient(92deg, #7aa2ff, #2f6ef0 60%, #7aa2ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede { font-size: clamp(17px, 1.35vw, 19px); color: var(--text); max-width: 56ch; margin-bottom: 30px; }

.availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--blue-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
}
.availability .i { width: 17px; height: 17px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}
.hero-meta li { display: flex; align-items: center; gap: 9px; }
.hero-meta .i { width: 18px; height: 18px; color: var(--blue-400); }
.hero-meta a { color: var(--text); }
.hero-meta a:hover { color: var(--blue-ink); }

/* Hero visual — abstract marketing dashboard */
.hero-visual { position: relative; }
.dash {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(91, 140, 255, .08);
  padding: 18px 20px 22px;
}
.dash-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.dash-dots { display: inline-flex; gap: 6px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c3a; }
.dash-title { font-size: 14.5px; font-weight: 600; color: var(--heading); }
.tag-mini {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}
.dash-search {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 18px 0 6px;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.dash-search .i { color: var(--blue-400); }
.dash-search-text { flex: 1; font-size: 14.5px; color: var(--muted); }
.chip-accent {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue-ink);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  padding: 3px 11px;
}
.dash-section-label {
  margin: 20px 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.funnel { display: grid; gap: 11px; }
.fn-label { display: block; font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.fn-bar {
  display: block;
  height: 9px;
  width: var(--w, 100%);
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #2563eb, #7aa2ff);
  transform-origin: left;
  animation: barGrow 1.4s var(--ease) both;
}
@keyframes barGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.funnel-step:nth-child(2) .fn-bar { background: linear-gradient(90deg, #2f6ef0, #93bbff); animation-delay: .1s; }
.funnel-step:nth-child(3) .fn-bar { background: linear-gradient(90deg, #1d4ed8, #5b8cff); animation-delay: .2s; }
.funnel-step:nth-child(4) .fn-bar { background: linear-gradient(90deg, #1a41ad, #7aa2ff); animation-delay: .3s; }

.dash-chart { margin-top: 6px; }
.dash-chart svg { display: block; width: 100%; height: auto; }
.dash-chart .chart-draw {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: chartDraw 2.2s var(--ease) .4s both;
}
@keyframes chartDraw { to { stroke-dashoffset: 0; } }
.dash-chart .chart-dot {
  opacity: 0;
  animation: dotIn .5s var(--ease) 1.9s both;
}
@keyframes dotIn { to { opacity: 1; } }

.float-card {
  position: absolute;
  left: -26px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .95);
}
.float-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--blue-400);
}
.float-text strong { display: block; font-size: 14.5px; color: var(--heading); line-height: 1.3; }
.float-text span { font-size: 14px; color: var(--muted); }

.float-chips {
  position: absolute;
  top: -22px;
  right: -8px;
  display: flex;
  gap: 8px;
}
.fchip {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
  color: var(--blue-400);
  transition: transform .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.fchip:nth-child(even) { color: #93bbff; }
.hero-visual:hover .fchip:nth-child(1) { transform: translateY(-4px); }
.hero-visual:hover .fchip:nth-child(2) { transform: translateY(-8px); }
.hero-visual:hover .fchip:nth-child(3) { transform: translateY(-4px); }
.hero-visual:hover .fchip:nth-child(4) { transform: translateY(-8px); }
.hero-visual:hover .fchip:nth-child(5) { transform: translateY(-4px); }

@media (max-width: 1180px) {
  .float-chips { position: static; margin-top: 16px; flex-wrap: wrap; }
  .float-card { position: static; margin-top: 16px; box-shadow: var(--sh-sm); }
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy > * { max-width: 46em; }
  .hero-glow { inset: -20% 10% 40% -20%; }
}

/* =============================================================
   Value band (blue) + marquee
   ============================================================= */
.band {
  background: linear-gradient(120deg, #1a41ad, #2563eb 48%, #2f6ef0);
  color: #fff;
  padding-block: clamp(28px, 3.2vw, 44px);
  overflow: hidden;
}
.band-label {
  text-align: center;
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.band-list {
  display: flex;
  flex-shrink: 0;
  gap: 12px 14px;
  padding-right: 14px;
}
.band-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.band-list li:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); }
.band-list .i { width: 18px; height: 18px; color: #dbe7ff; }

/* =============================================================
   Cards
   ============================================================= */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px 28px;
  box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15.5px; }

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon .i { width: 22px; height: 22px; }

.perf-card { height: 100%; }
.tick-list { display: grid; gap: 10px; margin-top: 4px; }
.tick-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--text);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  opacity: .55;
}

.skill-group { height: 100%; }
.skill-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.skill-head .card-icon { margin-bottom: 0; flex: 0 0 auto; }
.skill-head h3 { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips li {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 15px;
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.chips li:hover { border-color: var(--accent-line); color: var(--accent); background: var(--accent-soft); }
.chips-wide { margin-bottom: 8px; }
.skill-foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 14.5px;
  color: var(--muted);
}

.cert-card { text-align: left; }
.cert-issuer { margin: 0; font-size: 15.5px; color: var(--muted); }
.cert-issuer strong { color: var(--heading); font-weight: 600; }

.mini-card { text-align: center; padding: 26px 18px; }
.mini-card .card-icon { margin-inline: auto; }
.mini-card h3 { font-size: 17px; margin: 0; }

/* =============================================================
   Stats
   ============================================================= */

/* =============================================================
   Project cards
   ============================================================= */

/* =============================================================
   Stats
   ============================================================= */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.5fr;
  gap: clamp(16px, 1.8vw, 24px);
  margin-bottom: clamp(32px, 3.4vw, 52px);
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 22px;
  box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.stat:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.stat-num {
  display: block;
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--heading);
  margin-bottom: 10px;
}
.stat-label { font-size: 14.5px; color: var(--muted); }
.stat-note {
  display: flex;
  align-items: center;
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.stat-note-text { font-size: 14.5px; color: var(--text); margin: 0; }
.stat-note-text strong { color: var(--accent); }

/* =============================================================
   Content flow
   ============================================================= */
.flow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  counter-reset: flow;
}
.flow-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 14px 18px;
  text-align: center;
  box-shadow: var(--sh-xs);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.flow-step:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--sh-sm); }
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--line-strong);
  border-right: 2px solid var(--line-strong);
  transform: translateY(-50%) rotate(45deg);
}
.flow-num {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.flow-label { display: block; font-size: 14.5px; font-weight: 600; color: var(--heading); line-height: 1.3; }

@media (max-width: 1120px) {
  .flow { grid-template-columns: 1fr; gap: 22px; max-width: 460px; }
  .flow-step { text-align: left; display: flex; align-items: center; gap: 14px; padding: 15px 18px; }
  .flow-num { margin-bottom: 0; }
  .flow-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -16px;
    transform: translateX(50%) rotate(135deg);
  }
}

/* =============================================================
   About
   ============================================================= */
.about-grid { align-items: start; }
.about-copy { grid-column: span 6; }
.about-copy p { font-size: 16.5px; }
.about-lede { font-size: clamp(17px, 1.4vw, 19.5px) !important; color: var(--heading); font-weight: 500; }
.about-timeline { grid-column: span 6; }
.about-timeline .sub-head { margin-top: 0; }

.edu-card {
  display: flex;
  gap: 18px;
  margin-top: 30px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.edu-card .card-icon { margin-bottom: 0; flex: 0 0 auto; }
.edu-card h3 { margin-bottom: 8px; }
.edu-line { margin: 0 0 4px; font-size: 15.5px; color: var(--text); }
.edu-meta { color: var(--muted) !important; font-size: 14.5px !important; }

.timeline { position: relative; display: grid; gap: 26px; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-400), var(--line));
}
.tl-item { position: relative; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--blue-400);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, .12);
}
.tl-year {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  padding: 4px 12px;
  margin-bottom: 10px;
}
.tl-item h4 { margin-bottom: 6px; }
.tl-item p { margin: 0; font-size: 15.5px; }

@media (max-width: 980px) {
  .about-copy, .about-timeline { grid-column: span 12; }
}

/* =============================================================
   Interpersonal skills
   ============================================================= */
.soft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
.soft-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--heading);
  box-shadow: var(--sh-xs);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.soft-item:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--sh-sm); }
.soft-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

/* =============================================================
   Contact
   ============================================================= */
.section-contact {
  background:
    radial-gradient(900px 420px at 88% 0%, rgba(37, 99, 235, .38), transparent 62%),
    radial-gradient(760px 400px at 2% 100%, rgba(26, 65, 173, .34), transparent 62%),
    #000;
  color: var(--text);
}
.contact-grid { align-items: center; }
.contact-copy { grid-column: span 6; }
.contact-lede {
  font-size: clamp(17px, 1.35vw, 19px);
  color: var(--text);
  max-width: 52ch;
  margin-bottom: 30px;
}
.contact-list { display: grid; gap: 4px; margin-top: 38px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
}
.contact-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--blue-ink);
}
.contact-key {
  flex: 0 0 84px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-list a { color: var(--heading); font-weight: 500; word-break: break-word; }
.contact-list a:hover { color: var(--blue-ink); }

.contact-form-wrap {
  grid-column: span 6;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(26px, 3vw, 38px);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.form-title { color: var(--heading); margin-bottom: 6px; }
.form-sub { font-size: 15.5px; color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .04);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  color: #fff;
  font-size: 16px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 132px; }
.field input::placeholder,
.field textarea::placeholder { color: #7c8296; }
.field input:hover,
.field textarea:hover { border-color: rgba(91, 140, 255, .5); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  background: rgba(37, 99, 235, .08);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .22);
}
.field.has-error input,
.field.has-error textarea { border-color: #ff7a7a; }
.field-error { margin: 8px 0 0; font-size: 14px; color: #ff9d9d; }
.form-status { margin: 16px 0 0; font-size: 14.5px; color: var(--muted); }
.form-status.is-ok { color: #7aa2ff; }

@media (max-width: 980px) {
  .contact-copy, .contact-form-wrap { grid-column: span 12; }
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: #000;
  color: var(--text);
  padding-block: clamp(48px, 5vw, 74px) 32px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 56px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-logo { color: #fff; font-size: 24px; display: inline-block; margin-bottom: 12px; }
.footer-role { font-size: 15.5px; font-weight: 600; color: var(--heading); margin-bottom: 10px; }
.footer-tagline { font-size: 15px; max-width: 40ch; }
.footer-heading {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-nav ul, .footer-social ul { display: grid; gap: 10px; }
.footer-nav a, .footer-social a {
  color: var(--text);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color .18s var(--ease), transform .18s var(--ease);
}
.footer-nav a:hover, .footer-social a:hover { color: #fff; text-decoration: none; transform: translateX(3px); }
.footer-social .i { width: 17px; height: 17px; color: var(--blue-ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 14px;
  color: var(--muted);
}
.footer-bottom p { margin: 0; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   Scroll reveal
   ============================================================= */
.js.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
  will-change: opacity, transform;
}
.js.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-note { grid-column: span 2; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 26px); }
  .btn { width: 100%; }
  .btn-row { width: 100%; }
  .grid-3, .grid-4, .grid-5, .soft-grid, .stat-row { grid-template-columns: 1fr; }
  .stat-note { grid-column: auto; }
  .stat { padding: 20px; }
  .card { padding: 22px 20px 24px; }
  .hero-meta { gap: 10px 18px; font-size: 14.5px; }
  .dash { padding: 16px 16px 20px; }
  .float-card { padding: 10px 14px 10px 10px; }
  .edu-card { flex-direction: column; gap: 14px; }
  .contact-list li { flex-wrap: wrap; gap: 10px; }
  .contact-key { flex-basis: 100%; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .fchip { width: 40px; height: 40px; }
  .flow-step { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js.reveal-ready [data-reveal] { opacity: 1; transform: none; }
  
  .marquee-track { animation: none; }
  .cursor-glow, .cursor-ring { display: none !important; }
  .hero-copy > *, .hero-visual { animation: none; }
  .scroll-bar span { transition: none; }
}
