:root {
  --bg: #050505;
  --ink: #f3f2ee;
  --muted: #8b8a85;
  --dim: #5a5954;
  --rule: rgba(255, 255, 255, .11);
  --amber: #f5b83d;
  --pad: clamp(18px, 3vw, 44px);
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .032) 0 1px, transparent 1px 118px),
    var(--bg);
}

body.np-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
[hidden] { display: none !important; }

.i-pause, .is-playing .i-play { display: none; }
.is-playing .i-pause { display: block; }

/* ---------- pills / labels ---------- */
.pill {
  display: inline-flex; align-items: center; position: relative;
  padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s;
}
.pill:hover { border-color: var(--ink); }
.pill.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill--dot::after { content: ""; position: absolute; top: -4px; right: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); border: 2px solid var(--bg); }

.label { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.nb { white-space: nowrap; }
.org { display: flex; align-items: center; gap: 16px; }
.logo { width: 44px; height: 44px; border-radius: 9px; flex: none; }
.edu-item .logo { width: 56px; height: 56px; border-radius: 11px; }
.label--gap { margin-top: clamp(56px, 7vw, 96px); }

.notice {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 6px; background: var(--amber); color: #1b1300;
  font-size: 13.5px; font-weight: 400; line-height: 1.3;
}
.notice svg { width: 17px; height: 17px; flex: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px var(--pad);
  background: linear-gradient(rgba(5, 5, 5, .97) 72%, rgba(5, 5, 5, 0));
}
.nav-mid, .nav-right { display: flex; align-items: center; gap: 8px; }
.nav-right { gap: 14px; }

.mini { display: flex; align-items: center; gap: 2px; padding: 3px 5px 3px 3px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; }
.mini-open { display: flex; align-items: center; gap: 9px; max-width: 190px; padding-right: 6px; }
.mini-open img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.is-playing .mini-open img { animation: spin 9s linear infinite; }
.mini-open span { font-family: var(--ui); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-btn { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mini-btn:hover { background: rgba(255, 255, 255, .12); }
.mini-btn svg { width: 15px; height: 15px; }
#miniToggle { background: var(--ink); color: var(--bg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 118px var(--pad) 34px;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title { font-weight: 300; font-size: clamp(38px, 5vw, 74px); letter-spacing: -.02em; line-height: 1.05; text-align: center; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.hero-tags .on { color: var(--ink); }

.hero-grid { flex: 1; width: 100%; max-width: 1320px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(20px, 4vw, 70px); padding: 26px 0; }
.hero-left { justify-self: start; padding-left: clamp(0px, 5vw, 90px); }
.stat { font-weight: 300; font-size: clamp(76px, 9.4vw, 138px); line-height: .9; letter-spacing: -.03em; }
.stat sup { font-size: .26em; letter-spacing: 0; vertical-align: top; position: relative; top: .35em; margin-left: .2em; }
.stat-label { max-width: 15em; margin: 14px 0 22px; font-size: 16.5px; line-height: 1.4; color: var(--muted); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 210px)); gap: 38px 38px; justify-self: end; padding-right: clamp(0px, 3vw, 50px); }
.facts dt { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.facts dd { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.3; }
.facts--row { grid-template-columns: repeat(3, minmax(0, 300px)); justify-self: start; padding: 0; }

.ring { position: relative; width: clamp(280px, 37vw, 540px); aspect-ratio: 1; }
.ring canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-glow { filter: blur(14px) saturate(1.25); }
.ring-hub { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.ring-hub span { font-weight: 300; font-size: clamp(26px, 3.4vw, 48px); line-height: 1; }
.ring-hub small { margin-top: 6px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ring-legend { position: absolute; left: 0; right: 0; bottom: -6px; display: flex; justify-content: center; gap: 22px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ring-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ring-legend .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink); }
.ring-legend .bar { width: 16px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #ff5a36, #f5b83d, #a8d45a); }

/* entrance */
.hero-title, .hero-tags, .hero-grid, .hero .notice, .nav { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.ready .hero-title, .ready .hero-tags, .ready .hero-grid, .ready .hero .notice, .ready .nav { opacity: 1; transform: none; }
.ready .hero-tags { transition-delay: .12s; }
.ready .hero-grid { transition-delay: .24s; }
.ready .hero .notice { transition-delay: .4s; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(84px, 11vw, 170px) var(--pad); }
.statement { font-weight: 300; font-size: clamp(23px, 2.9vw, 42px); line-height: 1.24; letter-spacing: -.01em; max-width: 24em; }
.statement--muted { color: var(--muted); }

.about { display: grid; grid-template-columns: minmax(120px, 19%) 1fr; gap: 20px; }
.about-body { display: grid; gap: clamp(22px, 2.6vw, 38px); }

.giant { font-weight: 600; font-size: clamp(54px, 12.4vw, 190px); line-height: .95; letter-spacing: -.045em; text-transform: uppercase; }
.exp-sec .giant { margin-left: 19%; }
.exp-wrap { position: relative; margin-top: clamp(40px, 6vw, 90px); padding-left: 19%; }
.years { position: absolute; left: 0; top: 0; writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; font-size: clamp(44px, 6.6vw, 96px); line-height: .95; letter-spacing: -.04em; white-space: nowrap; color: var(--ink); user-select: none; will-change: transform; }

.exp-head, .exp summary { display: grid; grid-template-columns: 1.05fr 1.4fr 1fr; gap: 20px; }
.exp-head { padding-bottom: 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.exp { border-top: 1px solid var(--rule); }
.exp:last-child { border-bottom: 1px solid var(--rule); }
.exp summary { padding: 24px 0; font-size: clamp(17px, 1.75vw, 25px); font-weight: 300; line-height: 1.2; cursor: pointer; list-style: none; position: relative; transition: color .18s; }
.exp summary::-webkit-details-marker { display: none; }
.exp summary small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.exp summary > span:last-child { color: var(--muted); padding-right: 30px; }
.exp summary::after { content: "+"; position: absolute; right: 2px; top: 20px; font-size: 24px; font-weight: 200; color: var(--amber); transition: transform .25s; }
.exp[open] summary::after { transform: rotate(45deg); }
.exp summary:hover { color: #fff; }
.exp-body { padding: 0 0 34px; max-width: 58em; }
.exp-body h3 { margin: 22px 0 12px; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.exp-body li { position: relative; padding-left: 20px; margin-bottom: 11px; font-size: clamp(16.5px, 1.3vw, 18.5px); font-weight: 300; line-height: 1.55; color: #cfcdc6; }
.exp-body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 1px; background: var(--muted); }

.thesis { overflow: hidden; }
.thesis-glow { position: absolute; left: 50%; top: 46%; width: min(1100px, 120vw); height: 440px; transform: translate(-50%, -50%); background: radial-gradient(ellipse 34% 46% at 34% 50%, rgba(255, 90, 54, .34), transparent 70%), radial-gradient(ellipse 44% 42% at 62% 50%, rgba(168, 212, 90, .2), transparent 72%); filter: blur(34px); pointer-events: none; }
.thesis > :not(.thesis-glow) { position: relative; }
.thesis-title { margin: 26px 0 44px; max-width: 17em; font-weight: 300; font-size: clamp(30px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -.02em; }
.notice--static { margin-top: 46px; }

.sheet-wrap { padding: 0 clamp(8px, 1vw, 14px); }
.sheet { background: #0c0c0b; border: 1px solid var(--rule); border-radius: clamp(24px, 3vw, 44px); padding: clamp(50px, 7vw, 110px) calc(var(--pad) + 8px); }
.edu { margin-top: 34px; }
.edu-item { display: grid; grid-template-columns: minmax(120px, 19%) 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid var(--rule); }
.edu-item:last-child { border-bottom: 1px solid var(--rule); }
.edu-when { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 8px; }
.edu-item h3 { font-weight: 400; font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -.015em; line-height: 1.1; }
.edu-deg { margin: 8px 0 16px; font-size: clamp(18px, 1.7vw, 23px); }
.edu-item p:not(.edu-deg) { max-width: 60em; margin-top: 8px; font-size: clamp(16.5px, 1.3vw, 18.5px); font-weight: 300; line-height: 1.55; color: #cfcdc6; }
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px clamp(24px, 4vw, 60px); margin-top: 34px; }
.skills h3 { padding-top: 16px; border-top: 1px solid var(--rule); font-weight: 500; font-size: 19px; }
.skills p { margin-top: 12px; font-size: clamp(16.5px, 1.3vw, 18.5px); font-weight: 300; line-height: 1.6; color: #cfcdc6; }
.langs { margin-top: 26px; font-weight: 300; font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -.01em; }

.piano { display: grid; justify-items: start; gap: 28px; }

.contact { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0 var(--pad); border-top: 1px solid var(--rule); }
.contact a { display: flex; justify-content: space-between; padding: 24px 28px 24px 0; font-size: clamp(16px, 1.6vw, 21px); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: color .18s; }
.contact a + a { padding-left: 28px; border-left: 1px solid var(--rule); }
.contact a:hover { color: var(--ink); }
.contact a span:last-child { color: var(--ink); transition: transform .18s; }
.contact a:hover span:last-child { transform: translate(3px, -3px); }

.projects { grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100svh; padding: clamp(130px, 16vw, 220px) var(--pad) 80px; display: grid; align-content: start; justify-items: start; gap: 34px; }

.pay { width: 100%; max-width: 902px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.pay:empty { display: none; }
.paycard { aspect-ratio: 1.586; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 22px 24px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; background: radial-gradient(ellipse 70% 80% at 15% 115%, rgba(255, 90, 54, .38), transparent 70%), radial-gradient(ellipse 60% 70% at 90% -10%, rgba(168, 212, 90, .2), transparent 70%), #0a0a09; }
.paycard-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.paycard-row span:first-child { color: var(--ink); }
.paycard-num { font-weight: 300; font-size: clamp(19px, 2vw, 26px); letter-spacing: .05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.foot { padding: 0 var(--pad) 26px; border-top: 1px solid var(--rule); overflow: hidden; }
.foot-mark { font-weight: 600; font-size: 24.5vw; line-height: .86; letter-spacing: -.05em; text-align: center; margin: 22px -2vw 10px; user-select: none; }
.foot-row { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- now playing ---------- */
.np {
  --ta: #7c3b3b; --tb: #3a2020; --tc: #b25050;
  position: fixed; inset: 0; z-index: 100;
  display: flex; justify-content: center;
  background: linear-gradient(180deg, var(--ta), var(--tb));
  color: #fff; font-family: var(--ui);
  transform-origin: calc(100% - 90px) 34px;
  transition: opacity .55s var(--ease), transform .7s var(--ease), visibility .7s, background .6s;
}
.np.is-closed { opacity: 0; transform: scale(.05); visibility: hidden; pointer-events: none; }

.np-col { width: min(100%, 440px); height: 100%; display: flex; flex-direction: column; padding: max(14px, env(safe-area-inset-top)) 24px 0; }
.np-top { display: flex; align-items: center; justify-content: space-between; height: 56px; flex: none; }
.np-playlist { font-weight: 700; font-size: 15px; }
.np-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; position: relative; flex: none; transition: transform .12s, opacity .15s; }
.np-icon:active, .np-play:active { transform: scale(.93); }
.np-icon svg { width: 28px; height: 28px; }
.np-top .np-icon:first-child { margin-left: -8px; }
.np-top .np-icon:last-child { margin-right: -8px; }

.np-art { flex: 1 1 auto; min-height: 120px; margin: 10px 0 18px; display: grid; place-items: center; position: relative; container-type: size; }
.np-art img { width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); object-fit: cover; border-radius: 6px; box-shadow: 0 14px 44px rgba(0, 0, 0, .35); background: rgba(0, 0, 0, .2); }
.np-queue { position: absolute; inset: 0; overflow-y: auto; padding: 8px; border-radius: 10px; background: rgba(0, 0, 0, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: none; }
.np.is-queue .np-queue { display: block; }
.np-queue button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; text-align: left; }
.np-queue button:hover { background: rgba(255, 255, 255, .1); }
.np-queue img { width: 42px; height: 42px; border-radius: 4px; box-shadow: none; flex: none; }
.np-queue b { display: block; font-size: 14px; font-weight: 600; }
.np-queue small { font-size: 12px; opacity: .7; }
.np-queue .is-current b { color: #1ed760; }

.np-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex: none; }
.np-names { min-width: 0; }
.np-title { font-weight: 700; font-size: 25px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-artist { margin-top: 2px; font-size: 17px; opacity: .72; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-check { width: 30px; height: 30px; border-radius: 50%; background: #1ed760; color: #0b2a14; display: grid; place-items: center; flex: none; }
.np-check svg { width: 18px; height: 18px; }

.np-seek { padding: 20px 0 8px; cursor: pointer; touch-action: none; flex: none; }
.np-seek-track { position: relative; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .26); }
.np-seek-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: #fff; }
.np-seek-knob { position: absolute; top: 50%; left: 0; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #fff; }
.np-times { display: flex; justify-content: space-between; font-size: 12px; opacity: .72; font-variant-numeric: tabular-nums; flex: none; }

.np-ctrl { display: flex; align-items: center; justify-content: space-between; margin: 12px -6px 10px; flex: none; }
.np-skip svg { width: 38px; height: 38px; }
.np-skip { width: 52px; height: 52px; }
.np-play { width: 70px; height: 70px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; transition: transform .12s; }
.np-play svg { width: 34px; height: 34px; }
.np-mode { opacity: .9; }
.np-mode.is-on { color: #1ed760; opacity: 1; }
.np-mode.is-on::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.np-one { display: none; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 700; line-height: 1; padding: 0 2px; background: var(--tb); }
.np-mode.is-one .np-one { display: block; }

.np-row { display: flex; align-items: center; justify-content: space-between; margin: 0 -8px; flex: none; }
.np-row-right { display: flex; gap: 8px; }
.np-small svg { width: 22px; height: 22px; }
.i-muted, [aria-pressed="true"] > .i-vol { display: none; }
[aria-pressed="true"] > .i-muted { display: block; }

.np-enter { flex: none; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; padding: 16px 16px calc(20px + env(safe-area-inset-bottom)) 20px; border-radius: 14px 14px 0 0; background: var(--tc); color: #fff; font-weight: 700; font-size: 18px; transition: filter .18s, background .6s; }
.np-enter:hover { filter: brightness(1.08); }
.np-enter-go { width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .22); display: grid; place-items: center; }
.np-enter-go svg { width: 18px; height: 18px; }
.intro .np-enter-go { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(2px, -2px); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav { flex-wrap: wrap; row-gap: 10px; }
  .nav-mid { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); width: calc(100% + 2 * var(--pad)); }
  .nav-mid::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 124px; }
  .hero { padding-top: 150px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .ring { grid-column: 1 / -1; grid-row: 1; justify-self: center; margin-bottom: 14px; }
  .hero-left { padding: 0; }
  .facts { justify-self: stretch; padding: 0; gap: 24px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills { grid-template-columns: 1fr; }
}

@media (min-width: 721px) { .nav-m { display: none; } }

@media (min-width: 1081px) { .hero .facts { grid-template-columns: minmax(0, 300px); gap: 26px; } }

@media (max-width: 720px) {
  .nav-d { display: none; }
  .mini-open span { display: none; }
  .mini-open { padding-right: 2px; }
  #miniNext { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-left { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 18px; }
  .stat-label { margin: 0 0 6px; }
  .hero-left .pill { display: none; }
  .ring { width: min(86vw, 52svh); }
  .ring-legend { gap: 12px; font-size: 9px; }
  .about, .edu-item { grid-template-columns: 1fr; gap: 14px; }
  .exp-sec .giant { margin-left: 0; }
  .exp-wrap { padding-left: 0; }
  .years { display: none; }
  .exp-head { display: none; }
  .exp summary { grid-template-columns: 1fr; gap: 6px; padding-right: 34px; }
  .exp summary > span:nth-child(2) { font-size: 15px; color: #cfcdc6; }
  .exp summary > span:last-child { font-size: 13px; padding: 0; }
  .facts--row { grid-template-columns: 1fr; gap: 20px; }
  .contact { grid-template-columns: 1fr; }
  .contact a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .foot-row { flex-direction: column; gap: 6px; }
}

@media (max-height: 640px) {
  .np-title { font-size: 20px; }
  .np-artist { font-size: 14px; }
  .np-play { width: 58px; height: 58px; }
  .np-seek { padding-top: 12px; }
  .np-ctrl { margin-top: 6px; margin-bottom: 4px; }
  .np-enter { padding-top: 11px; padding-bottom: calc(12px + env(safe-area-inset-bottom)); margin-top: 8px; }
}

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