/* ============================================
   HARESH AMBALIYA — PORTFOLIO
   Light / Dark Theme Toggle Edition
   Font: Playfair Display (luxury serif)
   Default: Light  |  Dark: html.dark
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700&family=Playfair+Display+SC:ital,wght@0,400;0,700;1,400&display=swap');

/* ═══════════════════════════════════════════
   LIGHT THEME  (default — :root)
═══════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg:            #FFFFFF;
  --bg-2:          #F7F5F2;
  --bg-3:          #F0EDE8;
  --surface:       #E8E4DE;
  --border:        rgba(0,0,0,0.11);

  /* Gold */
  --gold:          #A67800;
  --gold-lt:       #C99B10;
  --gold-dim:      rgba(166,120,0,0.4);

  /* Text */
  --text:          #0F0D0B;
  --text-2:        #2E2A26;
  --text-3:        #6B6055;
  --heading:       #0F0D0B;

  /* Hero overlay (uses raw RGB so we can build rgba()) */
  --ov:            255,255,255;
  --ov-a1:         .88;   /* left fade start */
  --ov-a2:         .68;
  --ov-a3:         .15;
  --ov-b1:         .40;   /* top & bottom vignette */
  --ov-b2:         .55;

  /* Mobile bottom-ramp overlay */
  --mob-ov:        255,255,255;
  --mob-60:        0.60;
  --mob-92:        0.92;
  --mob-98:        0.98;

  /* Hero text colours (differ between light and dark) */
  --hero-txt:      #0F0D0B;
  --hero-stat-lbl: #3A3430;
  --tagline-sh:    255,255,255; /* shadow colour RGB */

  /* Component-level overrides */
  --badge-bg:        rgba(255,255,255,0.80);
  --badge-bdr:       rgba(166,120,0,0.45);
  --btn-ghost-bdr:   rgba(0,0,0,0.25);
  --btn-ghost-txt:   #2E2A26;
  --btn-primary-txt: #fff;
  --nav-fill:        rgba(255,255,255,0.97);
  --nav-shad:        rgba(0,0,0,0.07);
  --mob-bg:          rgba(255,255,255,0.98);
  --mob-shad:        rgba(0,0,0,0.10);
  --mob-cta-txt:     #fff;
  --tl-num:          rgba(0,0,0,0.08);
  --tl-num-hov:      rgba(166,120,0,0.20);
  --init-cap:        rgba(255,255,255,0.92);
  --vis-ov:          255,255,255;
  --ref-ov:          255,255,255;
  --social-bdr:      rgba(0,0,0,0.15);
  --scrollbar:       rgba(0,0,0,0.18);
  --cred-check-bg:   rgba(166,120,0,0.10);

  /* Toggle track colour */
  --toggle-track:    #E8E4DE;

  --speed:  0.38s;
  --radius: 3px;
}

/* ═══════════════════════════════════════════
   DARK THEME  (html.dark overrides)
═══════════════════════════════════════════ */
html.dark {
  --bg:            #0A0A0A;
  --bg-2:          #111111;
  --bg-3:          #181818;
  --surface:       #242424;
  --border:        rgba(255,255,255,0.09);

  --gold:          #D4A017;
  --gold-lt:       #F0C040;
  --gold-dim:      rgba(212,160,23,0.40);

  --text:          #EDE9E3;
  --text-2:        #B5ADA4;
  --text-3:        #6A6460;
  --heading:       #F2EEE9;

  --ov:            10,10,10;
  --ov-a1:         .92;
  --ov-a2:         .72;
  --ov-a3:         .18;
  --ov-b1:         .50;
  --ov-b2:         .60;

  --mob-ov:        10,10,10;
  --mob-60:        0.65;
  --mob-92:        0.90;
  --mob-98:        0.97;

  --hero-txt:      #F2EEE9;
  --hero-stat-lbl: #6A6460;
  --tagline-sh:    0,0,0;

  --badge-bg:        rgba(10,10,10,0.70);
  --badge-bdr:       rgba(212,160,23,0.45);
  --btn-ghost-bdr:   rgba(255,255,255,0.22);
  --btn-ghost-txt:   #B5ADA4;
  --btn-primary-txt: #0A0A0A;
  --nav-fill:        rgba(10,10,10,0.96);
  --nav-shad:        rgba(0,0,0,0.50);
  --mob-bg:          rgba(10,10,10,0.98);
  --mob-shad:        rgba(0,0,0,0.60);
  --mob-cta-txt:     #0A0A0A;
  --tl-num:          rgba(255,255,255,0.07);
  --tl-num-hov:      rgba(212,160,23,0.20);
  --init-cap:        rgba(10,10,10,0.90);
  --vis-ov:          10,10,10;
  --ref-ov:          10,10,10;
  --social-bdr:      rgba(255,255,255,0.15);
  --scrollbar:       rgba(255,255,255,0.15);
  --cred-check-bg:   rgba(212,160,23,0.12);
  --toggle-track:    #2A2420;
}

/* ─── RESET ─────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:18px; }

/* Smooth colour transitions site-wide */
*, *::before, *::after {
  transition:
    background-color .35s ease,
    border-color .35s ease,
    color .35s ease;
}
/* Keep layout / animation transitions untouched */
.reveal { transition: opacity .82s ease, transform .82s cubic-bezier(.2,.8,.2,1) !important; }
@keyframes fadeIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
@keyframes blink   { 0%,100%{opacity:1} 50%{opacity:0} }

body {
  font-family: 'Playfair Display', serif;
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color:inherit; text-decoration:none; }
a:hover { color:var(--gold); }
img { display:block; max-width:100%; }

h1,h2,h3,h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.025em; color: var(--heading);
}

/* ─── SECTION LABEL ─────────────────────── */
.section-label {
  font-family: 'Playfair Display SC', serif;
  font-size:.88rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold); font-weight:700;
  display:flex; align-items:center; gap:18px; margin-bottom:3.2rem;
}
.section-label::before { content:''; width:44px; height:1px; background:var(--gold); flex-shrink:0; }
.section-label::after  { content:''; flex:1; height:1px; background:var(--border); }

/* ─── LAYOUT ─────────────────────────────  */
.container { max-width:1300px; margin:0 auto; padding:0 6%; }
section    { padding:120px 0; }

/* ─── NOISE ──────────────────────────────── */
body::before {
  content:''; position:fixed; inset:0; pointer-events:none; z-index:9998; opacity:.15;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}

/* ══════════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════════ */
#theme-toggle {
  flex-shrink: 0;
  width: 54px; height: 30px;
  background: var(--toggle-track);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background .35s ease, border-color .35s ease !important;
}
#theme-toggle:hover { border-color: var(--gold); }

/* Sliding thumb */
#theme-toggle::before {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform .35s cubic-bezier(.4,0,.2,1) !important;
}
html.dark #theme-toggle::before {
  transform: translateX(24px);
}

/* Sun icon (light mode) */
#theme-toggle .t-sun {
  position: absolute;
  top: 50%; left: 7px;
  transform: translateY(-50%);
  font-size: .62rem;
  color: #fff;
  pointer-events: none;
  transition: opacity .25s ease !important;
  opacity: 1;
}
/* Moon icon (dark mode) */
#theme-toggle .t-moon {
  position: absolute;
  top: 50%; right: 7px;
  transform: translateY(-50%);
  font-size: .60rem;
  color: var(--gold);
  pointer-events: none;
  transition: opacity .25s ease !important;
  opacity: 0;
}
html.dark #theme-toggle .t-sun  { opacity: 0; }
html.dark #theme-toggle .t-moon { opacity: 1; }

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
#navbar {
  position:fixed; top:0; width:100%;
  padding:22px 6%;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  z-index:1000;
  transition: padding .32s ease, background .32s ease, box-shadow .32s ease !important;
}
#navbar.scrolled {
  background: var(--nav-fill);
  backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  padding:14px 6%;
  border-bottom:1px solid var(--border);
  box-shadow: 0 2px 24px var(--nav-shad);
}
.logo {
  font-family:'Playfair Display',serif;
  font-size:1.85rem; font-weight:700; letter-spacing:-.05em;
  color:var(--heading); position:relative; z-index:10;
}
.logo span { color:var(--gold); }

/* nav-right: links + toggle */
.nav-right {
  display:flex; align-items:center; gap:32px;
}
.nav-links {
  display:flex; gap:34px; align-items:center;
  font-size:.82rem; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--text-3);
}
.nav-links a:hover { color:var(--heading); }
/* In dark mode, nav links are same gold colour as the Connect button */
html.dark .nav-links a:not(.nav-cta) { color:var(--gold); }
html.dark .nav-links a:not(.nav-cta):hover { color:var(--gold-lt); }
.nav-cta {
  padding:10px 28px;
  border:1px solid var(--gold); border-radius:var(--radius);
  color:var(--gold) !important; font-size:.76rem; letter-spacing:.16em;
}
.nav-cta:hover { background:var(--gold) !important; color: var(--btn-primary-txt) !important; }

/* hamburger — hidden on desktop, shown via mob-nav-cluster */
#menu-btn {
  display:none; background:none; border:none; cursor:pointer;
  font-size:1.3rem; color:var(--heading); padding:6px; z-index:10;
}
#menu-btn:hover { color:var(--gold); }

/* ── Mobile right cluster: toggle icon stacked above hamburger ── */
.mob-nav-cluster {
  display: none;           /* hidden on desktop */
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 10;
}

/* Small icon-only toggle for mobile navbar */
.mob-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--toggle-track);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: border-color .3s ease, background .35s ease !important;
}
.mob-toggle-btn:hover { border-color: var(--gold); }

/* Sun/moon icons inside small mobile toggle */
.mob-toggle-btn .t-sun,
.mob-toggle-btn .t-moon {
  position: absolute;
  font-size: .58rem;
  line-height: 1;
  pointer-events: none;
  transition: opacity .25s ease !important;
}
.mob-toggle-btn .t-sun  { color: var(--gold); opacity: 1; }
.mob-toggle-btn .t-moon { color: var(--gold); opacity: 0; }
html.dark .mob-toggle-btn .t-sun  { opacity: 0; }
html.dark .mob-toggle-btn .t-moon { opacity: 1; }
html.dark .mob-toggle-btn { background: #2A2420; }

/* Mobile drawer */
#mobile-menu {
  display:none; position:fixed; top:0; left:0; right:0;
  background: var(--mob-bg);
  backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
  padding:90px 7% 48px;
  border-bottom:2px solid var(--gold); z-index:999;
  flex-direction:column; gap:0;
  transform:translateY(-100%);
  transition: transform .36s cubic-bezier(.4,0,.2,1) !important;
  box-shadow: 0 8px 40px var(--mob-shad);
}
#mobile-menu.open { display:flex; transform:translateY(0); }
#mobile-menu a {
  font-family:'Playfair Display',serif;
  font-size:1.1rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--text-2); padding:18px 0;
  border-bottom:1px solid var(--border); display:block;
}
#mobile-menu a:last-child { border-bottom:none; }
#mobile-menu a:hover { color:var(--gold); }
#mobile-menu .mob-cta {
  margin-top:28px; padding:16px 0;
  background:var(--gold); color: var(--mob-cta-txt) !important;
  text-align:center; border-radius:var(--radius); border:none; display:block;
}

/* (mob-theme-row removed — toggle now sits above hamburger in navbar) */

/* ─── BUTTONS ───────────────────────────── */
.btn-primary {
  display:inline-flex; align-items:center; gap:10px;
  padding:16px 38px;
  background:var(--gold); color: var(--btn-primary-txt);
  font-size:.84rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase;
  border-radius:var(--radius); white-space:nowrap;
  transition: background .3s ease, transform .3s ease !important;
}
.btn-primary:hover { background:var(--gold-lt); transform:translateY(-2px); }

.btn-ghost {
  display:inline-flex; align-items:center; gap:10px;
  padding:16px 38px;
  border:1.5px solid var(--btn-ghost-bdr); color: var(--btn-ghost-txt);
  font-size:.84rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase;
  border-radius:var(--radius); white-space:nowrap;
  transition: border-color .3s ease, color .3s ease !important;
}
.btn-ghost:hover { border-color:var(--gold); color:var(--gold); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
#hero {
  position:relative; width:100%; min-height:100vh;
  display:flex; align-items:flex-end;
  overflow:hidden; border-bottom:1px solid var(--border);
}
.hero-bg-img { position:absolute; inset:0; z-index:0; }
.hero-bg-img img {
  width:100%; height:100%;
  object-fit:cover; object-position:center top; display:block;
}
.hero-bg-img::after {
  content:''; position:absolute; inset:0;
  background:
    linear-gradient(to right,
      rgba(var(--ov),var(--ov-a1)) 0%,
      rgba(var(--ov),var(--ov-a2)) 32%,
      rgba(var(--ov),var(--ov-a3)) 58%,
      rgba(var(--ov),0)            100%),
    linear-gradient(to bottom,
      rgba(var(--ov),var(--ov-b1)) 0%, transparent 20%,
      transparent 72%,
      rgba(var(--ov),var(--ov-b2)) 100%);
}
.hero-content {
  position:relative; z-index:2; width:100%;
  padding-top:148px; padding-bottom:92px;
}
.hero-inner { max-width:680px; }

.hero-badges { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:28px; }
.badge {
  font-family:'Playfair Display SC',serif;
  font-size:.72rem; letter-spacing:.1em; text-transform:uppercase;
  padding:8px 18px;
  border:1.5px solid var(--badge-bdr);
  color:var(--gold); border-radius:2px;
  background: var(--badge-bg);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  font-weight:700;
}
.hero-inner h1 {
  font-size:clamp(3.6rem,6.8vw,7.2rem);
  font-weight:700; line-height:.92; margin-bottom:22px;
  color:var(--heading);
}
.hero-inner h1 em { font-style:italic; color:var(--gold); }
.hero-tagline {
  font-family:'Playfair Display',serif;
  font-size:clamp(1.15rem,1.85vw,1.55rem);
  font-weight:700; font-style:italic;
  color: var(--hero-txt); line-height:1.58;
  margin-bottom:44px; max-width:560px;
  text-shadow:
    0 0 20px rgba(var(--tagline-sh),.95),
    0 0 40px rgba(var(--tagline-sh),.80),
    1px 1px 0  rgba(var(--tagline-sh),.60);
}
.hero-stats { display:flex; flex-wrap:wrap; gap:36px 52px; margin-bottom:48px; }
.hero-stat-val {
  font-family:'Playfair Display',serif;
  font-size:clamp(2.1rem,3.4vw,3rem);
  font-weight:700; color:var(--heading); line-height:1; margin-bottom:5px;
}
.hero-stat-label {
  font-size:.76rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--text-3); font-weight:700;
}
.hero-actions { display:flex; gap:14px; align-items:center; flex-wrap:wrap; }

/* ══════════════════════════════════════════
   MANIFESTO
══════════════════════════════════════════ */
#manifesto { background:var(--bg-2); border-bottom:1px solid var(--border); }
.manifesto-body {
  font-family:'Playfair Display',serif;
  font-size:clamp(1.65rem,2.7vw,2.65rem);
  font-weight:500; line-height:1.62;
  color:var(--heading); max-width:1040px;
}

/* ══════════════════════════════════════════
   THOUGHT LEADERSHIP
══════════════════════════════════════════ */
#thought-leadership { border-bottom:1px solid var(--border); }
.tl-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1px; background:var(--border); border:1px solid var(--border);
}
.tl-card {
  background:var(--bg); padding:56px 46px;
  position:relative; overflow:hidden;
}
.tl-card::before {
  content:''; position:absolute; top:0; left:0;
  width:100%; height:3px; background:var(--gold);
  transform:scaleX(0); transform-origin:left;
  transition: transform .4s ease !important;
}
.tl-card:hover { background:var(--surface); }
.tl-card:hover::before { transform:scaleX(1); }
.tl-number {
  font-family:'Playfair Display',serif;
  font-size:4.2rem; font-weight:300;
  color: var(--tl-num); line-height:1; margin-bottom:26px;
}
.tl-card:hover .tl-number { color: var(--tl-num-hov); }
.tl-card h4 { font-size:1.6rem; margin-bottom:16px; color:var(--heading); }
.tl-card p  { color:var(--text-2); font-size:1.08rem; line-height:1.8; }

/* ══════════════════════════════════════════
   VISION IMAGE
══════════════════════════════════════════ */
#vision-image {
  padding:0; position:relative; height:58vh; overflow:hidden;
  border-bottom:1px solid var(--border);
}
#vision-image img { width:100%; height:100%; object-fit:cover; filter:brightness(.50) saturate(.72); }
.vision-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to bottom,
    rgba(var(--vis-ov),.88) 0%, rgba(var(--vis-ov),0) 28%,
    rgba(var(--vis-ov),0) 72%, rgba(var(--vis-ov),.88) 100%);
  display:flex; align-items:center; justify-content:center;
}
.vision-quote { text-align:center; max-width:800px; padding:0 6%; }
.vision-quote blockquote {
  font-family:'Playfair Display',serif;
  font-size:clamp(1.4rem,3vw,3.1rem);
  font-weight:400; font-style:italic;
  color:#fff; line-height:1.42;
  text-shadow:0 2px 18px rgba(0,0,0,.55);
}

/* ══════════════════════════════════════════
   ARTICLES
══════════════════════════════════════════ */
#articles { background:var(--bg-2); border-bottom:1px solid var(--border); }
.articles-grid {
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:1px; background:var(--border); border:1px solid var(--border);
}
.article-card {
  background:var(--bg-2); padding:56px 52px;
  display:flex; flex-direction:column; justify-content:space-between;
  gap:28px; min-height:320px;
}
.article-card:hover { background:var(--surface); }
.article-number {
  font-family:'Playfair Display SC',serif;
  font-size:.72rem; color:var(--text-3); letter-spacing:.1em;
  margin-bottom:10px; font-weight:700;
}
.article-card h4 {
  font-family:'Playfair Display',serif;
  font-size:2rem; font-weight:700;
  color:var(--heading); line-height:1.22; margin-bottom:14px;
}
.article-card p { color:var(--text-2); font-size:1.08rem; line-height:1.8; }
.article-link {
  display:inline-flex; align-items:center; gap:10px;
  font-size:.78rem; font-weight:700; letter-spacing:.13em; text-transform:uppercase;
  color:var(--gold); margin-top:auto;
  transition: gap .3s ease !important;
}
.article-card:hover .article-link { gap:16px; }
.article-link svg { width:15px; height:15px; stroke:var(--gold); fill:none; stroke-width:2; }

/* ══════════════════════════════════════════
   EXPERTISE TABS
══════════════════════════════════════════ */
#expertise { border-bottom:1px solid var(--border); }
.tabs-nav {
  display:flex; flex-wrap:wrap; gap:0;
  border-bottom:1px solid var(--border); margin-bottom:0;
}
.tab-btn {
  font-family:'Playfair Display',serif;
  font-size:.82rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  padding:22px 32px; background:transparent; color:var(--text-3);
  border:none; border-bottom:2px solid transparent;
  margin-bottom:-1px; cursor:pointer;
  transition: color .3s ease, border-color .3s ease !important;
}
.tab-btn:hover { color:var(--text-2); }
.tab-btn.active { color:var(--gold); border-bottom-color:var(--gold); }
.tab-panels { position:relative; }
.tab-panel { display:none; padding:68px 0 0; animation:fadeIn .4s ease; }
.tab-panel.active { display:grid; grid-template-columns:1fr 1.2fr; gap:84px; align-items:start; }
.tab-panel-text h3 { font-size:clamp(2.1rem,3.8vw,3.5rem); margin-bottom:22px; color:var(--heading); }
.tab-panel-text p  { color:var(--text-2); font-size:1.12rem; line-height:1.84; margin-bottom:18px; }
.tab-panel-visual  { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.skill-pill {
  padding:16px 22px; border:1.5px solid var(--border); border-radius:2px;
  font-size:.92rem; color:var(--text-2); font-weight:700;
  background:var(--bg-3); display:flex; align-items:center; gap:10px;
  transition: all .3s ease !important;
}
.skill-pill:hover { border-color:var(--gold-dim); color:var(--gold); background:var(--surface); }
.skill-pill::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--gold); flex-shrink:0; }

/* ══════════════════════════════════════════
   METRICS
══════════════════════════════════════════ */
#impact { background:var(--bg-3); border-bottom:1px solid var(--border); }
#impact > .container { padding-bottom:50px; }
.metrics-row {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:0; background:var(--border); border:1px solid var(--border);
}
.metric-item { background:var(--bg-3); padding:70px 40px; text-align:center; }
.metric-item:hover { background:var(--surface); }
.metric-val {
  font-family:'Playfair Display',serif;
  font-size:clamp(3.4rem,5.5vw,6rem);
  font-weight:700; color:var(--heading); line-height:1; margin-bottom:14px;
  display:flex; align-items:center; justify-content:center;
}
.metric-cursor {
  display:inline-block; width:3px; height:.8em;
  background:var(--gold); margin-left:4px;
  animation:blink 1s step-end infinite;
}
.metric-label { font-size:.82rem; letter-spacing:.18em; text-transform:uppercase; color:var(--text-3); font-weight:700; }

/* ══════════════════════════════════════════
   SIGNATURE INITIATIVES
══════════════════════════════════════════ */
#initiatives { border-bottom:1px solid var(--border); }
.initiatives-layout {
  display:grid; grid-template-columns:1fr 1fr;
  gap:0; background:var(--border); border:1px solid var(--border); align-items:stretch;
}
.initiative-image-col { position:relative; overflow:hidden; min-height:0; }
.initiative-image-col img {
  width:100%; height:100%;
  object-fit:cover; object-position:center top; display:block;
  filter:brightness(.93) saturate(.95);
  transition: transform .55s ease, filter .4s ease !important;
}
html.dark .initiative-image-col img { filter:brightness(.80) saturate(.90); }
.initiative-image-col:hover img { transform:scale(1.03); filter:brightness(1); }
html.dark .initiative-image-col:hover img { filter:brightness(.95); }
.initiative-image-caption {
  position:absolute; bottom:0; left:0; right:0; padding:22px 28px;
  background:linear-gradient(to top, var(--init-cap), transparent);
  font-family:'Playfair Display SC',serif;
  font-size:.7rem; letter-spacing:.14em; color:var(--gold); text-transform:uppercase; font-weight:700;
}
.initiative-cards { display:grid; grid-template-rows:repeat(3,1fr); gap:0; background:var(--border); }
.initiative-card {
  padding:42px 46px; background:var(--bg); border-bottom:1px solid var(--border);
  position:relative; display:flex; flex-direction:column; justify-content:center;
}
.initiative-card:last-child { border-bottom:none; }
.initiative-card::before {
  content:''; position:absolute; left:0; top:0;
  width:3px; height:0; background:var(--gold);
  transition: height .4s ease !important;
}
.initiative-card:hover { background:var(--surface); }
.initiative-card:hover::before { height:100%; }
.initiative-card h4 { font-size:1.5rem; margin-bottom:13px; color:var(--heading); padding-left:18px; }
.initiative-card p  { font-size:1.05rem; color:var(--text-2); line-height:1.78; padding-left:18px; }

/* ══════════════════════════════════════════
   EXPERIENCE / TIMELINE
══════════════════════════════════════════ */
#experience { background:var(--bg-2); border-bottom:1px solid var(--border); }
#experience .section-label { font-size:1rem; letter-spacing:.2em; margin-bottom:3.6rem; }
.timeline { position:relative; max-width:920px; padding-left:38px; }
.timeline::before {
  content:''; position:absolute; left:0; top:0; bottom:0;
  width:1px; background:linear-gradient(to bottom, var(--gold-dim), transparent);
}
.timeline-item { position:relative; margin-bottom:76px; }
.timeline-dot {
  position:absolute; left:-42px; top:8px;
  width:11px; height:11px; border-radius:50%;
  background:var(--bg-2); border:2px solid var(--gold);
  transition: all .3s ease !important;
}
.timeline-item:hover .timeline-dot { background:var(--gold); box-shadow:0 0 14px var(--gold-dim); }
.timeline-date {
  font-family:'Playfair Display SC',serif;
  font-size:.76rem; letter-spacing:.16em;
  color:var(--gold); text-transform:uppercase; margin-bottom:10px; font-weight:700;
}
.timeline-item h3 { font-size:clamp(2rem,3vw,2.8rem); margin-bottom:6px; color:var(--heading); }
.timeline-item h4 {
  font-family:'Playfair Display',serif;
  font-size:1.05rem; font-weight:600;
  color:var(--text-2); margin-bottom:22px; letter-spacing:.03em;
}
.timeline-item ul { list-style:none; }
.timeline-item li {
  position:relative; padding-left:22px; margin-bottom:10px;
  font-size:1.06rem; color:var(--text-2); line-height:1.75;
}
.timeline-item li::before { content:'—'; position:absolute; left:0; color:var(--text-3); }

/* ══════════════════════════════════════════
   CREDENTIALS
══════════════════════════════════════════ */
#credentials { border-bottom:1px solid var(--border); }
.creds-grid {
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:1px; background:var(--border); border:1px solid var(--border);
}
.cred-card { background:var(--bg); padding:52px 46px; }
.cred-card:hover { background:var(--surface); }
.cred-card-title {
  font-family:'Playfair Display SC',serif;
  font-size:.78rem; letter-spacing:.22em; text-transform:uppercase;
  color:var(--gold); font-weight:700;
  margin-bottom:28px; padding-bottom:16px; border-bottom:1px solid var(--border);
}
.cred-item {
  display:flex; align-items:flex-start; gap:14px;
  padding:14px 0; border-bottom:1px solid var(--border);
}
.cred-item:last-child { border-bottom:none; }
.cred-check {
  width:19px; height:19px; border-radius:50%;
  background: var(--cred-check-bg); border:1.5px solid var(--gold-dim);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0; margin-top:2px;
}
.cred-check::after { content:'✓'; font-size:.65rem; color:var(--gold); line-height:1; font-weight:700; }
.cred-item p { font-size:1.02rem; color:var(--text-2); font-weight:500; }
.edu-block { margin-bottom:28px; }
.edu-block:last-child { margin-bottom:0; }
.edu-year   { font-family:'Playfair Display SC',serif; font-size:.7rem; color:var(--text-3); letter-spacing:.1em; margin-bottom:5px; font-weight:700; }
.edu-degree { font-size:1.15rem; color:var(--heading); font-weight:700; margin-bottom:4px; font-family:'Playfair Display',serif; }
.edu-school { font-size:1rem; color:var(--text-2); }

/* ══════════════════════════════════════════
   LANDSCAPE DIVIDER
══════════════════════════════════════════ */
#reflections {
  padding:0; position:relative; height:44vh; overflow:hidden;
  border-bottom:1px solid var(--border);
}
#reflections img { width:100%; height:100%; object-fit:cover; filter:brightness(.5) saturate(.6); }
html.dark #reflections img { filter:brightness(.35) saturate(.55); }
.reflections-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to bottom,
    rgba(var(--ref-ov),.90) 0%, rgba(var(--ref-ov),0) 24%,
    rgba(var(--ref-ov),0) 76%, rgba(var(--ref-ov),.90) 100%);
  display:flex; align-items:center; justify-content:center;
}
.reflections-text {
  text-align:center; font-family:'Playfair Display',serif;
  font-size:clamp(1.1rem,2.4vw,2.2rem);
  font-style:italic; font-weight:500;
  color:#fff; max-width:640px; line-height:1.55; padding:0 6%;
  text-shadow:0 2px 18px rgba(0,0,0,.5);
}

/* ══════════════════════════════════════════
   CONTACT / FOOTER
══════════════════════════════════════════ */
#contact { padding:120px 6% 64px; background:var(--bg-2); text-align:center; }
.contact-super {
  font-family:'Playfair Display SC',serif;
  font-size:.8rem; letter-spacing:.26em; text-transform:uppercase;
  color:var(--gold); margin-bottom:28px; font-weight:700;
}
.contact-headline {
  font-family:'Playfair Display',serif;
  font-size:clamp(2.4rem,7vw,8.5rem);
  font-weight:700; letter-spacing:-.045em;
  color:var(--heading); line-height:.9; margin-bottom:48px; display:block;
  transition: color .3s ease !important;
}
.contact-headline:hover { color:var(--gold); }
.contact-meta { font-size:1.05rem; color:var(--text-2); margin-bottom:60px; line-height:2.1; }
.social-row { display:flex; gap:14px; justify-content:center; margin-bottom:80px; flex-wrap:wrap; }
.social-btn {
  display:flex; align-items:center; justify-content:center;
  width:54px; height:54px;
  border:1.5px solid var(--social-bdr); border-radius:2px;
  color:var(--text-2); font-size:1.2rem;
  transition: all .3s ease !important;
}
.social-btn:hover { border-color:var(--gold); color:var(--gold); transform:translateY(-3px); }

.hero-badges-mobile { display:none; }

.footer-bar {
  padding-top:32px; border-top:1px solid var(--border);
  display:flex; justify-content:center; align-items:center;
  font-size:.78rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--text-3); font-weight:600;
}

/* ─── SCROLL REVEAL ─────────────────────── */
.reveal { opacity:0; transform:translateY(28px); }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ─── SCROLLBAR ─────────────────────────── */
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background: var(--scrollbar); border-radius:2px; }
::-webkit-scrollbar-thumb:hover { background:var(--gold); }


/* ══════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
══════════════════════════════════════════════════════════ */

@media (max-width:1140px) {
  .initiatives-layout { grid-template-columns:1fr; }
  .initiative-image-col { min-height:380px; aspect-ratio:16/9; }
  .initiative-cards { grid-template-rows:auto auto auto; }
}

@media (max-width:1024px) {
  section { padding:90px 0; }
  .tl-grid { grid-template-columns:1fr; } .tl-card { padding:44px 36px; }
  .creds-grid { grid-template-columns:1fr; } .cred-card { padding:40px 36px; }
  .tab-panel.active { grid-template-columns:1fr; gap:40px; } .tab-panel { padding:50px 0 0; }
  .metrics-row { grid-template-columns:repeat(2,1fr); } .metric-item { padding:56px 32px; }
  .articles-grid { grid-template-columns:1fr; } .article-card { padding:44px 40px; min-height:auto; }
  .footer-bar { flex-direction:column; gap:12px; text-align:center; }
  .hero-inner { max-width:90%; }
}

/* ── 768px Mobile ── */
@media (max-width:768px) {
  html { font-size:16px; }
  section { padding:72px 0; }
  .container { padding:0 5%; }

  .nav-links { display:none; }
  .nav-right { gap:12px; }
  /* Hide desktop toggle on mobile (it's inside nav-right which hides) */
  #theme-toggle { display:none; }
  /* Show the stacked mobile cluster */
  .mob-nav-cluster { display:flex; }
  #menu-btn { display:flex; align-items:center; justify-content:center; }

  #hero { align-items:flex-end; min-height:100svh; min-height:100vh; }
  .hero-bg-img { position:absolute; inset:0; width:100%; height:100%; z-index:0; }
  .hero-bg-img img {
    width:100%; height:100%; object-fit:cover;
    object-position:62% top;
  }
  .hero-bg-img::after {
    content:''; position:absolute; inset:0;
    background:linear-gradient(
      to bottom,
      transparent                              0%,
      transparent                             45%,
      rgba(var(--mob-ov),var(--mob-60))        60%,
      rgba(var(--mob-ov),var(--mob-92))        74%,
      rgba(var(--mob-ov),var(--mob-98))       100%
    );
  }
  .hero-content {
    position:relative; z-index:2; background:transparent;
    padding-top:148px; padding-bottom:52px; width:100%; max-width:100%;
  }
  .hero-inner { max-width:100%; }
  .hero-badges:not(.hero-badges-mobile) { display:none; }

  .hero-inner h1 {
    font-size:clamp(2.2rem,9vw,3.8rem); font-weight:900; margin-bottom:0;
    color:var(--heading); line-height:.93;
    text-shadow:0 2px 12px rgba(0,0,0,.5);
  }
  html.dark .hero-inner h1 { text-shadow:0 2px 12px rgba(0,0,0,.8); }

  .hero-badges-mobile {
    display:flex; flex-direction:column; gap:6px;
    margin-top:14px; margin-bottom:16px;
  }
  .hero-badges-mobile .badge {
    background:var(--badge-bg); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
    width:fit-content; border-color:var(--badge-bdr); color:var(--gold); font-weight:800;
  }
  .badge { font-size:.62rem; padding:6px 13px; }

  .hero-tagline {
    font-size:clamp(.9rem,3.4vw,1.14rem);
    font-weight:700; font-style:italic; margin-bottom:22px; max-width:100%;
    color:var(--hero-txt); line-height:1.55;
    text-shadow:0 0 18px rgba(var(--tagline-sh),.95), 0 0 36px rgba(var(--tagline-sh),.75);
  }

  .hero-stats { gap:18px 32px; margin-bottom:26px; }
  .hero-stat-val {
    font-family:'Playfair Display',serif;
    font-size:clamp(1.8rem,6.5vw,2.6rem); font-weight:700; color:var(--heading);
    line-height:1; margin-bottom:4px;
    text-shadow:0 1px 4px rgba(var(--tagline-sh),.3);
  }
  .hero-stat-label {
    font-size:.67rem; color:var(--hero-stat-lbl);
    letter-spacing:.12em; text-transform:uppercase; font-weight:700;
  }

  .hero-actions { flex-direction:column; gap:10px; width:100%; max-width:280px; }
  .btn-primary, .btn-ghost { width:100%; justify-content:center; padding:13px 20px; font-size:.78rem; }

  #manifesto { padding:64px 0; }
  .manifesto-body { font-size:clamp(1.25rem,4.5vw,1.7rem); line-height:1.55; }
  .section-label { font-size:.76rem; margin-bottom:2.2rem; }
  .tl-card { padding:36px 28px; } .tl-number { font-size:3rem; margin-bottom:18px; }
  .tl-card h4 { font-size:1.35rem; } .tl-card p { font-size:1rem; }
  #vision-image { height:38vh; }
  .vision-quote blockquote { font-size:clamp(1.1rem,4vw,1.6rem); }
  .article-card { padding:36px 28px; }
  .article-card h4 { font-size:1.6rem; } .article-card p { font-size:1rem; }
  .tabs-nav { overflow-x:auto; flex-wrap:nowrap; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
  .tabs-nav::-webkit-scrollbar { display:none; }
  .tab-btn { white-space:nowrap; padding:16px 20px; font-size:.76rem; }
  .tab-panel { padding:40px 0 0; }
  .tab-panel-text h3 { font-size:clamp(1.7rem,5vw,2.4rem); }
  .tab-panel-text p  { font-size:1rem; }
  .tab-panel-visual  { grid-template-columns:1fr 1fr; gap:10px; }
  .skill-pill { padding:12px 14px; font-size:.82rem; }
  .metrics-row { grid-template-columns:1fr 1fr; }
  .metric-item { padding:44px 20px; }
  .metric-val  { font-size:clamp(2.6rem,9vw,4rem); }
  .metric-label { font-size:.72rem; letter-spacing:.12em; }
  .initiative-image-col { min-height:280px; aspect-ratio:4/3; }
  .initiative-card { padding:32px 28px; }
  .initiative-card h4 { font-size:1.3rem; padding-left:14px; }
  .initiative-card p  { font-size:.98rem; padding-left:14px; }
  .timeline { padding-left:26px; }
  .timeline-dot { left:-30px; width:10px; height:10px; }
  .timeline-item { margin-bottom:56px; }
  .timeline-item h3 { font-size:clamp(1.5rem,5vw,2rem); }
  .timeline-item h4 { font-size:.95rem; margin-bottom:16px; }
  .timeline-item li { font-size:.98rem; } .timeline-date { font-size:.68rem; }
  .cred-card { padding:32px 28px; } .cred-item p { font-size:.96rem; }
  #reflections { height:32vh; }
  #contact { padding:72px 5% 48px; }
  .contact-headline { font-size:clamp(2rem,10vw,4.5rem); margin-bottom:32px; }
  .contact-meta { font-size:.95rem; }
  .footer-bar { font-size:.7rem; gap:10px; text-align:center; justify-content:center; }
}

@media (max-width:480px) {
  html { font-size:15px; } section { padding:60px 0; } .container { padding:0 4.5%; }
  .hero-content { padding-top:148px; padding-bottom:40px; max-width:100%; }
  .hero-inner h1 { font-size:clamp(1.9rem,9vw,2.8rem); font-weight:900; }
  .hero-tagline { font-size:clamp(.85rem,3.6vw,1.05rem); margin-bottom:18px; }
  .hero-stats { gap:14px 24px; margin-bottom:22px; }
  .hero-stat-val { font-size:clamp(1.5rem,6.5vw,2.1rem); }
  .badge { font-size:.58rem; padding:5px 11px; }
  .hero-actions { max-width:100%; }
  .manifesto-body { font-size:clamp(1.15rem,5vw,1.5rem); }
  .section-label { font-size:.7rem; gap:12px; letter-spacing:.16em; margin-bottom:1.8rem; }
  .section-label::before { width:28px; }
  .tl-card { padding:30px 22px; } .tl-number { font-size:2.5rem; } .tl-card h4 { font-size:1.25rem; }
  .article-card { padding:30px 22px; } .article-card h4 { font-size:1.45rem; }
  .tab-btn { padding:14px 16px; font-size:.72rem; }
  .tab-panel-visual { grid-template-columns:1fr; }
  .skill-pill { padding:12px 14px; font-size:.8rem; }
  .metrics-row { grid-template-columns:1fr 1fr; } .metric-item { padding:36px 14px; }
  .metric-val { font-size:clamp(2.2rem,10vw,3.2rem); } .metric-label { font-size:.65rem; letter-spacing:.1em; }
  .initiative-image-col { min-height:220px; }
  .initiative-card { padding:26px 22px; }
  .initiative-card h4 { font-size:1.2rem; padding-left:12px; }
  .initiative-card p  { font-size:.93rem; padding-left:12px; }
  .timeline { padding-left:22px; } .timeline-dot { left:-26px; }
  .timeline-item h3 { font-size:clamp(1.35rem,6vw,1.8rem); } .timeline-item h4 { font-size:.9rem; }
  .cred-card { padding:28px 20px; }
  #vision-image { height:30vh; }
  .vision-quote blockquote { font-size:clamp(1rem,4.5vw,1.4rem); }
  #contact { padding:60px 4.5% 40px; }
  .contact-headline { font-size:clamp(1.8rem,11vw,3.5rem); margin-bottom:28px; }
  .social-btn { width:48px; height:48px; }
  .footer-bar { font-size:.62rem; }
}

@media (max-width:360px) {
  html { font-size:14px; } .container { padding:0 4%; }
  .hero-content { padding-top:130px; max-width:100%; }
  .hero-inner h1 { font-size:clamp(1.7rem,9vw,2.4rem); font-weight:900; }
  .badge { font-size:.56rem; padding:5px 10px; }
  .hero-actions { max-width:100%; }
  .metrics-row { grid-template-columns:1fr 1fr; }
  .metric-val { font-size:clamp(1.9rem,10vw,2.6rem); }
  .btn-primary, .btn-ghost { font-size:.74rem; padding:12px 18px; }
  .tabs-nav { gap:0; } .tab-btn { padding:12px 14px; font-size:.68rem; }
}
