/* ═══════════════════════════════════════════════════════════════
   VINOD DHIMAN — PORTFOLIO
   Medium-tone professional theme · multi-page architecture
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Backgrounds */
  --bg:           #f4f6fa;
  --bg-alt:       #ffffff;
  --bg-tint:      #e9eef5;
  --card:         #ffffff;
  --card-hover:   #fbfcfe;
  --card-shadow:  0 2px 8px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.06);
  --card-shadow-h:0 12px 32px -8px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.08);

  /* Text */
  --text:         #1e293b;
  --text-strong:  #0f172a;
  --text-muted:   #475569;
  --text-dim:     #64748b;
  --text-faint:   #94a3b8;

  /* Borders */
  --border:       rgba(15, 23, 42, 0.08);
  --border-strong:rgba(15, 23, 42, 0.14);
  --border-h:     rgba(2, 132, 199, 0.4);

  /* Accents */
  --blue:         #0284c7;
  --blue-dark:    #075985;
  --blue-tint:    rgba(2, 132, 199, 0.08);
  --purple:       #6d28d9;
  --purple-dark:  #5b21b6;
  --purple-tint:  rgba(109, 40, 217, 0.08);
  --teal:         #0891b2;
  --green:        #059669;
  --pink:         #db2777;
  --gold:         #d97706;
  --gold-tint:    rgba(217, 119, 6, 0.08);
  --red:          #dc2626;

  /* Fonts */
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --container:    1180px;
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    18px;
  --transition:   all 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; background: var(--bg); color: var(--text); }
body { font-family: var(--font-body); line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
::selection { background: rgba(2, 132, 199, 0.2); color: var(--text-strong); }
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-tint); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-faint); }

.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10000; padding: 10px 16px; background: var(--blue); color: #fff; font-weight: 600; font-size: 0.9rem; border-radius: 8px; text-decoration: none; transition: top 0.2s ease; }
.skip-link:focus { top: 16px; outline: 2px solid #fff; outline-offset: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; width: 100%; }

/* ── Navigation ── */
#navbar { position: sticky; top: 0; z-index: 100; background: rgba(244, 246, 250, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: var(--container); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.vd-logo { width: 36px; height: 36px; }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text-strong); }
.logo-text .dot { color: var(--blue); }

.nav-links { list-style: none; display: flex; gap: 4px; align-items: center; }
.nav-links > li > a { padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 500; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.nav-links > li > a:hover { color: var(--text-strong); background: rgba(15, 23, 42, 0.04); }
.nav-links > li > a.active { color: var(--blue); background: var(--blue-tint); }
.nav-links a.nav-cta { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; padding: 8px 18px; font-weight: 600; }
.nav-links a.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -4px rgba(2, 132, 199, 0.4); }

.has-dropdown { position: relative; }
.has-dropdown > a::after { content: '▾'; font-size: 0.7em; margin-left: 4px; opacity: 0.6; }
.dropdown { position: absolute; top: 100%; right: 0; min-width: 240px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow-h); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: var(--transition); list-style: none; margin-top: 6px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { padding: 9px 12px; display: block; color: var(--text); font-size: 0.88rem; border-radius: 6px; }
.dropdown a:hover { background: var(--blue-tint); color: var(--blue-dark); }

.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: var(--transition); }

/* ── Headings & utility ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--text-strong); letter-spacing: -0.02em; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
.gradient-text { background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.page { padding: 64px 0 96px; flex: 1; }
.page-alt { background: var(--bg-tint); }
.page-header { text-align: center; margin-bottom: 56px; }
.page-tag { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--blue); letter-spacing: 0.1em; text-transform: lowercase; display: inline-block; margin-bottom: 12px; }
.page-title { margin-bottom: 14px; }
.page-sub { font-size: 1.06rem; color: var(--text-muted); max-width: 680px; margin: 0 auto; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius-sm); border: 0; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-decoration: none; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; box-shadow: 0 4px 14px -4px rgba(2, 132, 199, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -6px rgba(2, 132, 199, 0.5); }
.btn-ghost { background: var(--card); color: var(--text-strong); border: 1px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-sm { padding: 7px 14px; font-size: 0.84rem; }
.btn-full { width: 100%; }

/* ── Cards (universal) ── */
.card, .glass-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow); transition: var(--transition); }
.card { padding: 24px; }
.card:hover, .glass-card:hover { border-color: var(--border-strong); box-shadow: var(--card-shadow-h); transform: translateY(-2px); }

/* ── Hero (home) — full-bleed photo banner with light scrim ── */
#hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
#hero.hero-banner-layout { padding: 120px 0 96px; }
.hero-banner { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: saturate(1.02); }
/* Light scrim that gives the left half a readable white panel while letting the photo show on the right */
.hero-banner-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244,246,250,0.96) 0%, rgba(244,246,250,0.85) 40%, rgba(244,246,250,0.30) 70%, rgba(244,246,250,0.0) 100%),
    linear-gradient(180deg, transparent 0%, transparent 80%, rgba(244,246,250,0.95) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: var(--container); width: 100%; }
.hero-content .hero-name { text-shadow: 0 1px 2px rgba(255,255,255,0.5); }
/* (legacy two-column layout — kept for any other page that uses it) */
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 60px; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hero-pre { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--blue); letter-spacing: 0.12em; margin-bottom: 14px; text-transform: uppercase; }
.hero-name { font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1.02; font-weight: 800; margin-bottom: 18px; color: var(--text-strong); }
.hero-titles { font-family: var(--font-mono); font-size: 1.05rem; color: var(--text-muted); margin-bottom: 24px; min-height: 28px; }
.hero-titles .cursor { color: var(--blue); animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-bio { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 32px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.stat-num { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; line-height: 1; background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-lbl { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-top: 4px; }

.hero-portrait-wrap { position: relative; aspect-ratio: 4/5; max-width: 460px; justify-self: end; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 24px 60px -20px rgba(2, 132, 199, 0.25), 0 12px 30px -10px rgba(109, 40, 217, 0.2); }
.hero-portrait-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-portrait-ring { position: absolute; inset: 0; border-radius: var(--radius-lg); padding: 2px; background: linear-gradient(135deg, var(--blue) 0%, transparent 40%, transparent 60%, var(--purple) 100%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* ── Highlight cards (home quick links) ── */
.highlight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 32px; }
.highlight-card { display: block; padding: 26px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--card-shadow); transition: var(--transition); text-decoration: none; color: var(--text); position: relative; overflow: hidden; }
.highlight-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--purple)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.highlight-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-h); border-color: var(--border-strong); }
.highlight-card:hover::before { transform: scaleX(1); }
.highlight-card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.highlight-card .icon svg { width: 22px; height: 22px; }
.highlight-card h3 { font-size: 1.08rem; margin-bottom: 6px; color: var(--text-strong); }
.highlight-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 12px; }
.highlight-card .arrow { color: var(--blue); font-weight: 600; font-size: 0.88rem; }

/* ── Subsection ── */
.subsection { margin-top: 56px; }
.subsection-title { font-size: 1.3rem; font-weight: 700; color: var(--text-strong); padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }

/* ── About cards ── */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.about-card { padding: 24px; }
.about-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 10px; }
.about-card .ico-bubble { width: 36px; height: 36px; border-radius: 9px; background: var(--blue-tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.about-card .ico-bubble svg { width: 18px; height: 18px; }
.about-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--blue), var(--purple), transparent); }
.timeline-item { position: relative; padding: 0 0 32px 24px; }
.timeline-marker { position: absolute; left: -32px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--blue); box-shadow: 0 0 0 4px var(--bg); }
.timeline-marker.active { background: var(--blue); box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--blue); }
.timeline-content { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--card-shadow); }
.timeline-year { font-family: var(--font-mono); font-size: 0.78rem; color: var(--blue); font-weight: 600; letter-spacing: 0.06em; }
.timeline-content h3 { font-size: 1.05rem; margin: 4px 0 4px; }
.timeline-content .role-org { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 8px; }
.timeline-content p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* ── Pub / Patent ── */
.pub-list, .patent-list { display: grid; gap: 16px; }
.pub-item, .patent-item { padding: 20px 24px; }
.pub-item h3, .patent-item h3 { font-size: 1.02rem; margin-bottom: 4px; }
.pub-meta, .patent-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-dim); margin-bottom: 8px; letter-spacing: 0.04em; }
.pub-type { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 8px; }
.pub-type.journal    { background: var(--blue-tint);   color: var(--blue-dark); }
.pub-type.conference { background: var(--purple-tint); color: var(--purple-dark); }
.pub-type.patent     { background: var(--gold-tint);   color: var(--gold); }
.pub-item p, .patent-item p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; }
.pub-item a, .patent-item a { color: var(--blue); font-weight: 600; font-size: 0.88rem; }

.patent-icon { width: 52px; height: 52px; background: var(--blue-tint); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--blue); }
.patent-icon svg { width: 26px; height: 26px; }
.pending-badge { display: inline-block; background: var(--purple-tint); color: var(--purple); padding: 3px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }

/* ── Books ── */
.books-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.book-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.book-art { height: 220px; display: flex; align-items: center; justify-content: center; padding: 24px; color: #fff; text-align: center; font-weight: 700; }
.book1-art { background: linear-gradient(135deg, #1e3a8a, #6d28d9); }
.book2-art { background: linear-gradient(135deg, #6d28d9, #be185d); }
.book-body { padding: 22px 24px; }
.book-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.book-author-label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin-bottom: 8px; }
.book-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 12px; }

/* ── Awards ── */
.awards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.award-card { padding: 24px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.featured-award { grid-column: span 2; }
.award-trophy { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.award-trophy svg { width: 28px; height: 28px; }
.gold-trophy   { background: var(--gold-tint);   color: var(--gold);   border: 1px solid rgba(217, 119, 6, 0.25); }
.blue-trophy   { background: var(--blue-tint);   color: var(--blue);   border: 1px solid rgba(2, 132, 199, 0.25); }
.purple-trophy { background: var(--purple-tint); color: var(--purple); border: 1px solid rgba(109, 40, 217, 0.25); }
.teal-trophy   { background: rgba(8,145,178,0.08); color: var(--teal); border: 1px solid rgba(8,145,178,0.25); }
.award-year { font-family: var(--font-mono); font-size: 0.74rem; color: var(--gold); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.award-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.award-org { font-size: 0.82rem; color: var(--blue); font-family: var(--font-mono); margin-bottom: 8px; }
.award-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; }
.award-link { display: inline-block; margin-top: 10px; font-size: 0.86rem; color: var(--blue); font-weight: 600; }

/* ── Media tiles ── */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.media-tile { --accent: var(--blue); --accent-2: var(--purple); display: flex; flex-direction: column; text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: var(--card-shadow); transition: var(--transition); position: relative; }
.media-tile:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-h); border-color: var(--border-strong); }
.tile-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-tint); position: relative; }
.tile-thumb img, .tile-thumb .tile-brand-art { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.media-tile:hover .tile-thumb img, .media-tile:hover .tile-thumb .tile-brand-art { transform: scale(1.04); }
.tile-glow { display: none; }
.tile-body { padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile-meta { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tile-pub { color: var(--accent); font-weight: 600; }
.tile-type { color: var(--text-dim); padding: 2px 9px; border: 1px solid var(--border-strong); border-radius: 999px; }
.tile-type-award { color: var(--gold); border-color: rgba(217,119,6,0.35); background: var(--gold-tint); }
.tile-body h3 { font-size: 1rem; margin: 4px 0 2px; line-height: 1.35; }
.tile-body p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; flex: 1; }
.tile-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 0.84rem; font-weight: 600; color: var(--accent); }
.tile-link svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.media-tile:hover .tile-link svg { transform: translateX(2px); }

/* ── Events list ── */
.events-list { list-style: none; display: grid; gap: 14px; }
.event-item { padding: 20px 24px; display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: start; }
.event-meta { display: flex; flex-direction: column; gap: 6px; }
.event-date { font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-strong); font-weight: 600; }
.event-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.upcoming-badge { background: var(--blue-tint); color: var(--blue-dark); border: 1px solid rgba(2,132,199,0.3); }
.past-badge { background: var(--purple-tint); color: var(--purple-dark); border: 1px solid rgba(109,40,217,0.3); }
.event-body { min-width: 0; }
.event-org { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 6px; }
.event-org .org-logo { width: 22px; height: 22px; flex-shrink: 0; }
.event-body h4 { font-size: 1.02rem; margin-bottom: 6px; }
.event-body > p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 10px; }
.event-details { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.event-details span { display: inline-flex; align-items: center; gap: 5px; }
.event-details svg { width: 14px; height: 14px; }
.event-link { color: var(--blue); font-size: 0.86rem; font-weight: 600; }

/* Featured speaking cards */
.speaking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.speaking-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.speaking-img { height: 160px; position: relative; overflow: hidden; }
.speaking-img-art svg { width: 100%; height: 100%; display: block; }
.speaking-img-badge { position: absolute; bottom: 12px; left: 14px; font-family: var(--font-mono); font-size: 0.66rem; padding: 4px 10px; border-radius: 999px; background: rgba(15,23,42,0.85); color: #fff; letter-spacing: 0.06em; text-transform: uppercase; backdrop-filter: blur(6px); }
.speaking-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.speaking-org { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); }
.speaking-org .org-logo { width: 28px; height: 28px; }
.speaking-body h3 { font-size: 1rem; margin: 2px 0; }
.speaking-body p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.speaking-link { color: var(--blue); font-size: 0.84rem; font-weight: 600; }

/* ── Gallery ── */
.gallery-group { margin-bottom: 48px; }
.gallery-group-title { font-size: 0.95rem; font-weight: 600; color: var(--text-strong); margin: 0 0 18px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gallery-group-pill { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-dark); padding: 4px 12px; border: 1px solid rgba(2,132,199,0.3); background: var(--blue-tint); border-radius: 999px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; align-items: stretch; }
.gallery-card { padding: 0; overflow: hidden; border-radius: var(--radius-sm); display: flex; flex-direction: column; height: 100%; }
.gallery-img-wrap { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-tint); flex-shrink: 0; }
.gallery-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; image-orientation: from-image; transition: transform 0.5s ease; display: block; }
.gallery-card:hover .gallery-img-wrap img { transform: scale(1.05); }
.gallery-card figcaption {
  padding: 10px 12px 12px;
  display: flex; flex-direction: column; gap: 2px;
  flex: 1 1 auto;          /* fills remaining card height so adjacent cards align */
  min-height: 64px;        /* guarantee 2-line space so 1-line captions don't shrink the card */
}
.gallery-card figcaption strong {
  font-size: 0.82rem; color: var(--text-strong); font-weight: 700;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; line-height: 1.25;
}
.gallery-card figcaption span {
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--text-muted);
  letter-spacing: 0.04em; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Memberships + Certs ── */
.membership-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.membership-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; padding: 22px; }
.membership-logo svg { width: 72px; height: 72px; border-radius: 12px; }
.membership-info h3 { font-size: 1.02rem; margin-bottom: 4px; }
.membership-since { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-dim); margin-bottom: 6px; }
.membership-info p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.55; }

.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cert-card { text-align: center; padding: 22px; }
.cert-logo-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.cert-logo-wrap svg { width: 64px; height: 64px; border-radius: 12px; }
.cert-card h3 { font-size: 0.98rem; margin-bottom: 4px; }
.cert-org { font-family: var(--font-mono); font-size: 0.72rem; color: var(--blue); margin-bottom: 8px; }
.cert-detail { color: var(--text-muted); font-size: 0.85rem; line-height: 1.55; }
.cert-badge { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 0.66rem; padding: 3px 10px; border-radius: 999px; font-weight: 600; letter-spacing: 0.06em; }
.cert-badge.elite { background: var(--gold-tint); color: var(--gold); border: 1px solid rgba(217,119,6,0.3); }
.featured-cert { grid-column: span 2; }

/* ── Resources ── */
.resource-group { margin-bottom: 56px; }
.resource-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.resource-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.resource-thumb { height: 140px; display: flex; align-items: center; justify-content: center; color: #fff; position: relative; }
.resource-thumb svg { width: 56px; height: 56px; opacity: 0.95; }
.resource-thumb.gov { background: linear-gradient(135deg, #075985, #6d28d9); }
.resource-thumb.pm { background: linear-gradient(135deg, #6d28d9, #be185d); }
.resource-thumb.paper { background: linear-gradient(135deg, #0f766e, #0284c7); }
.resource-thumb.kit { background: linear-gradient(135deg, #d97706, #b45309); }
.resource-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.resource-type { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-dim); text-transform: uppercase; }
.resource-card h3 { font-size: 1.02rem; line-height: 1.3; }
.resource-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.resource-cta { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--blue); color: #fff; font-size: 0.84rem; font-weight: 600; margin-top: 6px; }
.resource-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }
.resource-soon { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--bg-tint); color: var(--text-dim); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }

/* ── Contact ── */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-text .lead { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.7; }
.contact-links { display: grid; gap: 12px; }
.contact-link { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: var(--transition); }
.contact-link:hover { border-color: var(--blue); transform: translateX(2px); }
.contact-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--blue-tint); color: var(--blue); flex-shrink: 0; }
.contact-icon svg { width: 18px; height: 18px; }
.contact-link strong { display: block; font-size: 0.95rem; color: var(--text-strong); }
.contact-link span { font-size: 0.82rem; color: var(--text-muted); }
.contact-form-wrap { padding: 28px 32px; }
.contact-form-wrap h3 { margin-bottom: 18px; }
.contact-form { display: grid; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; color: var(--text-muted); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--bg-alt); font-family: var(--font-body); font-size: 0.95rem; color: var(--text); transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-faint); }
.form-feedback { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.form-feedback.success { background: rgba(5,150,105,0.08); color: var(--green); border: 1px solid rgba(5,150,105,0.25); }
.form-feedback.error   { background: rgba(220,38,38,0.08); color: var(--red);   border: 1px solid rgba(220,38,38,0.25); }
.btn-spinner svg.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }

/* ── Speaker-kit form extras ── */
.form-group label .req { color: var(--blue); font-weight: 700; }
.form-group label .optional { color: var(--text-faint); font-weight: 400; font-size: 0.78rem; }
.form-fineprint { font-size: 0.78rem; color: var(--text-faint); line-height: 1.55; margin: 2px 0 0; }
.kit-includes { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 12px; }
.kit-includes li { position: relative; padding-left: 26px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.kit-includes li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, var(--blue), var(--purple)); opacity: 0.85; }
.kit-includes li strong { color: var(--text); }

/* ── Footer ── */
#footer { background: var(--text-strong); color: rgba(255,255,255,0.7); padding: 56px 0 32px; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-brand p { margin-top: 12px; color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.65; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; }
.footer-logo-wrap .logo-text { color: #fff; font-size: 1.1rem; }
.footer-logo-wrap .logo-text .dot { color: var(--blue); }
.footer-logo-wrap .vd-logo-sm { width: 32px; height: 32px; }
.footer-links h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer-links ul { list-style: none; display: grid; gap: 8px; }
.footer-links ul.footer-sitemap { grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.footer-links a { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.footer-links a:hover { color: var(--blue); }
@media (max-width: 480px) {
  .footer-links ul.footer-sitemap { grid-template-columns: 1fr; }
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.65); }
.footer-bottom a:hover { color: var(--blue); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-portrait-wrap { justify-self: center; max-width: 360px; }
  .awards-grid { grid-template-columns: 1fr; }
  .featured-award, .featured-cert { grid-column: span 1; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 10px 16px; box-shadow: var(--card-shadow); }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 12px 14px; }
  .has-dropdown .dropdown { position: static; opacity: 1; visibility: visible; transform: none; margin: 0 0 4px 16px; box-shadow: none; border: 0; padding: 0; }
  .hamburger { display: block; }
  .event-item { grid-template-columns: 1fr; gap: 10px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page { padding: 44px 0 64px; }
  #hero { padding: 56px 0 72px; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.6rem; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}
