:root {
  color-scheme: dark;
  --bg: #060910;
  --ink: #f3f6ff;
  --muted: #aebbd0;
  --accent: #9bc8ff;
  --blue: #285fe2;
  --line: #a6c4ff35;
  --panel: #10192bd9;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.55; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #a9dcff; outline-offset: 5px; }
.skip { position: fixed; z-index: 20; top: .75rem; left: .75rem; transform: translateY(-160%); background: #111f3b; padding: .75rem 1rem; border-radius: .5rem; }
.skip:focus { transform: none; }
.wrap { width: min(100% - 3rem, 1168px); margin-inline: auto; }
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background:
  radial-gradient(ellipse at 12% 24%, #132c5b 0%, transparent 33%),
  radial-gradient(ellipse at 86% 61%, #09283a 0%, transparent 32%),
  radial-gradient(ellipse at 50% 105%, #161934 0%, transparent 42%), var(--bg); }
.stars { position: absolute; inset: 0; }
.stars i { position: absolute; background: #e1eeff; border-radius: 50%; }
.site-header { position: fixed; z-index: 5; top: 24px; left: 50%; transform: translateX(-50%); }
.nav-shell { border: 1px solid #b8ccf54d; border-radius: 999px; padding: 6px; background: linear-gradient(160deg, #192339d9, #060910e6 65%); backdrop-filter: blur(18px); box-shadow: inset 0 1px 9px #d2e3ff30, 0 12px 34px #0006; }
#main-nav { display: flex; gap: 4px; }
#main-nav a { display: block; padding: .62rem 1.2rem; border-radius: 999px; border: 1px solid transparent; color: var(--muted); font-size: .9rem; font-weight: 650; }
#main-nav a:hover { color: var(--ink); background: #ffffff10; }
#main-nav a[aria-current] { color: var(--ink); background: #263e6570; border-color: #bfd7ff73; box-shadow: inset 0 1px 8px #bfd7ff20; }
.nav-audio { display: flex; align-items: center; gap: .4rem; padding-inline: .2rem; }
.nav-audio::before { content: ""; width: 1px; height: 1.65rem; background: var(--line); }
.nav-speaker { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #ffffff14; color: var(--ink); cursor: pointer; }
.nav-speaker:hover, .nav-speaker[aria-expanded="true"] { background: #263e65; }
.nav-speaker svg { width: 20px; height: 20px; }
.speaker-muted, .nav-speaker[data-silent] .speaker-waves { display: none; }
.nav-speaker[data-silent] .speaker-muted { display: inline; }
.nav-audio-panel { position: absolute; top: calc(100% + .5rem); right: 0; width: min(17rem, 100%); display: grid; gap: .5rem; padding: .9rem; border: 1px solid var(--line); border-radius: .9rem; background: #10192b; box-shadow: 0 12px 34px #0008; }
.nav-audio-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.nav-audio-panel input { width: 100%; margin: 0; accent-color: var(--accent); }
.nav-audio-panel p { color: var(--muted); }
#nav-audio-status:empty { display: none; }
.hero { min-height: max(710px, 91svh); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2rem; position: relative; }
.hero-copy { padding-block: 8rem 5rem; min-width: 0; }
.eyebrow, .badge-caption { color: var(--accent); font: 650 .72rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .15em; text-transform: uppercase; }
.signal { display: inline-block; width: .42rem; height: .42rem; margin-right: .45rem; border-radius: 50%; background: #85c9ff; box-shadow: 0 0 12px #65c1ff; vertical-align: .1em; }
h1 { margin-top: 1rem; font-size: clamp(3.2rem, 5.7vw, 5.3rem); line-height: .99; letter-spacing: -.065em; font-weight: 800; overflow-wrap: anywhere; }
.gradient-text { color: #79b5ff; background: linear-gradient(110deg,#75a8ff 0%,#58b9ff 60%,#9baaff 100%); background-clip: text; -webkit-text-fill-color: transparent; }
.role { margin-top: 1.25rem; color: var(--accent); font-weight: 650; font-size: clamp(1.05rem, 2.2vw, 1.35rem); }
.intro { color: var(--muted); max-width: 46ch; margin-top: 1.35rem; font-size: 1.05rem; line-height: 1.75; }
.actions, .links { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.actions { margin-top: 1.8rem; }
.button { display: inline-flex; gap: .65rem; align-items: center; justify-content: center; min-height: 44px; max-width: 100%; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: .75rem; background: #ffffff08; color: var(--ink); font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .2s, border-color .2s; }
.button:hover { background: #233658; border-color: #96bdff8c; }
.button.primary { background: var(--blue); border-color: #6f9aff60; box-shadow: 0 0 24px #2f68f249; }
.button.primary:hover { background: #3670f4; }
.hero-links { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 2rem; }
.badge-stage { height: 100%; min-width: 0; position: relative; display: grid; place-items: start center; overflow: clip; }
.orbit { position: absolute; width: 85%; max-width: 470px; aspect-ratio: 1; top: 17%; border-radius: 50%; border: 1px solid #7aafff19; box-shadow: 0 0 0 36px #709eff07, inset 0 0 100px #588cff12; pointer-events: none; }
.orbit::after { content: ""; position: absolute; inset: 12%; border-radius: inherit; border: 1px dashed #8ab9ff30; }
.lanyard { z-index: 1; display: grid; justify-items: center; width: min(60%, 284px); transform-origin: center top; transform: rotate(-9deg); }
.lanyard.swinging { animation: swing 1.4s ease-in-out; }
@keyframes swing { 0%,100% { transform: rotate(-9deg); } 24% { transform: rotate(11deg); } 53% { transform: rotate(-17deg); } 77% { transform: rotate(-3deg); } }
.strap { display: grid; place-items: end center; height: clamp(9rem, 21vh, 14rem); width: 35px; padding: .75rem 0; background: repeating-linear-gradient(0deg,#ffffff05 0 1px,transparent 1px 3px), linear-gradient(90deg,#0a1425,#253958 48%,#0a1425); border-inline: 1px solid #b8d2ff40; }
.strap span { writing-mode: vertical-rl; color: #dce9ff; font: 700 .58rem ui-monospace, Consolas, monospace; letter-spacing: .14em; }
.clip { width: 21px; height: 26px; position: relative; z-index: 2; margin: -2px 0 -10px; border: 4px solid #aabbd1; border-radius: 7px; box-shadow: 0 2px 7px #0009; }
.badge { width: 100%; display: grid; gap: .75rem; padding: 1.05rem; border-radius: 1rem; border: 1px solid #a9cfff90; background: linear-gradient(145deg,#264272,#101b30 40%,#172947); color: var(--ink); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 5px #060c1a72, 0 28px 50px #0008; }
.badge:hover { border-color: #d4eaff; }
.badge-top, .badge-bottom { display: flex; align-items: center; justify-content: space-between; gap: .4rem; color: #b4d3ff; font: 650 .58rem ui-monospace, Consolas, monospace; letter-spacing: .1em; }
.badge-photo { display: grid; place-items: center; aspect-ratio: 1.13; border: 1px solid #9bc6ff4a; border-radius: .45rem; overflow: hidden; background: radial-gradient(ellipse at 50% 75%,#34609a80, transparent 70%), repeating-linear-gradient(135deg,#b5d4ff09 0 1px,transparent 1px 8px), #13213b; }
.placeholder { color: #b5c8e4; font: 600 .7rem ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.badge-name { font-size: clamp(1.1rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; overflow-wrap: anywhere; }
.badge-bottom { border-top: 1px solid #b8d2ff35; padding-top: .65rem; }
.barcode { width: 45px; height: 12px; opacity: .7; background: repeating-linear-gradient(90deg,#b6cced 0 1px,transparent 1px 3px,#b6cced 3px 5px,transparent 5px 8px); }
.badge-caption { position: absolute; right: 2%; bottom: 14%; display: flex; align-items: center; gap: .6rem; }
.badge-caption span { width: 24px; height: 1px; background: #8ab9ff80; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section-heading { text-align: center; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-heading h2 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -.05em; line-height: 1.08; margin-top: .45rem; }
.work-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .25rem; max-width: 44rem; margin: 0 auto 2rem; padding: .35rem; border: 1px solid var(--line); border-radius: 1rem; background: #0b1222e8; }
.work-tabs button { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 3rem; padding: .4rem .15rem; border: 0; border-radius: .7rem; background: transparent; color: var(--muted); font: inherit; font-size: clamp(.75rem, 2.6vw, 1rem); font-weight: 700; cursor: pointer; }
.work-tabs button:hover { background: #ffffff12; color: var(--ink); }
.work-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.work-tabs button:focus-visible { outline-offset: 2px; }
.work-tabs button svg { flex: 0 0 1em; width: 1em; height: 1em; }
.certifications-empty { color: var(--muted); font-size: .9rem; text-align: center; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); gap: clamp(.65rem, 2vw, 1.5rem); margin: 0; padding: 0; list-style: none; }
#tech-stack { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); }
.skill-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; min-height: 9rem; padding: .8rem .4rem; border: 1px solid var(--line); border-radius: 1rem; background: #101827; text-align: center; }
.skill-card img { width: 3.25rem; height: 3.25rem; object-fit: contain; }
#about { font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center; }
.about-greeting { font-size: clamp(2.4rem, 4.65vw, 5.25rem); font-weight: 800; letter-spacing: -.055em; line-height: .98; overflow-wrap: anywhere; }
.about-greeting > span { display: block; }
.about-greeting > span:first-child { color: #548eff; margin-bottom: .14em; }
.about-display-name { color: #f3f6ff; }
@media (min-width: 1024px) {
  #about { width: min(100% - 7vw, 1600px); }
  .about-display-name > span { display: block; }
}
@supports (background-clip: text) {
  .about-display-name { background: linear-gradient(108deg, #fff 8%, #a9b6cd 100%); background-clip: text; color: transparent; }
}
@media (forced-colors: active) {
  .about-display-name { background: none; color: CanvasText; }
}
.about-name .button { margin-top: 1.75rem; }
@media (prefers-reduced-motion: no-preference) {
  .about-reveal { animation: about-reveal .65s cubic-bezier(.2, .7, .25, 1) both; }
}
@keyframes about-reveal {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
.about-photo { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 5; min-width: 0; overflow: hidden; }
.about-photo img { position: absolute; inset: 0; object-position: center 25%; mask-image: linear-gradient(#000 74%, transparent 100%); }
.about-copy { font-size: clamp(1rem, 1.5vw, 1.3rem); }
.about-copy p, .contact-panel p, .project p, .case-inner p, .case-inner dd { color: var(--muted); line-height: 1.7; overflow-wrap: anywhere; }
.about-copy p + p { margin-top: 1.1rem; }
.about-work-link { margin-top: 1.5rem; color: var(--accent); border-color: #6097f575; background: #0b173155; }
.about-learning {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.about-learning h3 { margin-bottom: .85rem; font-size: clamp(1.3rem, 2vw, 1.85rem); }
.learning-card {
  display: grid;
  grid-template-columns: clamp(4rem, 8vw, 6.5rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(.85rem, 2vw, 1.4rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
}
.learning-logo { height: auto; aspect-ratio: 4 / 3; object-fit: contain; border-radius: .35rem; }
.learning-logo-light { background: #f5f7fc; padding: .2rem; }
.learning-card + .learning-card { margin-top: .75rem; }
.learning-card h4 { margin: 0 0 .2rem; font-size: clamp(1.05rem, 1.6vw, 1.35rem); line-height: 1.25; }
.learning-card p { color: var(--muted); }
.learning-card .learning-dates { margin-top: .25rem; color: var(--accent); font-weight: 650; }
.badge-photo img { object-position: center 28%; }
.text-link { display: inline-flex; gap: .6rem; align-items: center; min-height: 44px; margin-top: .75rem; color: var(--accent); font-weight: 700; }
.text-link:hover, footer nav a:hover { text-decoration: underline; }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.project { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; border: 1px solid #b8d6ff64; border-radius: 1rem; background: linear-gradient(145deg,#152138eb,#0b1222eb); padding: 1rem; box-shadow: inset 0 1px #e0ebff3b; }
.project-media { width: 100%; aspect-ratio: 16 / 9; position: relative; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: radial-gradient(ellipse at 75% 15%,#214779,transparent 75%), #080f1c; }
.project-media:has(.placeholder)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(#9cc6ff12 1px,transparent 1px),linear-gradient(90deg,#9cc6ff12 1px,transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse,#000,transparent 80%); }
.project:nth-child(2) .project-media:has(.placeholder) { background: radial-gradient(ellipse at 20% 100%,#254b60,transparent 80%),#0c1422; }
.project-media .placeholder { z-index: 1; padding: .65rem .9rem; background: #0b1322; border: 1px dashed #88ace278; border-radius: .35rem; }
.project img, .case-grid img { object-fit: contain; }
.project .eyebrow { margin-top: .45rem; }
.project h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); line-height: 1.15; overflow-wrap: anywhere; }
.project .button { margin-top: auto; }
.project p:not(.eyebrow) { margin-bottom: .5rem; }
.contact-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; padding: clamp(1.4rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 1.1rem; background: var(--panel); }
.contact-panel h3 { font-size: clamp(1.7rem, 3.5vw, 2.75rem); letter-spacing: -.04em; }
.contact-panel p { margin-top: .45rem; max-width: 43ch; }
.contact-methods { display: grid; justify-items: start; gap: .7rem; }
.site-footer { border-top: 1px solid var(--line); background: #080e1ad9; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 2rem; }
.footer-brand { font-size: 1.1rem; font-weight: 750; }
.footer-inner p, .footer-inner nav { color: var(--muted); font-size: .9rem; }
.footer-inner nav { display: flex; gap: 1rem; }
.footer-inner nav a { display: inline-flex; align-items: center; min-height: 44px; }
#case-study { inset: 0; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: radial-gradient(ellipse at 85% 15%,#152449,transparent 55%),#080d1b; color: var(--ink); }
body:has(#case-study[open]) { overflow: hidden; }
.case-inner { width: min(100% - 3rem,1168px); margin: auto; padding-block: 2rem 4rem; }
.case-top { margin-bottom: clamp(1.75rem, 5vw, 4rem); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.case-grid h2 { font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.05em; line-height: 1.04; margin: .6rem 0 1.25rem; overflow-wrap: anywhere; }
.case-grid dl { display: grid; gap: .35rem; }
.case-grid dt { margin-top: .75rem; font-weight: 750; color: var(--accent); }
.case-grid dd { margin: 0; }
.case-gallery { min-width: 0; }
.case-detail { margin: 1rem 0 0; }
.case-detail-image { overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: var(--panel); }
.case-detail-image img { height: auto; }
.case-detail figcaption { margin-top: .5rem; color: var(--muted); font-size: .9rem; }
.noscript { position: fixed; bottom: 0; background: #1f3660; padding: 1rem; }
.about-music { margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.music-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.25rem, 4vw, 3rem);
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--panel);
}
.music-panel h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.15; margin-block: .35rem .75rem; }
.music-panel p:not(.eyebrow), .music-player details { color: var(--muted); }
.music-player { display: grid; gap: .65rem; }
.music-player select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: .65rem; padding: .6rem; }
.music-player audio { display: block; width: 100%; }
.music-player summary { cursor: pointer; }
.music-player details a { color: var(--accent); text-decoration: underline; }
#music-status:empty { display: none; }
.music-pause { position: fixed; right: 1rem; bottom: 1rem; z-index: 4; background: var(--bg); }

@media (max-width: 850px) {
  .music-panel { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1rem; }
  .lanyard { width: min(61%, 210px); }
  .strap { height: 10rem; }
  .badge-caption { bottom: 16%; }
}
@media (max-width: 640px) {
  .wrap, .case-inner { width: calc(100% - 2rem); }
  html { scroll-padding-top: 86px; }
  .site-header { top: 16px; width: calc(100% - 1.5rem); }
  #main-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
  #main-nav a { display: grid; place-items: center; min-height: 44px; padding: .25rem; font-size: .8rem; }
  .work-tabs button { gap: .25rem; }
  .hero { display: flex; flex-direction: column; gap: 1.2rem; min-height: auto; padding-bottom: 3rem; text-align: center; }
  .badge-stage { order: -1; width: 100%; height: 335px; }
  .lanyard { width: 154px; }
  .strap { width: 23px; height: 117px; }
  .strap span { display: none; }
  .badge { padding: .65rem; gap: .5rem; }
  .badge-top, .badge-bottom { font-size: .46rem; }
  .orbit { width: 210px; top: 23%; }
  .badge-caption { display: none; }
  .hero-copy { padding: 0; width: 100%; }
  h1 { font-size: clamp(2.45rem, 11vw, 3.65rem); margin-top: .65rem; }
  .role { margin-top: .85rem; }
  .intro { margin: .85rem auto 0; font-size: .97rem; line-height: 1.6; }
  .actions { justify-content: center; margin-top: 1.15rem; }
  .hero-links { justify-content: center; }
  .about-grid, .about-learning, .project-grid, .contact-panel, .case-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 1.6rem; }
  .about-greeting { font-size: clamp(2.7rem, 11vw, 3.65rem); }
  .about-photo { width: min(100%, 310px); justify-self: center; }
  .contact-panel { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
