/* latin */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/bricolage-grotesque-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;
}
/* latin-ext */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/bricolage-grotesque-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;
}
/* latin */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/literata-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;
}
/* latin-ext */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(assets/fonts/literata-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;
}
:root {
  --paper: #f4f1e9;
  --ink: #242622;
  --muted: #62635a;
  --accent: #9b432f;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "Bricolage Grotesque", Arial, Helvetica, sans-serif;
  --music-sans: var(--sans);
  --gradient: linear-gradient(110deg, #243d38, #665079 35%, #9b432f 65%, #243d38);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: inherit; text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:where(a, button, audio, input):focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
p, h1, h2, h3, blockquote, ul, dd { margin: 0; }
h1, h2, h3 { line-height: 1.1; }
h1 { font: 700 clamp(60px, 7.1vw, 102px)/.98 var(--sans); letter-spacing: -.065em; }
h2 { font: 700 clamp(44px, 5vw, 72px)/1.1 var(--sans); letter-spacing: -.04em; }
h3 { font: 700 19px/1.3 var(--sans); letter-spacing: -.015em; }
sup { font-size: .6em; line-height: 0; }
img { display: block; width: 100%; height: auto; }
.wrap { width: min(1320px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
nav { display: flex; flex-wrap: wrap; gap: 16px; }
nav a { padding-block: 10px; text-decoration: none; font-size: 15px; }
.hero { position: relative; isolation: isolate; min-height: 100svh; padding-block: 46px 26px; display: flex; align-items: flex-start; }
.hero-copy { position: relative; z-index: 1; width: 56%; }
.profession { display: inline-block; padding: 5px 18px 7px; margin-bottom: 14px; border-radius: 999px; background: #f4bde1; color: #493452; font-size: 21px; font-weight: 600; }
.biography { max-width: 650px; margin-top: 22px; font-size: 18px; line-height: 1.5; }
.biography p + p { margin-top: 12px; }
.biography .about-lead + p { margin-top: 30px; }
.biography .about-lead { font: 600 clamp(24px, 2.1vw, 30px)/1.3 var(--music-sans); letter-spacing: -.02em; }
.portrait-space { position: absolute; z-index: 0; inset: 0 calc((100vw - 100%) / -2 + 20px) 0 50%; }
.portrait-space img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; }
.bio-closing { max-width: 590px; margin-top: 30px; font: 600 clamp(24px, 2.1vw, 30px)/1.3 var(--music-sans); letter-spacing: -.02em; color: #6d3e5b; }
.button { position: relative; isolation: isolate; overflow: hidden; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 17px 27px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 17px; font-weight: 600; line-height: 1.35; text-align: center; }
.button:hover { color: var(--paper); }
.button-label { position: relative; z-index: 1; display: inline-flex; gap: 12px; align-items: center; }
/* Animata Work Button adaptation; license: assets/licenses/animata-MIT.txt. */
.button::before { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 180px; border-radius: 999px; background: currentColor; opacity: .12; transform: translateY(100%); transition: transform 300ms ease-out; }
.button:is(:hover, :focus-visible)::before { transform: translateY(35%); }
.steam-icon { width: 34px; height: 34px; flex-shrink: 0; }
.game-floor { padding-block: 50px 70px; }
.burn-floor { background: #0e0d13; color: #e9e1f5; --ink: #e9e1f5; --paper: #0e0d13; --muted: #bdb3cb; --accent: #f5bc66; --description: #d2c0e8; --panel: #26202f; --gradient: linear-gradient(110deg, #b796ef, #ffb000 45%, #ff7544 70%, #b796ef); }
.robot-floor { background: #1c2d48; color: #f2f5ef; --ink: #f2f5ef; --paper: #1c2d48; --muted: #bdcbdc; --accent: #c7e757; --description: #c7dbea; --panel: #243b59; --gradient: linear-gradient(110deg, #c5f500, #21dc9d 45%, #ffe600 70%, #c5f500); }
.project-art { display: block; width: min(100%, 1120px); margin: -15px auto 30px; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 88%, transparent); mask-composite: intersect; }
.project-heading { margin-bottom: 30px; }
.project-title-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; }
.project-title-line h2 { font-family: var(--serif); font-weight: 700; }
.steam-link { display: inline-flex; justify-content: center; align-items: center; width: 44px; height: 44px; color: var(--muted); opacity: .75; border-radius: 50%; }
.steam-link:hover { color: var(--accent); opacity: 1; }
.project-heading h2 { width: fit-content; }
.score-summary { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin-top: 18px; font-size: 14px; }
.score-summary li { padding: 5px 13px; border-radius: 999px; background: var(--panel); color: var(--accent); }
.project-columns { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 0 64px; }
.project-columns > :not(.project-listening) { grid-column: 1; min-width: 0; }
.game-description { font: 400 18px/1.7 var(--serif); color: var(--description); }
.game-description p + p { margin-top: 18px; }
.game-description strong { color: inherit; font-weight: 600; }
.music-copy { margin-top: 34px; font: 400 18px/1.65 var(--music-sans); }
.music-copy > p { max-width: none; }
.music-copy > p + p { margin-top: 20px; }
.music-story { margin-left: 28px; font: 600 30px/1.35 var(--music-sans); letter-spacing: -.02em; }
.platform-icon { display: block; width: 19px; height: 19px; flex-shrink: 0; }
.platform-links a, .player-source, nav a { display: inline-flex; align-items: center; gap: 8px; }
.platform-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 25px; color: var(--accent); font-size: 15px; }
.project-listening { position: sticky; top: 25px; grid-column: 2; grid-row: 1 / span 5; }
.player { font-family: var(--music-sans); padding: 24px; border-radius: 24px; background: var(--panel); }
.player h3 { font: 600 22px/1.3 var(--music-sans); }
.player-caption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.player audio { display: block; width: 100%; margin-block: 20px; border-radius: 999px; }
.player noscript a { display: inline-flex; align-items: center; gap: 8px; }
.player-source { display: inline-flex; align-items: center; gap: 8px; margin-top: 15px; font-size: 14px; color: var(--accent); }
.track-list { list-style: none; padding: 0; }
.track-list button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); padding: 12px; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.track-list button:hover { background: #ffffff0d; }
.track-list button[aria-pressed="true"] { background: var(--accent); color: var(--paper); font-weight: 700; }
.track-name { flex: 1; }
.track-duration { font-size: 13px; font-variant-numeric: tabular-nums; }
.player-status { color: var(--muted); font-size: 13px; margin-top: 10px; }
.player-status:empty { margin: 0; }
.review-section, .press-section { margin-top: 34px; padding: 24px; background: var(--panel); border-radius: 20px; }
.review-section h3, .press-section h3 { display: inline-block; color: var(--accent); font-size: 16px; margin-bottom: 20px; }
.reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
blockquote p { font: 19px/1.65 var(--music-sans); }
cite { display: block; font-size: 12px; font-style: normal; margin-top: 12px; color: var(--muted); }
.music-mention { font-style: normal; font-weight: 600; color: inherit; padding-bottom: 3px; background: linear-gradient(var(--accent), var(--accent)) left bottom / 100% 3px no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.source-note { color: var(--muted); font-size: 13px; }
.jam-section { padding-block: 65px; }
.jam-intro { max-width: 720px; margin-top: 22px; font-size: 19px; }
.jam-cover { display: block; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.jam-cover:disabled { cursor: default; }
.jam-media { position: relative; margin-bottom: 16px; }
.jam-cover .jam-art { position: relative; }
.cover-action { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #f4f1e9ed; color: #242622; opacity: 0; transition: opacity 180ms ease-out; }
.cover-action svg { width: 28px; height: 28px; }
.jam-cover:is(:hover, :focus-visible, [aria-pressed="true"]) .cover-action { opacity: 1; }
.jam-cover[aria-pressed="true"] .cover-action { background: #665079; color: #fff; }
.jam-card audio { width: 100%; margin-bottom: 14px; }
.jam-card audio[hidden] { display: none; }
.jam-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 45px; list-style: none; padding: 0; margin-top: 36px; }
.jam-list a { display: block; text-decoration: none; padding-block: 4px; }
.jam-list .jam-name:hover { text-decoration: underline; }
.jam-art { display: block; aspect-ratio: 5 / 4; background: #e7e2d8; }
.jam-art img { width: 100%; height: 100%; object-fit: cover; }
.jam-name { display: block; width: fit-content; font: 700 29px/1.25 var(--music-sans); }
.jam-card { font-family: var(--music-sans); }
.jam-description { margin-top: 8px; font-size: 17px; line-height: 1.5; }
.jam-highlight { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }
.jam-event { display: block; font-size: 16px; font-weight: 600; margin-top: 8px; }
.jam-list .jam-listen { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; text-decoration: underline; color: var(--accent); }
.contact-section { padding-block: 100px; background: #edd5e8; --gradient: linear-gradient(110deg, #403252, #7b3931 40%, #284d42 70%, #403252); }
.contact-section h2 { max-width: 1100px; font: 700 clamp(44px, 6.3vw, 90px)/1.08 var(--music-sans); letter-spacing: -.045em; }
.contact-button { margin-top: 30px; padding: 20px 40px; font-size: 21px; }
.contact-section nav { margin-top: 24px; }
footer { display: flex; justify-content: flex-end; padding-block: 25px; font-size: 14px; }
/* Restrained, single-pass Animata-inspired gradients on requested headings only. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .gradient-text { background: var(--gradient); background-size: 220% 100%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: text-gradient 6s ease-in-out both; }
}
.project-title-line .gradient-text { animation: game-gradient 4.444s ease-in-out infinite alternate; }
.jam-section h2.gradient-text { animation: game-gradient 6.667s ease-in-out infinite alternate; }
@keyframes game-gradient { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes text-gradient { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@media (max-width: 1100px) {
  .project-columns { grid-template-columns: minmax(0, 1fr) 330px; gap: 0 35px; }
  .hero-copy { width: 56%; }
  .hero { align-items: flex-start; padding-top: 30px; }
  .portrait-space { left: 55%; }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 44px); }
  .hero { min-height: auto; padding-block: 12px 40px; }
  .hero-copy { width: 100%; }
  h1 { font-size: clamp(54px, 10vw, 76px); max-width: 680px; }
  .profession { font-size: 18px; }
  .portrait-space { position: relative; inset: auto; width: min(420px, 85%); height: auto; margin: 22px auto -40px; order: 1; }
  .portrait-space img { height: auto; }
    .hero { flex-direction: column; }
  .biography { max-width: 650px; }
  .biography p { font-size: 17px; }
  .game-floor { padding-block: 35px 45px; }
  .project-art { margin-top: -10px; }
  .music-story { margin-left: 12px; }

  .project-columns { grid-template-columns: 1fr; gap: 30px; }
  .project-listening { position: static; order: 0; max-width: 600px; width: 100%; }
  .player { padding: 22px; }
  .music-story { font-size: 26px; }
  .jam-list { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contact-section { padding-block: 65px; }
}
@media (max-width: 480px) {
  .reviews, .jam-list { grid-template-columns: 1fr; }
  .profession { margin-bottom: 16px; }
  .review-section, .press-section { padding: 20px; }
  .score-summary { gap: 8px; font-size: 13px; }
  .score-summary li { padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .gradient-text, .project-title-line .gradient-text, .jam-section h2.gradient-text { animation: none; }
  .button::before, .jam-art, .cover-action { transition: none; }
  .button:is(:hover, :focus-visible)::before { transform: translateY(100%); }
}
@media (forced-colors: active) {
  .gradient-text, .project-title-line .gradient-text, .jam-section h2.gradient-text { background: none; color: CanvasText; animation: none; }
  .button, .player, .track-list button[aria-pressed="true"] { border: 1px solid ButtonText; }
  .button::before { display: none; }
}

/* Compact native-audio enhancement. The audio engine and sources stay local. */
.audio-controls { display: flex; align-items: flex-start; gap: 14px; margin-block: 22px; color: var(--accent); }
.audio-controls[hidden] { display: none; }
.audio-toggle { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; border: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }
.audio-toggle:hover { background: var(--accent); color: var(--paper); }
.audio-toggle svg { width: 24px; height: 24px; }
.audio-timeline { flex: 1; min-width: 0; padding-top: 12px; }
.audio-seek { display: block; }
.audio-time { display: flex; justify-content: space-between; margin-top: 6px; font: 13px/1.2 var(--music-sans); font-variant-numeric: tabular-nums; color: var(--muted); }
.audio-controls input { width: 100%; margin: 0; accent-color: var(--accent); cursor: pointer; }
.jam-media .audio-controls { position: absolute; inset: auto 12px 10px; margin: 0; padding: 6px 12px; border-radius: 14px; background: #242622ee; --muted: #e2dfd7; --accent: #f4bde1; opacity: 0; pointer-events: none; }
.jam-media:has(.jam-cover[aria-pressed="true"]) .audio-controls, .jam-media .audio-controls:focus-within { opacity: 1; pointer-events: auto; }
.jam-media .audio-timeline { padding-top: 0; }
.jam-media .audio-time { margin-top: 0; }
@media (hover: none) { .cover-action { opacity: 1; } }
@media (min-width: 801px) and (max-width: 1100px) {
  .project-listening { position: static; }
}
@media (max-width: 800px) {
  .project-columns { display: flex; flex-direction: column; }
  .project-heading { order: 0; margin-bottom: 0; }
  .project-listening { order: initial; grid-column: auto; grid-row: auto; }
}

.player audio[hidden] { display: none; }

.audio-controls input[type="range"] { appearance: none; -webkit-appearance: none; height: 24px; background: transparent; }
.audio-controls input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--muted); }
.audio-controls input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: var(--accent); }
.audio-controls input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--muted); }
.audio-controls input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--accent); }
.audio-controls input:disabled { opacity: .45; cursor: default; }
@media (forced-colors: active) {
  .audio-controls input[type="range"] { appearance: auto; }
  .audio-toggle { border-color: ButtonText; }
}

/* Requested motion stays behind the portrait and never hides readable content. */
.hero-ambient { position: absolute; z-index: -1; inset: 0 calc((100vw - 100%) / -2); overflow: clip; pointer-events: none; contain: paint; }
.hero-ambient span { position: absolute; left: 53%; top: 36%; width: 520px; aspect-ratio: 1; background: radial-gradient(ellipse, #e6bddb 0%, #e6bddb00 68%); opacity: .45; }
.hero-ambient span:nth-child(2) { left: 69%; top: 8%; width: 380px; background: radial-gradient(ellipse, #c7bddc 0%, #c7bddc00 68%); }
@media (prefers-reduced-motion: no-preference) {
  .text-arrival.is-revealed { animation: text-arrival 780ms cubic-bezier(.22, 1, .36, 1) both; }
  .hero-ambient span { animation: ambient-drift 24s ease-in-out infinite alternate; animation-play-state: paused; }
  .hero-ambient span:nth-child(2) { animation-delay: -12s; animation-direction: alternate-reverse; }
  .hero.ambient-running .hero-ambient span { animation-play-state: running; }
}
@keyframes text-arrival { from { opacity: .2; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ambient-drift { from { transform: translate(-25px, 12px) rotate(-8deg); } to { transform: translate(30px, -28px) rotate(8deg); } }
@media (max-width: 800px) { .hero-ambient span { left: 22%; top: 62%; width: 350px; } .hero-ambient span:nth-child(2) { left: 45%; top: 68%; width: 240px; } }
@media (forced-colors: active) { .hero-ambient { display: none; } }

/* Original jam covers remain visible during playback. */
.cover-action { z-index: 1; }
.player-cover { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--paper); border-radius: 12px; margin-bottom: 18px; }
.robot-floor .music-story { color: #d4ed89; }
.robot-floor .project-art { width: min(calc(100% + 64px), 1280px); max-width: calc(100vw - 24px); margin-left: 50%; transform: translateX(-50%); mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent), linear-gradient(to bottom, transparent, #000 2%, #000 90%, transparent); }
.jam-section h2 { font-weight: 700; }
@media (max-width: 800px) {
  .robot-floor .project-art { width: calc(100% + 20px); max-width: calc(100vw - 24px); }
}

.burn-floor .music-story { color: #e8aade; }
.platform-links .streaming-link { gap: 5px; }
.contact-email { display: block; width: fit-content; max-width: 100%; margin-top: 22px; font-size: 20px; overflow-wrap: anywhere; }

@media (min-width: 1101px) {
  .player-cover { max-width: 280px; margin-inline: auto; }
}

.review-section > .source-note { margin: -10px 0 20px; }
@media (min-width: 1101px) { #burn-player .player-cover { max-width: 240px; } }
