/* ============================================================
   Anand Shrivastava Portfolio
   Design: Premium Dark — Trust & Authority pattern
   Palette: Zinc-950 + Gold (#C8A96A) accent
   Fonts: Space Grotesk (headings) + Inter (body)
   ============================================================ */

:root {
  --bg:        #09090B;
  --surface:   #111113;
  --surface-2: #18181B;
  --border:    #27272A;
  --border-2:  #3F3F46;
  --text-1:    #FAFAFA;
  --text-2:    #A1A1AA;
  --text-3:    #71717A;
  --gold:      #C8A96A;
  --gold-2:    #a8844a;
  --gold-glow: rgba(200,169,106,0.15);
  --gold-dim:  rgba(200,169,106,0.08);
  --success:   #22C55E;
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --sh-sm: 0 1px 3px rgba(0,0,0,.5);
  --sh-md: 0 4px 16px rgba(0,0,0,.6);
  --sh-lg: 0 12px 40px rgba(0,0,0,.7);
  --ease:  cubic-bezier(0.16,1,0.3,1);
  --font-h: 'Space Grotesk', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font-b);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* ── Scroll-driven reveal ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero elements animate in immediately */
.ani-fade-up {
  animation: fadeUp 0.65s var(--ease) both;
  animation-delay: var(--delay, 0ms);
}

/* Scroll-triggered elements */
.ani-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.ani-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* No-motion preference */
@media (prefers-reduced-motion: reduce) {
  .ani-fade-up { animation: none; opacity: 1; transform: none; }
  .ani-up      { opacity: 1; transform: none; transition: none; }
}

/* ── Utility ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--gold) 0%, #e8c880 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
}

.section-eyebrow {
  font-family: var(--font-b);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-h);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--gold);
  color: #09090B;
  font-family: var(--font-b);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--r-md);
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: #d9b87a;
  box-shadow: 0 0 20px var(--gold-glow);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid var(--border-2);
  color: var(--text-1);
  font-family: var(--font-b);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--r-md);
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-1px);
}
.btn-ghost:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ── NAV ──────────────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
#nav.scrolled {
  background: rgba(9,9,11,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.nav-name {
  font-family: var(--font-h);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text-1); background: var(--surface-2); }
.nav-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.nav-cta {
  padding: 8px 18px !important;
  background: var(--gold) !important;
  color: #09090B !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: #d9b87a !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--r-sm);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 16px 20px;
  background: rgba(9,9,11,0.97);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.mobile-link:hover { color: var(--text-1); background: var(--surface-2); }
.mobile-cta {
  margin-top: 8px;
  text-align: center;
  background: var(--gold);
  color: #09090B !important;
  font-weight: 600;
}
.mobile-cta:hover { background: #d9b87a !important; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}

/* Split layout: text left, visual right */
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,106,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,106,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%, rgba(200,169,106,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--success);
  margin-bottom: 28px;
}
.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero-h1 {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: 20px;
}
.hero-br { display: inline; }

.hero-sub {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 28px;
}
.hero-sub-tags {
  display: block;
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--text-3);
}

/* Google trust signal in hero */
.hero-credential {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 32px;
}
.hero-credential img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.hero-cred-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-cred-label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
}
.hero-cred-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-1);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border-2), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ── STATS STRIP ──────────────────────────────────────────── */
.stats-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  text-align: center;
}

.stat-num {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: inline;
}
.stat-plus {
  font-family: var(--font-h);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  display: inline;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-2);
  font-weight: 500;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── SEGMENTS ─────────────────────────────────────────────── */
.segments {
  padding: 96px 0;
}

.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.seg-card {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  cursor: pointer;
  overflow: hidden;
}
.seg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.seg-card:hover, .seg-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.seg-card:hover::before { opacity: 1; }
.seg-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.seg-card--featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(200,169,106,0.06) 0%, var(--surface) 100%);
}
.seg-card--featured::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-2));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.seg-featured-label {
  position: relative;
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold);
  color: #09090B;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 20px;
}

.seg-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--gold);
  margin-bottom: 16px;
}

.seg-card h3 {
  font-family: var(--font-h);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 10px;
}
.seg-card p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
}

.seg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
}
.seg-tags span {
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}

/* ── SERVICES ─────────────────────────────────────────────── */
.services {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.svc-card {
  position: relative;
  padding: 36px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}
.svc-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.svc-card--featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(200,169,106,0.05) 0%, var(--bg) 100%);
}
.svc-card--featured::after {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-2));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.svc-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-h);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--border-2);
  letter-spacing: 0.05em;
}

.svc-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--gold);
  flex-shrink: 0;
}

.svc-card h3 {
  font-family: var(--font-h);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-1);
}

.svc-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.svc-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.svc-features li svg {
  color: var(--gold);
  flex-shrink: 0;
}

.svc-outcome {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-top: auto;
}
.outcome-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.svc-outcome span:last-child {
  font-size: 0.875rem;
  color: var(--text-1);
  font-weight: 500;
}

/* ── RESULTS ──────────────────────────────────────────────── */
.results {
  padding: 96px 0;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.result-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.result-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

.result-category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,169,106,0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.result-title {
  font-family: var(--font-h);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}

.result-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-num {
  font-family: var(--font-h);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.metric-label {
  font-size: 0.75rem;
  color: var(--text-3);
  line-height: 1.3;
}

/* ── PROCESS ──────────────────────────────────────────────── */
.process {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.process-steps {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
  position: relative;
}

.process-step {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: start;
  gap: 24px;
  padding: 28px 0;
  position: relative;
}
.process-step + .process-step {
  border-top: 1px solid var(--border);
}

.step-num {
  font-family: var(--font-h);
  font-size: 2rem;
  font-weight: 700;
  color: var(--border-2);
  line-height: 1;
  padding-top: 4px;
}

.step-body h3 {
  font-family: var(--font-h);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 6px;
  line-height: 1.3;
}
.step-body p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 520px;
}

.step-line {
  display: none;
}

/* ── INSTITUTIONS ─────────────────────────────────────────── */
.institutions {
  padding: 96px 0;
}

.inst-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

/* Full-bleed photo cards */
.inst-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
}
.inst-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.inst-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s var(--ease), filter 0.3s;
  filter: brightness(0.75) saturate(0.9);
}
.inst-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.85) saturate(1);
}
.inst-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 20px;
  background: linear-gradient(to top, rgba(9,9,11,0.96) 0%, rgba(9,9,11,0.5) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.inst-name {
  font-family: var(--font-h);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}
.inst-full {
  font-size: 0.75rem;
  color: var(--text-2);
  line-height: 1.3;
}

.upcoming-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(200,169,106,0.06) 0%, var(--surface) 100%);
  border: 1px solid var(--gold);
  border-radius: var(--r-lg);
}
.upcoming-tag {
  flex-shrink: 0;
  padding: 4px 12px;
  background: var(--gold);
  color: #09090B;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
}
.upcoming-body { flex: 1; }
.upcoming-body h3 {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}
.upcoming-body p {
  font-size: 0.875rem;
  color: var(--text-2);
}
.upcoming-icon { color: var(--gold); flex-shrink: 0; }

/* ── CREDENTIALS ──────────────────────────────────────────── */
.credentials {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feat-cert {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 40px;
  background: var(--bg);
  border: 1px solid var(--gold);
  border-radius: var(--r-xl);
  margin-top: 48px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.feat-cert::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 10% 50%, rgba(200,169,106,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.feat-cert-badge {
  flex-shrink: 0;
}
.feat-cert-badge img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  position: relative;
}

.feat-cert-content {
  position: relative;
}
.cert-source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(66,133,244,0.1);
  border: 1px solid rgba(66,133,244,0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4285F4;
  margin-bottom: 12px;
}
.feat-cert-content h3 {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}
.feat-cert-content p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 520px;
}
.cert-date-row { display: flex; align-items: center; gap: 12px; }
.cert-date {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
  padding: 4px 10px;
  background: var(--gold-dim);
  border: 1px solid rgba(200,169,106,0.2);
  border-radius: 100px;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s;
}
.cert-card:hover { border-color: var(--border-2); }
.cert-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}
.cert-issuer {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
  margin-bottom: 2px;
}
.cert-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.3;
}

/* ── PUBLICATIONS ─────────────────────────────────────────── */
.publications {
  padding: 96px 0;
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.pub-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s, transform 0.2s;
}
.pub-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.pub-journal-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gold);
}

.pub-card h3 {
  font-family: var(--font-h);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.35;
}
.pub-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.pub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pub-tag {
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
}

/* ── CONTACT ──────────────────────────────────────────────── */
.contact {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.contact-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(200,169,106,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  position: relative;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-1);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.contact-sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  margin-bottom: 40px;
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-3);
}
.contact-location svg { color: var(--gold); }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.footer-name {
  font-family: var(--font-h);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-1);
}
.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.footer-links a {
  padding: 6px 12px;
  font-size: 0.875rem;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
}
.footer-links a:hover { color: var(--text-1); background: var(--surface-2); }
.footer-links a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-3);
}

/* ── HERO VISUAL (right side) ─────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 480px;
}

.hv-scene {
  position: relative;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
}

/* Orbital rings */
@keyframes spin-slow  { from { transform: rotate(0deg);   } to { transform: rotate(360deg);  } }
@keyframes spin-rev   { from { transform: rotate(0deg);   } to { transform: rotate(-360deg); } }
@keyframes spin-mid   { from { transform: rotate(45deg);  } to { transform: rotate(405deg);  } }

.hv-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200,169,106,0.18);
  top: 50%; left: 50%;
  transform-origin: center center;
}
.hv-ring-1 {
  width: 280px; height: 280px;
  margin: -140px 0 0 -140px;
  border-style: dashed;
  animation: spin-slow 18s linear infinite;
}
.hv-ring-2 {
  width: 360px; height: 360px;
  margin: -180px 0 0 -180px;
  border-color: rgba(200,169,106,0.1);
  animation: spin-rev 28s linear infinite;
}
.hv-ring-3 {
  width: 200px; height: 200px;
  margin: -100px 0 0 -100px;
  border-color: rgba(200,169,106,0.25);
  animation: spin-mid 12s linear infinite;
}

/* Central orb */
.hv-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hv-orb-core {
  width: 100px;
  height: 100px;
  background: var(--surface);
  border: 1px solid rgba(200,169,106,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hv-orb-core img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}
.hv-orb-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(200,169,106,0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.1); }
}

/* Floating stat cards */
@keyframes floatA { 0%,100% { transform: translateY(0);   } 50% { transform: translateY(-8px); } }
@keyframes floatB { 0%,100% { transform: translateY(0);   } 50% { transform: translateY(8px);  } }

.hv-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(17,17,19,0.92);
  border: 1px solid rgba(200,169,106,0.25);
  border-radius: var(--r-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 10;
  white-space: nowrap;
}
.hv-card-tl { top: 28px;  left: 0;    animation: floatA 4s ease-in-out infinite; }
.hv-card-tr { top: 28px;  right: 0;   animation: floatB 4.5s ease-in-out infinite; }
.hv-card-bl { bottom: 40px; left: 0;  animation: floatB 5s ease-in-out infinite; }
.hv-card-br { bottom: 40px; right: 0; animation: floatA 3.5s ease-in-out infinite; }

.hv-val {
  font-family: var(--font-h);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hv-desc {
  font-size: 0.75rem;
  color: var(--text-2);
  font-weight: 500;
}
.hv-cert-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}
.hv-live-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

/* SVG network lines */
.hv-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Floating particles */
@keyframes particleDrift {
  0%   { transform: translate(0, 0) scale(1);   opacity: 0.6; }
  50%  { transform: translate(8px, -12px) scale(1.2); opacity: 1; }
  100% { transform: translate(0, 0) scale(1);   opacity: 0.6; }
}
.hv-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.hv-p1 { top: 18%;  left: 22%;  animation: particleDrift 3.2s ease-in-out infinite; }
.hv-p2 { top: 72%;  left: 75%;  animation: particleDrift 4.1s ease-in-out infinite 0.8s; }
.hv-p3 { top: 15%;  left: 68%;  animation: particleDrift 3.7s ease-in-out infinite 1.6s; }
.hv-p4 { top: 80%;  left: 28%;  animation: particleDrift 4.8s ease-in-out infinite 0.4s; }

/* ── RESPONSIVE ───────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { display: none; }

  .segments-grid,
  .services-grid,
  .results-grid {
    grid-template-columns: 1fr 1fr;
  }
  .certs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .inst-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feat-cert {
    flex-direction: column;
    text-align: center;
  }
  .feat-cert-badge { margin: 0 auto; }
  .feat-cert-content { align-items: center; display: flex; flex-direction: column; }
  .cert-date-row { justify-content: center; }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-name { display: none; }

  .hero { padding: 100px 0 80px; min-height: auto; }
  .hero-h1 { font-size: clamp(2rem, 9vw, 3.5rem); }
  .hero-sub { font-size: 1rem; }
  .hero-credential { flex-direction: column; text-align: center; align-items: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .hero-scroll-hint { display: none; }

  .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .stat-divider { display: none; }

  .segments-grid,
  .services-grid,
  .results-grid,
  .pub-grid {
    grid-template-columns: 1fr;
  }

  .certs-grid {
    grid-template-columns: 1fr;
  }

  .inst-grid {
    grid-template-columns: 1fr 1fr;
  }
  .inst-card { aspect-ratio: 3 / 2; }

  .process-step {
    grid-template-columns: 48px 1fr;
  }
  .step-line { display: none; }

  .feat-cert {
    padding: 28px 20px;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-actions .btn-primary,
  .contact-actions .btn-ghost {
    justify-content: center;
  }

  .upcoming-banner {
    flex-direction: column;
    text-align: center;
  }

  .section-sub { margin-bottom: 32px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .inst-grid  { grid-template-columns: 1fr 1fr; }
  .seg-card, .svc-card, .result-card { padding: 24px 20px; }
}
