@font-face { font-family: "HH Sign"; src: url(assets/Monoton-Regular.woff2) format("woff2"), url(assets/Monoton-Regular.ttf) format("truetype"); font-display: swap; }
@font-face { font-family: "HH Sans"; src: url(assets/SpaceGrotesk.woff2) format("woff2"), url(assets/SpaceGrotesk.ttf) format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "HH Mono"; src: url(assets/JetBrainsMono.woff2) format("woff2"), url(assets/JetBrainsMono.ttf) format("truetype"); font-weight: 100 800; font-display: swap; }

:root {
  --night: #070A1F; --indigo: #1B1650; --silhouette: #04030C; --lavender: #C9C6FF;
  --orange: #F7931A; --red: #FF3B4E; --cyan: #4FE3FF; --pink: #FF2E97; --yellow: #FFD23F;
  --text: #F0EFFF; --muted: #A9A6E0; --panel: #120F33; --border: #3A3590;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--text); font: 400 1rem/1.55 "HH Sans", system-ui, sans-serif; }
body { margin: 0; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.hh-skip { position: absolute; left: -999px; top: 8px; }
.hh-skip:focus { left: 8px; z-index: 50; background: var(--text); color: var(--night); padding: .5em 1em; }

/* intro */
#hh-intro { display: none; }
html.hh-intro { overflow: hidden; }
html.hh-intro #hh-intro { display: block; position: fixed; inset: 0; z-index: 40; background: var(--night); overflow: hidden; cursor: pointer; }
/* As in the app's IntroView: the studio card, then the hex rows (canvas) and the name locking in. */
.hh-hash-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hh-opener { position: absolute; left: 50%; top: 50%; width: min(320px, 60vw); max-width: none; height: auto; translate: -50% -50%; opacity: 0;
  filter: drop-shadow(0 0 14px rgba(201, 198, 255, .45)); }
.hh-hash-name { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; margin: 0; text-align: center; white-space: pre;
  font: 700 min(12.7vh, 15vw)/1.1 "HH Sans", sans-serif; opacity: 0; }
.hh-slot { position: relative; display: inline-block; }
.hh-slot > .f { visibility: hidden; }
.hh-slot > .s { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; }
.hh-hash-logo { position: absolute; left: 50%; top: calc(50% - 19.2vh); height: 6.5vh; width: auto; max-width: none; translate: -50% 0; opacity: 0;
  filter: drop-shadow(0 0 6px rgba(201, 198, 255, .3)); }

/* top bar */
.hh-top { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); pointer-events: none; }
.hh-top > * { pointer-events: auto; }
.hh-brand { display: block; }
.hh-brand img { display: block; }
.hh-sound { display: inline-flex; align-items: center; gap: .6em; padding: .55em 1em; border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--text); font: 500 .8rem "HH Mono", monospace; cursor: pointer; }
.hh-sound:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hh-bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.hh-bars i { width: 3px; height: 4px; background: var(--orange); border-radius: 1px; }
html.hh-sound-on .hh-bars i { animation: hh-bar .9s ease-in-out infinite alternate; }
html.hh-sound-on .hh-bars i:nth-child(2) { animation-delay: -.3s; }
html.hh-sound-on .hh-bars i:nth-child(3) { animation-delay: -.6s; }
@keyframes hh-bar { to { height: 12px; } }

/* ride */
.hh-ride { position: relative; height: 450vh; }
.hh-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--night); }
.hh-layer { position: absolute; inset: 0; background-repeat: repeat-x; will-change: background-position; }
.hh-sky { background: url(assets/sky.webp) center / cover no-repeat; }
.hh-stars { background-image: url(assets/stars.webp); background-size: auto 100%; opacity: .7; }
.hh-mountains { inset: 0 0 30% 0; background-image: url(assets/mountains-far.webp); background-size: auto 54%; background-position-y: bottom; }
.hh-city-far { inset: 0 0 26% 0; background-image: url(assets/skyline-far.webp); background-size: auto 62%; background-position-y: bottom; }
.hh-city-near { inset: 0 0 22% 0; background-image: url(assets/skyline-near.webp); background-size: auto 51%; background-position-y: bottom; }
.hh-haze { inset: 0 0 18% 0; background-image: url(assets/haze.webp); background-size: auto 27%; background-position-y: bottom; opacity: .6; }
.hh-space { background: url(assets/future/space-sky.webp) center / cover no-repeat; opacity: 0; }
.hh-mars-sky { background: linear-gradient(180deg, rgba(42, 12, 30, .55) 0%, rgba(120, 44, 40, .5) 62%, rgba(150, 70, 50, .35) 78%); opacity: 0; }
/* Planets as in the game's space sky: soft rim light, a slow float. */
.hh-planet { position: absolute; aspect-ratio: 1; background: center / contain no-repeat; opacity: 0; pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(79, 227, 255, .35)); animation: hh-float 14s ease-in-out infinite alternate; }
@keyframes hh-float { to { translate: 0 10px; } }
.hh-earth { right: 9%; top: 11%; width: min(26vh, 220px); background-image: url(assets/future/earth.webp); }
.hh-earth-far { right: 16%; top: 9%; width: min(11vh, 96px); background-image: url(assets/future/earth.webp); }
.hh-moonlet { left: 18%; top: 16%; width: min(6vh, 52px); background-image: url(assets/future/planet-small.webp); animation-duration: 18s; }
.hh-ringed { right: 7%; top: 8%; width: min(30vh, 260px); background-image: url(assets/future/planet-ringed.webp); filter: drop-shadow(0 0 22px rgba(201, 198, 255, .4)); }
.hh-phobos { left: 22%; top: 14%; width: min(5vh, 44px); background-image: url(assets/future/planet-small.webp); filter: sepia(.6) hue-rotate(-30deg) drop-shadow(0 0 10px rgba(255, 138, 148, .35)); animation-duration: 11s; }
.hh-land-far { inset: 0 0 26% 0; background-size: auto 46%; background-position-y: bottom; opacity: 0; }
.hh-land-near { inset: 0 0 22% 0; background-size: auto 34%; background-position-y: bottom; opacity: 0; }
.hh-land-far.hh-land-6 { background-image: url(assets/future/land-6-far.webp); }
.hh-land-near.hh-land-6 { background-image: url(assets/future/land-6-near.webp); }
.hh-land-far.hh-land-7 { background-image: url(assets/future/land-7-far.webp); }
.hh-land-near.hh-land-7 { background-image: url(assets/future/land-7-near.webp); }
.hh-land-far.hh-land-8 { background-image: url(assets/future/land-8-far.webp); }
.hh-land-near.hh-land-8 { background-image: url(assets/future/land-8-near.webp); }
.hh-land-far.hh-land-9 { background-image: url(assets/future/land-9-far.webp); }
.hh-land-near.hh-land-9 { background-image: url(assets/future/land-9-near.webp); }
.hh-land-far.hh-land-10 { background-image: url(assets/future/land-10-far.webp); }
.hh-land-near.hh-land-10 { background-image: url(assets/future/land-10-near.webp); }
/* At the end of the ride: a look beyond 2036, and the way to the app. */
.hh-teaser { position: absolute; left: 50%; top: 16svh; translate: -50% 0; width: min(560px, calc(100% - 2 * var(--gutter))); padding: 22px 24px;
  border: 1px solid var(--border); border-radius: 18px; background: color-mix(in srgb, var(--panel) 86%, transparent); text-align: center;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.hh-teaser.is-on { opacity: 1; visibility: visible; }
.hh-teaser p { margin: 0; }
.hh-teaser-kicker { font: 500 .75rem "HH Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
/* teaser */ .hh-teaser-title { margin-top: .35em !important; font: 700 clamp(1.3rem, 3.2vw, 1.9rem)/1.15 "HH Sans", sans-serif; color: var(--text); }
.hh-teaser-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 12px; }
.hh-teaser-strip span { display: block; aspect-ratio: 3.2; border-radius: 10px; border: 1px solid var(--border); background: #0D0A26 center / cover no-repeat; }
.hh-teaser-moon { background-image: url(assets/future/land-9-near.webp) !important; }
.hh-teaser-mars { background-image: url(assets/future/land-10-near.webp) !important; }
/* The ride's pictures load when the ride comes near: hodlhills.js sets hh-near, then hh-far. Without JS they load at once. */
html.hh-js .hh-stage:not(.hh-near) :is(.hh-layer, .hh-planet),
html.hh-js .hh-stage:not(.hh-far) :is([data-scene]:not([data-scene="city"]), .hh-teaser-strip span) { background-image: none !important; }
.hh-teaser-text { color: var(--muted); font-size: .95rem; }
.hh-teaser-cta { margin-top: 14px; border-color: var(--cyan); color: var(--cyan); }
.hh-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hh-glow { position: absolute; width: 46vmin; aspect-ratio: 1; left: 0; top: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--orange) 26%, transparent), transparent 65%); mix-blend-mode: screen; }
.hh-bear { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(255,59,78,.5) 0%, rgba(255,59,78,.26) 45%, rgba(255,59,78,.18) 100%); }
.hh-signs { position: absolute; inset: 0; pointer-events: none; }
.hh-sign { position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap; font: 400 clamp(1.3rem, 3.6vw, 2.8rem)/1 "HH Sign", sans-serif;
  color: #fff; --c: var(--pink); text-shadow: 0 0 .12em #fff, 0 0 .3em var(--c), 0 0 .8em var(--c); opacity: 0; transition: opacity .25s; }
.hh-sign.is-on { opacity: 1; animation: hh-flicker 1.1s steps(1) 1; }
@keyframes hh-flicker { 0% { opacity: .1 } 8% { opacity: 1 } 12% { opacity: .2 } 20% { opacity: 1 } 26% { opacity: .5 } 34%, 100% { opacity: 1 } }
.hh-event { position: absolute; left: var(--gutter); top: 136px; margin: 0; max-width: min(30ch, calc(100% - 2 * var(--gutter))); font: 400 .75rem/1.35 "HH Mono", monospace; color: var(--lavender);
  border-left: 1px solid var(--lavender); padding-left: .6em; opacity: 0; transition: opacity .3s; pointer-events: none; }
.hh-event b { display: block; color: var(--text); font-weight: 600; }
.hh-event.is-on { opacity: .9; }
.hh-hud { position: absolute; top: 64px; left: var(--gutter); right: var(--gutter); display: grid; grid-template-columns: 1fr auto; gap: .2em 1em; font: 500 .85rem/1.3 "HH Mono", monospace; }
.hh-hud p { margin: 0; }
.hh-hud-date { font-size: 1.15rem; color: var(--text); }
.hh-hud-chapter { grid-row: 2; color: var(--muted); }
.hh-hud-price { grid-column: 2; grid-row: 1 / 3; align-self: start; font-size: 1.15rem; color: var(--orange); }
.hh-hud-price[data-sub]::after { content: attr(data-sub); display: block; text-align: right; font-size: .75rem; color: var(--muted); }
.hh-note { position: absolute; bottom: 10svh; left: var(--gutter); margin: 0; font: 500 .75rem "HH Mono", monospace; letter-spacing: .12em;
  text-transform: uppercase; color: var(--lavender); opacity: 0; transition: opacity .4s; }
.hh-note.is-on { opacity: 1; }
.hh-intro-copy { position: absolute; left: var(--gutter); right: var(--gutter); top: 24svh; max-width: 40rem; transition: opacity .3s; }
.hh-intro-copy h2 { margin: 0 0 .4em; font: 600 clamp(2rem, 6vw, 4.4rem)/1.02 "HH Sans", sans-serif; letter-spacing: -.02em; }
.hh-intro-copy p { margin: 0; color: var(--muted); max-width: 32ch; }
.hh-chapters-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* hex hover overlay */
[data-hh-hex] { position: relative; }
[data-hh-hex].is-hexing { color: transparent; }
.hh-hex-overlay { position: absolute; inset: 0; color: var(--text); pointer-events: none; white-space: pre; }

/* sections */
.hh-section { padding: clamp(80px, 14vh, 160px) var(--gutter); max-width: 1200px; margin: 0 auto; }
.hh-section h2 { font: 600 clamp(1.8rem, 4.6vw, 3.2rem)/1.05 "HH Sans", sans-serif; margin: 0 0 1em; }
.hh-play-grid { display: grid; gap: clamp(24px, 4vw, 48px); grid-template-columns: 1fr; }
.hh-play-grid figure { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); }
.hh-play-grid p { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
@media (min-width: 900px) { .hh-play-grid { grid-template-columns: 1.4fr 1fr; align-items: center; } .hh-play-grid figure:last-child { grid-column: 1 / -1; width: 70%; justify-self: end; } }
.hh-ticker { overflow: hidden; border-block: 1px solid var(--border); padding: .9em 0; margin-bottom: 2.5em; }
.hh-ticker-track { display: flex; gap: 2.4em; width: max-content; font: 500 .9rem "HH Mono", monospace; color: var(--lavender); animation: hh-ticker 80s linear infinite; }
@keyframes hh-ticker { to { translate: -50% 0; } }
.hh-terms { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.hh-terms li { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 1.2em; }
.hh-terms h3 { margin: 0 0 .4em; font: 600 1.05rem "HH Mono", monospace; color: var(--cyan); }
.hh-terms p { margin: 0; color: var(--muted); font-size: .95rem; }
.hh-more { margin: 24px 0 0; display: flex; justify-content: center; }
.hh-more .hh-glass { border-color: var(--cyan); color: var(--cyan); white-space: normal; text-align: center; }
/* Encrypted term cards (hodlhills.js): the cipher lies over the plain text until the card is opened. */
.hh-terms li[data-hh-cipher] { cursor: pointer; }
.hh-terms li[data-hh-cipher]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hh-terms li[data-hh-cipher] p { position: relative; }
.hh-terms li.is-locked .hh-plain { color: transparent; }
.hh-cipher { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: color-mix(in srgb, var(--muted) 75%, transparent); }
.hh-terms li:not(.is-locked) .hh-cipher { display: none; }
.hh-soon { text-align: center; padding-block: clamp(120px, 22vh, 240px); }
.hh-soon-kicker { font: 500 .8rem "HH Mono", monospace; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.hh-section .hh-soon-sign { font: 400 clamp(2rem, 7vw, 5rem)/1.15 "HH Sign", sans-serif; color: #fff;
  text-shadow: 0 0 .1em #fff, 0 0 .3em var(--cyan), 0 0 .8em var(--cyan); }
.hh-footer { padding: 48px var(--gutter); border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.hh-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hh-footer button { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* reveals only when JS runs */
html.hh-js .hh-reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease-out, translate .7s cubic-bezier(.2, .7, .2, 1); }
html.hh-js .hh-reveal.hh-in { opacity: 1; translate: 0 0; }

/* still mode: no JS, or reduced motion */
html:not(.hh-js) .hh-ride, html.hh-still .hh-ride { height: auto; }
html:not(.hh-js) .hh-stage, html.hh-still .hh-stage { position: relative; height: 80svh; }
html.hh-still .hh-stage { height: 100svh; }
html.hh-still .hh-intro-copy { top: 14svh; }
html.hh-still .hh-note { display: none; }
html.hh-still .hh-layer { inset: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.hh-js .hh-reveal { opacity: 1; translate: none; }
  .hh-glow { display: none; }
  .hh-ride { height: auto; }
  .hh-stage { position: relative; height: 100svh; }
}

/* title: the app's start screen over its own art (title.js adds fog, coin and city life) */
.hh-title { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--night); isolation: isolate; }
.hh-title-art, .hh-title-scene { position: absolute; inset: 0; }
.hh-title-art { overflow: hidden; z-index: -1; }
.hh-title-scene { transform: scale(1.05); will-change: transform; }
.hh-title-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 85% 50%; }
.hh-title canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hh-title-sun { position: absolute; padding: 0; border: 0; border-radius: 50%; background: none; cursor: default; }
.hh-title-menu { position: absolute; left: var(--gutter); top: 50%; translate: 0 -50%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: min(30rem, calc(100% - 2 * var(--gutter))); }
.hh-title-menu p { margin: 0; }
.hh-title-block { font: 500 .75rem/1.3 "HH Mono", monospace; color: var(--muted); }
.hh-title-name { margin: 0; font: 700 clamp(2.4rem, min(8.5svh, 13vw), 5.25rem)/1.05 "HH Sans", sans-serif; letter-spacing: -.01em; color: var(--text); }
.hh-title-name span { color: var(--orange); }
.hh-title-tagline { font: 400 clamp(.95rem, min(2.6svh, 4.4vw), 1.3rem)/1.4 "HH Sans", sans-serif; color: color-mix(in srgb, var(--text) 85%, transparent); max-width: 24em; }
.hh-title-play { display: inline-flex; align-items: center; gap: .5em; margin-top: 6px; min-height: 58px; padding: 0 34px; border-radius: 999px;
  background: var(--orange); color: #0A0820; font: 700 1.25rem "HH Sans", sans-serif; text-decoration: none; animation: hh-breathe 3.2s ease-in-out infinite; }
.hh-title-play svg { width: .9em; height: .9em; fill: currentColor; }
.hh-title-play:focus-visible, .hh-glass:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@keyframes hh-breathe { 0%, 100% { box-shadow: 0 0 22px color-mix(in srgb, var(--orange) 35%, transparent); } 50% { box-shadow: 0 0 22px color-mix(in srgb, var(--orange) 80%, transparent); } }
.hh-title-row { display: flex; flex-wrap: wrap; gap: 10px; }
.hh-glass { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--panel) 72%, transparent); border: 1px solid var(--border); color: var(--text);
  font: 500 .95rem "HH Sans", sans-serif; text-decoration: none; cursor: pointer; transition: background .15s, scale .15s; }
.hh-glass:hover { background: color-mix(in srgb, var(--panel) 95%, transparent); }
.hh-glass:active { scale: .97; }
.hh-glass svg { width: 1.05em; height: 1.05em; fill: currentColor; }
.hh-title-music[aria-pressed="true"] { border-color: var(--lavender); }
.hh-title-card { position: absolute; right: 24px; bottom: 56px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 85%, transparent); border: 1.2px solid color-mix(in srgb, var(--orange) 70%, transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--orange) 25%, transparent); }
.hh-title-card svg { width: 26px; height: 26px; flex: none; color: var(--orange); fill: var(--orange); }
.hh-title-card p { margin: 0; }
.hh-title-card-name { font: 700 1.05rem "HH Sans", sans-serif; }
.hh-title-card-pitch { width: 160px; font: 400 .78rem/1.35 "HH Sans", sans-serif; color: var(--muted); }
.hh-title-card-soon { padding: 0 12px; min-height: 32px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--orange); color: #0A0820;
  font: 700 .85rem "HH Mono", monospace; white-space: nowrap; }
.hh-title-note { position: absolute; right: 20px; bottom: 0; margin: 0; padding: 0; min-height: 44px; display: inline-flex; align-items: center; gap: .4em;
  background: none; border: 0; cursor: pointer; font: 400 .75rem "HH Sans", sans-serif; color: color-mix(in srgb, var(--muted) 70%, transparent); }
.hh-title-note:hover { color: var(--muted); }
.hh-title-note:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
/* The full disclaimer, as in the app: shown from the note on the title screen; it fits without scrolling. */
.hh-disclaimer { width: min(680px, calc(100vw - 24px)); max-height: calc(100svh - 24px); margin: auto; padding: clamp(16px, 3svh, 32px) clamp(16px, 4vw, 40px);
  border: 1px solid var(--border); border-radius: 18px; background: var(--night); color: color-mix(in srgb, var(--text) 90%, transparent);
  font: 400 clamp(.75rem, 1.72svh, 15px)/1.42 "HH Sans", sans-serif; overflow: hidden; }
.hh-disclaimer::backdrop { background: rgba(4, 3, 12, .72); }
.hh-disclaimer h2 { margin: 0 0 .6em; font: 700 1.6em/1.1 "HH Sans", sans-serif; color: var(--text); }
.hh-disclaimer p { margin: 0 0 .62em; }
.hh-disclaimer-future { color: #FF8A94; }
.hh-disclaimer a { color: var(--cyan); }
.hh-disclaimer form { margin: 1em 0 0; }
.hh-disclaimer-ok { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: 0 22px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--orange); color: #0A0820; font: 600 1rem "HH Sans", sans-serif; }
.hh-disclaimer-ok svg { width: 1em; height: 1em; }
.hh-disclaimer-ok:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hh-title-note svg { width: 1.1em; height: 1.1em; }
/* As in the app: the full version card at the top right, under the sound switch. */
@media (min-aspect-ratio: 8/5) { .hh-title-img { object-position: 70% 60%; } .hh-title-card { top: 72px; bottom: auto; } }
/* Portrait: the iPad art, its sky on top for the menu, the city below. */
@media (max-aspect-ratio: 8/5) {
  .hh-title-menu { top: max(88px, 12svh); translate: none; }
}
@media (max-width: 640px) {
  .hh-title-menu { gap: 8px; }
  .hh-title-row { flex-wrap: nowrap; gap: 8px; }
  .hh-glass { padding: 0 12px; font-size: .85rem; }
  .hh-title-play { min-height: 52px; padding: 0 28px; font-size: 1.15rem; }
  .hh-title-card { left: var(--gutter); right: var(--gutter); bottom: 44px; padding: 8px 8px 8px 14px; justify-content: space-between; }
  .hh-title-card > div { margin-right: auto; }
  .hh-title-card svg { width: 20px; height: 20px; }
  .hh-title-card-pitch { display: none; }
  .hh-title-note { left: var(--gutter); right: var(--gutter); justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .hh-title-scene { transform: none; } }

/* The soundtrack: three previews, the other songs in the app. */
.hh-album { width: min(520px, calc(100vw - 24px)); max-height: calc(100svh - 24px); margin: auto; padding: 20px clamp(16px, 4vw, 28px);
  border: 1px solid var(--border); border-radius: 18px; background: var(--night); color: var(--text); overflow: hidden; }
.hh-album::backdrop { background: rgba(4, 3, 12, .72); }
.hh-album-kicker { margin: 0; font: 500 .75rem "HH Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.hh-album h2 { margin: .2em 0 .5em; font: 700 1.6rem/1.1 "HH Sans", sans-serif; }
.hh-album-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hh-track { width: 100%; min-height: 44px; display: grid; grid-template-columns: 2.2em 1fr auto 1.4em; align-items: center; gap: 10px;
  padding: 6px 10px; border: 1px solid transparent; border-radius: 10px; background: none; color: inherit; font: 500 .95rem "HH Sans", sans-serif; text-align: left; }
button.hh-track { cursor: pointer; background: color-mix(in srgb, var(--panel) 80%, transparent); border-color: var(--border); }
button.hh-track:hover { border-color: var(--lavender); }
button.hh-track:focus-visible, .hh-album-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
button.hh-track[aria-pressed="true"] { border-color: var(--orange); }
.hh-track-n { font: 500 .75rem "HH Mono", monospace; color: var(--muted); }
.hh-track-note { font: 400 .75rem "HH Mono", monospace; color: var(--muted); white-space: nowrap; }
.hh-track-state { justify-self: end; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--orange); }
button.hh-track[aria-pressed="true"] .hh-track-state { width: 10px; height: 12px; border: 0; border-left: 3px solid var(--orange); border-right: 3px solid var(--orange); }
.is-locked .hh-track { opacity: .5; }
.hh-track-lock { justify-self: end; width: 14px; height: 14px; color: var(--muted); }
.hh-album-more { margin: 14px 0 0; color: var(--muted); font-size: .9rem; }
.hh-album-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.hh-album-actions form { margin: 0; }
.hh-album-cta { border-color: var(--cyan); color: var(--cyan); }
.hh-album-close { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--text); font: 500 .95rem "HH Sans", sans-serif; cursor: pointer; }
@media (max-width: 420px) {
  button.hh-track { grid-template-columns: 2em 1fr 1.2em; }
  button.hh-track .hh-track-note { grid-column: 2; grid-row: 2; }
  button.hh-track .hh-track-state { grid-row: 1 / 3; grid-column: 3; }
  .is-locked .hh-track { min-height: 34px; padding-block: 2px; }
}
@media (max-height: 720px) { .hh-album-kicker { display: none; } .hh-album h2 { margin-top: 0; } .hh-album-more { margin-top: 10px; } }

/* Gallery: the App Store video and screenshots on a three-screen 3D stage (gallery.js), as on the studio home page. */
.hh-gallery-intro { margin: -.4em 0 1.4em; color: var(--muted); }
.hh-stage3d { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; outline: none; }
.hh-stage3d .hh-slide { flex: 0 0 86%; margin: 0; scroll-snap-align: center; }
.hh-slide img, .hh-slide video { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 736; object-fit: cover; border-radius: 14px;
  background: var(--night); border: 1px solid var(--border); box-shadow: 0 30px 50px -24px #000; }
.hh-stage3d.is-3d { position: relative; display: block; overflow: hidden; height: clamp(230px, 40vw, 560px); perspective: 1400px; touch-action: pan-y; cursor: grab; }
.hh-stage3d.is-3d:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 14px; }
.hh-stage3d.is-3d::before { content: ''; position: absolute; inset: 70% 12% 6%; border-radius: 50%; background: color-mix(in srgb, var(--pink) 22%, transparent); filter: blur(30px); transform: scaleY(.4); }
.is-3d .hh-stage3d-scene { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--camera-x, 3deg)) rotateY(var(--camera-y, 0deg)); transition: transform .15s linear; }
.is-3d .hh-slide { position: absolute; top: 9%; left: 50%; width: 64%; transform-origin: center; backface-visibility: hidden;
  transition: transform 1.1s cubic-bezier(.22, .75, .16, 1), opacity .7s, filter .8s; will-change: transform; }
.is-3d .hh-slide[data-position="0"] { transform: translate3d(-50%, 0, 70px) rotateY(-2deg); opacity: 1; z-index: 3; }
.is-3d .hh-slide[data-position="1"] { transform: translate3d(6%, 7%, -180px) rotateY(-30deg); opacity: .7; filter: brightness(.6); z-index: 1; cursor: pointer; }
.is-3d .hh-slide[data-position="2"] { transform: translate3d(-106%, 7%, -180px) rotateY(30deg); opacity: .7; filter: brightness(.6); z-index: 1; cursor: pointer; }
.is-3d .hh-slide[data-position="hidden"] { transform: translate3d(-50%, 4%, -340px) scale(.85); opacity: 0; z-index: 0; pointer-events: none; }
.hh-stage3d-controls { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.hh-stage3d-controls button { flex-shrink: 0; min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; }
.hh-stage3d-arrow { border: 1px solid var(--border) !important; border-radius: 50%; font: 18px/1 "HH Sans", sans-serif; opacity: .8; }
.hh-stage3d-arrow:hover { opacity: 1; border-color: var(--lavender) !important; }
.hh-stage3d-controls .hh-stage3d-dot { position: relative; width: 28px; min-width: 0; flex: 0 1 28px; }
.hh-stage3d-dot::before, .hh-stage3d-dot::after { content: ''; position: absolute; left: 0; right: 0; top: calc(50% - 1.5px); height: 3px; border-radius: 20px; background: var(--orange); }
.hh-stage3d-dot::before { opacity: .22; }
.hh-stage3d-dot::after { transform: scaleX(0); transform-origin: left; transition: transform 70ms linear; }
.hh-stage3d-dot.is-complete::after { transform: scaleX(1); }
.hh-stage3d-dot[aria-pressed="true"]::after { transform: scaleX(var(--slide-progress, 0)); }
.hh-stage3d-controls button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.hh-gallery-walk { margin: 18px 0 0; text-align: center; }
.hh-gallery-walk svg { width: .85em; height: .85em; fill: currentColor; }
.hh-walk { width: min(1100px, calc(100vw - 24px)); max-height: calc(100svh - 24px); margin: auto; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--night); overflow: hidden; }
.hh-walk::backdrop { background: rgba(4, 3, 12, .85); }
.hh-walk video { display: block; width: 100%; max-height: calc(100svh - 110px); height: auto; border-radius: 10px; background: #000; }
.hh-walk form { margin: 10px 0 0; text-align: right; }
@media (max-width: 640px) {
  .is-3d .hh-slide { width: 84%; top: 12%; }
  .is-3d .hh-slide[data-position="1"] { transform: translate3d(30%, 8%, -200px) rotateY(-30deg); }
  .is-3d .hh-slide[data-position="2"] { transform: translate3d(-130%, 8%, -200px) rotateY(30deg); }
  .hh-stage3d.is-3d { height: clamp(200px, 56vw, 320px); }
}
@media (prefers-reduced-motion: reduce) { .is-3d .hh-stage3d-scene, .is-3d .hh-slide { transition: none; } }
