@font-face {
  font-family: "DM Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/dm-sans-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("assets/fonts/dm-sans-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  color-scheme: dark;
  --base: #0a1221;
  --panel: #121f36;
  --panel-raised: #1a2946;
  --header: #0b1425e8;
  --ink: #f4f7ff;
  --muted: #b0bfd8;
  --accent: #9ad8ff;
  --accent-hover: #c4eaff;
  --on-accent: #0b2540;
  --secondary-accent: #c0b5ff;
  --line: #314363;
  --line-strong: #536992;
  --glow-blue: #1947816b;
  --glow-violet: #563d9a52;
  --intro-tint: #2b234d;
  --intro-fill: #163155;
  --pc-tint: #12424b;
  --pc-fill: #142f46;
  --mobile-tint: #472d62;
  --mobile-fill: #282449;
  --about-tint: #253f67;
  --about-fill: #222a48;
  --contact-tint: #4f342f;
  --contact-fill: #2b2543;
  --art-start: #121d39;
  --art-end: #202044;
  --art-grid: #bed8ff1e;
  --art-orbit: #96baff52;
  --shadow: #01071245;
  --pattern-line: #a9caff35;
  --pattern-detail: #c8b6ff55;
  --live-ink: #a2e6ba;
  --live-surface: #1a352b;
  --live-line: #3b6652;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --base: #f4f7fd;
  --panel: #fff;
  --panel-raised: #ebf2ff;
  --header: #f4f7fdec;
  --ink: #142340;
  --muted: #445571;
  --accent: #2151b5;
  --accent-hover: #1b3e91;
  --on-accent: #fff;
  --secondary-accent: #6643b7;
  --line: #cbd7ed;
  --line-strong: #a7b9dc;
  --glow-blue: #a4cdff87;
  --glow-violet: #d7c3ff8c;
  --intro-tint: #e8dbff;
  --intro-fill: #d5e6ff;
  --pc-tint: #c8efe9;
  --pc-fill: #d8eaf5;
  --mobile-tint: #ebdcff;
  --mobile-fill: #f5e1ed;
  --about-tint: #d3e3ff;
  --about-fill: #e5e0fc;
  --contact-tint: #f7e2cc;
  --contact-fill: #eadff5;
  --art-start: #d8e8ff;
  --art-end: #e9dfff;
  --art-grid: #3155a629;
  --art-orbit: #446ac05c;
  --shadow: #283e6720;
  --pattern-line: #435fa33d;
  --pattern-detail: #6f52ad4a;
  --live-ink: #205b39;
  --live-surface: #e5f5ea;
  --live-line: #a4ceae;
}
*, *::before, *::after { box-sizing: border-box; }
@property --scene-tint {
  syntax: "<color>";
  inherits: false;
  initial-value: #2b234d;
}
@property --scene-fill {
  syntax: "<color>";
  inherits: false;
  initial-value: #163155;
}
html { background: var(--base); scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  isolation: isolate;
  margin: 0;
  background: var(--base);
  color: var(--ink);
  line-height: 1.55;
}
body::before {
  --scene-tint: var(--intro-tint);
  --scene-fill: var(--intro-fill);
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 94% 8%, var(--scene-tint), transparent 68%),
    radial-gradient(ellipse at 7% 59%, var(--scene-fill), transparent 70%),
    var(--base);
  transition: --scene-tint .65s ease, --scene-fill .65s ease;
}
:root[data-backdrop="pc"] body::before { --scene-tint: var(--pc-tint); --scene-fill: var(--pc-fill); }
:root[data-backdrop="mobile"] body::before { --scene-tint: var(--mobile-tint); --scene-fill: var(--mobile-fill); }
:root[data-backdrop="about"] body::before { --scene-tint: var(--about-tint); --scene-fill: var(--about-fill); }
:root[data-backdrop="contact"] body::before { --scene-tint: var(--contact-tint); --scene-fill: var(--contact-fill); }
.backdrop-art {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.backdrop-pattern {
  position: absolute; inset: -3%; opacity: 0; transform: scale(1.035);
  transition: opacity .65s ease, transform .9s ease-out;
}
.backdrop-orbits {
  background:
    repeating-radial-gradient(ellipse at 89% 25%, transparent 0 53px, var(--pattern-line) 54px 55px, transparent 56px 75px),
    radial-gradient(circle, var(--pattern-detail) 1px, transparent 1.5px) 0 0 / 24px 24px;
  mask-image: radial-gradient(ellipse at 87% 35%, #000 6%, transparent 68%);
}
.backdrop-grid {
  background:
    repeating-linear-gradient(90deg, var(--pattern-line) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, var(--pattern-line) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(140deg, transparent 0 88px, var(--pattern-detail) 89px 90px, transparent 91px 150px);
  mask-image: linear-gradient(108deg, #000 0%, transparent 29%, transparent 67%, #000 100%);
}
.backdrop-pixels {
  background:
    radial-gradient(circle, var(--pattern-detail) 2px, transparent 2.6px) 7px 7px / 36px 36px,
    radial-gradient(circle, var(--pattern-line) 1px, transparent 1.5px) 0 0 / 12px 12px,
    repeating-radial-gradient(ellipse at 82% 78%, transparent 0 65px, var(--pattern-line) 66px 67px, transparent 68px 94px);
  mask-image: radial-gradient(ellipse at 93% 64%, #000, transparent 66%), radial-gradient(ellipse at 4% 17%, #000, transparent 48%);
}
.backdrop-waves {
  background: repeating-radial-gradient(ellipse at 13% 116%, transparent 0 27px, var(--pattern-line) 28px 29px, transparent 30px 46px);
  mask-image: linear-gradient(28deg, #000, transparent 72%);
}
.backdrop-rays {
  background: repeating-conic-gradient(from 20deg at 89% 84%, transparent 0 12deg, var(--pattern-line) 12.15deg 12.35deg, transparent 12.5deg 24deg);
  mask-image: radial-gradient(ellipse at 89% 84%, transparent 5%, #000 22%, transparent 72%);
}
:root:not([data-backdrop]) .backdrop-orbits,
:root[data-backdrop="intro"] .backdrop-orbits,
:root[data-backdrop="pc"] .backdrop-grid,
:root[data-backdrop="mobile"] .backdrop-pixels,
:root[data-backdrop="about"] .backdrop-waves,
:root[data-backdrop="contact"] .backdrop-rays { opacity: 1; transform: scale(1); }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input { font: inherit; }
button { cursor: pointer; }
button, input, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; width: 100%; }
[hidden] { display: none !important; }
.shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; top: 8px; left: 8px; color: var(--on-accent); background: var(--accent); padding: 8px 12px; }
.site-header { position: sticky; z-index: 4; top: 0; background: var(--header); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 42px); }
nav a, .footer > a:last-child { font-size: .875rem; color: var(--muted); font-weight: 600; }
.header-tools { display: flex; align-items: center; flex-shrink: 0; gap: 9px; }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  min-height: 41px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--muted);
}
.theme-toggle span {
  display: inline-grid; place-items: center; width: 27px; height: 30px;
  border-radius: 6px; font: 1.15rem/1 "Segoe UI Symbol", sans-serif;
}
.theme-toggle[aria-pressed="false"] .theme-moon,
.theme-toggle[aria-pressed="true"] .theme-sun { background: var(--panel-raised); color: var(--accent); }
.language { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--line); border-radius: 10px; }
.language button { background: transparent; color: var(--muted); border: 0; border-radius: 7px; font-size: .875rem; padding: 6px 10px; }
.language button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; column-gap: clamp(32px, 6vw, 98px); padding-top: clamp(42px, 6vw, 100px); align-items: center; }
.eyebrow { font-family: ui-monospace, Consolas, monospace; font-size: .875rem; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); }
.role { display: flex; align-items: center; gap: 10px; margin-bottom: 21px; }
.role span { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
h1 {
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(4rem, 8.3vw, 7.75rem);
  font-weight: 700;
  line-height: .99;
  letter-spacing: .005em;
}
.intro { max-width: 450px; margin-top: 29px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.17rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 8px; font-size: .92rem; font-weight: 700; }
.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.secondary { background: color-mix(in srgb, var(--panel) 76%, transparent); }
.secondary:hover, .theme-toggle:hover { border-color: var(--accent); }
.hero-art {
  align-self: stretch; min-height: 350px; position: relative; isolation: isolate; overflow: hidden;
  display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 26px;
  background:
    radial-gradient(ellipse at 34% 72%, var(--glow-blue), transparent 69%),
    radial-gradient(ellipse at 80% 16%, var(--glow-violet), transparent 66%),
    linear-gradient(145deg, var(--art-start), var(--art-end));
  box-shadow: 0 22px 56px var(--shadow), inset 0 1px #ffffff20;
}
.hero-art::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, var(--art-grid) 1px, transparent 1.5px) 0 0 / 14px 14px;
  mask-image: radial-gradient(ellipse at center, transparent 20%, black 70%, transparent 100%);
}
.orbit { position: absolute; pointer-events: none; width: 88%; aspect-ratio: 2.05; border: 1px solid var(--art-orbit); border-radius: 50%; }
.orbit-inner { rotate: -29deg; }
.orbit-outer { width: 100%; rotate: 23deg; border-style: dashed; opacity: .55; }
.art-spark {
  position: absolute; width: 17px; aspect-ratio: 1; color: var(--secondary-accent);
  background: currentColor;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.spark-top { top: 15%; right: 24%; }
.spark-bottom { bottom: 18%; left: 25%; width: 12px; color: var(--accent); }
.mosaic { width: min(98%, 540px); aspect-ratio: 1.23; position: relative; }
.tile {
  position: absolute; aspect-ratio: 1; object-fit: cover; border-radius: 21%;
  box-shadow: 0 13px 27px #06102a65, 0 0 0 4px #ffffff10; border: 1px solid #ffffff70;
}
.tile-a { width: 39%; top: 24%; left: 30%; rotate: -8deg; z-index: 2; }
.tile-b { width: 27%; top: 12%; right: 8%; rotate: 14deg; }
.tile-c { width: 27%; top: 12%; left: 8%; rotate: -15deg; }
.tile-d { width: 28%; bottom: 11%; right: 10%; rotate: 13deg; z-index: 3; }
.tile-e { width: 25%; bottom: 9%; left: 10%; rotate: -12deg; z-index: 3; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(35px, 5vw, 65px); border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--panel) 78%, transparent); box-shadow: 0 8px 24px var(--shadow); }
.stats div { display: flex; align-items: center; gap: 13px; padding: 16px 12px 16px clamp(10px, 2vw, 27px); }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: clamp(1.65rem, 4vw, 2.8rem); font-weight: 750; letter-spacing: -.06em; color: var(--accent); }
.stats dd { color: var(--muted); font-size: .875rem; line-height: 1.35; }
.section { margin-top: clamp(55px, 8vw, 108px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 25px; }
h2 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 750; line-height: 1.02; letter-spacing: -.065em; }
h3 { font-size: 1.3rem; line-height: 1.22; letter-spacing: -.025em; }
.section-head p, .panel p, .about-layout p:not(.eyebrow) { color: var(--muted); margin-top: 10px; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.project, .panel { background: linear-gradient(145deg, var(--panel), color-mix(in srgb, var(--panel) 88%, var(--panel-raised))); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; box-shadow: 0 7px 21px var(--shadow); }
.project { display: flex; flex-direction: column; }
.cover { aspect-ratio: 2.18; background: radial-gradient(ellipse at 80% 10%, color-mix(in srgb, var(--cover-tint) 65%, var(--panel-raised)), var(--panel) 85%); display: grid; place-items: center; padding: 16px; }
.cover span { font-size: clamp(1rem, 2.55vw, 1.9rem); text-align: center; font-weight: 850; line-height: 1.05; letter-spacing: -.045em; }
.cover:has(img) span { display: none; }
.cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cover { position: relative; }
.project-copy { display: flex; flex: 1; flex-direction: column; align-items: start; gap: 10px; padding: 19px; }
.project-copy .eyebrow { font-size: .8rem; color: var(--accent); }
.project-copy p:not(.eyebrow) { color: var(--muted); }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: auto; padding-top: 5px; }
.project-links a { color: var(--accent); font-size: .9rem; font-weight: 700; }
.project-links a:hover { text-decoration: underline; }
.icon-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 13px; }
.game { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; min-width: 0; padding: 10px; display: grid; gap: 9px; align-content: start; }
.game img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.game h3 { margin: 0 1px 4px; font-size: .875rem; overflow-wrap: anywhere; }
.icon-grid > .project { grid-column: span 3; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.icon-grid .cover { aspect-ratio: auto; min-height: 156px; }
.icon-grid .cover img { object-fit: contain; }
.release-badge {
  display: inline-flex; align-items: center; justify-self: start; gap: 6px; max-width: 100%;
  padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: 6px;
  background: var(--panel-raised); color: var(--muted);
  font-size: .875rem; font-weight: 650; line-height: 1.23;
}
.release-badge::before {
  content: ""; inline-size: 7px; block-size: 7px; flex: 0 0 auto;
  border: 1px solid currentColor; border-radius: 50%;
}
.release-badge[data-published="true"] { color: var(--live-ink); background: var(--live-surface); border-color: var(--live-line); }
.release-badge[data-published="true"]::before { background: currentColor; }
.game-play {
  display: flex; align-items: center; gap: 7px; justify-self: start; width: 100%;
  padding: 7px 8px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-raised);
  color: var(--accent); font-weight: 700; font-size: .875rem; text-align: left;
}
.game-play::before { content: ""; flex: 0 0 auto; border-left: 7px solid currentColor; border-block: 5px solid transparent; }
.game-play:hover { border-color: var(--accent); }
body:has(.game-player[open]) { overflow: hidden; }
.game-player {
  width: min(calc(100% - 24px), 430px); max-height: calc(100dvh - 24px); padding: 13px;
  border: 1px solid var(--line-strong); border-radius: 15px; background: var(--panel); color: var(--ink);
}
.game-player::backdrop { background: #030b18d9; }
.player-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.player-header h2 { font-size: clamp(1.1rem, 4vw, 1.5rem); letter-spacing: -.025em; }
.player-header .button { min-height: 38px; padding: 5px 10px; background: transparent; color: var(--ink); }
.player-screen { display: grid; place-items: center; background: #040a14; border-radius: 8px; overflow: hidden; }
.player-screen iframe {
  display: block; border: 0; width: min(100%, max(200px, 39dvh)); height: clamp(200px, 65dvh, 660px);
}
.player-fallback { display: inline-block; margin: 10px 0 0; color: var(--accent); font-size: .875rem; text-decoration: underline; }
.about-band {
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--panel) 76%, transparent), color-mix(in srgb, var(--panel) 42%, transparent));
  border-block: 1px solid var(--line);
}
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; padding-block: clamp(36px, 6vw, 74px); }
.about-layout p:not(.eyebrow) { max-width: 52ch; }
.timeline { border-left: 1px solid var(--line-strong); padding-left: 21px; display: grid; gap: 18px; }
.timeline article { position: relative; }
.timeline article::before { content: ""; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; position: absolute; top: 7px; left: -25px; }
.timeline h3 { margin-top: 5px; }
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: clamp(19px, 3vw, 35px); }
.panel h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.cv-row, address a { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.cv-row, address { margin-top: 14px; }
.cv-row a:first-child, address strong { font-weight: 700; }
.cv-row a:last-child { color: var(--accent); font-size: .875rem; }
.cv-row small { margin-left: 7px; color: var(--muted); }
address { font-style: normal; }
address span { color: var(--muted); font-size: .875rem; }
address strong { overflow-wrap: anywhere; }
.footer { border-top: 1px solid var(--line); margin-top: 68px; padding-block: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: .875rem; }
@media (max-width: 900px) {
  .shell { width: calc(100% - 48px); }
  .icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .icon-grid > .project { grid-column: span 2; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 5rem; }
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 58px; padding-block: 8px; gap: 10px; }
  nav { flex-wrap: wrap; gap: 0 clamp(9px, 3vw, 22px); }
  nav a { padding: 5px 0; }
  .hero { grid-template-columns: 1fr; row-gap: 25px; }
  h1 { font-size: clamp(3.5rem, 14vw, 5.75rem); }
  .hero-art { min-height: 0; }
  .mosaic { width: min(91%, 450px); }
  .header-tools { gap: 5px; }
  .stats { margin-top: 0; }
  .stats div { display: block; padding: 9px 7px; }
  .stats dd { font-size: .8125rem; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-layout, .bottom-grid { grid-template-columns: 1fr; gap: 22px; }
  .icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .icon-grid > .project { grid-column: 1 / -1; }
  .game { padding: 6px; }
  .game .release-badge { font-size: .75rem; padding: 4px 5px; gap: 4px; }
  .game-play { font-size: .8125rem; padding-inline: 5px; gap: 5px; }
  .section-head { align-items: start; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  nav { column-gap: 7px; }
  .theme-toggle span { width: 25px; }
  .language button { padding-inline: 7px; }
  .featured-grid { grid-template-columns: 1fr; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tile { transition: translate .25s ease-out; }
  .hero-art:hover .tile-a { translate: 0 -5px; }
  .hero-art:hover .tile-b, .hero-art:hover .tile-d { translate: 4px -3px; }
  .hero-art:hover .tile-c, .hero-art:hover .tile-e { translate: -4px -3px; }
  .game, .project { transition: border-color .18s ease-out, box-shadow .18s ease-out; }
  .game:hover, .project:hover { border-color: var(--line-strong); box-shadow: 0 10px 22px var(--shadow); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, .backdrop-pattern { transition: none; }
}
.role, .project-copy .eyebrow { text-transform: none; }
