 :root {
  --navy: #101828; --navy-2: #1D3557; --ink: #172033; --muted: #64748B;
  --blue: #38BDF8; --blue-strong: #2563EB; --paper: #F1F5F9; --line: #D9E2EF;
  --purple: #2563EB; --pink: #FF4D9D; --pink-soft: #F9A8D4;
  --white: #fff; --font: "DM Sans", sans-serif; --display: "Manrope", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.site-shell { overflow: hidden; }
.topbar { height: 82px; padding: 0 max(6.5vw, 24px); display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: white; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 14px var(--display); letter-spacing: .15em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; color: var(--blue); font: 800 17px var(--display); letter-spacing: -.08em; }
.brand-dot { color: var(--blue); }
.nav { display: flex; align-items: center; gap: 35px; font-size: 12px; color: #c4ccda; }
.nav a { transition: color .2s; } .nav a:hover { color: white; }
.nav-contact { color: white !important; border: 1px solid #46546a; border-radius: 5px; padding: 12px 16px; }
.nav-contact span { color: var(--blue); margin-left: 10px; }
.menu-toggle { display: none; }
.section { padding: 112px max(9vw, 26px); }
.hero { min-height: 660px; padding-top: 90px; padding-bottom: 85px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 5vw; background: var(--navy); color: white; position: relative; }
.hero-copy { max-width: 650px; position: relative; z-index: 2; }
.eyebrow, .section-kicker { font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.eyebrow { color: #aab7ca; display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #8cb9ff; box-shadow: 0 0 0 5px rgba(140,185,255,.12); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -.055em; }
h1 { font-size: clamp(46px, 5.7vw, 76px); line-height: 1.08; margin-bottom: 25px; font-weight: 700; }
h1 span, h2 span { color: var(--blue); }
.hero-intro { color: #b5c0d0; font-size: 15px; line-height: 1.9; max-width: 550px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 28px; padding: 15px 19px; border-radius: 4px; font-size: 12px; font-weight: 700; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: #101a2b; }
.button-primary:hover { background: #b1d0ff; }
.button-ghost { border: 1px solid #46546a; color: white; }
.button-ghost span { color: var(--blue); }
.hero-meta { display: flex; gap: 48px; margin-top: 62px; }
.hero-meta div { display: grid; gap: 8px; }
.meta-label { color: #77869b; font-size: 9px; letter-spacing: .16em; font-weight: 700; }
.hero-meta strong, .hero-meta a { color: #e1e7ef; font-size: 12px; font-weight: 500; }

.hero-visual { min-height: 470px; position: relative; display: grid; place-items: center; }
.profile-frame { position: relative; width: min(100%, 390px); height: 465px; border-radius: 190px 190px 12px 12px; overflow: hidden; border: 1px solid rgba(174,210,255,.55); box-shadow: 0 28px 75px rgba(10,0,30,.35); background: #1D3557; }
.profile-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 27%; filter: saturate(.92); }
.profile-frame:after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(39,0,93,.86)); }
.profile-outline { position: absolute; inset: 13px; border: 1px solid rgba(228,241,255,.42); border-radius: 180px 180px 7px 7px; z-index: 1; pointer-events: none; }
.profile-caption { position: absolute; z-index: 2; bottom: 26px; left: 27px; display: grid; gap: 5px; color: white; }
.profile-caption span { font: 800 23px var(--display); letter-spacing: .12em; }
.profile-caption small { color: #38BDF8; font-size: 9px; letter-spacing: .2em; }
.profile-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #F1F5F9; border: 1px solid rgba(39,0,93,.12); border-radius: 7px; box-shadow: 0 15px 38px rgba(22,0,55,.24); color: #101828; }
.profile-float strong, .profile-float small { display: block; }
.profile-float strong { font: 700 11px var(--display); }
.profile-float small { color: #64748B; font-size: 9px; margin-top: 4px; }
.float-symbol { width: 36px; height: 36px; display: grid; place-items: center; color: white; background: #FF4D9D; border-radius: 5px; font: 800 12px var(--display); }
.profile-float-top { top: 6%; right: 0; animation: float-orbit-top 22s ease-in-out infinite; }
.profile-float-bottom { left: auto; right: 0; bottom: -1%; animation: float-orbit-bottom 26s ease-in-out infinite; }
.visual-index { position: absolute; right: 0; bottom: 1%; font-size: 9px; letter-spacing: .18em; color: #667891; }
.scroll-note { position: absolute; bottom: 25px; left: max(9vw, 26px); color: #77869b; font-size: 8px; letter-spacing: .2em; display: flex; align-items: center; gap: 12px; }
.scroll-note span { height: 1px; width: 30px; background: var(--blue); }
.stats-strip { background: #1D3557; color: white; padding: 30px max(9vw, 26px); display: grid; grid-template-columns: repeat(4,1fr); gap: 25px; }
.stat { border-right: 1px solid #334155; display: grid; gap: 6px; } .stat:last-child { border: 0; }
.stat strong { font: 700 31px var(--display); letter-spacing: -.05em; } .stat strong span { color: var(--blue); }
.stat small { color: #91a0b5; font-size: 8px; letter-spacing: .14em; }
.section-kicker { color: var(--blue-strong); margin-bottom: 28px; }
.section-heading-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8vw; align-items: end; }
h2 { font-size: clamp(36px, 4.3vw, 55px); line-height: 1.12; margin-bottom: 0; }
.about-text { max-width: 510px; color: #626d7e; font-size: 13px; line-height: 1.9; }
.about-text p:last-child { margin-bottom: 0; }
.focus-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 75px; border-top: 1px solid var(--line); }
.focus-item { padding: 27px 30px 10px 0; border-right: 1px solid var(--line); margin-right: 30px; }
.focus-item:last-child { border: 0; margin: 0; }
.focus-number { color: var(--blue-strong); font: 700 10px var(--display); }
.focus-item h3 { font: 700 19px/1.4 var(--display); letter-spacing: -.04em; margin: 24px 0 10px; }
.focus-item p { color: var(--muted); font-size: 11px; line-height: 1.7; max-width: 230px; margin: 0; }
.experience-section, .education-section { background: #F1F5F9; }
.section-inner { padding-top: 105px; padding-bottom: 110px; }
.career-stairs { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; align-items: end; border-bottom: 1px solid #c5d4e8; padding: 24px 0 0; }
.career-step { min-width: 0; display: flex; flex-direction: column; justify-content: end; position: relative; }
.career-label { min-height: 115px; padding: 0 5px 15px; display: flex; flex-direction: column; justify-content: end; }
.career-label span { color: #2563EB; font-size: 9px; font-weight: 800; letter-spacing: .12em; margin-bottom: 9px; }
.career-label strong { color: #101828; font: 800 15px/1.3 var(--display); letter-spacing: -.035em; }
.career-label small { color: #64748B; font-size: 9px; line-height: 1.5; margin-top: 7px; }
.career-bar { height: var(--bar-height); background: linear-gradient(180deg, #38BDF8 0%, #FF4D9D 100%); border-radius: 7px 7px 0 0; position: relative; display: flex; align-items: flex-start; justify-content: flex-end; padding: 13px; overflow: hidden; transition: filter .25s, transform .25s; }
.career-bar:after { content: ""; position: absolute; width: 160%; height: 1px; left: -20%; top: 26px; background: rgba(255,255,255,.45); transform: rotate(-12deg); }
.career-bar b { position: relative; z-index: 1; color: #101828; font: 800 11px var(--display); }
.career-step:hover .career-bar { filter: saturate(1.2); transform: translateY(-5px); }
.career-step.active .career-bar { background: linear-gradient(180deg, #FF4D9D 0%, #1D3557 100%); box-shadow: 0 12px 28px rgba(148,0,255,.22); }
.career-step.active .career-bar b { color: white; }
.step-1 { --bar-height: 105px; } .step-2 { --bar-height: 145px; } .step-3 { --bar-height: 190px; } .step-4 { --bar-height: 235px; } .step-5 { --bar-height: 285px; }
.career-detail { min-height: 150px; padding: 16px 5px 0; }
.career-detail strong { color: #101828; font: 700 11px/1.4 var(--display); display: block; }
.career-detail p { color: #64748B; font-size: 9px; line-height: 1.7; margin: 8px 0 0; }

.experience-heading { margin-bottom: 60px; }
.experience-heading > p, .expertise-section .section-heading-row > p { color: var(--muted); font-size: 13px; line-height: 1.9; max-width: 420px; margin: 0 0 4px; }
.timeline { border-top: 1px solid #cbdcf2; }
.timeline-item { display: grid; grid-template-columns: 170px 24px 1fr; gap: 25px; padding: 30px 0 34px; border-bottom: 1px solid #cbdcf2; }
.timeline-date { color: #778397; font-size: 9px; font-weight: 700; letter-spacing: .12em; padding-top: 6px; }
.timeline-marker { width: 10px; height: 10px; border: 2px solid #8ca2bf; border-radius: 50%; margin-top: 5px; position: relative; }
.timeline-marker:after { content: ""; position: absolute; top: 8px; left: 2px; height: calc(100% + 66px); width: 1px; background: #b9a2d4; }
.timeline-item:last-child .timeline-marker:after { display: none; }
.current .timeline-marker { background: var(--blue-strong); border-color: var(--blue-strong); box-shadow: 0 0 0 5px rgba(57,119,213,.12); }
.job-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.timeline-content h3 { font: 700 19px var(--display); letter-spacing: -.035em; margin-bottom: 7px; }
.company { color: #596578; font-size: 11px; margin-bottom: 18px; } .company span { color: #8993a2; }
.job-tag { font-size: 8px; letter-spacing: .13em; color: #2e69bc; border: 1px solid #BFDBFE; padding: 7px 9px; border-radius: 3px; white-space: nowrap; }
.timeline-content ul { padding-left: 16px; margin: 0; color: #667184; font-size: 11px; line-height: 1.9; max-width: 760px; }
.timeline-content li { padding-left: 4px; margin-bottom: 3px; }
.internship { color: #8490a1; font: 500 11px var(--font); letter-spacing: 0; }
.expertise-section { background: white; }
.expertise-section .section-heading-row { margin-bottom: 60px; }
.skills-layout { border-top: 1px solid var(--line); }
.skill-group { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.skill-index { color: var(--blue-strong); font: 700 11px var(--display); padding-top: 4px; }
.skill-group h3 { font: 700 16px var(--display); letter-spacing: -.025em; margin-bottom: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 10px; color: #566276; background: #EAF2FF; border: 1px solid #D9E2EF; border-radius: 3px; padding: 8px 11px; }
.education-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 9vw; }
.education-grid h2 { font-size: clamp(34px,3.7vw,46px); margin-bottom: 38px; }
.education-entry { border-top: 1px solid #cbdcf2; padding: 20px 0 16px; }
.education-year { color: var(--blue-strong); font-size: 9px; letter-spacing: .13em; font-weight: 700; }
.education-entry h3 { font: 700 16px var(--display); margin: 12px 0 5px; }
.education-entry p { color: #758094; font-size: 11px; margin: 0; }
.cert-list { list-style: none; padding: 0; margin: 0; }
.cert-list li { display: flex; align-items: flex-start; gap: 13px; padding: 13px 0; border-top: 1px solid #cbdcf2; }
.cert-icon { width: 24px; height: 24px; display: grid; place-items: center; background: #D9E2EF; color: var(--blue-strong); border-radius: 4px; flex: 0 0 auto; }
.cert-list strong, .cert-list small { display: block; }
.cert-list strong { font-size: 11px; line-height: 1.5; }
.cert-list small { color: #8791a0; font-size: 9px; margin-top: 4px; line-height: 1.5; }
.language-row { display: flex; align-items: center; gap: 55px; padding-top: 28px; margin-top: 30px; border-top: 1px solid #cbdcf2; }
.language-label { color: #7d899b; font-size: 9px; font-weight: 700; letter-spacing: .15em; margin-right: 10px; }
.language-row strong, .language-row small { display: block; } .language-row strong { font-size: 11px; } .language-row small { color: #8791a0; font-size: 9px; margin-top: 4px; }
.contact-section { background: var(--navy); color: white; }
.contact-inner { padding-top: 95px; padding-bottom: 100px; }
.contact-section .section-kicker { color: var(--blue); }
.contact-content { display: grid; grid-template-columns: 1fr .8fr; gap: 9vw; align-items: end; }
.contact-content h2 { font-size: clamp(40px,5vw,62px); margin-bottom: 20px; }
.contact-content p { color: #a8b5c8; font-size: 12px; line-height: 1.8; max-width: 420px; margin: 0; }
.contact-links { border-top: 1px solid #394960; }
.contact-links a, .contact-location { display: grid; grid-template-columns: 85px 1fr 20px; align-items: center; gap: 12px; padding: 19px 0; border-bottom: 1px solid #394960; }
.contact-links span { color: #8091a9; font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.contact-links strong { font-size: 11px; font-weight: 500; color: #e8edf5; }
.contact-links b { color: var(--blue); font-weight: 400; }
.contact-location { grid-template-columns: 85px 1fr; }
.footer { background: #0B1220; color: #77869b; min-height: 85px; padding: 20px max(6.5vw,24px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer .brand { color: white; font-size: 11px; } .footer .brand-mark { width: 29px; height: 29px; font-size: 14px; }
.footer p { font-size: 9px; margin: 0; } .footer > span { font-size: 8px; letter-spacing: .12em; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr .8fr; gap: 20px; }
  .hero-visual { transform: scale(.88); }
  .section { padding-left: 7vw; padding-right: 7vw; }
  .stats-strip { padding-left: 7vw; padding-right: 7vw; }
}

@media (max-width: 1000px) {
  .career-stairs { gap: 9px; }
  .career-label strong { font-size: 12px; }
  .career-detail p { font-size: 8px; }
}
@media (max-width: 700px) {
  .topbar { height: 70px; padding: 0 22px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; border: 0; background: transparent; padding: 8px; }
  .menu-toggle span { display: block; width: 22px; height: 1px; background: white; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 22px; background: #142137; flex-direction: column; align-items: stretch; gap: 20px; }
  .nav.open { display: flex; }
  .nav-contact { text-align: center; }
  .hero { display: block; padding: 75px 25px 95px; }
  h1 { font-size: clamp(43px, 12vw, 62px); }
  .hero-intro { font-size: 13px; }
  .hero-meta { gap: 28px; margin-top: 42px; flex-wrap: wrap; }
  .hero-visual { min-height: 390px; margin: 38px 0 0; transform: none; }
  .profile-frame { width: min(82%, 330px); height: 385px; }
  .profile-float-top { right: -1%; top: 7%; }
  .profile-float-bottom { left: auto; right: 0; bottom: -1%; }
  .scroll-note { left: 25px; bottom: 25px; }
  .stats-strip { grid-template-columns: repeat(2,1fr); padding: 27px 25px; row-gap: 24px; }
  .stat { min-height: 55px; } .stat:nth-child(2) { border: 0; } .stat strong { font-size: 27px; }
  .section { padding: 76px 25px; }
  .section-heading-row, .education-grid, .contact-content { grid-template-columns: 1fr; gap: 25px; }
  .about-text { margin-top: 5px; }
  .focus-grid { grid-template-columns: 1fr; margin-top: 45px; }
  .focus-item { border-right: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 22px 0; }
  .focus-item h3 { margin-top: 13px; }
  .section-inner { padding-top: 76px; padding-bottom: 80px; }
  .experience-heading { margin-bottom: 38px; }
  .career-stairs { grid-template-columns: 1fr; gap: 0; border: 0; padding-top: 0; }
  .career-step { display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 18px 0; border-bottom: 1px solid #cbdcf2; }
  .career-label { grid-column: 2; grid-row: 1; min-height: 0; padding: 0 0 12px; }
  .career-bar { grid-column: 1; grid-row: 1 / 3; height: 100% !important; min-height: 92px; border-radius: 5px; align-items: flex-start; justify-content: center; padding: 10px 0; }
  .career-bar:after { display: none; }
  .career-detail { grid-column: 2; grid-row: 2; min-height: 0; padding: 0; }
  .career-detail p { font-size: 10px; }

  .timeline-item { grid-template-columns: 1fr 15px; gap: 12px; padding: 24px 0; }
  .timeline-date { grid-column: 1; grid-row: 1; }
  .timeline-marker { grid-column: 2; grid-row: 1; }
  .timeline-content { grid-column: 1 / -1; grid-row: 2; padding-left: 0; }
  .job-top { gap: 10px; } .timeline-content h3 { font-size: 17px; }
  .timeline-content ul { font-size: 10px; }
  .skill-group { grid-template-columns: 35px 1fr; gap: 10px; }
  .education-grid { gap: 45px; }
  .language-row { flex-wrap: wrap; gap: 22px 35px; }
  .language-label { width: 100%; }
  .contact-content { gap: 35px; }
  .contact-links a, .contact-location { grid-template-columns: 70px 1fr 15px; gap: 8px; }
  .contact-location { grid-template-columns: 70px 1fr; }
  .contact-links strong { font-size: 10px; }
  .footer { padding: 22px 25px; flex-wrap: wrap; }
  .footer p { order: 3; width: 100%; }
  .footer > span { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

:focus-visible { outline: 3px solid #FF4D9D; outline-offset: 3px; }
::selection { background: #FF4D9D; color: white; }

.reveal-ready { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal-ready.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal-ready { opacity: 1; transform: none; } }


/* Profile information cards: slow, restrained orbital movement.
   The lower card stays on the right side and below the portrait caption. */
.profile-visual { isolation: isolate; }
.profile-frame { z-index: 1; }
.profile-caption { z-index: 4; }
.profile-float { z-index: 6; will-change: transform; }
.profile-float-top {
  top: 12%;
  right: -5%;
  animation: float-orbit-top 22s ease-in-out infinite;
}
.profile-float-bottom {
  top: auto;
  bottom: 2%;
  right: -7%;
  left: auto;
  animation: float-orbit-bottom 26s ease-in-out infinite;
}
@keyframes float-orbit-top {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-12px, 13px) rotate(-1deg); }
  50% { transform: translate(-22px, 28px) rotate(0deg); }
  75% { transform: translate(-9px, 14px) rotate(1deg); }
}
@keyframes float-orbit-bottom {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -12px) rotate(1deg); }
  50% { transform: translate(18px, -25px) rotate(0deg); }
  75% { transform: translate(8px, -12px) rotate(-1deg); }
}
@media (max-width: 700px) {
  .profile-float-top {
    top: 6%;
    right: 0;
    animation-duration: 24s;
  }
  .profile-float-bottom {
    top: auto;
    bottom: -1%;
    right: 0;
    left: auto;
    animation-duration: 28s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-float-top, .profile-float-bottom { animation: none !important; }
}


/* Orbital layout refinement: one information card on each side of the portrait. */
.profile-float-top {
  top: 12%;
  right: -5%;
  left: auto;
  bottom: auto;
  animation: float-orbit-top 22s ease-in-out infinite;
}
.profile-float-bottom {
  top: 56%;
  left: -12%;
  right: auto;
  bottom: auto;
  animation: float-orbit-left 26s ease-in-out infinite;
}
@keyframes float-orbit-left {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(11px, -10px) rotate(-1deg); }
  50% { transform: translate(20px, 8px) rotate(0deg); }
  75% { transform: translate(8px, 13px) rotate(1deg); }
}
@media (max-width: 700px) {
  .profile-float-top {
    top: 6%;
    right: 0;
    left: auto;
  }
  .profile-float-bottom {
    top: 55%;
    left: 0;
    right: auto;
    bottom: auto;
    animation-duration: 28s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .profile-float-top, .profile-float-bottom { animation: none !important; }
}


/* UX/UI refinement — restrained technology details, consistent with the V2 palette. */
.hero { background-image: radial-gradient(circle at 82% 22%, rgba(148,0,255,.14), transparent 28%); }
.hero-copy { max-width: 680px; }
.hero-tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 23px; }
.hero-tech-tags span {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px;
  color: #CBD5E1; border: 1px solid rgba(174,210,255,.2); border-radius: 4px;
  background: rgba(255,255,255,.035); font-size: 9px; letter-spacing: .04em;
}
.tech-glyph { width: 12px; height: 12px; display: inline-block; position: relative; opacity: .9; }
.glyph-network:before, .glyph-network:after { content: ""; position: absolute; border: 1px solid #38BDF8; border-radius: 50%; width: 4px; height: 4px; }
.glyph-network:before { left: 0; top: 4px; box-shadow: 7px -3px 0 -1px #101828, 7px -3px 0 0 #38BDF8, 7px 4px 0 -1px #101828, 7px 4px 0 0 #38BDF8; }
.glyph-network:after { width: 7px; height: 1px; border: 0; background: #38BDF8; left: 3px; top: 5px; transform: rotate(-18deg); }
.glyph-code:before { content: "</>"; color: #38BDF8; font: 700 10px monospace; position: absolute; top: -1px; left: 0; }
.glyph-flow:before { content: "↗"; color: #38BDF8; font: 700 14px var(--font); position: absolute; top: -3px; left: 0; }
.focus-grid { gap: 0; }
.focus-item { padding: 25px 28px 18px 0; transition: transform .25s ease, border-color .25s ease; }
.focus-item:hover { transform: translateY(-5px); }
.focus-card-top { display: flex; align-items: center; justify-content: space-between; min-height: 34px; }
.line-icon, .skill-icon {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  color: #2563EB; background: #EAF2FF; border: 1px solid #BFDBFE; border-radius: 9px;
}
.line-icon svg, .skill-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.focus-item h3 { margin-top: 19px; }
.focus-item p { max-width: 255px; }
.skill-group { grid-template-columns: 42px 42px 1fr; align-items: start; }
.skill-icon { width: 34px; height: 34px; border-radius: 8px; }
.skill-icon svg { width: 17px; height: 17px; }
.skill-group h3 { margin-top: 4px; }
.chips span { transition: color .2s, border-color .2s, background .2s; }
.chips span:hover { color: #1D3557; background: #EAF2FF; border-color: #93C5FD; }
.timeline-item { transition: background .25s, padding-left .25s; }
.timeline-item:hover { background: rgba(255,255,255,.42); padding-left: 12px; }
.career-bar { cursor: default; }
.career-step.active .career-label strong { color: #1D3557; }
.contact-links a { transition: padding-left .2s, background .2s; }
.contact-links a:hover { padding-left: 8px; background: rgba(255,255,255,.035); }
.button { box-shadow: 0 0 0 rgba(148,0,255,0); }
.button-primary:hover { box-shadow: 0 8px 24px rgba(148,0,255,.22); }
.nav a:not(.nav-contact) { position: relative; }
.nav a:not(.nav-contact):after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: #38BDF8; transition: right .2s; }
.nav a:not(.nav-contact):hover:after { right: 0; }
.section-kicker { display: flex; align-items: center; gap: 10px; }
.section-kicker:after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5; }
@media (max-width: 700px) {
  .hero-tech-tags { margin-top: -5px; margin-bottom: 19px; }
  .focus-item { padding-right: 0; }
  .skill-group { grid-template-columns: 28px 34px 1fr; gap: 8px; }
  .skill-group h3 { font-size: 14px; }
  .timeline-item:hover { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .focus-item, .chips span, .timeline-item, .contact-links a, .button, .nav a:after { transition: none !important; }
}


/* Responsive correction: keep hero content inside the viewport. */
html, body { max-width: 100%; overflow-x: hidden; }
.hero { grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); }
.hero-copy { min-width: 0; width: 100%; }
.hero-visual { min-width: 0; }
.hero h1 { max-width: 100%; overflow-wrap: normal; }
.profile-visual .visual-index {
  bottom: -5px;
  right: 0;
  z-index: 2;
  padding: 4px 7px;
  background: rgba(39,0,93,.78);
  border-radius: 3px;
}

/* Tablet: give the headline and portrait enough room without clipping. */
@media (min-width: 701px) and (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 22px;
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .hero h1 { font-size: clamp(42px, 5.2vw, 58px); }
  .hero-visual { transform: scale(.92); transform-origin: center; }
  .profile-frame { width: min(100%, 350px); }
  .profile-float-bottom { left: -5%; }
}

/* Mobile: stack the hero and give the portrait a dedicated, unclipped stage. */
@media (max-width: 700px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 64px 24px 88px;
    gap: 0;
    min-height: auto;
  }
  .hero-copy { width: 100%; max-width: none; }
  .hero h1 {
    font-size: clamp(39px, 10.8vw, 54px);
    line-height: 1.08;
    max-width: 100%;
    letter-spacing: -.055em;
  }
  .hero-intro { max-width: 100%; }
  .hero-meta { margin-top: 32px; gap: 24px; }
  .hero-visual {
    width: 100%;
    min-height: 440px;
    height: 440px;
    margin: 34px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: none;
    overflow: visible;
  }
  .profile-frame {
    width: min(78vw, 310px);
    height: 390px;
    flex: 0 0 auto;
    margin: 0 auto;
    border-radius: 160px 160px 10px 10px;
  }
  .profile-frame img {
    object-fit: cover;
    object-position: center 18%;
  }
  .profile-outline { inset: 10px; }
  .profile-caption {
    left: 22px;
    bottom: 22px;
    z-index: 8;
  }
  .profile-caption span { font-size: 21px; }
  .profile-caption small { font-size: 8px; }
  .profile-float {
    max-width: 225px;
    padding: 10px 12px;
    gap: 9px;
  }
  .profile-float strong { font-size: 10px; }
  .profile-float small { font-size: 8px; }
  .float-symbol { width: 31px; height: 31px; font-size: 11px; }
  .profile-float-top {
    top: 5px;
    right: max(0px, calc((100% - 340px) / 2));
    left: auto;
    z-index: 7;
    animation: float-orbit-top 24s ease-in-out infinite;
  }
  .profile-float-bottom {
    top: auto;
    bottom: 3px;
    left: max(0px, calc((100% - 340px) / 2));
    right: auto;
    z-index: 7;
    animation: float-orbit-left 28s ease-in-out infinite;
  }
  .profile-visual .visual-index {
    right: 4px;
    bottom: -2px;
    font-size: 7px;
    z-index: 3;
  }
  .scroll-note {
    bottom: 24px;
    left: 24px;
  }
  .stats-strip { position: relative; z-index: 1; }
}

/* Small phones: reduce card width and keep the face/name visible. */
@media (max-width: 390px) {
  .hero { padding-left: 19px; padding-right: 19px; }
  .hero-visual { min-height: 405px; height: 405px; }
  .profile-frame { width: min(76vw, 285px); height: 360px; }
  .profile-float { max-width: 205px; }
  .profile-float-top { right: 0; }
  .profile-float-bottom { left: 0; }
  .profile-caption { left: 18px; bottom: 19px; }
  .scroll-note { left: 19px; }
}


/* Midnight Navy + restrained neon-pink accent system. */
:root {
  --navy: #101828;
  --navy-2: #1D3557;
  --ink: #172033;
  --muted: #64748B;
  --blue: #38BDF8;
  --blue-strong: #2563EB;
  --paper: #F1F5F9;
  --line: #D9E2EF;
  --purple: #2563EB;
  --pink: #FF4D9D;
  --pink-soft: #F9A8D4;
}
.hero {
  background-color: #101828;
  background-image:
    radial-gradient(circle at 82% 22%, rgba(56,189,248,.12), transparent 28%),
    radial-gradient(circle at 12% 88%, rgba(255,77,157,.075), transparent 24%);
}
.hero h1 span { color: #38BDF8; }
.status-dot {
  background: #FF4D9D;
  box-shadow: 0 0 0 5px rgba(255,77,157,.14), 0 0 16px rgba(255,77,157,.28);
}
.brand-mark { color: #38BDF8; }
.brand-dot { color: #FF4D9D; }
.nav-contact span, .button-ghost span { color: #FF4D9D; }
.button-primary { background: #2563EB; color: #FFFFFF; }
.button-primary:hover { background: #1D4ED8; box-shadow: 0 8px 24px rgba(37,99,235,.25); }
.profile-caption small { color: #F9A8D4; }
.float-symbol { background: #2563EB; color: #FFFFFF; }
.profile-float-top .float-symbol { background: #FF4D9D; color: #FFFFFF; }
.profile-float-bottom .float-symbol { background: #2563EB; color: #FFFFFF; }
.section-kicker { color: #2563EB; }
.stat strong span { color: #FF4D9D; }
.focus-number { color: #2563EB; }
.line-icon, .skill-icon {
  color: #2563EB;
  background: #EAF2FF;
  border-color: #BFDBFE;
}
.focus-item:hover .line-icon,
.skill-group:hover .skill-icon {
  color: #FF4D9D;
  background: #FFF0F6;
  border-color: #F9A8D4;
}
.career-label span { color: #2563EB; }
.career-step.active .career-bar {
  background: linear-gradient(180deg, #38BDF8 0%, #2563EB 72%, #1D3557 100%);
  box-shadow: 0 12px 28px rgba(37,99,235,.20);
}
.career-step.active .career-bar b { color: #FFFFFF; }
.career-step.active .career-label span { color: #DB2777; }
.chips span:hover {
  color: #1D3557;
  background: #EAF2FF;
  border-color: #93C5FD;
}
.education-year { color: #2563EB; }
.cert-icon { color: #2563EB; background: #DBEAFE; }
.contact-section .section-kicker { color: #38BDF8; }
.contact-links b { color: #FF4D9D; }
::selection { background: #FF4D9D; color: #FFFFFF; }
:focus-visible { outline-color: #FF4D9D; }


/* =========================================================
   PROFESSIONAL TYPOGRAPHY SYSTEM
   Font pairing: Manrope (headings) + DM Sans (body/UI)
   Base: 16px | supporting text: 12–14px | labels: 11–12px
   ========================================================= */
:root {
  --font-xs: 0.6875rem;   /* 11px: compact labels only */
  --font-sm: 0.8125rem;   /* 13px: metadata / compact UI */
  --font-base: 1rem;       /* 16px: body copy */
  --font-lg: 1.125rem;    /* 18px: lead copy */
  --font-xl: 1.25rem;     /* 20px: card headings */
  --font-2xl: 1.5rem;     /* 24px: section subheadings */
  --font-3xl: 2rem;       /* 32px: compact display */
  --font-4xl: 3rem;       /* 48px: section headings */
  --body-leading: 1.7;
  --heading-leading: 1.12;
}
body {
  font-size: var(--font-base);
  line-height: var(--body-leading);
  text-rendering: optimizeLegibility;
}
h1, h2, h3 {
  font-family: var(--display);
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.75rem, 5.1vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -.055em;
  font-weight: 800;
}
h2 {
  font-size: clamp(2.125rem, 4vw, 3.125rem);
  line-height: var(--heading-leading);
  letter-spacing: -.045em;
  font-weight: 750;
}
h3 {
  font-size: var(--font-xl);
  line-height: 1.3;
  letter-spacing: -.025em;
}
.nav { font-size: 0.8125rem; }
.eyebrow { font-size: 0.6875rem; line-height: 1.5; }
.section-kicker { font-size: 0.6875rem; line-height: 1.5; }
.hero-intro {
  font-size: 1rem;
  line-height: 1.8;
  max-width: 560px;
}
.hero-tech-tags span { font-size: 0.6875rem; }
.button { font-size: 0.8125rem; line-height: 1.4; }
.meta-label, .language-label { font-size: 0.6875rem; }
.hero-meta strong, .hero-meta a { font-size: 0.8125rem; line-height: 1.5; }
.profile-caption span { font-size: 1.5rem; line-height: 1.15; }
.profile-caption small { font-size: 0.6875rem; line-height: 1.4; }
.profile-float strong { font-size: 0.8125rem; line-height: 1.35; }
.profile-float small { font-size: 0.6875rem; line-height: 1.4; }
.visual-index, .scroll-note { font-size: 0.6875rem; line-height: 1.4; }
.stat strong { font-size: 2rem; line-height: 1.1; }
.stat small { font-size: 0.6875rem; line-height: 1.5; }
.about-text {
  font-size: 0.9375rem;
  line-height: 1.8;
}
.focus-number, .skill-index { font-size: 0.75rem; }
.focus-item h3 { font-size: 1.25rem; line-height: 1.35; }
.focus-item p { font-size: 0.875rem; line-height: 1.7; }
.experience-heading > p,
.expertise-section .section-heading-row > p {
  font-size: 0.9375rem;
  line-height: 1.8;
}
.career-label span, .timeline-date, .education-year {
  font-size: 0.6875rem;
  line-height: 1.5;
}
.career-label strong { font-size: 1rem; line-height: 1.35; }
.career-label small { font-size: 0.75rem; line-height: 1.5; }
.career-bar b { font-size: 0.75rem; }
.career-detail strong { font-size: 0.8125rem; line-height: 1.45; }
.career-detail p { font-size: 0.75rem; line-height: 1.65; }
.timeline-content h3 { font-size: 1.25rem; line-height: 1.3; }
.company { font-size: 0.8125rem; line-height: 1.5; }
.job-tag { font-size: 0.6875rem; line-height: 1.4; }
.timeline-content ul {
  font-size: 0.875rem;
  line-height: 1.75;
}
.internship { font-size: 0.75rem; }
.skill-group h3 { font-size: 1rem; line-height: 1.4; }
.chips span { font-size: 0.75rem; line-height: 1.4; }
.education-entry h3 { font-size: 1rem; line-height: 1.4; }
.education-entry p { font-size: 0.8125rem; line-height: 1.6; }
.cert-list strong { font-size: 0.8125rem; line-height: 1.5; }
.cert-list small { font-size: 0.75rem; line-height: 1.55; }
.language-row strong { font-size: 0.8125rem; line-height: 1.4; }
.language-row small { font-size: 0.75rem; line-height: 1.4; }
.contact-content h2 {
  font-size: clamp(2.5rem, 4.8vw, 3.75rem);
  line-height: 1.1;
}
.contact-content p { font-size: 0.9375rem; line-height: 1.8; }
.contact-links span { font-size: 0.6875rem; line-height: 1.4; }
.contact-links strong { font-size: 0.875rem; line-height: 1.5; }
.footer p { font-size: 0.75rem; line-height: 1.5; }
.footer > span { font-size: 0.6875rem; line-height: 1.5; }

/* Tablet */
@media (min-width: 701px) and (max-width: 1050px) {
  h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
  h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
}

/* Mobile: preserve hierarchy without shrinking essential text. */
@media (max-width: 700px) {
  body { font-size: 0.9375rem; }
  h1 {
    font-size: clamp(2.375rem, 9.5vw, 3.25rem);
    line-height: 1.09;
  }
  h2 { font-size: clamp(2rem, 8vw, 2.5rem); }
  h3 { font-size: 1.125rem; }
  .hero-intro { font-size: 0.9375rem; line-height: 1.75; }
  .hero-tech-tags span { font-size: 0.6875rem; }
  .hero-meta strong, .hero-meta a { font-size: 0.75rem; }
  .stat strong { font-size: 1.875rem; }
  .stat small { font-size: 0.625rem; }
  .about-text { font-size: 0.875rem; }
  .focus-item h3 { font-size: 1.125rem; }
  .focus-item p { font-size: 0.8125rem; }
  .career-label strong { font-size: 0.9375rem; }
  .career-label small { font-size: 0.75rem; }
  .career-detail strong { font-size: 0.8125rem; }
  .career-detail p { font-size: 0.8125rem; line-height: 1.65; }
  .timeline-content h3 { font-size: 1.125rem; }
  .timeline-content ul { font-size: 0.8125rem; line-height: 1.7; }
  .company { font-size: 0.75rem; }
  .skill-group h3 { font-size: 0.9375rem; }
  .chips span { font-size: 0.6875rem; }
  .education-entry h3 { font-size: 0.9375rem; }
  .education-entry p { font-size: 0.8125rem; }
  .cert-list strong { font-size: 0.8125rem; }
  .cert-list small { font-size: 0.75rem; }
  .contact-content h2 { font-size: clamp(2.375rem, 9vw, 3rem); }
  .contact-content p { font-size: 0.875rem; }
  .contact-links strong { font-size: 0.8125rem; }
}

/* Very small phones */
@media (max-width: 390px) {
  h1 { font-size: clamp(2.25rem, 9.2vw, 2.625rem); }
  h2 { font-size: 1.9375rem; }
  .hero-intro { font-size: 0.875rem; }
  .career-detail p, .timeline-content ul { font-size: 0.78125rem; }
}
