/* ==========================================================================
   KYARIN portfolio — stylesheet
   Look: a blue "desktop" (tsubi.club-style) with each section in a window.
   Fonts: the original set — Manrope (body), Space Grotesk (headings/buttons),
   Bebas Neue (MEDIA), Syne (GALLERY), JetBrains Mono (labels/club),
   Syncopate (CONNECT), Oyatsupokke + EnkaDotMincho24 (DREAMSCAPE, bundled).
   Layout rule: ONE layout for phones + tablets (default), and a desktop
   layout only on wide screens with a mouse (see @media near the bottom).
   ========================================================================== */

@font-face { font-family: "Oyatsupokke"; src: url("../fonts/Oyatsupokke.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "EnkaDotMincho24"; src: url("../fonts/EnkaDotMincho24.woff2") format("woff2"); font-display: swap; }

:root {
  --blue: rgb(0, 8, 255);
  --navy: #03066b; /* page background: darker so the blue windows stand out */
  --white-10: rgba(255, 255, 255, 0.1);
  --white-20: rgba(255, 255, 255, 0.2);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-75: rgba(255, 255, 255, 0.75);

  --jp: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  --font-body: "Manrope", var(--jp);
  --font-hero: "Space Grotesk", var(--jp);
  --font-music: "Bebas Neue", var(--jp);
  --font-gallery: "Syne", var(--jp);
  --font-ensemble: "JetBrains Mono", ui-monospace, Menlo, Consolas, var(--jp);
  --font-connect: "Syncopate", var(--jp);
  --font-dream-title: "Oyatsupokke", var(--font-hero);
  --font-dream: "EnkaDotMincho24", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --fs-label: 0.75rem; /* smallest text size on the site: labels, tags, badges */
  --gutter: 18px;
  --maxw: 760px;
  --bar-h: 58px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px);
  background: var(--navy); /* body stays transparent so the ASCII layer shows through */
  overflow-x: clip;
}
html:has(dialog[open]), body.menu-open, html.js:not(.loaded) body { overflow: hidden; }
body {
  margin: 0; color: #fff;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
:lang(ja) { line-break: strict; word-break: auto-phrase; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
::selection { background: #fff; color: var(--blue); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 300; padding: 10px 14px; background: #fff; color: var(--blue); font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

/* Language: every text exists as <span lang="ja"> + <span lang="en">; <html lang> picks one */
html[lang="ja"] body [lang="en"], html[lang="en"] body [lang="ja"] { display: none !important; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.mono-label { overflow-wrap: anywhere; font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 500; letter-spacing: 0.08em; }

/* ---------- Original full-page ASCII background ---------- */
#ascii-container {
  position: fixed; inset: 0; z-index: -1; display: flex; align-items: center; justify-content: center;
  overflow: hidden; pointer-events: none;
}
#ascii-bg {
  margin: 0; font-family: var(--font-ensemble); font-size: clamp(12px, 1.1vw, 18px); line-height: 1.1;
  color: rgba(255, 255, 255, 0.3); white-space: pre;
}

/* ---------- Loader (~1.3 s): three rings spin around the name in 3D ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; align-content: center; gap: 22px; overflow: hidden;
  background:
    linear-gradient(var(--white-10) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--white-10) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--blue);
  cursor: pointer;
  transition: clip-path 0.5s var(--ease), visibility 0s linear 0.5s;
  clip-path: inset(0 0 0 0);
}
.js.loaded .loader { display: none; }
.js .loader.is-done { clip-path: inset(0 0 100% 0); visibility: hidden; pointer-events: none; }
.loader-logo {
  position: relative; display: grid; place-items: center; padding: 0.9em 0.75em; font-size: clamp(2.8rem, 13vw, 6rem);
  perspective: 900px; transform-style: preserve-3d;
}
/* each ring is a circle tilted in 3D and spun inside its own plane; preserve-3d lets the
   near half pass in front of the word and the far half behind it */
.loader-ring {
  --s: 4.4em; position: absolute; left: 50%; top: 50%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; border: 3px solid #fff; transform-style: preserve-3d; pointer-events: none;
  transition: scale 0.45s cubic-bezier(0.7, 0, 0.3, 1), opacity 0.45s;
}
.loader-ring::after { content: ""; position: absolute; top: -7px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; }
.loader-ring--1 { --s: 4.4em; border-color: #fff #fff rgba(255, 255, 255, 0.25) rgba(255, 255, 255, 0.25); animation: ring1 0.8s cubic-bezier(0.6, 0, 0.4, 1) infinite, ringIn 0.5s var(--ease) both; }
.loader-ring--2 { --s: 3.5em; border-width: 2px; border-style: dashed; animation: ring2 1.1s cubic-bezier(0.6, 0, 0.4, 1) infinite, ringIn 0.5s 0.08s var(--ease) both; }
.loader-ring--3 { --s: 5.6em; border-width: 1.5px; border-color: rgba(255, 255, 255, 0.8); animation: ring3 1.4s cubic-bezier(0.6, 0, 0.4, 1) infinite, ringIn 0.5s 0.16s var(--ease) both; }
.loader-ring--2::after { width: 8px; height: 8px; margin-left: -4px; top: -5px; }
/* flips, not spins: each ring turns over around a line through its middle, like a tossed coin */
@keyframes ring1 { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } } /* left-right flip */
@keyframes ring2 { from { transform: rotateX(360deg); } to { transform: rotateX(0deg); } } /* top-bottom flip, opposite way */
@keyframes ring3 { from { transform: rotate3d(1, 1, 0, 0deg); } to { transform: rotate3d(1, 1, 0, 360deg); } } /* diagonal flip */
@keyframes wordFlip { from { transform: rotateY(-270deg) scale(0.5); opacity: 0; } 40% { opacity: 1; } } /* the name flips in around its center */
@keyframes ringIn { from { scale: 0.2; opacity: 0; } }
.loader.is-done .loader-ring { scale: 3; opacity: 0; } /* rings burst outward as the screen wipes away */
.loader-word {
  position: relative; transform: translateZ(0); animation: wordFlip 0.75s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
  font-family: var(--font-hero); font-weight: 700; line-height: 1; letter-spacing: 0.02em; color: transparent;
  -webkit-text-stroke: 1.5px #fff;
  background: linear-gradient(#fff, #fff) left / var(--fill, 0%) 100% no-repeat;
  -webkit-background-clip: text; background-clip: text;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.35);
}
.loader-meta { display: flex; justify-content: space-between; width: 220px; font-family: var(--font-ensemble); font-size: var(--fs-label); letter-spacing: 0.14em; }
.loader-bar { width: 220px; height: 3px; background: var(--white-20); }
.loader-bar i { display: block; width: var(--fill, 0%); height: 100%; background: #fff; }
.loader-sys { position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 2px 8px; border: 1px solid #fff; font-family: var(--font-ensemble); font-size: 0.65rem; font-weight: 300; }

/* ---------- Buttons, switches, chips ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 46px; padding: 0 20px; border: 2px solid currentColor;
  font-family: var(--font-hero); font-size: 0.95rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
  transition: color 0.35s var(--ease), transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease); }
.btn:hover { color: var(--blue); box-shadow: 5px 5px 0 var(--white-50); transform: translate(-2px, -2px); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.btn--solid { color: var(--blue); border-color: #fff; }
.btn--solid::before { transform: scaleX(1); }
.btn--solid:hover { color: #fff; }
.btn--solid:hover::before { transform: scaleX(0); transform-origin: right; }
.btn--blue::before { background: var(--blue); }
.btn--blue:hover { color: #fff; box-shadow: 5px 5px 0 rgba(0, 8, 255, 0.25); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* One-click toggle: click anywhere to flip; the white thumb slides */
.switch {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; flex: none;
  padding: 2px; border: 2px solid #fff; background: rgba(0, 8, 255, 0.5);
  font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.04em;
  -webkit-user-select: none; user-select: none;
  box-shadow: 3px 3px 0 var(--white-50); transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.switch:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--white-75); }
.switch:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--white-50); }
.switch-thumb { position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc(50% - 2px); background: #fff; transition: transform 0.45s var(--ease); }
.switch-opt { position: relative; display: grid; place-items: center; min-height: 30px; padding: 0 11px; white-space: nowrap; transition: color 0.35s var(--ease); }
.switch .switch-opt:nth-child(2) { color: var(--blue); }
.switch.is-flipped .switch-thumb { transform: translateX(100%); }
.switch.is-flipped .switch-opt:nth-child(2) { color: #fff; }
.switch.is-flipped .switch-opt:nth-child(3) { color: var(--blue); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 10px; border: 1px solid var(--white-50); background: var(--white-10); font-size: 0.82rem; line-height: 1.5; }

/* ---------- Top bar (after the home screen) ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding-top: env(safe-area-inset-top, 0px);
  background: rgba(0, 8, 255, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 2px solid #fff;
  transform: translateY(-110%); transition: transform 0.5s var(--ease);
}
.topbar.is-shown, body.menu-open .topbar { transform: none; }
.topbar-inner { height: var(--bar-h); display: flex; align-items: center; gap: 10px; }
.brand { min-width: 0; margin-right: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-hero); font-size: 1.1rem; letter-spacing: 0.04em; }
.brand b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* very large text: name shortens instead of pushing the menu off-screen */
.brand-icon { width: 34px; height: 34px; border: 2px solid #fff; object-fit: cover; }
.menu-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid #fff; }
.menu-icon { position: relative; width: 16px; height: 10px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu-icon::before { top: 0; } .menu-icon::after { top: calc(100% - 2px); }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 4px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { top: 4px; transform: rotate(-45deg); }

/* phone/tablet: top-bar nav opens as a full-screen menu */
.topnav {
  position: fixed; left: 0; right: 0; top: calc(var(--bar-h) + env(safe-area-inset-top, 0px) + 2px);
  height: calc(100dvh - var(--bar-h) - env(safe-area-inset-top, 0px));
  padding: 28px var(--gutter); background: var(--blue); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0s linear 0.25s;
}
body.menu-open .topnav { opacity: 1; visibility: visible; transition-delay: 0s; }
.topnav ul { display: grid; gap: 12px; width: min(100%, var(--maxw)); margin-inline: auto; }
.topnav a, .home-nav a {
  display: block; padding: 0 0 0 14px; border-left: 2px solid #fff;
  font-family: var(--font-hero); font-size: clamp(min(2rem, 10vw), 10vw, 2.8rem); font-weight: 300; line-height: 1.2;
  text-transform: uppercase; text-decoration: none;
  transition: background-color 0.2s, color 0.2s, padding 0.3s var(--ease);
}
.topnav a:hover, .home-nav a:hover { background: #fff; color: var(--blue); padding-left: 22px; }

/* ---------- Home "desktop" ---------- */
.home {
  position: relative; overflow: hidden; min-height: 100svh;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 0 72px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(var(--white-10) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--white-10) 1px, transparent 1px) 0 0 / 56px 56px;
}
.home-ghost {
  position: absolute; left: -3vw; bottom: 4vh; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-hero); font-size: clamp(7rem, 36vw, 26rem); font-weight: 700; line-height: 0.8; letter-spacing: -0.04em; white-space: nowrap;
  animation: ghostIn 1.6s var(--ease) both;
}
.home-ghost span {
  display: block; color: transparent;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.24) 0 2px, transparent 2px 9px);
  -webkit-background-clip: text; background-clip: text;
  transform: translate(calc(var(--n) * 0.06em + var(--mx, 0) * var(--n) * 14px), calc(var(--my, 0) * var(--n) * 10px));
  opacity: calc(1 - var(--n) * 0.27); transition: transform 0.6s var(--ease);
}
.home-ghost span:first-child { -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); }
.home-ghost span + span { position: absolute; left: 0; top: 0; }
@keyframes ghostIn { from { opacity: 0; transform: translateX(-6%) skewX(-8deg); filter: blur(10px); } }

.home-grid { position: relative; z-index: 1; display: grid; gap: 28px; }
.home-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.home-id { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.home-id img { width: 52px; height: 52px; flex: none; border: 2px solid #fff; object-fit: cover; }
.home-id b { display: block; font-family: var(--font-hero); font-size: 1rem; }
.home-id small { display: block; font-family: var(--font-ensemble); font-size: var(--fs-label); opacity: 0.85; }
/* KYARIN and きゃりー: same size, side by side on one line */
.home-title { margin-top: 20px; font-family: var(--font-hero); font-size: clamp(min(2.1rem, 10vw), 10vw, 4rem); font-weight: 700; line-height: 1; letter-spacing: -0.01em; white-space: nowrap; }
.home-nav { display: grid; justify-items: start; gap: 10px; margin-top: 30px; }
.home-nav a { padding-right: 16px; background: rgba(255, 255, 255, 0.1); } /* faint box so the words read clearly over the ASCII */
.home-links { margin-top: 30px; }
.icon-links { display: flex; flex-wrap: wrap; gap: 12px; }
.icon-links a { display: grid; place-items: center; width: 64px; height: 64px; border: 2px solid #fff; background: rgba(255, 255, 255, 0.08); transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s; }
.icon-links a:hover { background: #fff; color: var(--blue); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--white-50); }
.icon-links svg { width: 30px; height: 30px; }

.updates { position: relative; padding: 14px 12px 12px; border: 2px solid #fff; background: var(--blue); box-shadow: 10px 10px 0 rgba(255, 255, 255, 0.22), inset -2px -2px 0 rgba(0, 0, 0, 0.25), inset 2px 2px 0 rgba(255, 255, 255, 0.25); }
.updates-tab { position: absolute; top: -2px; right: -2px; padding: 2px 8px; background: #fff; color: var(--blue); font-family: var(--font-ensemble); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; }
.updates ul { display: grid; gap: 8px; margin-top: 12px; }
.update {
  position: relative; display: block; padding: 10px 40px 10px 12px; border: 2px solid transparent; background: rgba(255, 255, 255, 0.2);
  text-decoration: none; transition: border-color 0.2s, background-color 0.2s;
}
.update::after { content: "→"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); transition: transform 0.25s var(--ease); }
.update:hover { border-color: #fff; background: rgba(255, 255, 255, 0.3); }
.update:hover::after { transform: translate(4px, -50%); }
.update b { display: block; font-family: var(--font-hero); font-size: 0.95rem; font-weight: 500; line-height: 1.35; text-transform: uppercase; }
.update small { display: block; margin-top: 3px; font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 400; line-height: 1.5; opacity: 0.9; }

.version-tag { position: absolute; right: var(--gutter); bottom: 18px; z-index: 1; padding: 2px 8px; border: 1px solid #fff; background: var(--white-20); font-family: var(--font-ensemble); font-size: 0.64rem; font-weight: 300; }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 18px; z-index: 1; font-family: var(--font-ensemble); font-size: var(--fs-label); letter-spacing: 0.1em; text-decoration: none; padding-block: 4px; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* ---------- Windows (each section) ---------- */
.section { padding-block: 36px; }
.window {
  position: relative; border: 2px solid #fff; background: var(--blue);
  box-shadow: 12px 12px 0 rgba(255, 255, 255, 0.22), inset -2px -2px 0 rgba(0, 0, 0, 0.25), inset 2px 2px 0 rgba(255, 255, 255, 0.25);
}
.window-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 6px 10px 6px 12px;
  border-bottom: 2px solid #fff; background: #fff; color: var(--blue);
  font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.06em;
}
.window-ctrl { display: flex; gap: 5px; }
.window-ctrl i { width: 12px; height: 12px; border: 2px solid currentColor; }
.window-body { position: relative; padding: 24px 16px 28px; }
.window--light { background: #fff; color: var(--blue); border-color: #fff; }
.window--light .window-bar { background: var(--blue); color: #fff; border-color: var(--blue); }
.window--dark { background: #000; border-color: #fff; overflow: hidden; }

.section-head { display: grid; gap: 14px; margin-bottom: 28px; }
.section-head--right { justify-items: end; text-align: right; }
.section-head--center { justify-items: center; text-align: center; }
.section-head--right .section-lead, .section-head--center .section-lead { justify-self: stretch; text-align: left; } /* long text is easier to read with a straight left edge */
.section-lead { max-width: 64ch; font-size: 1rem; line-height: 1.85; }
.section-lead strong, .section-lead em { font-weight: 700; }

/* section titles in the original fonts */
.title-music { font-family: var(--font-music); font-size: clamp(min(3.4rem, 18vw), 18vw, 6.8rem); font-weight: 400; line-height: 0.9; }
.title-gallery { font-family: var(--font-gallery); font-size: clamp(min(2.2rem, 10.5vw), 10.5vw, 5.2rem); font-weight: 800; line-height: 1; text-transform: uppercase; }
.title-club { font-family: var(--font-ensemble); font-size: clamp(min(1.15rem, 5.4vw), 5.4vw, 2.6rem); font-weight: 700; line-height: 1.3; }

/* wavy titles (original effect) */
.wave-word { display: inline-block; white-space: nowrap; }
.wave-char { display: inline-block; animation: waveChar 4s ease-in-out infinite; animation-delay: calc(var(--i) * 0.1s); }
@keyframes waveChar { 0%, 100% { transform: translateY(0); text-shadow: 0 0 0 transparent; } 50% { transform: translateY(-0.08em); text-shadow: 0 0.12em 0.25em var(--white-50); } }
.window--light .wave-char { animation-name: waveCharBlue; }
@keyframes waveCharBlue { 0%, 100% { transform: translateY(0); text-shadow: 0 0 0 transparent; } 50% { transform: translateY(-0.08em); text-shadow: 0 0.12em 0.25em rgba(0, 8, 255, 0.35); } }

/* ---------- About ---------- */
.about { display: grid; gap: 22px; }
.about-photo { width: 128px; aspect-ratio: 1; padding: 4px; border: 3px solid #fff; background: var(--white-10); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.2) grayscale(0.2); }
.about-title { margin-top: 6px; font-family: var(--font-hero); font-size: clamp(min(2.1rem, 10vw), 10vw, 4.4rem); font-weight: 700; line-height: 1; white-space: nowrap; }
.about-role { margin-top: 18px; font-weight: 700; font-size: 1.05rem; line-height: 1.55; }
.about-bio { margin-top: 12px; color: var(--white-75); line-height: 1.85; max-width: 66ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.skills { display: grid; gap: 14px; padding-top: 24px; border-top: 1px dashed var(--white-50); }
.skill-card { display: flex; flex-direction: column; border: 2px solid #fff; background: rgba(255, 255, 255, 0.08); text-align: center; }
.skill-head { padding: 6px 10px; background: #fff; color: var(--blue); font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.06em; }
.skill-list { flex: 1; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; align-items: center; row-gap: 6px; padding: 16px 14px 18px; font-size: 0.95rem; line-height: 1.5; }
.skill-list li { display: inline-flex; align-items: center; }
.skill-list li:not(:last-child)::after { content: "·"; margin: 0 0.55em; opacity: 0.6; }

/* ---------- Media: video cards ---------- */
.video-grid { display: grid; gap: 18px; }
.video-card {
  display: flex; flex-direction: column; gap: 10px; padding: 12px;
  border: 2px solid var(--blue); background: rgba(0, 8, 255, 0.03); text-decoration: none; color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.video-card:hover, .video-card:focus-visible { transform: translateY(-6px); box-shadow: 10px 10px 0 rgba(0, 8, 255, 0.14); }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border: 2px solid var(--blue); background: #080c24; }
.thumb img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05); transition: transform 0.45s var(--ease), filter 0.35s; }
.video-card:hover .thumb img { transform: scale(1.04); filter: contrast(1.1) brightness(1.06); }
.play-badge { position: absolute; left: 8px; bottom: 8px; padding: 3px 9px; background: var(--blue); color: #fff; font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.08em; }
.card-title { font-family: var(--font-hero); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.card-meta { font-size: 0.9rem; line-height: 1.6; opacity: 0.85; }

/* ---------- Audio player ---------- */
.player { margin-top: 36px; padding: 14px; border: 4px solid var(--blue); background: rgba(0, 8, 255, 0.03); }
.player-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 2px dashed var(--blue); }
.player-now { min-height: 1.4em; margin-bottom: 12px; font-family: var(--font-hero); font-weight: 700; font-size: 1.05rem; line-height: 1.4; }
.viz { position: relative; height: 180px; overflow: hidden; border: 2px solid var(--blue); background: var(--blue); color: #fff; }
.viz canvas { display: block; width: 100%; height: 100%; }
.viz-hud { position: absolute; top: 6px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-family: var(--font-ensemble); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; pointer-events: none; }
.controls {
  display: grid; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--font-ensemble);
  grid-template-columns: auto auto auto minmax(0, 1fr);
  grid-template-areas: "prev play next time" "seek seek seek seek" "vol vol vol vol";
}
.ctl-prev { grid-area: prev; } .ctl-play { grid-area: play; } .ctl-next { grid-area: next; }
.time { grid-area: time; justify-self: end; font-size: 0.82rem; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 0; }
.seek { grid-area: seek; }
.volume { grid-area: vol; display: flex; align-items: center; gap: 10px; }
.volume svg { width: 18px; height: 18px; flex: none; }
.icon-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid var(--blue); color: var(--blue); transition: background-color 0.2s, color 0.2s; }
.icon-btn:hover { background: var(--blue); color: #fff; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn--play { width: 54px; height: 54px; background: var(--blue); color: #fff; }
.icon-btn--play:hover { background: #fff; color: var(--blue); }
.icon-btn--play .i-pause, .icon-btn--play[aria-pressed="true"] .i-play { display: none; }
.icon-btn--play[aria-pressed="true"] .i-pause { display: block; }
.range { --p: 0%; -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right, var(--blue) var(--p), rgba(0, 8, 255, 0.18) var(--p)); }
.range::-moz-range-track { height: 4px; background: rgba(0, 8, 255, 0.18); }
.range::-moz-range-progress { height: 4px; background: var(--blue); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 18px; margin-top: -7px; border: 2px solid #fff; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.range::-moz-range-thumb { width: 8px; height: 14px; border: 2px solid #fff; border-radius: 0; background: var(--blue); }
.tracklist { margin-top: 16px; border-top: 2px solid var(--blue); max-height: 220px; overflow-y: auto; }
.track {
  display: grid; grid-template-columns: 2.4em 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 13px 10px; text-align: left;
  font-family: var(--font-ensemble); font-size: 0.9rem; line-height: 1.45; border-bottom: 1px dashed rgba(0, 8, 255, 0.3);
  transition: background-color 0.2s, padding 0.2s;
}
.track:hover { background: rgba(0, 8, 255, 0.1); padding-left: 16px; }
.track[aria-current="true"] { background: var(--blue); color: #fff; font-weight: 700; }
.track-num, .track-len { font-size: var(--fs-label); }

/* ---------- Dreamscape ---------- */
.dream-body { overflow: hidden; padding: 36px 18px 44px; }
.dream-ascii {
  position: absolute; left: 0; right: 0; top: 140px; bottom: 0; z-index: 0; margin: 0; overflow: hidden; display: flex; justify-content: center;
  font-family: var(--font-ensemble); font-size: clamp(12px, 1.05vw, 20px); line-height: 1.15; color: #242424; white-space: pre; pointer-events: none;
}
.dream-title, .dream-intro, .dream-trailer { position: relative; z-index: 1; }
.dream-title { margin: 12px 0 28px; text-align: center; font-size: clamp(min(1.6rem, 8vw), 8vw, 3.4rem); font-weight: 400; line-height: 1.15; letter-spacing: 0.04em; white-space: nowrap; }
.dream.is-near .dream-title { font-family: var(--font-dream-title); }
.dream-intro {
  max-width: 900px; margin: 0 auto; padding: 20px; border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(10, 10, 10, 0.9);
  box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.08); font-family: var(--font-dream); font-size: 1rem; line-height: 1.95; color: rgba(255, 255, 255, 0.9);
  transition: transform 0.6s var(--ease);
}
.dream-intro p + p { margin-top: 1.2em; }
.dream-trailer { max-width: 900px; margin: 64px auto 0; transition: transform 0.6s var(--ease); }
.dream-more { position: relative; z-index: 1; display: flex; justify-content: center; margin-top: 44px; }
.btn--dream { min-height: 56px; padding: 0 34px; border-color: #fff; font-size: 1.05rem; }
.btn--dream::before { background: linear-gradient(90deg, #c27bd6, #e7a3d6, #8fd3c8, #6f8df0); }
.btn--dream:hover { color: #000; box-shadow: 6px 6px 0 rgba(231, 163, 214, 0.5); }
.dream .video-card { border-color: #fff; background: rgba(12, 12, 12, 0.94); }
.dream .video-card:hover { box-shadow: 12px 12px 0 rgba(255, 255, 255, 0.18); }
.dream .thumb { border-color: rgba(255, 255, 255, 0.45); }
.dream .play-badge { background: #fff; color: #000; }
.dream-trailer-title { text-align: center; font-family: var(--font-dream); font-weight: 700; font-size: clamp(min(1.15rem, 4.8vw), 4.8vw, 1.8rem); letter-spacing: 0.06em; padding: 6px 0 4px; }
.dither { position: relative; height: 96px; }
.dither-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; } /* drawn by main.js */

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 8px; }
.photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 2px solid #fff; background: var(--white-10); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.photo--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(50%); transition: transform 0.4s, filter 0.4s; }
.photo:hover img, .photo:focus-visible img { filter: grayscale(0%); transform: scale(1.06); }
.photo .cap { display: none; }

.collapsible { position: relative; overflow: hidden; transition: max-height 0.7s var(--ease); }
.collapse-fade { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: 96px; pointer-events: none; transition: opacity 0.4s; }
.collapsible:not(.is-collapsed) .collapse-fade { opacity: 0; }
.more { display: flex; justify-content: center; margin-top: 28px; }
.more .when-expanded, .more [aria-expanded="true"] .when-collapsed { display: none; }
.more [aria-expanded="true"] .when-expanded { display: inline; }

/* ---------- Activities timeline ---------- */
.timeline-bar { display: flex; justify-content: flex-end; margin-bottom: 22px; }
.timeline { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-left: 30px; font-family: var(--font-ensemble); }
.timeline::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; border-left: 2px dashed var(--white-50); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 20px; border-top: 2px dashed var(--white-50); }
.event {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; width: 100%; padding: 10px; text-align: left;
  border: 2px solid #fff; background: var(--blue); opacity: 0.92;
  transition: opacity 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.event:hover, .event:focus-visible { opacity: 1; transform: translateY(-3px); box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.15); }
.event img { width: 64px; aspect-ratio: 1 / 1.414; object-fit: cover; border: 1px solid var(--white-50); }
.event-text { display: block; }
.event time { color: rgba(255, 255, 255, 0.85); font-weight: 700; font-size: 0.8rem; }
.event-title { display: block; margin-top: 2px; font-size: 0.92rem; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; word-break: normal; }
.window, .window-body > * { min-width: 0; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.marquee { display: flex; width: max-content; margin-bottom: 28px; animation: marqueeLoop 22s linear infinite; }
.marquee span { padding-right: 20px; font-family: var(--font-connect); font-size: clamp(2.2rem, 10vw, 6.8rem); font-weight: 700; color: transparent; -webkit-text-stroke: 2px #fff; white-space: nowrap; }
@keyframes marqueeLoop { to { transform: translateX(-50%); } }
.contact-body { text-align: center; }
.contact-title { font-family: var(--font-hero); font-size: clamp(min(1.6rem, 7vw), 7vw, 2.6rem); font-weight: 700; }
.socials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 28px; text-align: left; }
.social {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 2px solid #fff; text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.social:hover { background: #fff; color: var(--blue); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--white-50); }
.social strong { font-family: var(--font-hero); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }
.social span { font-family: var(--font-ensemble); font-size: var(--fs-label); }
.social i { position: absolute; top: 10px; right: 12px; font-style: normal; }

/* ---------- Store teaser (home) — full page is store.html ---------- */
.store-teaser { display: grid; gap: 26px; }
.store-teaser .section-lead { margin-top: 14px; }
.teaser-shops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.teaser-shop {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 16px 30px 14px 14px; border: 2px solid var(--blue); text-decoration: none;
  box-shadow: inset 0 5px 0 var(--accent); transition: background-color 0.2s, color 0.2s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.teaser-shop:hover { background: var(--blue); color: #fff; transform: translate(-2px, -2px); box-shadow: inset 0 5px 0 var(--accent), 6px 6px 0 rgba(0, 8, 255, 0.2); }
.teaser-shop .social-icons svg { width: 30px; height: 30px; }
.teaser-shop small, .teaser-shop strong { grid-column: 2; }
.teaser-shop small { font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.teaser-shop strong { font-family: var(--font-hero); font-size: 1.15rem; line-height: 1.25; }
.teaser-shop i { position: absolute; top: 12px; right: 12px; font-style: normal; }

/* ---------- Preview buttons (assets/js/player.js): store "Listen first" + home hero ---------- */
.preview {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: center; width: 100%; padding: 6px 12px 6px 6px;
  border: 2px solid #fff; background: rgba(255, 255, 255, 0.08); text-align: left;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.preview:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--white-50); }
.preview svg { grid-row: 1 / 3; width: 40px; height: 40px; padding: 13px; background: #fff; color: var(--blue); }
.preview .i-pause, .preview.is-playing .i-play { display: none; }
.preview.is-playing .i-pause { display: block; }
.preview.is-playing { background: #fff; color: var(--blue); }
.preview.is-playing svg { background: var(--blue); color: #fff; }
.preview-title { font-family: var(--font-hero); font-weight: 700; line-height: 1.3; }
.preview small { font-family: var(--font-ensemble); font-size: var(--fs-label); opacity: 0.85; }
.preview--hero { width: auto; max-width: 340px; margin-top: 26px; }

/* ---------- Back link (store, links, legal) ---------- */
.back-link { display: inline-block; padding: 6px 10px; border: 2px solid #fff; background: rgba(0, 8, 255, 0.6); font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; text-decoration: none; transition: background-color 0.2s, color 0.2s; }
.back-link:hover { background: #fff; color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--white-20); font-family: var(--font-ensemble); font-size: 0.8rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner a { display: inline-block; padding-block: 4px; text-decoration: none; }
.footer-inner a:hover { text-decoration: underline; }

/* ---------- Dialogs ---------- */
dialog { padding: 0; border: 0; background: transparent; color: #fff; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(0, 4, 40, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.video-dialog { width: min(100% - 24px, 960px); }
.video-dialog .window { background: var(--blue); }
dialog[open] .window, dialog[open] .lightbox-figure { animation: pop 0.25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.95) translateY(10px); } }
.dialog-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dialog-close { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 2px solid currentColor; transition: background-color 0.2s, color 0.2s; }
.window-bar .dialog-close:hover { background: var(--blue); color: #fff; }
.dialog-close svg { width: 12px; height: 12px; }
.video-frame { aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.dialog-foot { display: flex; justify-content: flex-end; padding: 12px; }

.lightbox { width: 100%; height: 100%; margin: 0; }
.lightbox-inner { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; height: 100%; padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-ensemble); font-size: 0.8rem; }
.lightbox-top .dialog-close { width: 40px; height: 40px; }
.lightbox-top .dialog-close:hover { background: #fff; color: var(--blue); }
.lightbox-figure { position: relative; display: grid; place-items: center; min-height: 0; touch-action: pan-y; } /* horizontal swipes go to the photo switcher */
.lightbox-figure img { max-width: 100%; max-height: calc(100dvh - 170px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); object-fit: contain; border: 4px solid #fff; box-shadow: 0 0 20px rgba(0, 0, 0, 0.5); }
.lightbox-cap { max-width: 70ch; margin: 0 auto; text-align: center; font-size: 0.9rem; }
.lightbox-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; border: 2px solid #fff; background: var(--blue); }
.lightbox-nav svg { width: 15px; height: 15px; }
.lightbox-prev { left: 4px; } .lightbox-next { right: 4px; }

/* ---------- Language wipe ---------- */
.lang-wipe { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; pointer-events: none; background: var(--blue); border-left: 2px solid #fff; border-right: 2px solid #fff; font-family: var(--font-ensemble); font-size: 0.85rem; letter-spacing: 0.2em; transform: translateX(-102%); }
.lang-wipe.is-run { animation: wipe 0.75s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
@keyframes wipe { 0% { transform: translateX(-102%); } 42%, 58% { transform: translateX(0); } 100% { transform: translateX(102%); } }

/* ---------- Window pop-in on scroll ---------- */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity 0.8s var(--ease), translate 0.8s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: none; }

/* ==========================================================================
   DESKTOP — wide screens with a real mouse. Phones and tablets never get this.
   ========================================================================== */
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  :root { --gutter: 48px; --maxw: 1240px; --bar-h: 64px; }

  .menu-btn { display: none; }
  .topnav { position: static; height: auto; padding: 0; background: none; overflow: visible; opacity: 1; visibility: visible; transition: none; }
  .topnav ul { display: flex; gap: 8px; width: auto; }
  .topnav a { padding: 4px 10px; border-left-width: 2px; font-size: 0.95rem; font-weight: 500; }
  .topnav a:hover { padding-left: 10px; }
  .topnav a[aria-current="true"] { background: var(--white-20); }
  .topbar-inner { gap: 22px; }

  /* Home: logo + nav on the left, updates window on the right */
  .home { display: flex; flex-direction: column; justify-content: center; padding-block: 28px 64px; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto 1fr; column-gap: 64px; row-gap: 12px; min-height: calc(100svh - 92px); }
  .home-top { grid-column: 1 / -1; }
  .home-main { align-self: center; }
  .home-title { font-size: clamp(min(3rem, 6.4vw), 6.4vw, 6.2rem); }
  .icon-links a { width: 68px; height: 68px; }
  .icon-links svg { width: 32px; height: 32px; }
  .home-nav { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 34px; }
  .home-nav a { font-size: clamp(1.25rem, 1.9vw, 2rem); padding: 0 6px 0 12px; }
  .updates { align-self: center; padding: 18px 16px 16px; }
  .updates-tab { top: 18px; right: auto; left: 100%; writing-mode: vertical-rl; padding: 8px 3px; margin-left: 2px; }

  .section { padding-block: 56px; }
  .window-body { padding: 44px 48px 48px; }
  .section-head { margin-bottom: 40px; }
  .section-head--row { grid-template-columns: 1fr auto; align-items: end; }
  .section-head--right .section-lead, .section-head--center .section-lead { justify-self: auto; text-align: inherit; }

  .about { grid-template-columns: 220px 1fr; column-gap: 48px; row-gap: 36px; align-items: start; }
  .about-photo { width: 220px; }
  .skills { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .video-grid { grid-template-columns: repeat(12, 1fr); gap: 28px; align-items: start; }
  .video-card:nth-child(1) { grid-column: 1 / 8; margin-top: 20px; }
  .video-card:nth-child(2) { grid-column: 8 / 13; }
  .video-card:nth-child(3) { grid-column: 2 / 7; margin-top: 20px; }
  .video-card:nth-child(4) { grid-column: 7 / 12; }
  .player { margin-top: 64px; padding: 28px; }
  .viz { height: 260px; }
  .viz-hud { font-size: 0.72rem; }
  .controls { grid-template-columns: auto auto auto 1fr auto 170px; grid-template-areas: "prev play next seek time vol"; gap: 16px; }

  .dream-ascii { top: 200px; }
  .dream-title { font-size: clamp(min(3.6rem, 5.6vw), 5.6vw, 5.8rem); margin-bottom: 44px; }
  .dream-intro { padding: 32px 42px; font-size: 1.12rem; }
    .dream-body { padding: 72px 64px 72px; }
  .dream-trailer { margin-top: 110px; }
  .dream-more { margin-top: 56px; }

  .gallery { grid-template-columns: repeat(3, 1fr); gap: 20px; transform: skewY(-1.5deg); padding: 20px 0 36px; }
  .photo:hover, .photo:focus-visible { transform: scale(1.03) skewY(1.5deg); z-index: 5; box-shadow: 10px 10px 0 var(--white-20); }
  .photo .cap {
    display: block; position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; text-align: left;
    background: rgba(0, 8, 255, 0.9); border-top: 1px solid #fff;
    font-family: var(--font-ensemble); font-size: 0.8rem; font-weight: 700; line-height: 1.35;
  }

  /* original alternating "tree" timeline */
  .timeline { grid-template-columns: 1fr 1fr; column-gap: 0; row-gap: 18px; padding: 10px 0 70px; }
  .timeline::before { left: 50%; transform: translateX(-1px); }
  .timeline li:nth-child(odd) { grid-column: 2; padding-left: 36px; }
  .timeline li:nth-child(even) { grid-column: 1; padding-right: 36px; top: 64px; }
  .timeline li::before { left: 0; width: 30px; }
  .timeline li:nth-child(even)::before { left: auto; right: 0; }
  .timeline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .event { grid-template-columns: 90px minmax(0, 1fr); padding: 14px; }
  .event img { width: 90px; }
  .event-title { font-size: 1.02rem; }

  .socials { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .store-teaser { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; column-gap: 56px; }
  .lightbox-prev { left: 12px; } .lightbox-next { right: 12px; }
}

/* ---------- Less motion when the OS asks for it: everything keeps moving, but slower and calmer ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-ghost, .marquee, .scroll-cue, dialog[open] .window, dialog[open] .lightbox-figure { animation: none !important; }
  .loader-ring--1 { animation-duration: 2.4s, 0.5s; } .loader-ring--2 { animation-duration: 3.3s, 0.5s; } .loader-ring--3 { animation-duration: 4.2s, 0.5s; } /* rings still flip, 3x slower */
  .loader-word { animation-duration: 1.2s; }
  .wave-char { animation-duration: 7s; }
  .js .reveal { opacity: 1; translate: none; }
}

/* ---------- Contact: big email button + icon cards ---------- */
.email-btn {
  display: flex; align-items: center; gap: 16px; max-width: 680px; margin: 22px auto 0; padding: 18px 20px;
  border: 3px solid #fff; background: #fff; color: var(--blue); text-align: left; text-decoration: none;
  box-shadow: 8px 8px 0 var(--white-50);
  transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}
.email-btn svg { width: 38px; height: 38px; flex: none; }
.email-text { display: grid; flex: 1; min-width: 0; }
.email-text small { font-family: var(--font-ensemble); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.email-text b { font-family: var(--font-hero); font-size: clamp(min(1.1rem, 5vw), 5vw, 2rem); line-height: 1.2; overflow-wrap: anywhere; }
.email-btn .arrow { font-size: 1.6rem; transition: transform 0.25s var(--ease); }
.email-btn:hover { background: var(--blue); color: #fff; transform: translate(-3px, -3px); box-shadow: 12px 12px 0 var(--white-50); }
.email-btn:hover .arrow { transform: translateX(5px); }
.email-btn:active { transform: none; box-shadow: 4px 4px 0 var(--white-50); }

.social { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
.social-icons { grid-row: 1 / 3; display: flex; gap: 6px; }
.social-icons svg { width: 26px; height: 26px; }
.social strong, .social > span:not(.social-icons) { grid-column: 2; }

/* ---------- Phone tweaks ---------- */
@media (max-width: 560px) {
  .icon-links { gap: 10px; }
  .icon-links a { width: 56px; height: 56px; }
  .icon-links svg { width: 28px; height: 28px; }
  .socials { grid-template-columns: 1fr; }
  .teaser-shops { grid-template-columns: 1fr; }
  .email-btn { gap: 12px; padding: 16px 14px; }
  .email-btn svg { width: 30px; height: 30px; }
  .email-btn .arrow { display: none; }
  .email-text b { font-size: clamp(min(0.95rem, 4.6vw), 4.6vw, 1.3rem); white-space: nowrap; overflow-wrap: normal; }
}

/* ---------- Section title faces: every title has its own font ---------- */
.title-about { font-family: "Dela Gothic One", var(--font-hero); font-size: clamp(min(1.6rem, 7.6vw), 7.6vw, 3.6rem); font-weight: 400; letter-spacing: 0; }
.title-store { font-family: "Unbounded", var(--font-hero); font-size: clamp(min(2.6rem, 13vw), 13vw, 6rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.title-commissions { font-family: "Bungee", var(--font-hero); font-size: clamp(min(1.8rem, 9.6vw), 9.6vw, 4.6rem); font-weight: 400; line-height: 1; }
.title-packs { font-family: "Silkscreen", var(--font-ensemble); font-size: clamp(min(2.4rem, 14vw), 14vw, 6rem); font-weight: 700; line-height: 1; letter-spacing: -0.12em; } /* pixel face ships very wide spacing */
.title-storefronts { font-family: "Righteous", var(--font-hero); font-size: clamp(min(2rem, 10.5vw), 10.5vw, 5rem); font-weight: 400; line-height: 1; }
.title-faq { font-family: var(--font-ensemble); font-size: clamp(min(1.15rem, 5.4vw), 5.4vw, 2.6rem); font-weight: 700; line-height: 1.3; }
.title-club { font-family: "DotGothic16", var(--font-ensemble); font-weight: 400; letter-spacing: 0.02em; }
.contact-title { font-family: "M PLUS Rounded 1c", var(--font-hero); font-weight: 800; }

/* touch screens: small text links get a 44px tall tap area */
@media (pointer: coarse) {
  .footer-inner a, .back-link { display: inline-flex; align-items: center; min-height: 44px; }
}
