/* Sudden Soft - site styles */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans.woff2") format("woff2");
  font-weight: 100 700;
  font-stretch: 85% 100%;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Zen Old Mincho";
  src: url("../fonts/zen-old-mincho.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Zen Old Mincho";
  src: url("../fonts/zen-old-mincho-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* Sudden Soft */
  --ink: #0a0a0c;
  --ink-2: #141418;
  --bone: #ece9df;
  --muted: #9b9aa3;
  --lime: #dfe36a;
  --mint: #8fe3b4;
  --line: rgba(236, 233, 223, .14);
  /* from rose, taken from the studio's own artwork */
  --fr-cream: #e6e0cd;
  --fr-paper: #f1ecdd;
  --fr-mustard: #e2a90f;
  --fr-amber: #a57a0a;
  --fr-brown: #2b1614;
  --fr-muted: #6b6250;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;

  --gutter: clamp(20px, 4vw, 56px);
  --radius: 6px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap: cubic-bezier(0.34, 1.56, 0.64, 1);

  --bg: var(--ink);
  --fg: var(--bone);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--ink);
  padding: 10px 16px; border-radius: 4px; font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 16px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- type ---------- */

.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 125%;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: -0.015em;
  margin: 0;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--muted);
}
.eyebrow .jp { letter-spacing: .2em; text-transform: none; }
.lede { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.5; max-width: 32em; }
.jp-v { writing-mode: vertical-rl; letter-spacing: .35em; font-size: 13px; }

/* ---------- mascot and wordmark ---------- */

.mascot {
  display: inline-block; aspect-ratio: 900 / 940; width: 1em;
  background: currentColor;
  -webkit-mask: url("../mascot.png") center / contain no-repeat;
  mask: url("../mascot.png") center / contain no-repeat;
}
.wordmark {
  display: inline-flex; align-items: center; gap: .18em;
  font-family: var(--display); font-weight: 900; font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -0.01em; line-height: 1;
}
.wordmark .soft {
  font-size: .42em; font-weight: 800; letter-spacing: .06em;
  background: currentColor; border-radius: .28em; padding: .16em .34em .14em;
}
.wordmark .soft span { color: var(--ink); }

/* ---------- nav ---------- */

.nav {
  position: fixed; inset: 16px var(--gutter) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone);
  padding: 8px 14px 8px 10px; border-radius: 8px;
  background: rgba(10, 10, 12, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}
.brand .mascot { font-size: 28px; }
.brand .wordmark { font-size: 20px; }
.brand .wordmark .soft { font-size: .55em; }
.nav-links {
  display: flex; gap: 2px; list-style: none; margin: 0; padding: 5px;
  background: rgba(10, 10, 12, .55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 8px;
}
.nav-links a {
  display: block; padding: 8px 14px; border-radius: 5px;
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--bone);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: rgba(236, 233, 223, .1); }
.nav-links a[aria-current="page"], .nav-links a.is-section { background: var(--lime); color: var(--ink); }
.nav-links .rose-link[aria-current="page"], .nav-links .rose-link.is-section { background: var(--fr-mustard); color: var(--fr-brown); }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav { inset: 12px 12px auto; justify-content: flex-start; }
  .nav > nav { width: 0; }
  .nav-toggle {
    margin-left: auto; display: inline-flex; align-items: center;
    background: var(--lime); color: var(--ink); border: 0; border-radius: 6px;
    padding: 11px 16px; font-weight: 600; cursor: pointer;
  }
  .nav-links {
    position: fixed; inset: 68px 12px auto; flex-direction: column; padding: 8px;
    background: rgba(10, 10, 12, .92);
    opacity: 0; transform: translateY(-8px); visibility: hidden;
    transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
  }
  .nav-links a { padding: 14px 16px; font-size: 18px; }
  .nav.is-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .brand .wordmark { font-size: 16px; }
}

/* home: the hero lockup is the logo until the hero scrolls away */
.home .brand { transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.js .home:not(.past-boot) .brand { opacity: 0; transform: translateY(-12px); pointer-events: none; }

/* ---------- layout ---------- */

.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.section { padding-block: clamp(80px, 12vw, 170px); position: relative; }
.page-head {
  position: relative; overflow: hidden;
  padding-top: clamp(140px, 18vw, 220px);
  padding-bottom: clamp(56px, 8vw, 110px);
}
.page-head > .wrap { position: relative; z-index: 2; }
.page-head .display { font-size: clamp(52px, 9vw, 150px); }
.page-head .lede { margin-top: 28px; }
.page-head .jp-v { position: absolute; right: var(--gutter); top: clamp(140px, 18vw, 220px); opacity: .6; z-index: 2; }

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- media slot (placeholder until a file is dropped in) ---------- */

.slot {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--slot-bg, var(--ink-2));
  background-image: repeating-linear-gradient(-45deg, transparent 0 14px, var(--slot-line, rgba(236, 233, 223, .045)) 14px 15px);
  aspect-ratio: var(--ratio, 16 / 9);
  color: var(--slot-fg, var(--muted));
}
.slot > video, .slot > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s;
}
.slot.has-media > video, .slot.has-media > img { opacity: 1; }
.slot-empty {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
  text-align: center; padding: 24px;
}
.slot.has-media .slot-empty { display: none; }
.slot-empty .slot-icon { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; }
.slot-empty .slot-icon svg { width: 18px; height: 18px; }
.slot-empty .slot-title { font-weight: 500; font-size: 14px; letter-spacing: .02em; }
.slot-empty .slot-path {
  font-family: var(--mono); font-size: 12px; display: none;
  background: rgba(255, 255, 255, .85); color: #111; padding: 3px 8px; border-radius: 4px;
}
.show-slots .slot-empty .slot-path { display: block; }
.show-slots .slot { outline: 2px dashed currentColor; outline-offset: -8px; }

.slot--ambient { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; z-index: 0; background: none; }
.slot--ambient .slot-empty { display: none; }
.show-slots .slot--ambient .slot-empty { display: grid; }

/* ---------- ambient layers: artwork blend, giant mascot, light leaks, particles ---------- */

/* .blend is its own stacking context, so the colour it blends against is painted inside it. */
.blend { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--blend-bg, var(--ink)); }
.blend-img.slot > img { filter: saturate(.75) contrast(1.1); transform: scale(1.06); }
.blend-img.slot.has-media > img { opacity: .5; }
.blend .ghost {
  position: absolute; left: 50%; top: 50%; font-size: max(150vh, 110vw);
  color: var(--bone); opacity: .1; transform: translate(-46%, -50%) rotate(-8deg);
  animation: ghost 40s ease-in-out infinite alternate;
}
@keyframes ghost { to { transform: translate(-54%, -47%) rotate(-3deg); } }
.leak {
  position: absolute; inset: -25%;
  background:
    radial-gradient(closest-side at 72% 18%, rgba(255, 110, 200, .5), transparent),
    radial-gradient(closest-side at 18% 82%, rgba(143, 227, 180, .5), transparent),
    radial-gradient(closest-side at 55% 60%, rgba(223, 227, 106, .35), transparent),
    conic-gradient(from 200deg at 62% 38%, rgba(255, 95, 109, .3), rgba(255, 195, 113, .3), rgba(124, 255, 203, .3), rgba(106, 130, 251, .3), rgba(252, 92, 125, .3), rgba(255, 95, 109, .3));
  mix-blend-mode: screen; filter: blur(48px); opacity: .5;
  animation: leak 22s ease-in-out infinite alternate;
}
@keyframes leak {
  from { transform: translate3d(-4%, -3%, 0) rotate(0deg); }
  to { transform: translate3d(5%, 4%, 0) rotate(14deg); }
}
.blend .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 10, 12, .15) 35%, rgba(10, 10, 12, .85)); }
.blend-video { z-index: 1; }
.blend-video.slot.has-media ~ .ghost, .blend-video.slot.has-media ~ .leak { display: none; }

.aether { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------- home hero ---------- */

.boot { height: 180vh; position: relative; }
.boot-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.boot-screen {
  --p: 0;
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(calc(var(--p) * 8vh) calc(var(--p) * 6vw) calc(var(--p) * 8vh) calc(var(--p) * 6vw) round calc(var(--p) * 18px));
  display: grid; grid-template-rows: 1fr auto; padding: 96px var(--gutter) 36px;
}
.hero-center {
  position: relative; z-index: 2; align-self: center; justify-self: center;
  display: grid; justify-items: center; text-align: center; gap: clamp(14px, 2.4vh, 26px);
  transform: translateY(calc(var(--p) * -5vh)) scale(calc(1 - var(--p) * .08));
}
.hero-mascot {
  font-size: clamp(150px, 30vh, 320px); color: var(--bone);
  filter: drop-shadow(0 0 40px rgba(143, 227, 180, .35));
  animation: float 6s ease-in-out infinite alternate;
}
@keyframes float { from { translate: 0 -8px; } to { translate: 0 10px; } }
.hero-center .wordmark { font-size: clamp(32px, 5vw, 72px); color: var(--bone); }
.hero-center .slogan { margin: 0; font-size: clamp(17px, 1.6vw, 22px); color: var(--bone); opacity: .85; letter-spacing: .01em; }
.hero-foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: end; gap: 24px;
  opacity: calc(1 - var(--p) * 2.2);
}
.hero-foot .city { font-size: clamp(16px, 1.4vw, 20px); letter-spacing: .2em; color: var(--bone); }
.hero-foot .city span { font-family: var(--mono); font-size: .7em; letter-spacing: .14em; color: var(--muted); margin-left: .8em; }
.press {
  font-family: var(--mono); font-size: clamp(14px, 1.2vw, 17px); letter-spacing: .16em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 12px; color: var(--lime);
}
.press::before {
  content: ""; width: 11px; height: 11px; background: var(--lime);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  animation: blink 1.1s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.boot-flash {
  position: fixed; inset: 0; background: #fff; z-index: 90; pointer-events: none;
  animation: flash .5s ease-out .15s both;
}
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.js .hero-center > * { opacity: 0; transform: translateY(18px); }
.booted .hero-center > * { opacity: 1; transform: none; transition: opacity .9s var(--ease-out), transform .9s var(--ease-snap); }
.booted .hero-center > :nth-child(2) { transition-delay: .12s; }
.booted .hero-center > :nth-child(3) { transition-delay: .24s; }

/* ---------- home: worlds (sticky, scroll-scrubbed) ---------- */

.world { --p: 0; height: 230vh; position: relative; }
.world-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--gutter);
  padding: 100px var(--gutter) 48px;
}
.world-copy { position: relative; z-index: 3; }
.world-copy .display { font-size: clamp(48px, 6vw, 112px); }
.world-copy .lede { margin-top: 22px; }
.world-media {
  position: relative; z-index: 2;
  transform: translateX(calc((1 - var(--p)) * 10vw)) rotate(calc((1 - var(--p)) * 3deg)) scale(calc(.88 + var(--p) * .12));
}
.world-media .slot { --ratio: 16 / 10; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); }
.world .jp-v { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); opacity: .55; z-index: 3; }
.world-count { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; position: absolute; left: var(--gutter); bottom: 32px; opacity: .7; z-index: 3; }
.world-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; height: 2px; background: currentColor; opacity: .18; z-index: 3; }
.world-bar::after { content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(var(--p)); }

.world--games { background: var(--ink); color: var(--bone); }
.world--games .world-media .slot { box-shadow: 0 0 0 1px var(--line), 0 30px 90px -30px rgba(143, 227, 180, .35); }

.world--animation { background: var(--fr-cream); color: var(--fr-brown); }
.world--animation .display { text-shadow: .05em .05em 0 var(--fr-mustard); }
.world--animation .slot, .world--music .slot { --slot-fg: var(--fr-brown); }
.world--animation .slot { --slot-bg: var(--fr-paper); --slot-line: rgba(43, 22, 20, .07); }
.world--music { background: var(--fr-mustard); color: var(--fr-brown); }
.world--music .display { text-shadow: .05em .05em 0 var(--fr-cream); }
.world--music .slot { --slot-bg: #d69d0a; --slot-line: rgba(43, 22, 20, .08); }
.world--animation .eyebrow, .world--music .eyebrow { color: var(--fr-brown); opacity: .75; }
.world--animation .world-media .slot, .world--music .world-media .slot { border: 2px solid var(--fr-brown); box-shadow: 10px 10px 0 var(--fr-brown); }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 24px; border-radius: 6px; text-decoration: none; font-weight: 600;
  background: var(--btn-bg, var(--lime)); color: var(--btn-fg, var(--ink));
  border: 0; cursor: pointer;
  transition: transform .35s var(--ease-snap), box-shadow .3s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px -10px var(--btn-bg, var(--lime)); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-snap); }
.btn:hover svg { transform: translateX(4px); }
.btn-row { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.world--animation .btn, .world--music .btn { --btn-bg: var(--fr-brown); --btn-fg: var(--fr-cream); }

/* floating artwork around the games reel: mixed sizes, depths and shapes */
.floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater { position: absolute; width: var(--w); transform: translateY(calc((0.5 - var(--p)) * var(--depth))) rotate(var(--rot)); }
.floater .slot {
  --ratio: var(--shape, 4 / 5); border-radius: 3px; opacity: .45;
  filter: blur(var(--blur, 0px));
  animation: bob var(--bob, 7s) ease-in-out infinite alternate;
}
.floater .slot.has-media { opacity: var(--o, .9); }
.floater .slot-empty { padding: 8px; }
@keyframes bob { from { translate: 0 -10px; } to { translate: 0 12px; } }
.floater.f1 { --w: 11vw; --shape: 3 / 4; --rot: 5deg; --depth: 160px; right: 3%; top: 9%; --bob: 6.5s; }
.floater.f2 { --w: 8vw; --shape: 1 / 1; --rot: -7deg; --depth: 260px; right: 39%; bottom: 7%; --bob: 8s; }
.floater.f3 { --w: 14vw; --shape: 16 / 9; --rot: 3deg; --depth: 220px; left: 30%; top: 8%; --bob: 7.2s; --blur: 3px; --o: .55; }
.floater.f4 { --w: 9vw; --shape: 4 / 5; --rot: -4deg; --depth: 200px; right: 6%; bottom: 5%; --bob: 9s; }
.floater.f5 { --w: 7vw; --shape: 1 / 1; --rot: 8deg; --depth: 340px; left: 4%; bottom: 10%; --bob: 7.8s; --blur: 2px; --o: .5; }
.floater.f6 { --w: 12vw; --shape: 21 / 9; --rot: -2deg; --depth: 300px; left: 18%; bottom: 3%; --bob: 8.6s; --blur: 5px; --o: .4; }

@media (max-width: 900px) {
  .world { height: auto; }
  .world-stage { position: relative; height: auto; grid-template-columns: 1fr; padding-block: 110px 80px; }
  .world-media { transform: none; }
  .world-count, .world-bar, .world .jp-v, .floaters { display: none; }
}

/* ---------- from rose intro band (home) ---------- */

.fr-band { background: var(--fr-cream); color: var(--fr-brown); overflow: hidden; }
.fr-band-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--gutter); align-items: center; position: relative; z-index: 2; }
.fr-band .slot { --slot-bg: var(--fr-paper); --slot-line: rgba(43, 22, 20, .07); --slot-fg: var(--fr-brown); border: 2px solid var(--fr-brown); box-shadow: 10px 10px 0 var(--fr-mustard); }
.fr-band .eyebrow { color: var(--fr-muted); }
.fr-band .btn { --btn-bg: var(--fr-brown); --btn-fg: var(--fr-cream); }
@media (max-width: 900px) { .fr-band-grid { grid-template-columns: 1fr; } }

.rose-name {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; line-height: .95; margin: 0;
  font-size: clamp(56px, 8vw, 128px); color: var(--fr-brown);
  text-shadow: .045em .045em 0 var(--fr-mustard);
}

/* ---------- team ---------- */

.team-list { list-style: none; margin: clamp(36px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 var(--gutter); }
.team-list li { border-top: 1px solid var(--line); padding: 26px 0 30px; }
.team-list h3 { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; margin: 0 0 8px; }
.team-list p { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- patreon ---------- */

.support { background: var(--lime); color: var(--ink); overflow: hidden; }
.support-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--gutter); align-items: center; }
.support .mascot { font-size: clamp(90px, 10vw, 150px); color: var(--ink); }
.support .display { font-size: clamp(30px, 4vw, 64px); }
.support .btn { --btn-bg: var(--ink); --btn-fg: var(--lime); }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }

/* ---------- games page ---------- */

.game {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: center;
  padding-block: clamp(40px, 6vw, 90px); border-top: 1px solid var(--line);
}
.game:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.game:nth-of-type(even) .game-media { order: 2; }
.game h2 { font-size: clamp(40px, 5vw, 84px); }
.game p { margin: 18px 0 0; max-width: 30em; }
.game .lore { color: var(--muted); font-style: italic; margin-top: 10px; }
.game-media > .slot { box-shadow: 0 0 0 1px var(--line); }
.game-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.game-shots .slot { --ratio: 16 / 10; }
.game-shots .slot-empty .slot-title { font-size: 12px; }
.game-shots .slot-icon { display: none !important; }
@media (max-width: 900px) {
  .game, .game:nth-of-type(even) { grid-template-columns: 1fr; }
  .game:nth-of-type(even) .game-media { order: 0; }
}

/* ---------- about ---------- */

.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
.story h2 { font-size: clamp(34px, 4vw, 60px); }
.story p { margin: 0 0 1em; max-width: 34em; font-size: 19px; }
.story a { text-decoration-color: var(--lime); text-underline-offset: 4px; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.contact-line { font-family: var(--display); font-weight: 800; font-stretch: 125%; font-size: clamp(22px, 3vw, 44px); text-decoration: none; border-bottom: 2px solid var(--lime); }

/* ---------- from rose pages ---------- */

.rose-page { --bg: var(--fr-cream); --fg: var(--fr-brown); --muted: var(--fr-muted); --line: rgba(43, 22, 20, .16); }
.rose-page .slot { --slot-bg: var(--fr-paper); --slot-line: rgba(43, 22, 20, .07); --slot-fg: var(--fr-brown); }
.rose-page ::selection { background: var(--fr-mustard); color: var(--fr-brown); }
.rose-page :focus-visible { outline-color: var(--fr-amber); }
.rose-page .brand, .rose-page .nav-links { background: rgba(43, 22, 20, .82); border-color: rgba(230, 224, 205, .2); }
.rose-page .eyebrow { color: var(--fr-muted); }
.rose-page .foot { background: var(--fr-brown); color: var(--fr-cream); border-top-color: transparent; }
.rose-page .foot h2, .rose-page .foot .legal { color: rgba(230, 224, 205, .7); }
.rose-page .foot-grid { border-top-color: rgba(230, 224, 205, .18); }

.fr-frame { border: 2px solid var(--fr-brown); box-shadow: 10px 10px 0 var(--fr-mustard); }
.fr-head .slot { --ratio: 21 / 9; max-height: 72vh; }
.fr-head .rose-sub { margin-top: 36px; }
.fr-head .jp-v { display: none; }

.rose-title {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; line-height: .9; margin: 0;
  font-size: clamp(72px, 13vw, 210px); color: var(--fr-brown);
  text-shadow: .045em .045em 0 var(--fr-mustard);
}
.rose-title em { font-style: normal; }
.rose-sub { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.45; max-width: 26em; margin: 28px 0 0; }
.credits-line {
  display: inline-flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
}
.credits-line b { color: var(--fr-amber); font-weight: 400; }

.subnav { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px; }
.subnav a {
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; opacity: .7;
}
.subnav a:hover { opacity: 1; }
.subnav a[aria-current="page"] { opacity: 1; border-bottom-color: var(--fr-mustard); }

.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gutter); }
.door {
  position: relative; display: block; text-decoration: none; color: var(--fr-cream);
  border-radius: var(--radius); overflow: hidden; isolation: isolate;
  border: 2px solid var(--fr-brown); box-shadow: 10px 10px 0 var(--fr-mustard);
  transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out);
}
.door:hover { transform: translate(-3px, -3px); box-shadow: 16px 16px 0 var(--fr-mustard); }
.door .slot { --ratio: 4 / 5; border-radius: 0; transition: transform 1s var(--ease-out); }
.door:hover .slot { transform: scale(1.04); }
.door-label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px;
  display: flex; justify-content: space-between; align-items: end;
  background: linear-gradient(transparent, rgba(43, 22, 20, .85));
}
.door-label strong { font-family: var(--serif); font-size: clamp(40px, 4.4vw, 68px); line-height: 1; font-weight: 700; }
.door-label span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.door .arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--fr-mustard); color: var(--fr-brown); display: grid; place-items: center; transition: transform .4s var(--ease-snap); }
.door:hover .arrow { transform: rotate(-45deg); }

.reel .slot { --ratio: 21 / 9; }
.reel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.reel-grid figure { margin: 0; }
.reel-grid .slot { --ratio: 1 / 1; }
.reel-grid figcaption { margin-top: 10px; font-size: 15px; }

/* ---------- music player ---------- */

.player { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.deck { position: sticky; top: 100px; }
.deck-art { position: relative; border-radius: var(--radius); overflow: hidden; }
.deck-art .slot { --ratio: 1 / 1; border-radius: 0; }
.deck-art canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38%; pointer-events: none; z-index: 2; }
.deck-now { margin-top: 22px; }
.deck-now .t { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; margin: 0; }
.deck-now .a { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 0; }
.controls { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.ctrl {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--fr-brown); background: transparent;
  display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .3s var(--ease-snap);
}
.ctrl:hover { background: var(--fr-paper); }
.ctrl svg { width: 18px; height: 18px; }
.ctrl.play { width: 68px; height: 68px; background: var(--fr-mustard); border-color: var(--fr-brown); color: var(--fr-brown); box-shadow: 4px 4px 0 var(--fr-brown); }
.ctrl.play:hover { transform: scale(1.06); background: var(--fr-mustard); }
.ctrl.play svg { width: 24px; height: 24px; }
.ctrl[disabled] { opacity: .4; cursor: not-allowed; }
.seek { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.seek input[type="range"] { width: 100%; accent-color: var(--fr-amber); }
.deck-note { margin-top: 14px; font-size: 14px; color: var(--muted); min-height: 1.4em; }

.tracks { list-style: none; margin: 0; padding: 0; counter-reset: track; }
.track {
  counter-increment: track;
  display: grid; grid-template-columns: 52px 56px minmax(0, 1fr) auto; gap: 16px; align-items: center;
  padding: 14px 12px; border-radius: var(--radius); cursor: pointer;
  border-bottom: 1px solid rgba(43, 22, 20, .14); transition: background .2s;
}
.track:hover { background: var(--fr-paper); }
.track.is-current { background: rgba(226, 169, 15, .28); }
.track .no { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: center; }
.track .no::before { content: counter(track, decimal-leading-zero); }
.track.is-current.is-playing .no::before { content: "▶"; color: var(--fr-brown); }
.track .cover { width: 56px; height: 56px; border-radius: 6px; overflow: hidden; }
.track .cover .slot { --ratio: 1 / 1; border-radius: 0; height: 100%; }
.track .cover .slot-empty { padding: 0; }
.track .cover .slot-title, .track .cover .slot-path { display: none !important; }
.track .cover .slot-icon { width: 24px; height: 24px; border-width: 1px; }
.track .cover .slot-icon svg { width: 10px; height: 10px; }
.track .ti { font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .meta { font-size: 14px; color: var(--muted); }
.track .len { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.track.is-missing .len { color: var(--fr-amber); }
@media (max-width: 900px) {
  .player { grid-template-columns: 1fr; }
  .deck { position: relative; top: 0; }
  .track { grid-template-columns: 36px 48px minmax(0, 1fr) auto; gap: 12px; }
  .track .cover { width: 48px; height: 48px; }
}

/* ---------- footer ---------- */

.foot { background: #050506; color: var(--bone); padding: clamp(64px, 8vw, 110px) 0 36px; border-top: 1px solid rgba(236, 233, 223, .1); }
.foot-brand { display: flex; align-items: center; gap: 18px; }
.foot-brand .mascot { font-size: 64px; }
.foot-brand .wordmark { font-size: clamp(28px, 3.4vw, 48px); }
.foot-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px;
  margin-top: clamp(40px, 6vw, 72px); padding-top: 32px; border-top: 1px solid rgba(236, 233, 223, .14); font-size: 15px;
}
.foot h2 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9b9aa3; margin: 0 0 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot .legal { margin-top: 40px; font-size: 13px; color: #9b9aa3; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .boot-flash { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .boot-screen, .world-media, .hero-center { transform: none !important; clip-path: none !important; }
  .boot { height: auto; }
  .boot-stage { position: relative; }
  .world { height: auto; }
  .world-stage { position: relative; height: auto; min-height: 100vh; }
  .floater { transform: rotate(var(--rot)); }
}
