:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --teal: #2ec4b6;
  --teal-dark: #159a90;
  --cyan: #7bdff2;
  --cream: #f7f8f4;
  --white: #ffffff;
  --ink: #172033;
  --muted: #64748b;
  --line: #dfe7ec;
  --surface: #ffffff;
  --surface-2: #f2f7f7;
  --shadow: 0 18px 55px rgba(11, 37, 69, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.dark {
  --cream: #071523;
  --surface: #0d2134;
  --surface-2: #102a42;
  --ink: #edf7fa;
  --muted: #b2c4cf;
  --line: #294259;
  --shadow: 0 18px 55px rgba(0, 0, 0, .32);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 104px 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 9999; padding: 10px 16px; background: var(--teal); color: var(--navy); border-radius: 10px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(247, 248, 244, .88); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(223, 231, 236, .8); }
body.dark .site-header { background: rgba(7, 21, 35, .88); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 235px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--teal), var(--cyan)); color: var(--navy); font-weight: 900; box-shadow: 0 8px 22px rgba(46, 196, 182, .28); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; line-height: 1.2; }
.brand small { color: var(--muted); font-size: .72rem; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--muted); font-size: .92rem; font-weight: 700; transition: .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--teal-dark); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn, .nav-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 12px; cursor: pointer; }
.icon-btn { width: 40px; height: 40px; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; }

.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 14px; font-weight: 800; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--navy); background: linear-gradient(135deg, var(--teal), var(--cyan)); box-shadow: 0 12px 25px rgba(46, 196, 182, .25); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-small { min-height: 40px; padding-inline: 16px; font-size: .88rem; }

.hero { position: relative; min-height: 760px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(135deg, #081f3a 0%, #0b2545 52%, #123b5a 100%); color: white; }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: radial-gradient(circle at 2px 2px, rgba(255,255,255,.38) 1px, transparent 0); background-size: 32px 32px; }
.hero-glow { position: absolute; border-radius: 999px; filter: blur(4px); opacity: .32; }
.hero-glow-one { width: 480px; height: 480px; background: var(--teal); right: -220px; top: -140px; }
.hero-glow-two { width: 300px; height: 300px; background: #5777ff; left: -140px; bottom: -180px; }
.hero-content { position: relative; z-index: 2; display: grid; grid-template-columns: 1.18fr .82fr; gap: 72px; align-items: center; padding-block: 92px; }
.eyebrow { display: inline-block; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 900; }
.hero .eyebrow { color: #9df7ec; }
.hero-kicker { margin: 26px 0 0; font-size: 1.06rem; color: #b8d8e9; }
.hero h1 { margin: 0; font-size: clamp(4.2rem, 9vw, 7.2rem); letter-spacing: -.075em; line-height: .92; }
.hero h1 span { color: var(--teal); font-weight: 500; }
.hero-name { margin: 18px 0 0; text-transform: uppercase; letter-spacing: .23em; font-size: .86rem; font-weight: 800; color: #bdd0df; }
.hero-tagline { max-width: 700px; margin: 24px 0 12px; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.3; font-weight: 800; }
.hero-intro { max-width: 680px; color: #c5d7e3; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: white; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 42px; max-width: 720px; }
.hero-stats div { padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.06); }
.hero-stats strong, .hero-stats span { display: block; }
.hero-stats strong { font-size: 1rem; color: white; }
.hero-stats span { color: #a9c0d0; font-size: .76rem; }
.profile-card { position: relative; width: min(390px, 90vw); aspect-ratio: 4/5; margin-inline: auto; display: grid; place-items: end center; border-radius: 40px; background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 35px 80px rgba(0,0,0,.28); overflow: hidden; }
.profile-card::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), #78d8ff); top: 56px; left: 50%; transform: translateX(-50%); opacity: .92; }
.profile-card img { position: relative; z-index: 3; width: 90%; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; z-index: 1; }
.orbit-a { width: 330px; height: 160px; transform: rotate(18deg); top: 112px; }
.orbit-b { width: 210px; height: 380px; transform: rotate(56deg); top: 40px; }
.profile-badge { position: absolute; z-index: 5; padding: 10px 14px; border-radius: 14px; color: var(--navy); background: rgba(255,255,255,.92); box-shadow: 0 14px 28px rgba(0,0,0,.17); font-size: .78rem; font-weight: 900; }
.profile-badge span { color: var(--teal-dark); }
.badge-top { top: 38px; left: 22px; }
.badge-bottom { right: 18px; bottom: 24px; }
.photo-note { margin-top: 14px; text-align: center; font-size: .78rem; color: #a9c0d0; }

.trust-strip { padding: 18px 0; background: var(--teal); color: var(--navy); }
.trust-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 40px; font-weight: 850; font-size: .9rem; }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.section-heading h2 { margin: 14px 0 18px; max-width: 720px; font-size: clamp(2.25rem, 5vw, 4.1rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p { color: var(--muted); font-size: 1.05rem; max-width: 650px; }
.section-heading.centered { text-align: center; }
.section-heading.centered h2, .section-heading.centered p { margin-inline: auto; }
.about-panel { padding: 36px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-panel > p:first-child { margin-top: 0; font-size: 1.18rem; }
.about-panel > p { color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.mini-grid div { padding: 16px; border-radius: 14px; background: var(--surface-2); }
.mini-grid span, .mini-grid strong { display: block; }
.mini-grid span { color: var(--muted); font-size: .75rem; }
.mini-grid strong { margin-top: 4px; font-size: .95rem; }

.section-dark { color: white; background: var(--navy); }
.section-dark .eyebrow { color: var(--teal); }
.philosophy { max-width: 940px; margin: 48px auto 58px; padding: 0; border: 0; text-align: center; color: #e8f7fa; font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.35; font-weight: 750; }
.cards { display: grid; gap: 18px; }
.three-cards { grid-template-columns: repeat(3, 1fr); }
.info-card { padding: 30px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); }
.card-icon { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 32px; border-radius: 14px; background: var(--teal); color: var(--navy); font-size: 1.2rem; font-weight: 900; }
.info-card h3 { margin: 0 0 10px; font-size: 1.3rem; }
.info-card p { margin: 0; color: #c3d6e1; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.value-card { padding: 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.value-card > span { color: var(--teal-dark); font-size: .76rem; font-weight: 900; }
.value-card h3 { margin: 22px 0 8px; }
.value-card p { margin: 0; color: var(--muted); }

.portfolio-section { background: var(--surface-2); }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.split-heading p { max-width: 420px; margin-bottom: 24px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.project-card { overflow: hidden; display: grid; grid-template-columns: 40% 60%; min-height: 275px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-visual { display: grid; place-items: center; min-height: 100%; color: white; font-size: 2rem; font-weight: 950; letter-spacing: -.05em; }
.visual-rph { background: linear-gradient(135deg, #0b2545, #2e6f95); }
.visual-video { background: linear-gradient(135deg, #7f5af0, #2cb67d); }
.visual-stem { background: linear-gradient(135deg, #136a8a, #267871); }
.visual-digital { background: linear-gradient(135deg, #e85d04, #f48c06); }
.project-body { padding: 28px; }
.project-type { color: var(--teal-dark); text-transform: uppercase; letter-spacing: .1em; font-size: .69rem; font-weight: 900; }
.project-body h3 { margin: 10px 0; font-size: 1.35rem; }
.project-body p { color: var(--muted); font-size: .92rem; }
.status-pill { display: inline-flex; margin-top: 8px; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .7rem; font-weight: 850; }

.skills-layout { align-items: center; }
.skill-list { display: grid; gap: 22px; padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.skill > div:first-child { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 9px; }
.skill span { font-weight: 750; }
.skill strong { color: var(--muted); font-size: .75rem; }
.bar { height: 9px; overflow: hidden; border-radius: 999px; background: var(--surface-2); }
.bar i { display: block; width: var(--level); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-dark), var(--cyan)); }

.roadmap-section { background: var(--navy); color: white; }
.roadmap-section .eyebrow { color: var(--teal); }
.timeline { position: relative; max-width: 900px; margin: 54px auto 0; }
.timeline::before { content: ""; position: absolute; left: 109px; top: 12px; bottom: 12px; width: 2px; background: rgba(255,255,255,.18); }
.timeline-item { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 44px; padding: 0 0 44px; }
.timeline-item::before { content: ""; position: absolute; left: 102px; top: 10px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); border: 4px solid var(--navy); }
.timeline-year { color: var(--teal); font-weight: 900; }
.timeline-item h3 { margin: 0 0 8px; }
.timeline-item p { margin: 0; color: #bfd0dc; }

.reflection-section { padding-top: 78px; }
.reflection-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; padding: 56px; border-radius: 32px; background: linear-gradient(135deg, #dff8f4, #edf8fc); border: 1px solid #cfe7e5; color: var(--navy); }
body.dark .reflection-card { background: linear-gradient(135deg, #123c42, #10283e); color: white; border-color: #245060; }
.reflection-card h2 { margin: 12px 0 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; }
.reflection-card p { margin: 0; font-size: 1.1rem; }

.contact-section { padding-top: 42px; }
.contact-card { padding: 58px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.contact-card h2 { max-width: 740px; margin: 14px auto 10px; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.1; }
.contact-card > p { color: var(--muted); }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.contact-note { font-size: .78rem; }
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-wrap { display: flex; justify-content: space-between; gap: 30px; align-items: center; color: var(--muted); font-size: .82rem; }
.footer-wrap strong { color: var(--ink); }
.footer-wrap p { margin: 2px 0; }
.back-top { position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: white; box-shadow: var(--shadow); }
.reveal { opacity: 0; transform: translateY(18px); transition: .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .main-nav { position: fixed; top: 76px; left: 20px; right: 20px; display: none; flex-direction: column; align-items: stretch; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-actions .icon-btn { display: none; }
  .hero-content, .two-col, .reflection-card { grid-template-columns: 1fr; }
  .hero-content { gap: 50px; }
  .hero-copy { text-align: center; }
  .hero-intro, .hero-tagline, .hero-stats { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .three-cards, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { grid-template-columns: 1fr; }
  .project-visual { min-height: 170px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 76px 0; }
  .brand small { display: none; }
  .brand { min-width: auto; }
  .nav-actions .btn { display: none; }
  .hero { min-height: auto; }
  .hero-content { padding-block: 70px; }
  .hero h1 { font-size: clamp(3.8rem, 22vw, 5.7rem); }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .trust-items { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .trust-items span { flex: 0 0 auto; }
  .mini-grid, .three-cards, .values-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .split-heading { display: block; }
  .about-panel, .skill-list { padding: 24px; }
  .timeline::before { left: 15px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding-left: 44px; }
  .timeline-item::before { left: 8px; }
  .reflection-card, .contact-card { padding: 34px 24px; }
  .footer-wrap { display: block; }
  .footer-wrap > p { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .project-card { transition: none; }
}

@media print {
  @page { size: A4; margin: 14mm; }
  :root { --cream: #fff; --surface: #fff; --surface-2: #f4f7f7; --ink: #172033; --muted: #526173; --line: #d7e0e5; }
  body { background: white !important; color: var(--ink) !important; font-size: 10.3pt; }
  .site-header, .trust-strip, .back-top, .hero-actions, .contact-actions, .photo-note, .nav-toggle { display: none !important; }
  .container { width: 100%; }
  .hero { min-height: auto; background: var(--navy) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; page-break-after: always; }
  .hero-content { grid-template-columns: 1.1fr .9fr; gap: 26px; padding: 20mm 4mm; }
  .hero h1 { font-size: 58pt; }
  .hero-tagline { font-size: 18pt; }
  .hero-intro { font-size: 10.5pt; }
  .profile-card { width: 270px; }
  .section { padding: 12mm 0; }
  .section-dark, .roadmap-section { background: white !important; color: var(--ink) !important; }
  .section-dark .eyebrow, .roadmap-section .eyebrow { color: var(--teal-dark) !important; }
  .philosophy { color: var(--navy) !important; font-size: 18pt; margin: 8mm auto 10mm; }
  .info-card { color: var(--ink); background: #f5f8f8 !important; border-color: var(--line); }
  .info-card p, .timeline-item p { color: var(--muted) !important; }
  .section-heading h2 { font-size: 27pt; }
  .cards, .values-grid, .portfolio-grid { gap: 10px; }
  .three-cards { grid-template-columns: repeat(3, 1fr); }
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .value-card, .info-card, .project-card, .about-panel, .skill-list { break-inside: avoid; box-shadow: none; }
  .portfolio-section { background: white !important; }
  .project-card { grid-template-columns: 34% 66%; min-height: 190px; }
  .project-visual { min-height: 190px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .timeline::before { background: var(--line); }
  .timeline-item::before { border-color: white; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .reflection-card { break-inside: avoid; background: #edf8f7 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .contact-section { padding-bottom: 0; }
  .site-footer { padding-top: 8mm; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { text-decoration: none; }
}
