:root {
  --bg: #141419;
  --panel: #1c1c23;
  --text: #efedf4;
  --muted: #b1adbd;
  --accent: #bba6f4;
  --line: #35323e;
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { border: 0; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; letter-spacing: -.035em; }
h2 { font-size: 30px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
button svg, a svg { pointer-events: none; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px; background: var(--accent); color: var(--bg); transform: translateY(-200%); z-index: 100; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 86px; }
.brand-name { font-size: 24px; font-weight: 650; letter-spacing: -.04em; }
.desktop-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.desktop-nav a { display: flex; align-items: center; gap: 7px; }
.desktop-nav .icon { width: 16px; height: 16px; }
.menu-toggle { display: none; background: none; width: 44px; height: 44px; padding: 10px; }
.menu-toggle span { display: block; height: 2px; background: var(--text); margin: 6px 0; }
.mobile-menu { padding: 0 24px 20px; }
.mobile-menu a { display: block; padding: 12px 0; }
.hero-content { padding: 90px 0; display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: 80px; }
.hero h1 { font-size: clamp(36px, 4.8vw, 58px); }
.hero-description { color: var(--muted); max-width: 500px; font-size: 19px; line-height: 1.7; margin-top: 22px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; margin-top: 30px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; padding: 12px 20px; min-height: 48px; background: var(--accent); color: #1c152d; font-size: 16px; font-weight: 550; border-radius: 6px; }
.button:hover { background: #d0bffb; color: #1c152d; }
.text-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: underline; text-underline-offset: 6px; }
.current-role { border-left: 2px solid #72618e; padding: 6px 0 6px 26px; }
.role-company { color: var(--accent); font-size: 18px; margin-bottom: 12px; }
.current-role h2 { font-size: 24px; line-height: 1.35; }
.role-board { color: var(--muted); margin-top: 10px; }
.current-role > a { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; }
.work { padding: 60px 0 70px; border-block: 1px solid var(--line); }
.section-heading { margin-bottom: 30px; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.project-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.project-art { display: block; position: relative; width: 100%; height: 260px; padding: 0; overflow: hidden; }
.art-corner { position: absolute; right: 18px; top: 18px; z-index: 1; }
.development-art { background: #232936; color: #d4ddef; }
.development-visual { height: 100%; display: flex; align-items: center; justify-content: center; gap: 20px; }
.development-visual strong { font-size: 36px; line-height: 1.2; letter-spacing: -.04em; font-weight: 550; }
.development-bracket { font-size: 80px; font-weight: 300; color: #7e91b2; }
.rankblox-art { background: #7c3ced; }
.rankblox-logo { width: 100%; height: 100%; object-fit: contain; }
.project-info { padding: 26px; }
.project-info h3 { margin-bottom: 16px; }
.project-info h3 button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0; gap: 12px; text-align: left; background: none; font-size: 24px; letter-spacing: -.035em; font-weight: 600; }
.project-info > p { color: var(--muted); }
.project-highlights { margin-top: 22px; }
.project-highlights button { display: flex; align-items: center; gap: 12px; padding: 14px 0; width: 100%; text-align: left; background: none; border-bottom: 1px solid var(--line); }
.project-highlights button:hover { color: var(--accent); }
.project-highlights .icon { color: var(--muted); }
.project-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.project-bottom button, .project-bottom a { display: inline-flex; align-items: center; gap: 7px; background: none; color: var(--accent); padding: 0; font-size: 16px; }
.inline-showcase { margin-top: 24px; }
.video-heading { margin-bottom: 12px; }
.video-heading a, .project-video > a { color: var(--accent); }
.video-embed { aspect-ratio: 16/9; background: #121116; border-radius: 5px; overflow: hidden; }
.video-embed iframe { width: 100%; height: 100%; display: block; border: 0; }
.about { padding: 70px 0 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; padding-bottom: 50px; }
.about-copy > p { margin-top: 20px; color: var(--muted); }
.about-copy .text-link { margin-top: 24px; color: var(--accent); }
.presence-card { background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 26px; min-width: 0; }
.presence-card-top { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 25px; }
.presence-profile { display: flex; align-items: center; gap: 16px; }
.presence-avatar-wrap { position: relative; flex-shrink: 0; }
.presence-avatar-wrap img { width: 60px; height: 60px; border-radius: 10px; }
.status-dot { display: inline-block; background: #85828d; border-radius: 50%; width: 10px; height: 10px; }
.presence-avatar-wrap .status-dot { position: absolute; right: -3px; bottom: -3px; border: 3px solid var(--panel); width: 18px; height: 18px; }
.status-dot[data-status=online] { background: #78cda5; }
.status-dot[data-status=idle] { background: #e3c57a; }
.status-dot[data-status=dnd] { background: #df808b; }
.presence-profile strong { display: block; font-size: 21px; }
.presence-handle { display: block; font-size: 16px; color: var(--muted); font-weight: 400; }
.presence-label { display: block; margin-top: 3px; color: var(--muted); }
.presence-activity { margin-top: 24px; }
.presence-empty { color: var(--muted); font-size: 16px; }
.activity-card { display: flex; gap: 14px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.activity-card + .activity-card { margin-top: 18px; }
.activity-art { width: 48px; height: 48px; border-radius: 5px; object-fit: cover; }
.activity-copy { min-width: 0; }
.activity-name { font-size: 17px; overflow-wrap: anywhere; }
.activity-meta { color: var(--muted); font-size: 16px; overflow-wrap: anywhere; }
.spotify-progress { height: 3px; background: var(--line); margin-top: 12px; }
.spotify-progress-fill { height: 100%; background: var(--accent); }
.toolkit { padding: 30px 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 35px; }
.toolkit h3 { font-size: 18px; white-space: nowrap; }
.toolkit ul { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 0; margin: 0; color: var(--muted); }
.tech-symbol { display: none; }
.contact { padding: 60px 0 0; border-top: 1px solid var(--line); }
.contact-content { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; padding-bottom: 40px; }
.contact-copy p { color: var(--muted); max-width: 500px; margin-bottom: 22px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 20px 48px; padding: 28px 0 50px; }
.contact-links > a, .contact-links > button { display: flex; align-items: center; gap: 12px; background: none; padding: 0; text-align: left; font-size: 17px; overflow-wrap: anywhere; }
.contact-link-arrow { width: 16px; height: 16px; color: var(--muted); }
.site-footer { padding: 30px 0; border-top: 1px solid var(--line); }
.site-footer > .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-wordmark { font-size: 22px; font-weight: 600; }
#back-to-top { display: flex; align-items: center; gap: 10px; }
.footer-bottom { width: 100%; display: flex; flex-wrap: wrap; gap: 14px 28px; color: var(--muted); font-size: 16px; }
.legal-note { width: 100%; }
.detail-dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 30px; width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; }
.detail-dialog.has-videos { width: min(920px, calc(100% - 32px)); }
.detail-dialog::backdrop { background: #000b; }
.dialog-top { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.close-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; background: #33303d; font-size: 28px; }
.detail-dialog > p { color: var(--muted); margin-top: 20px; }
.project-stack { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; color: var(--accent); }
.project-videos { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.project-videos:empty { display: none; }
.project-video h3 { font-size: 18px; margin-bottom: 12px; }
.project-video > a { display: inline-block; margin-top: 10px; }
.detail-dialog > .button { margin-top: 24px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 14px 22px; border-radius: 6px; max-width: calc(100% - 32px); z-index: 100; opacity: 0; pointer-events: none; }
.toast.is-visible { opacity: 1; pointer-events: auto; }
.reveal, .js-reveal .reveal { opacity: 1; transform: none; }
@media (min-width: 701px) { .mobile-menu { display: none; } }
@media (max-width: 900px) {
  .hero-content { gap: 40px; }
  .about-grid { gap: 32px; }
  .project-info { padding: 22px; }
  .project-info h3 button { font-size: 22px; }
  .toolkit { align-items: flex-start; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 74px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .hero-content { grid-template-columns: 1fr; gap: 36px; padding: 50px 0; }
  .hero-description { font-size: 18px; }
  .current-role h2 br { display: none; }
  .current-role h2 { font-size: 22px; }
  .projects-grid, .about-grid, .contact-content, .project-videos { grid-template-columns: 1fr; }
  .work, .about { padding-top: 45px; }
  .work { padding-bottom: 45px; }
  .project-art { height: 240px; }
  .about-grid { gap: 32px; padding-bottom: 32px; }
  .toolkit { flex-direction: column; gap: 18px; }
  .contact { padding-top: 40px; }
  .contact-content { gap: 22px; padding-bottom: 12px; }
  .contact-links { flex-direction: column; gap: 26px; padding-bottom: 40px; }
  .contact-links > a, .contact-links > button { font-size: 16px; }
  .presence-card { padding: 22px; }
  .detail-dialog { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
