/* =====================================================================
   Piyush Kundnani — Corporate Compliance & Governance
   Redesign v3 · magazine-editorial · champagne gold on charcoal.
   ===================================================================== */

:root {
  --bg:        #0c0b10;
  --bg-alt:    #100f16;
  --surface:   #14131a;
  --surface-2: #1a1922;
  --line:      rgba(212, 181, 106, 0.16);
  --line-soft: rgba(212, 181, 106, 0.08);
  --line-h:    rgba(212, 181, 106, 0.34);

  --gold:      #d4b56a;
  --gold-soft: #e8d092;
  --gold-dim:  rgba(212, 181, 106, 0.14);
  --gold-glow: rgba(212, 181, 106, 0.06);

  --text:   #ece7dd;
  --text-2: #a6a29a;
  --text-3: #6a6760;
  --on-gold:#0c0b10;
  --success:#4caf7c;

  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.62), 0 8px 22px rgba(0, 0, 0, 0.4);

  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 7px;
  --r-lg: 11px;

  --wrap: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold-dim); color: var(--gold-soft); }

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26242c; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #322f39; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--gold); color: var(--on-gold);
  padding: 10px 16px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Ambient background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--gold-glow) 1px, transparent 1px),
    linear-gradient(90deg, var(--gold-glow) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 5%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 5%, transparent 60%);
  opacity: 0.7;
}
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.26; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 30px; }
.section { position: relative; z-index: 2; padding: clamp(70px, 9vw, 118px) 0 clamp(76px, 10vw, 128px); }
.section-alt { background: var(--bg-alt); }

/* ---------- Editorial section heads ---------- */
.section-head {
  border-top: 1px solid var(--line); padding-top: 26px;
  margin-bottom: clamp(40px, 5vw, 64px); max-width: 900px;
}
.section-index {
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 18px;
}
.section-title {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.012em;
  line-height: 1.05; font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin: 0; color: var(--text);
  text-wrap: balance;
}
.section-sub { color: var(--text-2); max-width: 56ch; margin: 20px 0 0; font-size: 1.03rem; }

/* ---------- Buttons ---------- */
.btn {
  --py: 13px; --px: 24px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: var(--py) var(--px);
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; border-radius: var(--r-sm);
  transition: transform 0.18s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn-solid { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.btn-solid:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 10px 26px var(--gold-dim); }
.btn-solid:hover svg { transform: translateX(3px); }
.btn-solid:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-h); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost:active { transform: translateY(0); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  font-size: 14.5px; font-weight: 500; text-decoration: none; color: var(--gold);
  border-bottom: 1px solid transparent; transition: gap 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-arrow:hover { gap: 12px; border-color: var(--gold); }

/* ---------- Masthead ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 74%, transparent);
  backdrop-filter: saturate(1.3) blur(16px); -webkit-backdrop-filter: saturate(1.3) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.masthead-kicker {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 34px; overflow: hidden;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-3); border-bottom: 1px solid var(--line-soft);
  transition: height 0.35s var(--ease), opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.masthead-kicker .kicker-mid { color: var(--gold); }
.site-header.scrolled .masthead-kicker { height: 0; opacity: 0; border-color: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--text); }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md);
  background: transparent; border: 1px solid var(--line-h); color: var(--gold);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: 0.02em; flex: none;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.brand:hover .brand-mark { border-color: var(--gold); background: var(--gold-dim); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0.01em; }
.brand-role { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }

.nav { display: flex; gap: 2px; }
.nav a {
  position: relative; text-decoration: none; color: var(--text-2);
  font-size: 13.5px; font-weight: 400; padding: 9px 14px; border-radius: var(--r-sm);
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.28s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--gold-soft); }
.nav a.active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-cta { --py: 9px; --px: 18px; }
.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-md);
  background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer;
  transition: border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn:active { transform: scale(0.94); }
.nav-toggle { display: none; }
.burger, .burger::before, .burger::after {
  content: ""; display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger::before { transform: translateY(-5.5px); }
.burger::after { transform: translateY(3.9px); }
.nav-toggle[aria-expanded="true"] .burger { background: transparent; }
.nav-toggle[aria-expanded="true"] .burger::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger::after { transform: rotate(-45deg) translateY(-1.6px); }

/* ---------- Hero / cover ---------- */
.hero { position: relative; z-index: 2; padding-top: clamp(42px, 7vw, 88px); padding-bottom: clamp(22px, 4vw, 44px); }
.hero::before {
  content: ""; position: absolute; top: -10%; right: 2%; width: 46vw; height: 46vw;
  max-width: 620px; max-height: 620px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, var(--gold-glow), transparent 60%); filter: blur(20px); opacity: 0.9;
}
.hero-grid { display: grid; grid-template-columns: 1.16fr 0.84fr; gap: clamp(34px, 5vw, 78px); align-items: center; padding-block: clamp(18px, 4vw, 44px); }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 22px; display: flex; align-items: center; gap: 13px;
}
.eyebrow-line { width: 34px; height: 1px; background: var(--gold); display: inline-block; }

.hero-name {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 0.98;
  font-size: clamp(3.1rem, 8vw, 5.8rem); margin: 0; color: var(--text);
}
.hero-name em { font-style: italic; font-weight: 500; color: var(--gold); }
.hero-role {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.18rem, 2.3vw, 1.62rem); color: var(--text-2); margin: 16px 0 0;
}
.hero-bio { color: var(--text-2); font-size: 1.06rem; max-width: 48ch; margin: 24px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin: 42px 0 0; border-top: 1px solid var(--line); }
.hero-stats .stat { padding: 22px 32px 0 0; margin-right: 32px; border-right: 1px solid var(--line-soft); }
.hero-stats .stat:last-child { border-right: none; margin-right: 0; }
.stat-n { font-family: var(--font-display); font-size: 1.95rem; font-weight: 600; color: var(--gold-soft); line-height: 1; margin: 0; }
.stat-l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 10px 0 0; }

.hero-portrait { position: relative; justify-self: end; width: 100%; max-width: 400px; }
.portrait {
  position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.portrait::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(12, 11, 16, 0.55)),
              radial-gradient(120% 90% at 50% 0%, transparent, rgba(12, 11, 16, 0.25));
  mix-blend-mode: multiply;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; filter: grayscale(0.15) contrast(1.02); }
.watermark {
  position: absolute; right: 13px; bottom: 11px; z-index: 2;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em;
  color: rgba(236, 231, 221, 0.55); pointer-events: none;
}
.portrait-badge {
  position: absolute; left: -16px; bottom: 26px; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: 100px; border: 1px solid var(--line-h);
  box-shadow: var(--shadow-md); font-size: 12.5px; font-weight: 400;
}
.avail-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 22%, transparent);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--success) 0%, transparent); } }

.marquee {
  list-style: none; display: flex; flex-wrap: nowrap; align-items: center;
  justify-content: space-between; gap: 10px;
  margin: clamp(22px, 3vw, 34px) 0 0; padding: 22px 0 2px; border-top: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.marquee::-webkit-scrollbar { display: none; }
.marquee li { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; flex: none; }
.marquee li[aria-hidden] { color: var(--gold); }

/* ---------- Profile / About (editorial opener) ---------- */
#about { padding-top: clamp(26px, 3vw, 46px); }
.about-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(34px, 6vw, 84px); align-items: start; }
.about-body .prose { color: var(--text-2); margin: 0 0 22px; max-width: 60ch; }
.prose.lede { color: var(--text); font-size: 1.24rem; line-height: 1.6; }
.prose.lede::first-letter {
  font-family: var(--font-display); float: left; font-weight: 600; color: var(--gold);
  font-size: 4.1em; line-height: 0.76; padding: 0.02em 0.12em 0 0;
}
.about-aside {
  border-top: 1px solid var(--line); padding-top: 26px;
  position: sticky; top: 112px;
}
.pullquote {
  margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.28; color: var(--gold-soft);
  text-wrap: balance;
}

/* ---------- Expertise (de-boxed running lists) ---------- */
.cap-list { display: grid; gap: 0; }
.cap-group {
  border-top: 1px solid var(--line); padding: clamp(24px, 3vw, 34px) 0;
  display: grid; grid-template-columns: 230px 1fr; gap: clamp(18px, 4vw, 60px); align-items: start;
}
.cap-name {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem); color: var(--text); letter-spacing: -0.01em;
}
.chips { margin: 0; }
.chip {
  display: inline; font-size: 1.04rem; line-height: 1.95; color: var(--text-2);
  transition: color 0.2s var(--ease);
}
.chip::after { content: " · "; color: var(--gold); margin: 0 0.14em; font-weight: 400; }
.chip:last-child::after { content: ""; }
.chip:hover { color: var(--gold-soft); }

/* ---------- Experience (editorial articles) ---------- */
.exp-companies { display: grid; }
.exp-company {
  display: grid; grid-template-columns: 290px 1fr; gap: clamp(24px, 4vw, 60px);
  border-top: 1px solid var(--line); padding: clamp(30px, 4vw, 46px) 0;
  transition: none;
}
.exp-company:first-child { border-top: none; padding-top: 4px; }
.exp-side { align-self: start; position: sticky; top: 108px; }
.exp-logo { box-sizing: content-box; height: 26px; width: auto; max-width: 168px; object-fit: contain; background: #fff; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 20px; }
/* Logos that carry their own background (e.g. Maneesh green wordmark) — no white plate */
.exp-logo[src*="logo-maneesh"] { box-sizing: border-box; height: 48px; max-width: 200px; padding: 0; background: transparent; }
.exp-name { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.12; }
.exp-name a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-h); transition: border-color 0.2s, color 0.2s; }
.exp-name a:hover { color: var(--gold-soft); border-color: var(--gold); }
.exp-meta { margin: 13px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em; color: var(--text-2); }
.exp-dot { color: var(--gold); }
.exp-loc { color: var(--text-3); }
.exp-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.exp-points li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 1.02rem; line-height: 1.65; }
.exp-points li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 1px; background: var(--gold); }
.exp-note { margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }

/* ---------- Education (two columns) ---------- */
.edu-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 74px); }
.edu-col-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.edu-item { display: grid; grid-template-columns: 66px 1fr; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.edu-item:last-of-type { border-bottom: none; }
.edu-badge { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); letter-spacing: 0.02em; }
.edu-badge-live { color: var(--gold); }
.edu-deg { margin: 0; font-family: var(--font-display); font-size: 1.28rem; font-weight: 500; color: var(--text); }
.edu-school { margin: 5px 0 0; font-size: 14.5px; color: var(--text-2); }
.edu-item-feature { border-bottom: none; }
.edu-item-feature .edu-badge-live { position: relative; padding-left: 15px; }
.edu-item-feature .edu-badge-live::before { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.edu-soon { margin: 20px 0 0; font-size: 13.5px; color: var(--text-3); font-style: italic; }

/* ---------- Credentials (figure plates) ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 34px); }
.cert-card { margin: 0; display: flex; flex-direction: column; }
.cred-media {
  display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f4f1ea;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  transition: border-color 0.3s var(--ease), transform 0.4s var(--ease);
}
a.cred-media:hover { border-color: var(--gold); transform: translateY(-4px); }
.cred-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
a.cred-media:hover img { transform: scale(1.04); }
.cred-view {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--gold) 88%, black 4%); color: var(--on-gold);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.3s var(--ease);
}
a.cred-media:hover .cred-view, a.cred-media:focus-visible .cred-view { opacity: 0.96; }
.cred-placeholder {
  display: grid; place-items: center; color: var(--text-3); background: var(--surface-2);
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 11px, var(--line-soft) 11px, var(--line-soft) 12px);
}
.cred-body { padding: 18px 2px 0; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.cred-figno { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.cert-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.28rem; color: var(--text); line-height: 1.2; }
.cert-note { margin: 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.03em; color: var(--text-3); }
.cred-soon { opacity: 0.9; }

.tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--r-xs); font-weight: 400; }
.tag-accent { background: var(--gold); color: var(--on-gold); }
.tag-muted { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text-3); border: 1px solid var(--line-soft); }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-inner { max-width: 780px; margin-inline: auto; }
.contact .section-index { border-top: 1px solid var(--line); padding-top: 26px; }
.contact-title { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.012em; line-height: 1.06; font-size: clamp(2.1rem, 5vw, 3.5rem); margin: 20px 0 0; color: var(--text); text-wrap: balance; }
.contact-title em { font-style: italic; color: var(--gold); }
.contact-sub { margin-inline: auto; text-align: center; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 44px 0 32px; text-align: left; }
.cc {
  display: flex; flex-direction: column; gap: 9px; padding: 22px 26px;
  border-top: 1px solid var(--line); text-decoration: none;
  transition: background 0.25s var(--ease);
}
.cc + .cc { border-left: 1px solid var(--line-soft); }
a.cc:hover { background: var(--gold-glow); }
.cc-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.cc-val { font-size: 15.5px; color: var(--text); word-break: break-word; }
a.cc:hover .cc-val { color: var(--gold-soft); }
.avail { display: inline-flex; align-items: center; gap: 9px; }
.avail-lg { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.05em; color: var(--text-2); justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { position: relative; z-index: 2; border-top: 1px solid var(--line); background: var(--bg); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px 26px; flex-wrap: wrap; padding-block: 34px; }
.footer-left { display: flex; align-items: center; gap: 13px; }
.footer-id { display: flex; flex-direction: column; line-height: 1.25; }
.brand-mark.sm { width: 36px; height: 36px; font-size: 13px; }
.footer-brand { font-family: var(--font-display); font-weight: 600; font-size: 15px; }
.foot-tag { margin: 2px 0 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.footer-right { display: flex; align-items: center; gap: 18px; }
.foot-line { margin: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.foot-top {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-md);
  border: 1px solid var(--line); color: var(--gold); text-decoration: none; font-size: 16px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.foot-top:hover { border-color: var(--gold); transform: translateY(-2px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 2px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 14px 30px 20px; box-shadow: var(--shadow-md);
  }
  .nav.open a { padding: 13px 14px; font-size: 16px; }
  .nav.open a::after { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; order: -1; max-width: 300px; }
  .about-grid, .edu-cols { grid-template-columns: 1fr; }
  .cap-group { grid-template-columns: 1fr; gap: 14px; }
  .cap-name { margin-bottom: 2px; }
  .about-aside { position: static; border-top: none; padding-top: 0; padding-left: 22px; border-left: 2px solid var(--line-h); }
  .exp-company { grid-template-columns: 1fr; gap: 22px; }
  .exp-side { position: static; }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
  .cc + .cc { border-left: none; }
}

@media (max-width: 620px) {
  .masthead-kicker { display: none; }
}

@media (max-width: 540px) {
  body { font-size: 16px; }
  .cred-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .hero-stats .stat { border-right: none; margin-right: 0; padding-right: 0; flex: 1 0 40%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-left, .footer-right { justify-content: center; }
  .foot-line { font-size: 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .avail-dot { animation: none; }
  .btn, .cred-media, .brand-mark { transition: none !important; }
}

/* =====================================================================
   LIGHT THEME — warm ivory paper + bronze ink (editorial counterpart)
   ===================================================================== */
:root[data-theme="light"] {
  --bg:        #f6f2e9;
  --bg-alt:    #efe8d9;
  --surface:   #fdfbf5;
  --surface-2: #ece4d3;
  --line:      rgba(74, 34, 30, 0.16);
  --line-soft: rgba(74, 34, 30, 0.08);
  --line-h:    rgba(74, 34, 30, 0.32);

  --gold:      #8c2732;   /* deep burgundy (rust-leaning) accent */
  --gold-soft: #6f1d29;   /* richer wine for emphasis / hover */
  --gold-dim:  rgba(140, 39, 50, 0.14);
  --gold-glow: rgba(140, 39, 50, 0.05);

  --text:   #221c18;
  --text-2: #574d45;
  --text-3: #857a6f;
  --on-gold:#fbf5ee;
  --success:#2f8256;

  --shadow-md: 0 14px 40px rgba(60, 48, 20, 0.13);
  --shadow-lg: 0 28px 68px rgba(60, 48, 20, 0.17), 0 8px 20px rgba(60, 48, 20, 0.10);
}
:root[data-theme="light"] .grain { opacity: 0.5; mix-blend-mode: multiply; }
:root[data-theme="light"] .portrait img { filter: grayscale(0.06) contrast(1.02); }
:root[data-theme="light"] ::-webkit-scrollbar-thumb { background: #d9d0bb; border-color: var(--bg); }
:root[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #cabf9f; }

/* ---------- Theme toggle button ---------- */
.theme-toggle .ic { transition: transform 0.4s var(--ease); }
.theme-toggle:hover .ic { transform: rotate(18deg); }
.theme-toggle:active .ic { transform: scale(0.85); }
.theme-toggle .ic-sun { display: none; }
.theme-toggle .ic-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: block; }

/* ---------- Smooth cross-fade only while switching ---------- */
html.theming, html.theming *, html.theming *::before, html.theming *::after {
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease),
              color 0.35s var(--ease), box-shadow 0.45s var(--ease), fill 0.35s var(--ease) !important;
}
