:root {
  --navy: #0d2340;
  --navy-2: #163457;
  --gold: #d49a2a;
  --gold-l: #e9b955;
  --ink: #15212f;
  --muted: #5b6878;
  --bg: #faf8f4;
  --bg-alt: #f1ede4;
  --card: #ffffff;
  --line: #e4ddd0;
  --radius: 18px;
  --shadow: 0 12px 32px rgba(13, 35, 64, 0.09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 400 16px/1.7 "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 700; letter-spacing: -.01em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .7em; }

.btn { display: inline-block; padding: .8em 1.5em; border-radius: 999px; background: var(--navy); color: #fff; font: inherit; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; transition: transform .2s, background .2s; }
.btn:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .5em 1.2em; font-size: .92rem; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 244, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; }
.mono { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--gold-l); font-size: .95rem; letter-spacing: .02em; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.menu a:not(.btn):hover { color: var(--gold); }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 64px 0 96px; background: radial-gradient(700px 420px at 85% 30%, rgba(212, 154, 42, .14), transparent 70%), radial-gradient(600px 400px at 0% 0%, rgba(13, 35, 64, .07), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.role { font-weight: 600; color: var(--navy-2); font-size: 1.05rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-photo { position: relative; justify-self: center; width: min(400px, 100%); }
.ring { border-radius: 50%; padding: 10px; background: conic-gradient(from 200deg, var(--gold-l), var(--navy) 40%, var(--gold) 75%, var(--gold-l)); box-shadow: 0 30px 60px rgba(13, 35, 64, .22); }
.ring img { border-radius: 50%; border: 6px solid var(--bg); aspect-ratio: 1; object-fit: cover; width: 100%; }
.badge { position: absolute; background: #fff; border-radius: 999px; padding: .5em 1em; font-size: .85rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow); white-space: nowrap; }
.b1 { top: 8%; left: -10%; }
.b2 { bottom: 6%; right: -8%; }

/* Stats */
.stats { margin-top: -48px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stats div { padding: 24px 14px; text-align: center; }
.stats div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.stats b { display: block; font: 700 2.1rem "Fraunces", serif; color: var(--gold-l); }
.stats span { font-size: .88rem; color: rgba(255, 255, 255, .78); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.head p:last-child:not(.eyebrow) { color: var(--muted); }
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.about p { color: var(--muted); }
.section .eyebrow { color: var(--gold); }
.section-dark .eyebrow { color: var(--gold-l); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--gold), var(--line)); }
.timeline > li { position: relative; margin: 0 0 18px 42px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.timeline > li::before { content: ""; position: absolute; left: -40px; top: 24px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-alt); border: 4px solid var(--gold); }
.timeline .when { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 4px; }
.timeline h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 2px; }
.timeline .org { color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.timeline > li > .org:last-child { margin-bottom: 0; }
.timeline ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.timeline ul li { margin-bottom: 4px; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.skill { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s; }
.skill:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.skill .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: rgba(212, 154, 42, .14); margin-bottom: 14px; }
.skill p { color: var(--muted); margin: 0; font-size: .95rem; }
.areas { margin-top: 44px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.areas h3 { color: var(--navy); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags:last-child { margin-bottom: 0; }
.tags span { padding: .35em .9em; border-radius: 999px; background: var(--navy); color: #fff; font-size: .86rem; font-weight: 500; }
.tags-soft span { background: var(--bg-alt); color: var(--navy); }

/* Ventures */
.section-dark { background: linear-gradient(160deg, var(--navy), #10294a 60%, #1c3a5f); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .head p:last-child { color: rgba(255, 255, 255, .78); }
.section-dark .eyebrow { color: var(--gold-l); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; transition: background .2s, transform .2s; }
a.project:hover { background: rgba(255, 255, 255, .11); transform: translateY(-3px); }
.project .tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--gold-l); padding: .2em .7em; border-radius: 999px; margin-bottom: 12px; }
.project p { color: rgba(255, 255, 255, .75); font-size: .95rem; flex: 1; }
.project .go { color: var(--gold-l); font-weight: 600; font-size: .92rem; }

/* Education */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list li { position: relative; padding: 12px 16px 12px 44px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.list li::before { content: "✓"; position: absolute; left: 14px; top: 12px; color: var(--gold); font-weight: 700; }
.list b { color: var(--ink); }
.list-star li::before { content: "★"; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.langs span { padding: .5em 1em; border-radius: 12px; background: var(--bg-alt); font-size: .9rem; color: var(--muted); }
.langs b { color: var(--navy); margin-right: .3em; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact p:last-child { color: var(--muted); }
.links { display: grid; gap: 12px; }
.links a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.links a:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.links .i { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--gold-l); font-size: 1.1rem; }
.links small { display: block; color: var(--muted); font-size: .8rem; }
.links span span { font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 26px 0; font-size: .9rem; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot p { margin: 0; }
.foot a { color: var(--gold-l); text-decoration: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .about, .edu-grid, .contact { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: -1; width: min(300px, 80%); }
  .hero { padding-top: 40px; text-align: center; }
  .hero .cta { justify-content: center; }
  .lead { margin-inline: auto; }
  .skills, .projects { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .burger { display: block; }
  .menu { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; display: none; box-shadow: var(--shadow); }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 12px; text-align: center; }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .brand > span:last-child { font-size: .95rem; }
  .badge { font-size: .74rem; }
  .b1 { left: -6%; } .b2 { right: -6%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .skills, .projects { grid-template-columns: 1fr; }
  .areas { padding: 22px 18px; }
  .foot { justify-content: center; text-align: center; }
}
