/* =====================================================================
   PORTFOLIO v2 — Kerala / Bangalore / Aotearoa
   Palette: warm cream + brown earth, deep teal, forest green, brass gold
   Edit any --token below to recolor the whole site.
   ===================================================================== */

:root {
  /* Western Ghats × Malabar Coast — monsoon forest + backwater + laterite */
  --bg:           #0e1814;       /* monsoon forest dark */
  --bg-2:         #16241e;       /* card surface — wet leaf */
  --bg-3:         #1e2f28;       /* hover surface */
  --cream:        #f0e6d2;       /* kasavu cream */
  --cream-dim:    #c2b896;       /* secondary text */
  --cream-mute:   #7a8278;       /* tertiary, labels — moss */

  --brown:        #6b3a1f;       /* laterite red-brown */
  --brown-soft:   #8a5230;       /* warm clay */
  --border:       #2a3e34;       /* deep moss divider */

  --gold:         #c9a04a;       /* kasavu border gold */
  --gold-bright:  #e8c878;       /* hover gold */
  --teal:         #2a6b66;       /* backwater teal */
  --teal-bright:  #4ea8a2;       /* monsoon teal bright */
  --green:        #5a7d3a;       /* palm green */
  --green-bright: #82a85a;       /* fresh palm */
  --terracotta:   #b85432;       /* laterite cliff */

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --maxw:         1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Warm radial atmosphere */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(78, 168, 162, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(130, 168, 90, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle paper grain via repeating gradient */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(240, 230, 210, 0.028) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

main, header, footer, nav.topbar { position: relative; z-index: 1; }

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-bright); }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--cream);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; font-weight: 400; }
h1 em { font-style: italic; color: var(--gold); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 1rem; line-height: 1.1; }
h3 { font-size: 1.3rem; margin-bottom: .5rem; }

.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
}
.dim { color: var(--cream-dim); }
.mute { color: var(--cream-mute); }

/* ========== LAYOUT ========== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: 80px 0; }

/* ========== NAV ========== */
nav.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 24, 20, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand .logo-mark {
  width: 26px; height: 26px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--gold);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--cream-dim);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 400;
  transition: color .15s;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 1.5px;
  background: var(--gold);
}

/* ========== HERO + WORLD MAP ========== */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  overflow: hidden;
}

.map-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}
.map-bg::after {
  /* Vignette so center text is readable but map edges fade nicely.
     Darker on left (where the hero copy sits), lighter on right (where map highlights are). */
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(14, 24, 20, 0.92) 0%, rgba(14, 24, 20, 0.55) 35%, rgba(14, 24, 20, 0.05) 65%, rgba(14, 24, 20, 0.0) 100%),
    linear-gradient(to bottom, rgba(14, 24, 20, 0.35) 0%, transparent 25%, transparent 75%, rgba(14, 24, 20, 0.55) 100%);
  z-index: 1;
}
.worldmap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.worldmap .country {
  fill: #1f2e26;
  stroke: #2e4438;
  stroke-width: 0.5;
}
.worldmap .country.home {
  fill: #e8c878;
  stroke: #f4dca0;
  stroke-width: 1.2;
  filter:
    drop-shadow(0 0 8px rgba(232, 200, 120, 1))
    drop-shadow(0 0 24px rgba(201, 160, 74, 0.6));
}
.worldmap .country.home-nz {
  fill: #4ea8a2;
  stroke: #7ec8c2;
  stroke-width: 1.2;
  filter:
    drop-shadow(0 0 8px rgba(78, 168, 162, 1))
    drop-shadow(0 0 24px rgba(42, 107, 102, 0.6));
}
.worldmap .halo {
  fill: none;
  stroke-width: 0;
}
.worldmap .halo-india { fill: #e8c878; opacity: 0.20; filter: blur(20px); }
.worldmap .halo-nz { fill: #4ea8a2; opacity: 0.24; filter: blur(15px); }
.worldmap .pin circle {
  fill: var(--cream);
  stroke: #fff;
  stroke-width: 0.5;
}
.worldmap .pin .pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  transform-origin: center;
  transform-box: fill-box;
  animation: ping 2.4s ease-out infinite;
}
.worldmap .pin-akl .pulse { stroke: var(--teal-bright); }
@keyframes ping {
  0%   { r: 6; opacity: 1; }
  100% { r: 26; opacity: 0; }
}
.worldmap .arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
  opacity: 0.7;
  animation: dashflow 14s linear infinite;
}
@keyframes dashflow {
  to { stroke-dashoffset: -200; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream-mute);
  margin-bottom: 32px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-meta span::before {
  content: '◆';
  color: var(--gold);
  margin-right: 8px;
  font-size: 0.6rem;
}
.hero h1 { margin-bottom: 24px; }
.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--cream-dim);
  margin-bottom: 18px;
  font-weight: 400;
}
.hero-tagline {
  font-size: 1rem;
  color: var(--cream-dim);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Portrait — round, like Shiyun's */
.portrait {
  width: 280px;
  height: 280px;
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 8px rgba(201, 160, 74, 0.10),
    0 0 60px rgba(201, 160, 74, 0.18);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-2), var(--brown));
  color: var(--cream-mute);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-align: center;
  padding: 24px;
}
.portrait-caption {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream-mute);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream-mute);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-cue .line { width: 1px; height: 30px; background: var(--gold); }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: transparent;
  border: 1px solid var(--cream-mute);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  border-radius: 999px;
}
.btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn.primary {
  background: var(--gold);
  color: #0e1814;
  border-color: var(--gold);
  font-weight: 600;
}
.btn.primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #0e1814;
}

/* ========== STATUS PILL ========== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(74, 124, 63, 0.15);
  border: 1px solid rgba(111, 168, 95, 0.4);
  color: var(--green-bright);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-radius: 999px;
  letter-spacing: 0.08em;
}
.pill .dot {
  width: 7px; height: 7px;
  background: var(--green-bright);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green-bright);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========== SECTION HEADER ========== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
}
.section-header .num {
  font-family: var(--font-mono);
  color: var(--cream-mute);
  font-size: 0.8rem;
}
.section-header h2 { margin-bottom: 4px; }
.section-header h2 em { color: var(--gold); font-style: italic; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ========== GRID + CARDS ========== */
.grid {
  display: grid;
  gap: 24px;
}
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 28px;
  transition: all .25s ease;
  position: relative;
  display: block;
  color: inherit;
  border-radius: 14px;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height .3s;
}
.card:hover {
  border-color: var(--gold);
  background: var(--bg-3);
  transform: translateY(-3px);
  color: inherit;
}
.card:hover::before { height: 100%; }
.card .card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 10px;
  font-size: 1.4rem;
}
.card p { color: var(--cream-dim); font-size: 0.95rem; line-height: 1.6; }
.card .card-meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream-mute);
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.card .arrow {
  color: var(--gold);
  transition: transform .2s;
}
.card:hover .arrow { transform: translateX(4px); }

/* Variant — colored project cards (Kartavya-inspired) */
.card.tone-teal { background: linear-gradient(160deg, #1a3a36, #0f2422); border-color: rgba(78,168,162,0.35); }
.card.tone-teal h3 { color: #fff; }
.card.tone-teal:hover { border-color: var(--teal-bright); }

.card.tone-green { background: linear-gradient(160deg, #2e4a26, #1a2e14); border-color: rgba(130,168,90,0.35); }
.card.tone-green h3 { color: #fff; }
.card.tone-green:hover { border-color: var(--green-bright); }

.card.tone-brown { background: linear-gradient(160deg, #4a2818, #2a1408); border-color: rgba(138,82,48,0.4); }
.card.tone-brown h3 { color: #fff; }
.card.tone-brown:hover { border-color: var(--brown-soft); }

.card.tone-spice { background: linear-gradient(160deg, #6b2e16, #3a160a); border-color: rgba(184,84,50,0.4); }
.card.tone-spice h3 { color: #fff; }
.card.tone-spice:hover { border-color: var(--terracotta); }

.card.tone-gold { background: linear-gradient(160deg, #5a4218, #2e2108); border-color: rgba(201,160,74,0.4); }
.card.tone-gold h3 { color: #fff; }

/* ========== KPI / STAT ========== */
.kpi {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 22px;
  border-radius: 14px;
}
.kpi .kpi-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--cream-mute);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}
.kpi .kpi-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  font-weight: 500;
  line-height: 1.2;
}
.kpi .kpi-delta { font-size: 0.85rem; color: var(--cream-dim); margin-top: 6px; }

/* ========== IDENTITY STRIP (the "two homes" callout) ========== */
.two-homes {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
  margin-top: 60px;
}
.home-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 28px;
  border-radius: 14px;
  position: relative;
}
.home-card .label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.home-card .label-row .label { letter-spacing: 0.2em; }
.home-card .flag {
  width: 32px; height: 22px;
  border-radius: 3px;
  display: inline-block;
}
.flag-in {
  background:
    linear-gradient(to bottom, #ff9933 0 33%, #fff 33% 66%, #138808 66%);
  position: relative;
}
.flag-in::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid #000080;
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.flag-nz {
  background: #00247d;
  position: relative;
}
.flag-nz::after {
  content: '';
  position: absolute;
  width: 12px; height: 8px;
  background:
    linear-gradient(45deg, transparent 46%, #fff 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, #fff 46% 54%, transparent 54%);
  top: 2px; left: 2px;
}
.home-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.home-card .city { color: var(--gold); font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }
.home-card p { color: var(--cream-dim); font-size: 0.92rem; }
.home-card ul { list-style: none; margin-top: 14px; }
.home-card ul li {
  font-size: 0.88rem;
  color: var(--cream-dim);
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
}
.home-card ul li:last-child { border-bottom: none; }
.home-card ul li span { color: var(--cream); font-family: var(--font-mono); font-size: 0.8rem; }

.two-homes .connector {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.two-homes .connector::before,
.two-homes .connector::after {
  content: '';
  width: 1px;
  background: linear-gradient(var(--gold), transparent);
  flex: 1;
}
.two-homes .connector::after {
  background: linear-gradient(transparent, var(--gold));
}

/* ========== TIMELINE ========== */
.timeline {
  border-left: 2px solid var(--border);
  padding-left: 36px;
  margin-left: 10px;
}
.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -44px;
  top: 6px;
  width: 14px; height: 14px;
  background: var(--bg);
  border: 2px solid var(--gold);
  border-radius: 50%;
}
.timeline-item .date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.timeline-item h3 { margin-bottom: 4px; font-size: 1.35rem; }
.timeline-item .org { color: var(--cream-dim); font-size: 0.95rem; margin-bottom: 12px; font-style: italic; }
.timeline-item ul { padding-left: 18px; color: var(--cream-dim); }
.timeline-item li { margin-bottom: 5px; font-size: 0.93rem; }

/* ========== ARTICLE BODY ========== */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body p { margin-bottom: 1.3em; color: var(--cream-dim); font-size: 1.02rem; }
.article-body h2 { margin: 2em 0 0.6em; font-style: italic; }
.article-body h3 { margin: 1.6em 0 0.4em; color: var(--cream); }
.article-body ul, .article-body ol { margin: 0 0 1.3em 1.4em; color: var(--cream-dim); }
.article-body code {
  font-family: var(--font-mono);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 2px 7px;
  font-size: 0.88em;
  color: var(--gold);
  border-radius: 4px;
}
.article-body pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 18px;
  overflow-x: auto;
  margin-bottom: 1.4em;
  font-size: 0.88rem;
  border-radius: 8px;
}
.article-body blockquote {
  border-left: 3px solid var(--teal-bright);
  padding: 10px 18px;
  background: var(--bg-2);
  color: var(--cream-dim);
  margin-bottom: 1.4em;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: 4px;
}

/* ========== TAGS ========== */
.tag-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 11px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--cream-dim);
  letter-spacing: 0.1em;
  border-radius: 999px;
}

/* ========== FORM ========== */
.form-grid { display: grid; gap: 18px; max-width: 560px; }
.form-grid label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream-mute);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  display: block;
}
.form-grid input, .form-grid textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--cream);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  transition: border-color .15s;
  border-radius: 8px;
}
.form-grid input:focus, .form-grid textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(78, 168, 162, 0.18);
}
.form-grid textarea { min-height: 140px; resize: vertical; }

/* ========== FOOTER ========== */
footer {
  border-top: 1px solid var(--border);
  margin-top: 100px;
  padding: 60px 0 40px;
  background: var(--bg-2);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-top h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.footer-top .label { margin-bottom: 14px; display: block; }
.footer-top a {
  display: block;
  color: var(--cream-dim);
  font-size: 0.92rem;
  padding: 4px 0;
}
.footer-top a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream-mute);
  letter-spacing: 0.1em;
}

/* ========== FADE IN ========== */
.fade-in {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeIn .8s ease forwards;
}
.fade-in:nth-child(2) { animation-delay: .1s; }
.fade-in:nth-child(3) { animation-delay: .2s; }
.fade-in:nth-child(4) { animation-delay: .3s; }
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== MOBILE ========== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-meta { justify-content: center; }
  .hero-tagline { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .portrait { width: 220px; height: 220px; }
  .two-homes { grid-template-columns: 1fr; }
  .two-homes .connector { writing-mode: horizontal-tb; padding: 12px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 56px 0; }
  .nav-links { gap: 14px; font-size: 0.8rem; }
  .nav-links a { font-size: 0.8rem; }
}
@media (max-width: 580px) {
  .nav-links {
    display: none;
  }
  .nav-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; right: 16px; left: 16px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 12px;
    gap: 14px;
  }
  .burger {
    display: block;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--cream);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    cursor: pointer;
  }
}
.burger { display: none; }


/* ========== HERO v2 OVERRIDE — inline portrait, map prominent ========== */
.hero { min-height: 92vh; padding: 40px 0 80px; }

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: 70vh;
}
.hero-copy { max-width: 620px; }

/* Inline portrait sits above hero meta */
.hero-portrait-inline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.portrait-mini {
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow:
    0 0 0 5px rgba(212, 166, 74, 0.10),
    0 0 30px rgba(212, 166, 74, 0.20);
  position: relative;
}
.portrait-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portrait-mini-placeholder {
  width: 100%; height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bg-2), var(--brown));
  color: var(--cream-mute);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-align: center;
}
.hero-portrait-caption {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 240px;
  line-height: 1.5;
}

/* Right column is empty container — just lets the map shine through */
.hero-map-side {
  position: relative;
  height: 100%;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
}
.map-legend {
  background: rgba(0,0,0,0.0);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  font-size: 0.78rem;
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cream-dim);
}
.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px currentColor;
}
.legend-dot.dot-india { background: var(--gold); color: var(--gold); }
.legend-dot.dot-nz    { background: var(--teal-bright); color: var(--teal-bright); }
.legend-distance {
  color: var(--cream-mute);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

/* mobile collapse */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; min-height: auto; }
  .hero-map-side { min-height: 220px; align-items: center; justify-content: center; padding: 0; }
  .map-legend { align-items: center; }
}

/* ========== EXPANDABLE INTEREST CARDS ========== */
.card.expandable {
  padding: 0;
  overflow: hidden;
  transition: border-color 0.18s ease;
}
.card.expandable .expand-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.card.expandable .expand-toggle .card-tag {
  flex-shrink: 0;
  margin-bottom: 0;
}
.card.expandable .expand-toggle h3 {
  flex: 1;
  margin: 0;
  font-size: 1.25rem;
}
.card.expandable .expand-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.card.expandable:hover {
  border-color: var(--gold);
}
.card.expandable:hover .expand-icon {
  background: var(--gold);
  color: var(--bg);
}
.card.expandable .expand-body {
  max-height: 0;
  opacity: 0;
  padding: 0 28px;
  overflow: hidden;
  transition: max-height 0.32s ease, opacity 0.22s ease, padding 0.22s ease;
}
.card.expandable.open .expand-body {
  max-height: 600px;
  opacity: 1;
  padding: 0 28px 24px 28px;
}
.card.expandable.open .expand-icon {
  background: var(--gold);
  color: var(--bg);
  transform: rotate(180deg);
}

/* ========== RESUME DOWNLOAD BUTTON ========== */
.resume-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px 0;
  padding: 20px 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(160deg, var(--bg-2), var(--bg));
}
.resume-cta .resume-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.resume-cta .resume-meta .label {
  margin-bottom: 0;
}
.resume-cta .resume-meta strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
  font-weight: 500;
}
.resume-cta .btn {
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .resume-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========== IMAGE PLACEHOLDERS — generic, reusable ========== */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--cream-mute);
  background:
    repeating-linear-gradient(45deg,
      rgba(201,160,74,0.04) 0 8px,
      transparent 8px 16px),
    linear-gradient(160deg, var(--bg-2), var(--bg));
  border: 1px dashed var(--border);
  border-radius: 10px;
  text-align: center;
  padding: 12px;
}

/* If user replaces placeholder with <img>, image styles take over */
.project-cover, .project-banner, .cert-img, .interest-img, .spotlight-img {
  overflow: hidden;
  border-radius: 12px;
}
.project-cover img, .project-banner img,
.cert-img img, .interest-img img, .spotlight-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== PROJECT CARD COVERS ========== */
.project-cover {
  aspect-ratio: 16 / 9;
  margin: -28px -28px 20px -28px;     /* bleed to card edges */
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid var(--border);
}
.project-cover .img-placeholder {
  border-radius: 14px 14px 0 0;
  border: 0;
  border-bottom: 1px dashed var(--border);
  min-height: 0;
  height: 100%;
}

/* ========== PROJECT DETAIL HERO BANNER ========== */
.project-banner {
  aspect-ratio: 21 / 9;
  margin: 0 0 40px 0;
  background: var(--bg-2);
}
.project-banner .img-placeholder {
  min-height: 200px;
  font-size: 0.85rem;
}

/* ========== CERTIFICATION CARDS ========== */
.cert-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.cert-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.cert-img {
  aspect-ratio: 4 / 3;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
}
.cert-img .img-placeholder {
  border: 0;
  border-radius: 0;
}
.cert-body {
  padding: 22px 24px 26px;
}
.cert-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 6px 0 4px;
  color: var(--cream);
}
.cert-body .dim {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-mute);
}
.cert-body ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
}
.cert-body ul li {
  position: relative;
  padding-left: 14px;
  font-size: 0.92rem;
  color: var(--cream-dim);
  margin-bottom: 6px;
  line-height: 1.55;
}
.cert-body ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--gold);
}
.cert-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.cert-link:hover {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

/* ========== INTEREST CARD IMAGE (inside expand-body) ========== */
.interest-img {
  aspect-ratio: 16 / 10;
  margin: 0 0 14px 0;
  background: var(--bg);
}
.interest-img .img-placeholder {
  min-height: 0;
  height: 100%;
}

/* ========== ACHIEVEMENT SPOTLIGHT — image + card side by side ========== */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: stretch;
  max-width: 980px;
}
.spotlight-img {
  aspect-ratio: 4 / 5;
  background: var(--bg-2);
}
.spotlight-img .img-placeholder {
  min-height: 0;
  height: 100%;
}
.spotlight-body {
  margin: 0 !important;
  max-width: none !important;
}

@media (max-width: 768px) {
  .spotlight {
    grid-template-columns: 1fr;
  }
  .spotlight-img {
    aspect-ratio: 16 / 9;
  }
  .project-cover {
    margin: -24px -24px 16px -24px;
  }
}
