:root {
  --navy-950: #030914;
  --navy-900: #061225;
  --navy-800: #0a1d37;
  --cyan: #30dcff;
  --cyan-soft: #9bf1ff;
  --violet: #8d72ff;
  --pink: #e65cff;
  --white: #f6fbff;
  --muted: #a6b8cc;
  --line: rgba(114, 209, 255, .18);
  --glass: rgba(10, 29, 55, .68);
  --radius: 22px;
  --shadow: 0 30px 90px rgba(0, 0, 0, .34);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 72% 7%, rgba(63, 41, 151, .24), transparent 32rem),
    radial-gradient(circle at 5% 35%, rgba(0, 179, 255, .11), transparent 29rem),
    var(--navy-950);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body.motion-reduced *, body.motion-reduced *::before, body.motion-reduced *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { color: inherit; }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1000; padding: .8rem 1rem; color: #00101c; background: var(--cyan); border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  min-height: 76px;
  padding: .75rem max(1.2rem, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(3, 9, 20, .72);
  border-bottom: 1px solid rgba(135, 219, 255, .11);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  color: var(--cyan); font-weight: 900; letter-spacing: -.08em;
  border: 1px solid rgba(48, 220, 255, .45); border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(48, 220, 255, .14), 0 0 18px rgba(48, 220, 255, .14);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: .93rem; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: .7rem; }
.site-nav { display: flex; gap: clamp(.75rem, 2vw, 1.7rem); }
.site-nav a { color: #bed0e1; text-decoration: none; font-size: .85rem; }
.site-nav a:hover { color: var(--cyan); }
.nav-toggle { display: none; border: 0; background: none; padding: .5rem; }
.nav-toggle span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px; background: var(--white); }

.hero {
  min-height: 100svh;
  padding: 9rem max(1.2rem, calc((100vw - var(--max)) / 2)) 4rem;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(420px, 1.15fr);
  grid-template-areas: "copy orbit" "audio audio";
  align-items: center;
  gap: 2rem 3rem;
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
#particle-canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .52; }
.ambient { position: absolute; z-index: -3; border-radius: 50%; filter: blur(30px); opacity: .38; }
.ambient-one { width: 35rem; height: 35rem; right: -12rem; top: 5rem; background: rgba(45, 108, 255, .21); }
.ambient-two { width: 28rem; height: 28rem; left: -12rem; bottom: -7rem; background: rgba(146, 62, 255, .14); }
.hero-copy { grid-area: copy; max-width: 590px; }
.eyebrow { margin: 0 0 .7rem; color: var(--cyan); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3.3rem, 7vw, 6.7rem); line-height: .94; letter-spacing: -.075em; text-wrap: balance; }
.hero h1::after { content: "."; color: var(--cyan); text-shadow: 0 0 22px var(--cyan); }
.hero-role { margin: 1.5rem 0 .75rem; color: #d9e9f6; font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 650; }
.hero-intro { color: var(--muted); max-width: 55ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.button {
  min-height: 46px; padding: .75rem 1.15rem; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 999px; border: 1px solid transparent; font-weight: 750; cursor: pointer;
}
.button-primary { color: #00111b; background: linear-gradient(105deg, var(--cyan), #87edff); box-shadow: 0 10px 36px rgba(48, 220, 255, .2); }
.button-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(48, 220, 255, .28); }
.button-ghost { color: #d8e7f5; border-color: rgba(152, 224, 255, .24); background: rgba(8, 23, 43, .45); }
.button-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.hero-proof { color: #829bb1; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-proof span { display: inline-block; width: 2rem; height: 1px; margin: 0 .65rem .22rem 0; background: var(--cyan); }

.orbit-stage {
  grid-area: orbit;
  position: relative;
  width: min(100%, 650px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  --audio-energy: 0;
}
.portrait-wrap {
  width: 72%; aspect-ratio: 1; overflow: hidden; border-radius: 50%;
  box-shadow: 0 0 calc(32px + var(--audio-energy) * 45px) rgba(48, 220, 255, calc(.14 + var(--audio-energy) * .22));
}
.portrait-wrap img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.orbit { position: absolute; border-radius: 50%; pointer-events: none; }
.orbit-outer { inset: 5%; border: 1px solid rgba(92, 190, 255, .28); animation: spin 26s linear infinite; }
.orbit-outer::before, .orbit-outer::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 22px var(--cyan); }
.orbit-outer::before { left: 18%; top: 5%; }
.orbit-outer::after { right: 7%; bottom: 22%; background: var(--violet); box-shadow: 0 0 22px var(--violet); }
.orbit-mid { inset: 10%; border: 1px dashed rgba(141, 114, 255, .34); animation: spin-reverse 37s linear infinite; }
.orbit-reactive {
  inset: 13%;
  border: calc(2px + var(--audio-energy) * 3px) solid rgba(48, 220, 255, calc(.5 + var(--audio-energy) * .45));
  box-shadow: inset 0 0 calc(24px + var(--audio-energy) * 55px) rgba(48, 220, 255, .18), 0 0 calc(20px + var(--audio-energy) * 65px) rgba(141, 114, 255, .24);
  transform: scale(calc(1 + var(--audio-energy) * .028));
  transition: transform 80ms linear, box-shadow 80ms linear;
}
.chapter-card {
  position: absolute; right: -1rem; bottom: 11%; width: min(260px, 48%);
  padding: 1rem; background: rgba(4, 16, 34, .8); border: 1px solid rgba(84, 215, 255, .23); border-radius: 16px;
  backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.chapter-card span { display: block; color: var(--cyan); font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; }
.chapter-card strong { display: block; margin: .3rem 0; }
.chapter-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.audio-panel {
  grid-area: audio;
  width: min(920px, 100%); justify-self: center; padding: 1rem 1.2rem;
  display: grid; grid-template-columns: auto 1fr; gap: .8rem 1.5rem; align-items: center;
  background: rgba(6, 21, 43, .78); border: 1px solid rgba(98, 215, 255, .21); border-radius: 20px; backdrop-filter: blur(14px);
}
.audio-heading { display: flex; align-items: center; gap: .8rem; }
.audio-heading strong, .audio-heading small { display: block; }
.audio-heading small { color: var(--muted); font-size: .68rem; }
.audio-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--cyan); background: rgba(48, 220, 255, .08); border: 1px solid rgba(48, 220, 255, .27); border-radius: 50%; }
.audio-controls { min-width: 0; display: grid; grid-template-columns: auto auto minmax(120px, 1fr) auto 70px; gap: .6rem; align-items: center; }
.audio-controls button, .audio-links button { border: 0; background: none; cursor: pointer; }
.audio-play { color: var(--cyan); font-weight: 800; }
.icon-button { color: #9bb1c6; }
.progress-label, .volume-label { display: flex; }
input[type="range"] { width: 100%; accent-color: var(--cyan); }
.audio-time { color: #9bb1c6; font-variant-numeric: tabular-nums; font-size: .74rem; white-space: nowrap; }
.audio-links { grid-column: 1 / -1; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .8rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.audio-links button { color: #8fa9bf; font-size: .73rem; text-decoration: underline; text-underline-offset: 3px; }

.section { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; padding: clamp(5rem, 9vw, 8.5rem) 0; }
.section-heading { max-width: 720px; margin-bottom: 2.5rem; }
.section-heading h2, .contact-copy h2 { margin: 0 0 1rem; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.03; letter-spacing: -.055em; text-wrap: balance; }
.section-heading > p:not(.eyebrow), .contact-copy > p:not(.eyebrow) { color: var(--muted); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.value-card { min-height: 165px; padding: 1.25rem; background: linear-gradient(145deg, rgba(17, 46, 80, .57), rgba(5, 18, 37, .55)); border: 1px solid var(--line); border-radius: var(--radius); }
.value-card span { color: var(--cyan); font-size: .72rem; }
.value-card h3 { margin: 2.2rem 0 0; font-size: 1.05rem; }

.timeline { position: relative; max-width: 930px; margin-left: auto; }
.timeline::before { content: ""; position: absolute; left: 145px; top: 0; bottom: 0; width: 1px; background: linear-gradient(var(--cyan), var(--violet)); }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 3.2rem; position: relative; padding: 1rem 0 3rem; }
.timeline-item::before { content: ""; position: absolute; left: 138px; top: 1.6rem; width: 13px; height: 13px; background: var(--navy-950); border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 18px rgba(48, 220, 255, .5); }
.timeline-period { color: var(--cyan); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-align: right; text-transform: uppercase; }
.timeline-item h3 { margin: 0; font-size: 1.55rem; }
.timeline-item p { max-width: 650px; color: var(--muted); }

.card-grid { display: grid; gap: 1rem; }
.skills-grid { grid-template-columns: repeat(3, 1fr); }
.project-grid { grid-template-columns: repeat(2, 1fr); }
.glass-card { padding: 1.55rem; background: linear-gradient(145deg, rgba(12, 34, 63, .74), rgba(4, 16, 34, .72)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 60px rgba(0, 0, 0, .13); }
.glass-card:hover { border-color: rgba(48, 220, 255, .42); transform: translateY(-3px); }
.card-kicker { color: var(--cyan); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.glass-card h3 { margin: .55rem 0; font-size: 1.25rem; }
.glass-card p { color: var(--muted); }
.skill-card small { display: block; padding-top: .8rem; color: #7f9bb4; border-top: 1px solid var(--line); }
.project-top { display: flex; justify-content: space-between; }
.status, .tag-list span { padding: .25rem .55rem; color: var(--cyan-soft); background: rgba(48, 220, 255, .07); border: 1px solid rgba(48, 220, 255, .16); border-radius: 999px; font-size: .66rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .45rem; }

.split-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
.certificate-list { display: grid; gap: .9rem; }
.certificate-list article { padding: 1.25rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; }
.certificate-list article > span { color: var(--cyan); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.certificate-list h3, .certificate-list p { margin: 0; }
.certificate-list p { color: var(--muted); }
.disabled-link { opacity: .58; pointer-events: none; }

.contact-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; }
.contact-copy ul { padding: 0; list-style: none; color: var(--muted); }
.contact-form { padding: 1.4rem; background: rgba(7, 24, 47, .72); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form label { display: grid; gap: .4rem; margin-bottom: 1rem; color: #caddEC; font-size: .8rem; font-weight: 700; }
.contact-form input, .contact-form textarea {
  width: 100%; color: var(--white); background: rgba(1, 10, 22, .7); border: 1px solid rgba(138, 194, 228, .25); border-radius: 10px; padding: .75rem;
}
.contact-form textarea { resize: vertical; }
.consent { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 400 !important; color: var(--muted) !important; }
.consent input { width: auto; margin-top: .3rem; }
.honeypot { position: absolute; left: -9999px; }
.form-success, .form-error { padding: .75rem; border-radius: 8px; }
.form-success { background: rgba(60, 230, 151, .12); color: #8ff7c2; }
.form-error { background: rgba(255, 93, 120, .12); color: #ffb0bc; }

.site-footer { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; padding: 2rem 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; color: #8297aa; border-top: 1px solid var(--line); font-size: .78rem; }
.site-footer div { display: flex; align-items: center; gap: .7rem; }
.site-footer strong { color: var(--cyan); font-size: 1.4rem; }
.site-footer nav { display: flex; gap: 1rem; }
.site-footer a:hover { color: var(--cyan); }

dialog { width: min(680px, calc(100% - 2rem)); color: var(--white); background: #07172c; border: 1px solid rgba(48, 220, 255, .32); border-radius: 18px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 5, 13, .8); backdrop-filter: blur(8px); }
.dialog-head { display: flex; justify-content: space-between; gap: 1rem; }
.dialog-head h2 { margin: 0; }
.dialog-head button { font-size: 1.8rem; background: none; border: 0; cursor: pointer; }

.legal-page main { width: min(820px, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0; }
.legal-page h1 { font-size: clamp(2.5rem, 7vw, 4.6rem); line-height: 1; }
.legal-page h2 { margin-top: 2.2rem; color: var(--cyan-soft); }
.legal-page p { color: var(--muted); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "copy" "orbit" "audio"; padding-top: 8rem; text-align: center; }
  .hero-copy { justify-self: center; }
  .hero-actions { justify-content: center; }
  .orbit-stage { width: min(88vw, 620px); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .split-section, .contact-section { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 760px) {
  .site-header { min-height: 68px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; left: 1rem; right: 1rem; display: none; padding: 1rem; flex-direction: column; background: rgba(3, 12, 26, .97); border: 1px solid var(--line); border-radius: 12px; }
  .site-nav.open { display: flex; }
  .hero { padding-top: 7.5rem; }
  .hero h1 { font-size: clamp(3.1rem, 15vw, 5rem); }
  .chapter-card { right: 0; bottom: 3%; width: 58%; text-align: left; }
  .audio-panel { grid-template-columns: 1fr; }
  .audio-controls { grid-template-columns: 1fr auto; }
  .audio-controls .progress-label { grid-column: 1 / -1; grid-row: 2; }
  .audio-time { grid-column: 1; }
  .volume-label { grid-column: 2; width: 72px; }
  .audio-links { justify-content: center; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid, .project-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 1fr; gap: .3rem; padding-left: 2rem; }
  .timeline-item::before { left: 2px; top: 1.25rem; }
  .timeline-period { text-align: left; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .brand small { display: none; }
  .hero { padding-inline: 1rem; }
  .hero-intro { font-size: .93rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .orbit-stage { width: 100%; }
  .portrait-wrap { width: 77%; }
  .orbit-outer { inset: 1%; }
  .orbit-mid { inset: 6%; }
  .orbit-reactive { inset: 10%; }
  .chapter-card { position: absolute; left: 8%; right: 8%; bottom: -1.5rem; width: auto; }
  .audio-panel { margin-top: 2rem; }
  .value-grid { grid-template-columns: 1fr; }
  .section { width: min(var(--max), calc(100% - 2rem)); }
  .section-heading h2, .contact-copy h2 { font-size: 2.45rem; }
}

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