@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #07111f;
    --ink-soft: #0c1c31;
    --paper: #f4f8f8;
    --muted: #a4b4c7;
    --muted-dark: #506176;
    --line: rgba(164, 180, 199, .2);
    --cyan: #5ff4de;
    --cyan-soft: #b8fff2;
    --coral: #ff826e;
    --yellow: #ffd56a;
    --white: #f8fbff;
    --shadow: 0 24px 60px rgba(2, 12, 26, .22);
    --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--ink);
    color: var(--white);
    font-family: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--cyan); color: var(--ink); }

.ambient { position: fixed; z-index: -2; width: 28rem; height: 28rem; border-radius: 50%; filter: blur(100px); opacity: .12; pointer-events: none; }
.ambient-one { top: 6rem; right: -12rem; background: var(--cyan); }
.ambient-two { bottom: 12rem; left: -14rem; background: var(--coral); }
.section-wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.section-block { padding: 118px 0 0; }

.site-header { position: sticky; top: 0; z-index: 10; width: min(1240px, calc(100% - 32px)); margin: 16px auto 0; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 16px; background: rgba(7, 17, 31, .78); backdrop-filter: blur(18px); box-shadow: 0 10px 40px rgba(2, 10, 22, .14); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--ink); background: var(--cyan); font: 500 .78rem 'DM Mono', monospace; }
.brand-copy { display: grid; gap: 0; line-height: 1.1; }
.brand-copy strong { font-size: .88rem; letter-spacing: -.02em; }
.brand-copy small, .eyebrow, .section-index, .project-type, .timeline-year, .note-signature, .skill-icon { font: 500 .68rem 'DM Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.brand-copy small { color: var(--muted); font-size: .54rem; letter-spacing: .05em; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav a { color: var(--muted); font-size: .78rem; font-weight: 700; transition: color .2s ease; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--white); }
.primary-nav .nav-cta { padding: 10px 14px; color: var(--ink); background: var(--cyan); border-radius: 10px; }
.primary-nav .nav-cta:hover { color: var(--ink); background: var(--cyan-soft); }
.nav-cta span, .button span, .project-link span { margin-left: 6px; }
.menu-toggle { display: none; border: 0; padding: 6px; color: var(--white); background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--cyan); }

.hero { min-height: 720px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 62px; align-items: center; padding-top: 64px; }
.eyebrow, .section-index { margin: 0 0 24px; color: var(--cyan); }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 16px var(--coral); vertical-align: middle; }
.hero h1 { max-width: 780px; margin: 0; color: var(--white); font-size: clamp(3.5rem, 7.2vw, 6.8rem); font-weight: 800; line-height: .98; letter-spacing: -.075em; }
.hero h1 em { color: var(--cyan); font-style: normal; }
.hero-lede { max-width: 610px; margin: 30px 0 0; color: var(--muted); font-size: 1.05rem; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 17px; border: 1px solid transparent; border-radius: 11px; font-size: .8rem; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--cyan); }
.button-primary:hover { background: var(--cyan-soft); }
.button-ghost { color: var(--white); border-color: var(--line); }
.button-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 64px; }
.hero-proof div { display: grid; gap: 2px; }
.hero-proof strong { color: var(--white); font-size: 1.15rem; }
.hero-proof span { color: var(--muted); font: .62rem 'DM Mono', monospace; letter-spacing: .03em; text-transform: uppercase; }

.hero-visual { position: relative; min-height: 480px; isolation: isolate; }
.visual-grid { position: absolute; inset: 0; border-radius: 50%; opacity: .4; background-image: linear-gradient(rgba(95, 244, 222, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(95, 244, 222, .1) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle, black 0 48%, transparent 73%); }
.orbit { position: absolute; inset: 50% auto auto 50%; border: 1px solid rgba(95, 244, 222, .28); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); }
.orbit-large { width: 400px; height: 230px; }
.orbit-small { width: 260px; height: 140px; transform: translate(-50%, -50%) rotate(42deg); border-color: rgba(255, 130, 110, .34); }
.core-node { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 130px; height: 130px; border: 1px solid rgba(95, 244, 222, .6); border-radius: 50%; color: var(--ink); background: var(--cyan); box-shadow: 0 0 0 12px rgba(95, 244, 222, .06), 0 0 55px rgba(95, 244, 222, .36); transform: translate(-50%, -50%); }
.core-node span { font: 500 1.5rem 'DM Mono', monospace; letter-spacing: -.08em; }
.core-node small { color: rgba(7, 17, 31, .7); font: 500 .54rem 'DM Mono', monospace; line-height: 1.25; text-align: center; text-transform: uppercase; }
.signal { position: absolute; display: grid; grid-template-columns: 10px auto; column-gap: 9px; align-items: center; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(12, 28, 49, .8); box-shadow: var(--shadow); }
.signal b { color: var(--white); font: 500 .59rem 'DM Mono', monospace; letter-spacing: .08em; }
.signal small { grid-column: 2; color: var(--muted); font-size: .62rem; }
.signal-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.signal-one { top: 17%; left: 1%; }
.signal-two { top: 50%; right: 0; }
.signal-two .signal-pulse { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.signal-three { bottom: 14%; left: 16%; }
.signal-three .signal-pulse { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 46px; }
.section-heading h2, .contact-section h2 { max-width: 700px; margin: 0; font-size: clamp(2.25rem, 4.3vw, 4.4rem); line-height: 1.02; letter-spacing: -.065em; }
.section-intro { max-width: 330px; margin: 0; color: var(--muted); font-size: .9rem; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 74px; align-items: start; }
.large-copy { margin: 0 0 24px; color: var(--white); font-size: clamp(1.5rem, 3vw, 2.35rem); line-height: 1.15; letter-spacing: -.04em; }
.large-copy span { color: var(--cyan); }
.about-lede > p:not(.large-copy) { max-width: 590px; color: var(--muted); font-size: .95rem; }
.about-note { position: relative; padding: 35px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(95, 244, 222, .09), rgba(255, 130, 110, .04)); }
.quote-mark { display: block; height: 35px; color: var(--coral); font: 4rem Georgia, serif; line-height: .8; }
.about-note p { margin: 20px 0 28px; color: var(--white); font-size: 1.12rem; line-height: 1.45; }
.note-signature { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 72px; }
.stat-card { padding: 25px 22px; border-top: 1px solid var(--cyan); background: rgba(12, 28, 49, .65); }
.stat-card strong { display: block; color: var(--cyan); font-size: 1.6rem; letter-spacing: -.04em; }
.stat-card span { color: var(--muted); font-size: .72rem; }

.project-heading { align-items: end; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filter-button { padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: transparent; cursor: pointer; font-size: .72rem; font-weight: 700; }
.filter-button:hover, .filter-button.is-active { color: var(--ink); border-color: var(--cyan); background: var(--cyan); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.project-card { position: relative; min-height: 345px; display: flex; flex-direction: column; padding: 27px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(13, 34, 57, .94), rgba(8, 21, 37, .96)); transition: transform .25s ease, border-color .25s ease; }
.project-card::after { position: absolute; right: -70px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: rgba(95, 244, 222, .1); content: ''; filter: blur(8px); }
.project-card:hover { border-color: rgba(95, 244, 222, .65); transform: translateY(-5px); }
.project-card.is-hidden { display: none; }
.project-featured { grid-row: span 2; min-height: 704px; background: linear-gradient(145deg, rgba(21, 67, 78, .95), rgba(10, 29, 48, .98)); }
.project-featured::after { right: -100px; bottom: -100px; width: 420px; height: 420px; background: rgba(95, 244, 222, .13); }
.project-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; }
.project-number { color: var(--coral); font: 500 1.4rem 'DM Mono', monospace; }
.project-type { color: var(--muted); font-size: .58rem; }
.project-card h3 { position: relative; z-index: 1; max-width: 530px; margin: auto 0 14px; color: var(--white); font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.05; letter-spacing: -.055em; }
.project-card:not(.project-featured) h3 { margin-top: 70px; font-size: 1.5rem; }
.project-card p { position: relative; z-index: 1; max-width: 540px; margin: 0 0 20px; color: var(--muted); font-size: .86rem; }
.tag-list, .skill-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list span, .skill-chips span { padding: 5px 8px; border: 1px solid rgba(164, 180, 199, .18); border-radius: 5px; color: var(--muted); font: .61rem 'DM Mono', monospace; }
.project-link, .research-card a { position: relative; z-index: 1; width: fit-content; margin-top: 26px; color: var(--cyan); font-size: .76rem; font-weight: 800; }
.research-header { display: flex; align-items: center; gap: 30px; margin: 75px 0 20px; }
.research-header .section-index { margin: 0; white-space: nowrap; }
.research-header p:last-child { margin: 0; color: var(--muted); font-size: .78rem; }
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.research-card { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: rgba(12, 28, 49, .55); }
.research-card > span { color: var(--coral); font: .65rem 'DM Mono', monospace; }
.research-card h3 { margin: 0 0 9px; font-size: 1rem; line-height: 1.2; }
.research-card p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.research-card a { display: inline-block; margin-top: 13px; font-size: .66rem; }

.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.skill-group { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12, 28, 49, .62); }
.skill-icon { display: block; margin-bottom: 38px; color: var(--coral); }
.skill-group h3 { margin: 0 0 12px; font-size: 1.35rem; letter-spacing: -.04em; }
.skill-group p { min-height: 76px; margin: 0 0 25px; color: var(--muted); font-size: .83rem; }

.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 180px 1fr; gap: 35px; padding: 29px 0; border-bottom: 1px solid var(--line); }
.timeline-year { color: var(--coral); }
.timeline-item h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.04em; }
.timeline-item p { margin: 6px 0; color: var(--muted); font-size: .84rem; }
.timeline-item strong { color: var(--cyan); font: .72rem 'DM Mono', monospace; }
.language-line { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; color: var(--muted); font-size: .82rem; }
.language-line span { color: var(--white); font-weight: 800; }
.language-line p { margin: 0; }

.contact-section { position: relative; margin-top: 130px; padding: 90px 0; border-top: 1px solid var(--line); overflow: hidden; }
.contact-glow { position: absolute; top: -70px; right: 4%; width: 270px; height: 270px; border-radius: 50%; background: var(--coral); opacity: .12; filter: blur(70px); pointer-events: none; }
.contact-section > *:not(.contact-glow) { position: relative; z-index: 1; }
.contact-section h2 { max-width: 820px; }
.contact-section > p:not(.section-index) { max-width: 610px; margin: 25px 0 0; color: var(--muted); }
.light-ghost { border-color: rgba(95, 244, 222, .35); }
.contact-details { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 42px; color: var(--muted); font: .65rem 'DM Mono', monospace; }
.contact-details a:hover { color: var(--cyan); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 35px; color: var(--muted); font: .65rem 'DM Mono', monospace; }
.site-footer a:hover { color: var(--cyan); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .12s; }

@media (max-width: 850px) {
    .section-wrap { width: min(100% - 36px, 680px); }
    .site-header { width: calc(100% - 24px); }
    .menu-toggle { display: block; }
    .primary-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(7, 17, 31, .96); }
    .primary-nav.is-open { display: flex; }
    .primary-nav a { padding: 12px; }
    .primary-nav .nav-cta { text-align: center; }
    .hero { min-height: auto; grid-template-columns: 1fr; gap: 20px; padding-top: 90px; }
    .hero-visual { min-height: 400px; }
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .section-heading { display: block; }
    .section-intro { margin-top: 20px; }
    .project-grid { grid-template-columns: 1fr; }
    .project-featured { grid-row: auto; min-height: 470px; }
    .research-grid, .skills-grid { grid-template-columns: 1fr; }
    .skill-group p { min-height: 0; }
}

@media (max-width: 560px) {
    .section-block { padding-top: 85px; }
    .hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
    .hero-proof { gap: 20px; margin-top: 46px; }
    .hero-proof div:last-child { display: none; }
    .hero-visual { min-height: 315px; transform: scale(.85); transform-origin: top center; margin-bottom: -45px; }
    .orbit-large { width: 330px; height: 190px; }
    .signal { transform: scale(.9); }
    .signal-one { left: -4%; }
    .signal-two { right: -5%; }
    .stat-row { grid-template-columns: repeat(2, 1fr); margin-top: 45px; }
    .stat-card { padding: 18px 15px; }
    .project-card { min-height: 390px; padding: 22px; }
    .project-featured { min-height: 470px; }
    .project-card:not(.project-featured) h3 { margin-top: 55px; }
    .timeline-item { grid-template-columns: 1fr; gap: 7px; }
    .language-line { display: block; }
    .language-line p { margin-top: 8px; }
    .contact-details { align-items: flex-start; flex-direction: column; }
    .contact-details span { display: none; }
    .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
