/* =============================================================================
   PERSONAL PORTAL — Light "Ivory / Navy / Gold" executive theme
   Four-lens entrance chooser + tailored dashboard.
   ============================================================================= */

:root {
  --bg:          #F7F5EF;   /* warm ivory canvas */
  --bg-2:        #F1EEE4;   /* slightly deeper ivory */
  --card:        #FFFFFF;   /* card surface */
  --ink:         #0A1128;   /* deep navy — headings */
  --body:        #4A5169;   /* muted slate — body copy */
  --body-dim:    #838AA0;
  --line:        rgba(10,17,40,0.10);
  --line-strong: rgba(197,160,89,0.55);

  --gold:        #C5A059;   /* satin gold accent */
  --gold-deep:   #A9842B;   /* readable gold for text on white */
  --gold-hi:     #E0C67E;
  --gold-soft:   rgba(197,160,89,0.12);
  --gold-glow:   rgba(197,160,89,0.35);
  --navy:        #0A1128;

  --limit:       #F6E7DC;   /* background tint when question cap reached */

  --radius: 16px;
  --shadow: 0 10px 34px rgba(10,17,40,0.08);
  --shadow-lg: 0 24px 60px rgba(10,17,40,0.16);
  --sans:  "Inter", "Montserrat", system-ui, -apple-system, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  transition: background 0.8s var(--ease);
}
/* Background shift when the chat question cap is reached */
body.limit-reached {
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(212,120,90,0.18), transparent 60%),
    var(--limit);
}
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { color: var(--ink); font-weight: 600; font-family: var(--serif); letter-spacing: 0.2px; }
.gold { color: var(--gold-deep); }

/* ===================== ENTRANCE CHOOSER ===================== */
.entrance {
  position: fixed; inset: 0; z-index: 100;
  background: radial-gradient(900px 500px at 50% 0%, rgba(197,160,89,0.10), transparent 60%), var(--bg);
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.entrance.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* Cookie notice — appears only after the cursor gate (chooser stage) */
.cookie-notice { position: absolute; left: 22px; bottom: 22px; z-index: 90; max-width: 400px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 16px;
  font-family: var(--sans); font-size: 12px; color: var(--body); line-height: 1.5; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s; }
.cookie-notice.show { opacity: 1; visibility: visible; transform: none; }
.entrance.hide .cookie-notice { opacity: 0 !important; visibility: hidden !important; }
.cookie-notice strong { color: var(--ink); }
.cookie-notice a { color: var(--gold-deep); font-weight: 600; text-decoration: underline; }
.cn-actions { display: flex; align-items: center; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.cn-accept, .cn-reject { font-family: var(--sans); font-size: 12px; font-weight: 600; padding: 7px 16px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: 0.2s var(--ease); }
.cn-accept { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; }
.cn-accept:hover { box-shadow: 0 6px 16px var(--gold-glow); }
.cn-reject { background: none; border-color: var(--line-strong); color: var(--body); }
.cn-reject:hover { color: var(--ink); border-color: var(--gold); }
.cn-signal { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--gold-deep); white-space: nowrap; }
.cn-arrow { display: inline-block; font-size: 15px; animation: cnNudge 1s ease-in-out infinite; }
@keyframes cnNudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-5px); } }
@media (max-width: 600px) { .cookie-notice { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
.entrance.hide .welcome, .entrance.hide .chooser { pointer-events: none; }

/* two stages occupy the same centered box */
.welcome, .chooser {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px; padding: 6vw; text-align: center;
}
.welcome { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.welcome.out { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.chooser { opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s; }
.entrance.step2:not(.hide) .chooser { opacity: 1; visibility: visible; transform: none; }

.welcome-photo { width: 116px; height: 116px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--line-strong); box-shadow: var(--shadow-lg);
  opacity: 0; animation: rise 0.7s 0.1s var(--ease) forwards; }
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.welcome-lines { display: flex; flex-direction: column; gap: 10px; max-width: 660px; }
.welcome-lines .line { font-family: var(--serif); color: var(--ink); font-weight: 600;
  font-size: clamp(22px, 3.6vw, 38px); line-height: 1.22; opacity: 0; transform: translateY(14px);
  animation: fadeUp 0.7s var(--ease) forwards; }
.welcome-lines .line .gold { color: var(--gold-deep); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
.skip-btn { margin-top: 8px; background: none; border: 1px solid var(--line-strong); color: var(--gold-deep);
  font-family: var(--sans); font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 22px; cursor: pointer;
  opacity: 0; animation: fadeUp 0.6s 1.4s var(--ease) forwards; transition: background 0.2s; }
.skip-btn:hover { background: var(--gold-soft); }

/* Human-movement verification gate */
.verify { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 6px;
  opacity: 0; animation: fadeUp 0.6s 1.6s var(--ease) forwards; }
.verify-prompt { font-family: var(--sans); font-size: 13.5px; color: var(--gold-deep); font-weight: 600; letter-spacing: 0.3px; text-align: center; }
.verify-bar { width: 230px; height: 6px; border-radius: 6px; background: rgba(10,17,40,0.08); overflow: hidden; }
.verify-bar span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); transition: width 0.12s var(--ease); }
.welcome-photo { transition: box-shadow 0.3s var(--ease); }
.welcome-photo.lit { box-shadow: 0 0 0 4px var(--gold-soft), 0 12px 34px rgba(197,160,89,0.4); }

.entrance-brand { font-family: var(--serif); font-size: 24px; color: var(--gold-deep); font-weight: 700; letter-spacing: 0.5px; }
.chooser h1 { font-size: clamp(24px, 4vw, 44px); text-align: center; line-height: 1.15; max-width: 18ch; }
/* small/short screens: let the stages scroll from the top so no card is cut off */
@media (max-width: 760px), (max-height: 720px) {
  .welcome, .chooser { justify-content: flex-start; overflow-y: auto; padding-top: 42px; padding-bottom: 42px; }
}
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: min(1080px, 96vw); }
.choice {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 24px; cursor: pointer; text-align: left; position: relative; overflow: hidden;
  box-shadow: var(--shadow); transition: 0.3s var(--ease);
  transform: translateY(20px); opacity: 0; animation: rise 0.6s var(--ease) forwards;
}
.choice:nth-child(1){animation-delay:.05s}.choice:nth-child(2){animation-delay:.14s}
.choice:nth-child(3){animation-delay:.23s}.choice:nth-child(4){animation-delay:.32s}
@keyframes rise { to { transform: none; opacity: 1; } }
.choice::before { content:""; position:absolute; inset:0 0 auto 0; height:3px;
  background: linear-gradient(90deg, var(--gold-hi), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.choice:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.choice:hover::before { transform: scaleX(1); }
.choice .c-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-deep); margin-bottom: 18px; }
.choice h3 { font-size: 22px; margin-bottom: 8px; }
.choice p { font-size: 13.5px; color: var(--body); font-family: var(--sans); }
.choice .c-go { margin-top: 18px; color: var(--gold-deep); font-size: 13px; font-weight: 600; font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 6px; }

/* ===================== TOP NAVBAR ===================== */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 64px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(18px, 4vw, 40px);
  background: rgba(247,245,239,0.8);
  backdrop-filter: blur(14px) saturate(120%); -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--line);
}
.brand-name { font-family: var(--serif); font-size: 22px; color: var(--gold-deep); font-weight: 700; margin-right: auto; }
.topnav-right { display: flex; align-items: center; gap: 12px; }
.lens-pill {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 14px; border-radius: 22px; border: 1px solid var(--line-strong);
  background: var(--gold-soft); color: var(--gold-deep); font-family: var(--sans); font-size: 13px; font-weight: 600;
  transition: 0.2s var(--ease);
}
.lens-pill:hover { background: rgba(197,160,89,0.2); }
.lens-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--gold-deep); cursor: pointer; transition: 0.2s var(--ease); }
.icon-btn:hover { border-color: var(--gold); }
.hamburger { background: none; border: none; cursor: pointer; padding: 8px; display: inline-flex; flex-direction: column; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--gold-deep); margin: 4px 0; border-radius: 2px; transition: 0.3s var(--ease); }

/* ===================== SLIDE-OUT MENU ===================== */
.menu-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(10,17,40,0.25);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
.menu-overlay.show { opacity: 1; pointer-events: auto; }
.menu-panel { position: fixed; top: 0; left: 0; bottom: 0; z-index: 62; width: min(440px, 86vw);
  background: linear-gradient(150deg, #fff, var(--bg-2)); border-right: 1px solid var(--line-strong);
  transform: translateX(-104%); transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(28px, 6vw, 58px);
  box-shadow: 30px 0 80px rgba(10,17,40,0.14); }
.menu-panel.open { transform: translateX(0); }
.menu-close { position: absolute; top: 22px; right: 26px; background: none; border: none;
  color: var(--ink); font-size: 34px; line-height: 1; cursor: pointer; transition: 0.2s; }
.menu-close:hover { color: var(--gold-deep); }
.menu-nav { display: flex; flex-direction: column; gap: 6px; }
.menu-nav .nav-item { display: block; width: fit-content; cursor: pointer; font-family: var(--serif);
  font-size: clamp(26px, 5vw, 42px); font-weight: 600; color: var(--ink); padding: 7px 0; transition: 0.25s var(--ease); }
.menu-nav .nav-item svg { display: none; }
.menu-nav .nav-item:hover { color: var(--gold-deep); transform: translateX(10px); }
.menu-nav .nav-item.active { color: var(--gold-deep); }
.menu-meta { margin-top: 36px; color: var(--body-dim); font-family: var(--sans); font-size: 14px; line-height: 1.7; }
.menu-privacy { color: var(--gold-deep); font-weight: 600; text-decoration: none; }
.menu-privacy:hover { text-decoration: underline; }

/* ===================== CONTENT ===================== */
.content { margin: 64px auto 0; max-width: 1200px; padding: 26px clamp(18px, 3vw, 36px) 80px; }
.view { display: none; animation: fade 0.4s var(--ease); }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view-head { margin-bottom: 22px; }
.view-head h2 { font-size: 28px; }
.view-head p { color: var(--body-dim); font-size: 14px; margin-top: 4px; font-family: var(--sans); }

/* ===================== HERO ===================== */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: center; padding: 20px 0 40px; }
.hero .eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; color: var(--ink); font-weight: 700; }
.hero h1 .gold { color: var(--gold-deep); }
.hero .sub { font-family: var(--sans); font-size: clamp(16px, 2vw, 21px); color: var(--body); margin: 20px 0 30px; max-width: 26ch; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-family: var(--sans);
  font-weight: 600; font-size: 15px; padding: 14px 28px; border-radius: 12px; border: 1px solid transparent; transition: 0.25s var(--ease); }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; }
.btn-gold:hover { box-shadow: 0 12px 28px var(--gold-glow); transform: translateY(-2px); }
.btn-ghost { background: none; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { color: var(--gold-deep); border-color: var(--gold); }

.hero-portrait { position: relative; justify-self: center; }
.hero-portrait::before { content:""; position:absolute; inset:-26px -18px -18px -26px; z-index:-1;
  background: radial-gradient(60% 60% at 70% 30%, rgba(197,160,89,0.22), transparent 70%),
              radial-gradient(50% 50% at 20% 80%, rgba(10,17,40,0.06), transparent 70%);
  filter: blur(4px); border-radius: 40px; }
.hero-portrait .frame { position: relative; width: min(280px, 66vw); aspect-ratio: 2/3; border-radius: 20px;
  overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.ai-pill { position: absolute; bottom: -14px; right: -12px; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line-strong); border-radius: 24px 24px 8px 24px;
  padding: 9px 15px 9px 10px; box-shadow: var(--shadow-lg); cursor: pointer; transition: 0.25s var(--ease); }
.ai-pill:hover { transform: translateY(-2px); border-color: var(--gold); }
.ai-pill .ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; display: grid; place-items: center; }
.ai-pill .txt { font-size: 13px; color: var(--ink); font-family: var(--sans); line-height: 1.2; max-width: 90px; }

/* ===================== GRID + CARDS ===================== */
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack > .card { width: 100%; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  position: relative; box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin-bottom: 14px; }
.col-6 { grid-column: span 6; } .col-8 { grid-column: span 8; } .col-4 { grid-column: span 4; } .col-12 { grid-column: span 12; }

.summary-text { color: var(--body); font-size: 15px; max-width: 44ch; margin-bottom: 22px; }
.stats { display: flex; gap: 34px; flex-wrap: wrap; }
.stat .v { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1; color: var(--gold-deep); }
.stat .l { font-size: 12px; color: var(--body-dim); margin-top: 6px; }

.expertise-wrap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.donut { flex: 0 0 140px; }
.legend { display: flex; flex-direction: column; gap: 4px; min-width: 128px; }
.legend-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--body);
  cursor: pointer; padding: 5px 8px; border-radius: 8px; transition: 0.2s var(--ease); }
.legend-item:hover, .legend-item.active { background: var(--gold-soft); color: var(--ink); }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }

/* Core Expertise info box (to the right of the legend, populated on hover) */
.exp-info { flex: 1 1 170px; min-width: 160px; align-self: stretch; min-height: 120px;
  border: 1.5px solid rgba(10,17,40,0.20); border-radius: 14px; padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: center; background: var(--card); }
.exp-info-hint { color: var(--body-dim); font-size: 13px; font-family: var(--sans); }
.exp-info-title { font-family: var(--serif); color: var(--gold-deep); font-size: 17px; margin-bottom: 5px; }
.exp-info-text { color: var(--body); font-size: 13.5px; font-family: var(--sans); line-height: 1.5; }

.chart-svg { width: 100%; height: auto; display: block; }

/* Career timeline image (replaces the old line chart) */
.timeline-img { width: 100%; display: block; border-radius: 12px; border: 1px solid var(--line); cursor: zoom-in; }
.timeline-img.missing { display: none; }
.timeline-missing { display: none; color: var(--body-dim); font-size: 13px; font-family: var(--sans); padding: 30px 0; text-align: center; }
.timeline-img.missing + .timeline-missing { display: block; }
.timeline-missing code { color: var(--gold-deep); background: var(--gold-soft); padding: 2px 6px; border-radius: 5px; }

.proj-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.proj-head a { color: var(--gold-deep); font-size: 13px; text-decoration: underline; cursor: pointer; font-family: var(--sans); }
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proj-thumb { cursor: pointer; }
.proj-thumb .img { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: 0.3s var(--ease); }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: 0.4s var(--ease); }
.proj-thumb:hover .img { border-color: var(--line-strong); box-shadow: var(--shadow); }
.proj-thumb:hover img { transform: scale(1.06); }
.proj-thumb .name { font-size: 13.5px; color: var(--ink); font-weight: 600; margin-top: 9px; line-height: 1.3; font-family: var(--sans); }

.quote-mark { color: var(--gold); font-size: 44px; line-height: 0.5; font-family: var(--serif); }
.quote-text { color: var(--body); font-size: 15px; margin: 14px 0 16px; }
.quote-author { color: var(--ink); font-weight: 600; font-size: 14px; text-align: right; font-family: var(--sans); }
.quote-dots { display: flex; gap: 6px; margin-top: 16px; }
.quote-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--body-dim); opacity: 0.4; cursor: pointer; transition: 0.2s; }
.quote-dot.active { background: var(--gold); opacity: 1; width: 18px; border-radius: 4px; }

.connect p { color: var(--body); font-size: 14px; margin-bottom: 20px; font-family: var(--sans); }
.socials { display: flex; gap: 12px; }
.social { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--body); transition: 0.25s var(--ease); }
.social:hover { color: var(--gold-deep); border-color: var(--line-strong); background: var(--gold-soft); transform: translateY(-2px); }

/* Global Impact map */
.map-legend { display: flex; gap: 18px; margin-bottom: 12px; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--body); font-family: var(--sans); }
.map-legend i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.map-legend i.w { background: #2563EB; }
.map-legend i.s { background: #C5A059; }
.impact-map { position: relative; width: 100%; aspect-ratio: 1536 / 1024; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.impact-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.map-dot { position: absolute; width: 13px; height: 13px; border-radius: 50%; transform: translate(-50%, -50%);
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(10,17,40,0.35); cursor: pointer; transition: transform 0.15s var(--ease); }
.map-dot.work { background: #2563EB; }
.map-dot.study { background: #C5A059; }
.map-dot:hover { transform: translate(-50%, -50%) scale(1.35); z-index: 6; }
.map-dot::after { content: attr(data-name); position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 11px; font-family: var(--sans); padding: 3px 8px; border-radius: 6px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.map-dot:hover::after { opacity: 1; }

/* Personal "life" photo cards */
.photo-frame { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.photo-frame img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.4s var(--ease); }
.photo-card:hover .photo-frame img { transform: scale(1.03); }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.value { padding: 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.value h5 { font-family: var(--serif); color: var(--gold-deep); font-size: 17px; margin-bottom: 6px; }
.value p { font-size: 14px; color: var(--body); font-family: var(--sans); }

.tag-soft { font-size: 11px; color: var(--gold-deep); background: var(--gold-soft); border: 1px solid var(--line-strong);
  padding: 3px 10px; border-radius: 20px; font-family: var(--sans); letter-spacing: 0.3px; }

/* achievements tiles */
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ach { text-align: center; padding: 22px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.ach .v { font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1; color: var(--gold-deep); }
.ach .l { color: var(--body); font-size: 13px; margin-top: 8px; font-family: var(--sans); }

/* ===================== EXPERIENCE VIEW ===================== */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), transparent); }
.tl-item { position: relative; padding: 0 0 28px 24px; }
.tl-item::before { content: ""; position: absolute; left: -1px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.tl-year { color: var(--gold-deep); font-size: 13px; font-weight: 600; font-family: var(--sans); }
.tl-role { color: var(--ink); font-size: 19px; font-weight: 600; margin: 2px 0; font-family: var(--serif); }
.tl-org { color: var(--body); font-weight: 500; font-size: 14px; font-family: var(--sans); }
.tl-note { color: var(--body-dim); font-size: 14px; margin-top: 3px; font-family: var(--sans); }

/* ===================== SKILLS VIEW ===================== */
.skill { margin-bottom: 18px; }
.skill-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-family: var(--sans); }
.skill-top .n { color: var(--ink); font-weight: 500; } .skill-top .p { color: var(--gold-deep); font-weight: 600; }
.bar { height: 8px; border-radius: 8px; background: rgba(10,17,40,0.07); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--gold), var(--gold-deep)); transition: width 1.1s var(--ease); }

/* ===================== PROJECTS VIEW ===================== */
.projects-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pf-card { overflow: hidden; padding: 0; cursor: pointer; }
.pf-card .img { aspect-ratio: 16/9; overflow: hidden; }
.pf-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s var(--ease); }
.pf-card:hover img { transform: scale(1.05); }
.pf-body { padding: 20px; }
.pf-body .tag-soft { display: inline-block; margin-bottom: 10px; }
.pf-body h4 { font-size: 18px; margin-bottom: 6px; }
.pf-body p { font-size: 14px; color: var(--body); font-family: var(--sans); }
.pf-body .impact { color: var(--gold-deep); font-size: 13px; margin-top: 10px; font-weight: 500; font-family: var(--sans); }

/* ===================== CHATBOT VIEW ===================== */
.chat-shell { padding: 0; overflow: hidden; }
.chat-header { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 var(--gold-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(197,160,89,0.5);} 70%{box-shadow:0 0 0 12px rgba(197,160,89,0);} 100%{box-shadow:0 0 0 0 rgba(197,160,89,0);} }
.chat-title { color: var(--ink); font-weight: 600; font-size: 15px; font-family: var(--sans); }
.chat-note { margin-left: auto; font-size: 11px; color: var(--gold-deep); background: var(--gold-soft); border: 1px dashed var(--line-strong); padding: 4px 10px; border-radius: 8px; font-family: var(--sans); }
.chat-contact { font-size: 12.5px; font-weight: 600; font-family: var(--sans); color: var(--gold-deep); background: var(--gold-soft);
  border: 1px solid var(--gold); padding: 6px 13px; border-radius: 8px; cursor: pointer; transition: 0.2s var(--ease); white-space: nowrap; }
.chat-contact:hover { background: var(--gold); color: #fff; }
.chat-body { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-height: 320px; max-height: 460px; overflow-y: auto; }
.msg { max-width: 82%; padding: 11px 15px; border-radius: 13px; font-size: 14px; font-family: var(--sans); }
.msg.bot { background: var(--bg-2); border: 1px solid var(--line); color: var(--body); align-self: flex-start; }
.msg { line-height: 1.55; }
.msg p { margin: 0; }
.msg p + p { margin-top: 10px; }
.msg ul { margin: 8px 0 0; padding-left: 20px; }
.msg ul:first-child { margin-top: 0; }
.msg p + ul { margin-top: 8px; }
.msg li { margin: 4px 0; }
.msg.bot strong { color: var(--ink); font-weight: 700; }
.msg.user { background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; align-self: flex-end; }
.counter { margin-left: auto; font-size: 11px; color: var(--body-dim); font-family: var(--sans); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px; }
.pill { font-size: 12.5px; padding: 7px 13px; border-radius: 20px; cursor: pointer; color: var(--gold-deep); font-family: var(--sans);
  border: 1px solid var(--line-strong); background: var(--gold-soft); transition: 0.2s var(--ease); }
.pill:hover { background: var(--gold); color: #fff; }
.pill.rotating { opacity: 0; transform: translateY(5px); transition: opacity .22s var(--ease), transform .22s var(--ease), background .2s, color .2s; }
.pill.rotating.show { opacity: 1; transform: none; }
.chat-input-row { display: flex; gap: 10px; padding: 18px 22px; border-top: 1px solid var(--line); }
.chat-input-row input { flex: 1; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; color: var(--ink); font-family: var(--sans); font-size: 14px; outline: none; }
.chat-input-row input:focus { border-color: var(--gold); }
.chat-input-row input:disabled { opacity: 0.6; }
.go { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)); color: #fff; display: grid; place-items: center; transition: 0.25s var(--ease); }
.go:hover { box-shadow: 0 8px 22px var(--gold-glow); }

/* connect / lead form shown at the question cap */
.lead-card { align-self: stretch; max-width: 100%; background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 18px; box-shadow: var(--shadow); }
.lead-card h4 { font-size: 17px; margin-bottom: 6px; }
.lead-card p { font-size: 13.5px; color: var(--body); font-family: var(--sans); margin-bottom: 14px; }
.lead-card .fields { display: grid; gap: 10px; }
.lead-card input, .lead-card textarea { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-family: var(--sans); font-size: 14px; color: var(--ink); outline: none; width: 100%; }
.lead-card textarea { resize: vertical; min-height: 44px; }
.lead-card input:focus, .lead-card textarea:focus { border-color: var(--gold); }
.lead-card button.btn { margin-top: 12px; }
.lead-err { display: none; margin-top: 10px; font-size: 13px; color: #c0392b; font-family: var(--sans); }
.lead-card.connect { position: relative; border-left: 3px solid var(--gold); animation: fade 0.35s var(--ease); }
.lead-x { position: absolute; top: 10px; right: 12px; width: 26px; height: 26px; border: none; background: transparent;
  color: var(--body-dim); font-size: 20px; line-height: 1; cursor: pointer; border-radius: 8px; }
.lead-x:hover { background: var(--bg-2); color: var(--ink); }
.chat-disclaimer { padding: 8px 22px 2px; font-size: 11px; line-height: 1.5; color: var(--body-dim); font-family: var(--sans); }
.connect-cta { align-self: flex-start; animation: fade 0.3s var(--ease); }
.connect-btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  padding: 11px 17px; border: 1.5px solid var(--gold); background: var(--card); color: var(--gold-deep);
  border-radius: 10px; cursor: pointer; box-shadow: var(--shadow); transition: 0.2s var(--ease); }
.connect-btn svg { flex-shrink: 0; }
.connect-btn:hover { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateY(-1px); }

/* ===================== LIGHTBOX ===================== */
.lightbox { position: fixed; inset: 0; z-index: 80; display: none; background: rgba(10,17,40,0.55);
  backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 5vw; }
.lightbox.show { display: flex; animation: fade 0.3s var(--ease); }
.lb-card { width: min(760px, 96vw); overflow: hidden; padding: 0; box-shadow: var(--shadow-lg); }
.lb-card .img { aspect-ratio: 16/9; overflow: hidden; }
.lb-card .img img { width: 100%; height: 100%; object-fit: cover; }
.lb-info { padding: 26px; }
.lb-info h3 { font-size: 23px; margin-bottom: 8px; }
.lb-info .blurb { color: var(--body); margin: 10px 0; font-family: var(--sans); }
.lb-info .impact { color: var(--gold-deep); font-weight: 500; font-size: 14px; font-family: var(--sans); }
.lb-close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 22px; cursor: pointer; z-index: 2; }
.lb-close:hover { color: var(--gold-deep); border-color: var(--gold); }

/* Stories (wide 2:1 comic panels) */
.story-thumb .img { aspect-ratio: 2 / 1; }
.story-pf .img { aspect-ratio: 2 / 1; }
.lightbox.story .lb-card { width: min(1120px, 96vw); }
.lightbox.story .lb-card .img { aspect-ratio: auto; }
.lightbox.story .lb-card .img img { width: 100%; height: auto; max-height: 76vh; object-fit: contain; background: #fff; }

/* Story thumbnail pager (arrows + dots) */
.story-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.story-arrow { background: none; border: 1px solid var(--line-strong); color: var(--gold-deep);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; transition: 0.2s var(--ease); }
.story-arrow:hover { background: var(--gold-soft); }
.story-dots { display: flex; gap: 6px; }
.story-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--body-dim); opacity: 0.4; cursor: pointer; transition: 0.2s; }
.story-dot.active { background: var(--gold); opacity: 1; width: 18px; border-radius: 4px; }

/* Interactive career timeline (Knowledge lens) — single shared time axis */
.tl-legend { display: flex; gap: 22px; margin-bottom: 10px; flex-wrap: wrap; }
.tl-leg { display: inline-flex; align-items: center; gap: 7px; font-family: var(--sans); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.tl-leg i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); display: inline-block; }
.tl-leg i.down { background: var(--gold-deep); opacity: 0.55; }
.tl-scroll { overflow-x: auto; overflow-y: hidden; padding: 2px 0 8px; }
.tl-scroll::-webkit-scrollbar { height: 8px; }
.tl-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
.tl-inner { position: relative; }
.tl-grid { position: absolute; top: 16px; bottom: 6px; width: 1px; background: rgba(10,17,40,0.06); transform: translateX(-50%); z-index: 0; }
.tl-grid span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--body-dim); white-space: nowrap; }
.tl-axis { position: absolute; height: 2px; background: linear-gradient(90deg, var(--gold-deep), rgba(197,160,89,0.3)); z-index: 1; }
.tl-conn { position: absolute; width: 2px; background: rgba(197,160,89,0.5); transform: translateX(-50%); z-index: 1; }
.tl-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 2px solid var(--card); transform: translate(-50%, -50%); z-index: 2; }
.tl-node { position: absolute; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; width: 88px; cursor: pointer; z-index: 3; }
.tl-node:focus { outline: none; }
.tl-chip { width: 72px; height: 58px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; padding: 8px; transition: 0.2s var(--ease); }
.tl-node:hover .tl-chip, .tl-node:focus .tl-chip, .tl-node.sel .tl-chip { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.tl-chip img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; margin: auto; }
.tl-logo-fallback { display: none; color: var(--gold-deep); font-family: var(--serif); font-weight: 700; font-size: 11px; text-align: center; line-height: 1.1; }
.tl-node.noimg .tl-chip img { display: none; }
.tl-node.noimg .tl-logo-fallback { display: block; }
.tl-year { font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--ink); text-align: center; white-space: nowrap; }
.tl-detail { margin-top: 14px; min-height: 68px; border: 1.5px solid rgba(10,17,40,0.18); border-radius: 12px; padding: 14px 16px;
  display: flex; flex-direction: column; justify-content: center; background: var(--bg-2); }
.tl-detail-hint { color: var(--body-dim); font-size: 13px; font-family: var(--sans); }
.tl-d-year { color: var(--gold-deep); font-weight: 600; font-size: 12px; font-family: var(--sans); }
.tl-d-title { color: var(--ink); font-weight: 600; font-family: var(--serif); font-size: 16px; margin: 3px 0; }
.tl-d-org { color: var(--body); font-size: 13px; font-family: var(--sans); }
.tl-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.tl-sum-label { font-family: var(--sans); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: 5px; }
.tl-sum-items { color: var(--body); font-size: 13px; font-family: var(--sans); line-height: 1.4; }
@media (max-width: 700px) { .tl-summary { grid-template-columns: 1fr 1fr; } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .choices { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; text-align: center; gap: 26px; }
  .hero .eyebrow { text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .col-6,.col-8,.col-4 { grid-column: span 12; }
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .projects-full { grid-template-columns: 1fr; }
  .lens-pill .lens-label { display: none; }
}
@media (max-width: 560px) {
  .choices { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
  .expertise-wrap { flex-direction: column; align-items: flex-start; }
}
