/* MUCHroom landing page — "Your Brand Here".
   MUCHroom's own surface stays neutral (white, black, crop marks, one typeface).
   All colour on the first screen belongs to whichever brand is loaded; landing.js
   sets --P, --A, --ink and --inkA on the hero. */

@font-face { font-family: 'Instrument Sans'; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap; src: url('../shared/fonts/instrument-sans-var.woff2') format('woff2'); }
/* Demo brand typefaces, used only in their own case bands. */
@font-face { font-family: 'Barlow Condensed'; font-style: italic; font-weight: 900; font-display: swap; src: url('../shared/fonts/barlow-condensed-900i.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('../shared/fonts/archivo-var.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../shared/fonts/cormorant-garamond-var.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 300 700; font-display: swap; src: url('../shared/fonts/cormorant-garamond-var-italic.woff2') format('woff2'); }

:root {
  --paper: #FFFFFF;
  --black: #000000;
  --soft: #5C5F66;
  --rule: rgba(0, 0, 0, 0.14);
  --pad: clamp(18px, 4.6vw, 68px);
  --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --P: #FF4A00;
  --A: #14110F;
  --ink: #0A0A0A;
  --inkA: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--black); font: 400 18px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, canvas { display: block; }
::selection { background: var(--black); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; padding: 10px 14px; background: var(--black); color: var(--paper); border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }

h2 { font: 600 clamp(2.2rem, 5vw, 4.3rem)/1 var(--sans); font-stretch: 86%; letter-spacing: -0.02em; word-spacing: 0.05em; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.28rem); line-height: 1.48; color: var(--soft); max-width: 34em; text-wrap: pretty; }

/* --------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 26px; border-radius: 999px; background: var(--black); color: var(--paper); font: 600 17px/1 var(--sans); white-space: nowrap; transition: transform 0.2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn--small { height: 40px; padding: 0 17px; font-size: 15px; }
.btn--wide { width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 9px; font: 400 21px/1 var(--sans); font-stretch: 92%; letter-spacing: -0.02em; }
.brand b { font-weight: 700; }
.brand-mark { width: 26px; height: 26px; }
.brand-mark .cap { fill: #FF4A00; }
.brand-mark .spot { fill: #fff; }
.brand-mark .stem { fill: currentColor; }

/* ------------------------------------------------------------- fixed bar */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 60px; padding: 0 var(--pad); background: var(--paper); box-shadow: 0 1px 0 var(--rule); transform: translateY(-101%); transition: transform 0.35s var(--ease); }
.bar.is-on { transform: none; }
.links { display: none; gap: 28px; font-size: 16px; font-weight: 500; }
.links a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ================================================================== HERO */
/* A full-screen stage: the ring of twelve brand plates is drawn on two
   canvases (behind and in front of the headline). landing.js sets --bgc,
   --fg, --namec, --P, --A, --ink, --inkA and --anti from the loaded brand. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; flex-direction: column; color: var(--fg); background: var(--bgc); transition: color 0.5s; --fg: #fff; --bgc: #120804; --namec: var(--P); --anti: #000; }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ring--back { z-index: 0; }
.ring--front { z-index: 3; }
.spores { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

.hero-nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; padding: 0 var(--pad); }
.hero .btn--small { background: var(--fg); color: var(--bgc); transition: transform 0.2s var(--ease), background 0.5s, color 0.5s; }
.hero .brand-mark .cap, .hero .brand-mark .stem { fill: currentColor; }
.hero .brand-mark .spot { fill: var(--bgc); }

.hero-center { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 26px; padding: 12px var(--pad) 18px; }

/* the sentence */
.make { position: relative; z-index: 2; font: 600 clamp(3rem, 12.6vw, 5.6rem)/0.92 var(--sans); font-stretch: 86%; letter-spacing: -0.025em; word-spacing: 0.05em; text-wrap: balance; max-width: 13ch; text-shadow: 0 2px 30px color-mix(in srgb, var(--bgc) 70%, transparent); }
.make > span { display: inline; }
.name { position: relative; display: inline-grid; vertical-align: top; cursor: text; max-width: 100%; font-size: var(--fit, 1em); color: var(--namec); transition: color 0.5s; }
.name > * { grid-area: 1 / 1; }
.name-mirror, .name input { white-space: pre; padding: 0 0.04em; font-weight: 700; font-stretch: var(--name-stretch, 90%); letter-spacing: -0.03em; }
.name-mirror { visibility: hidden; }
.name input { width: 100%; min-width: 0; margin: 0; border: 0; background: none; color: inherit; outline: none; font: inherit; font-weight: 700; text-align: center; caret-color: currentColor; text-shadow: inherit; }
.name::after { content: ''; position: absolute; left: 0.04em; right: 0.04em; bottom: 0.03em; height: 0.06em; background: currentColor; }
.name:focus-within::after { animation: blink-line 1.1s steps(2) infinite; }
@keyframes blink-line { 50% { opacity: 0.35; } }

.recipe { position: relative; z-index: 4; font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.6; max-width: 30em; text-wrap: balance; text-shadow: 0 1px 18px color-mix(in srgb, var(--bgc) 80%, transparent); }
.word { display: inline; border-bottom: 0.08em solid currentColor; font-weight: 600; line-height: 1.2; cursor: pointer; transition: opacity 0.2s; }
.word:hover { opacity: 0.75; }
.tagline { cursor: text; outline: none; padding: 0 0.05em; }
.tagline:focus { background: color-mix(in srgb, currentColor 12%, transparent); }
.sw { margin: 0 0.1em; display: inline-flex; align-items: center; gap: 0.3em; vertical-align: 0.05em; height: 1.4em; padding: 0 0.5em 0 0.2em; border-radius: 99px; background: var(--fg); color: var(--bgc); font-size: 0.72em; font-weight: 600; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; text-shadow: none; transition: transform 0.2s var(--ease), background 0.5s, color 0.5s; }
.sw i { width: 1.05em; height: 1.05em; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0.12em var(--bgc); }
.sw:hover { transform: scale(1.06); }
.sw[aria-expanded='true'] { transform: scale(1.1); }

.hero-actions { position: relative; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; }
.btn--brand { height: 58px; padding: 0 30px; background: var(--P); color: var(--ink); font-size: 18px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--P) 28%, transparent), 0 18px 40px rgba(0, 0, 0, 0.35); transition: transform 0.2s var(--ease), background 0.5s, color 0.5s, box-shadow 0.5s; }
.textlink { font-weight: 600; font-size: 17px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.hero-foot { position: relative; z-index: 5; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 0 var(--pad) 22px; font-size: 14px; opacity: 0.78; }
.loaders button { margin-left: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================== PLAY ZONE */
.playzone { position: relative; overflow: hidden; background: var(--P); color: var(--ink); transition: background 0.6s, color 0.5s; }
.playzone-inner { display: grid; gap: 36px; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); align-items: center; }
.playzone h2 { font-size: clamp(3rem, 8vw, 7rem); margin-bottom: 20px; }
.playzone .lede { color: inherit; opacity: 0.86; }
.playzone .privacy { margin-top: 18px; font-size: 14px; opacity: 0.7; }
.crop { position: absolute; width: 22px; height: 22px; z-index: 1; opacity: 0.5; pointer-events: none; }
.crop::before, .crop::after { content: ''; position: absolute; background: currentColor; }
.crop::before { width: 22px; height: 1.5px; top: 0; }
.crop::after { width: 1.5px; height: 22px; left: 0; }
.crop--tl { top: 12px; left: 12px; }
.crop--tr { top: 12px; right: 12px; transform: scaleX(-1); }
.crop--bl { bottom: 12px; left: 12px; transform: scaleY(-1); }
.crop--br { bottom: 12px; right: 12px; transform: scale(-1); }

/* the phone with the live game */
.hero-demo { display: grid; justify-items: center; gap: 14px; }
.hero-demo .phone { width: min(80vw, 340px); }
.live { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.phone { position: relative; aspect-ratio: 9 / 19; container-type: inline-size; }
.phone::before { content: ''; position: absolute; inset: 0; border-radius: 13cqw; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 30px 70px rgba(0, 0, 0, 0.35), 0 8px 18px rgba(0, 0, 0, 0.25); }
.phone iframe, .phone > canvas { position: absolute; inset: 2.6cqw; width: calc(100% - 5.2cqw); height: calc(100% - 5.2cqw); border: 0; border-radius: 10.6cqw; background: #111; }
.phone iframe { opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; }
.phone iframe.is-on { opacity: 1; visibility: visible; }
.phone > canvas { touch-action: pan-y; }
.phone > canvas.is-live { touch-action: none; cursor: none; }
.phone-hit { position: absolute; inset: 0; border-radius: 13cqw; z-index: 2; }
.phone-hit::after { content: 'Play this demo'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.85); opacity: 0; padding: 14px 22px; border-radius: 999px; background: #fff; color: #000; font: 600 15px/1 var(--sans); white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); transition: opacity 0.2s, transform 0.25s var(--ease); }
@media (hover: hover) { .phone-hit:hover::after { opacity: 1; transform: translate(-50%, -50%); } }

.phone-ui { position: absolute; inset: 2.6cqw; border-radius: 10.6cqw; overflow: hidden; pointer-events: none; z-index: 2; }
.play {
  position: absolute; left: 50%; top: 52%; transform: translateX(-50%); pointer-events: auto;
  padding: 4.4cqw 8cqw; border-radius: 99cqw; background: var(--P); color: var(--ink);
  font: 700 6cqw/1 var(--sans); box-shadow: 0 0 0 1.4cqw color-mix(in srgb, var(--P) 35%, transparent), 0 6cqw 12cqw rgba(0, 0, 0, 0.35);
  transition: transform 0.2s var(--ease), opacity 0.3s, background 0.4s, color 0.4s; animation: nudge 2.4s ease-in-out infinite;
}
.play:hover { transform: translateX(-50%) scale(1.05); }
.hero { --anti: #fff; }
@keyframes nudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -1.6cqw; } 90% { translate: 0 0.4cqw; } }
.phone-ui:not([data-state='attract']) .play { opacity: 0; pointer-events: none; }

.end {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 10cqw 8cqw; gap: 2.4cqw; background: color-mix(in srgb, var(--A) 88%, transparent); color: var(--inkA);
  opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}
.phone-ui[data-state='ended'] .end { opacity: 1; visibility: visible; pointer-events: auto; }
.end-brand { font: 700 7cqw/1 var(--sans); font-stretch: 80%; letter-spacing: 0.02em; }
.end-score { font: 500 5cqw/1 var(--sans); }
.end-score b { display: block; font: 700 22cqw/0.95 var(--sans); font-stretch: 80%; letter-spacing: -0.03em; color: var(--P); margin-bottom: 1cqw; }
.end-reward { margin-top: 4cqw; padding: 3.4cqw 4cqw; border-radius: 4cqw; border: 0.5cqw dashed currentColor; font: 500 4.4cqw/1.3 var(--sans); }
.end-line { font: 500 4cqw/1.3 var(--sans); opacity: 0.75; }
.end-cta { margin-top: 4cqw; width: 100%; padding: 4.4cqw 0; border-radius: 99cqw; background: var(--P); color: var(--ink); font: 700 4.8cqw/1 var(--sans); }
.end-again { font: 600 4.2cqw/1 var(--sans); padding: 3cqw; text-decoration: underline; text-underline-offset: 1cqw; }

/* colour popover */
.pop { position: absolute; z-index: 60; width: 236px; padding: 14px; border-radius: 18px; background: #fff; color: #000; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 24px 60px rgba(0, 0, 0, 0.28); }
.pop[hidden] { display: none; }
.pop-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.pop-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.pop-grid button { aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); transition: transform 0.15s var(--ease); }
.pop-grid button:hover { transform: scale(1.12); }
.pop-grid button[aria-pressed='true'] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000; }
.pop-custom { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 14px; font-weight: 500; cursor: pointer; }
.pop-custom input { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.pop-custom input::-webkit-color-swatch-wrapper { padding: 0; }
.pop-custom input::-webkit-color-swatch { border: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.14); }

/* =============================================================== REAL WORK */
.real-head { display: grid; gap: 22px; padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(40px, 6vw, 80px); }

.case-inner { display: grid; gap: 44px; padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(56px, 8vw, 120px); }
.case-logo { height: auto; margin-bottom: 26px; }
.case-desc { margin-top: 22px; font-size: clamp(1.08rem, 1.4vw, 1.28rem); line-height: 1.45; max-width: 29em; }
.case-facts { display: flex; flex-wrap: wrap; gap: 18px 44px; margin-top: 30px; }
.case-facts dt { font-size: 14px; opacity: 0.7; }
.case-facts dd { font-size: 19px; font-weight: 600; }
.case-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 36px; }
.case-play { display: inline-flex; align-items: center; justify-content: center; height: 60px; padding: 0 32px; transition: transform 0.2s var(--ease), box-shadow 0.2s, filter 0.2s; }
.case-play:active { transform: scale(0.97); }
.case-link { font-weight: 600; font-size: 16px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.case-phone { display: grid; place-items: center; }
.case-phone .phone { width: min(74vw, 320px); }

.case--kyro { color: #F4F1FF; background: radial-gradient(70vmax 60vmax at 88% 30%, #4A1FC9 0%, rgba(74, 31, 201, 0) 64%), #160A45; }
.case--kyro .case-logo { width: 132px; }
.case--kyro .case-title { font: italic 900 clamp(3.8rem, 9.4vw, 8.4rem)/0.8 'Barlow Condensed', var(--sans); text-transform: uppercase; color: #C6FF3D; }
.case--kyro .case-play { background: #C6FF3D; color: #160A45; font: italic 900 1.55rem/1 'Barlow Condensed', var(--sans); text-transform: uppercase; letter-spacing: 0.02em; clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%); padding: 0 44px; }
.case--kyro .case-play:hover { filter: brightness(1.1); }

.case--ollo { color: #14151A; background: #F3EEE3; position: relative; overflow: hidden; }
.case--ollo::before { content: ''; position: absolute; right: -14vw; top: 50%; width: min(70vw, 760px); aspect-ratio: 1; border-radius: 50%; background: #FFC72C; transform: translateY(-50%); }
.case--ollo .case-inner { position: relative; }
.case--ollo .case-logo { width: 122px; }
.case--ollo .case-title { font: 900 clamp(2.7rem, 6.7vw, 6rem)/0.86 'Archivo', var(--sans); font-stretch: 125%; text-transform: uppercase; letter-spacing: -0.035em; }
.case--ollo .case-play { background: #14151A; color: #F3EEE3; border-radius: 14px; font: 900 0.98rem/1 'Archivo', var(--sans); font-stretch: 118%; text-transform: uppercase; box-shadow: 6px 6px 0 #2340FF; }
.case--ollo .case-play:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #2340FF; }
.case--ollo .phone::before { box-shadow: 0 0 0 3px #14151A, 14px 14px 0 #2340FF; }

.case--nacre { color: #3B2A2A; background: radial-gradient(60vmax 60vmax at 100% 0%, #E4D8F6 0%, rgba(228, 216, 246, 0) 68%), radial-gradient(60vmax 60vmax at 0% 100%, #F6E6C8 0%, rgba(246, 230, 200, 0) 68%), #F5E2DB; }
.case-logo--text { display: block; font: 500 1.5rem/1 'Cormorant Garamond', serif; letter-spacing: 0.46em; }
.case--nacre .case-title { font: 300 clamp(3.3rem, 8vw, 7rem)/0.92 'Cormorant Garamond', serif; letter-spacing: -0.01em; }
.case--nacre .case-title em { font-style: italic; font-weight: 400; color: #A8705A; }
.case--nacre .case-play { background: #3B2A2A; color: #FFFDFB; border-radius: 999px; font: 500 0.84rem/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; box-shadow: 0 14px 30px rgba(59, 42, 42, 0.26); }
.case--nacre .case-play:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(59, 42, 42, 0.38); }
.case--nacre .phone::before { background: #FFFDFB; box-shadow: 0 0 0 1px rgba(185, 130, 106, 0.5), 0 30px 70px rgba(120, 70, 60, 0.28); }

/* ============================================================== ATTENTION */
/* The visitor's own time on the page, against a feed ad. */
.attention { background: #000; color: #fff; padding-block: clamp(80px, 11vw, 160px); --soft: rgba(255, 255, 255, 0.66); }
.attention-inner { display: grid; justify-items: start; }
.att-kicker { font-size: clamp(1.1rem, 1.8vw, 1.5rem); color: var(--soft); }
.att-clock { font: 600 clamp(6rem, 26vw, 22rem)/0.82 var(--sans); font-stretch: 75%; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--P); margin: 10px 0 34px; transition: color 0.5s; }
.att-bars { display: grid; gap: 14px; width: 100%; max-width: 980px; }
.att-bar { display: grid; grid-template-columns: 7.5em 1fr 4.2em; align-items: center; gap: 16px; font-size: 16px; }
.att-who { color: var(--soft); }
.att-bar b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.att-track { height: 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.att-track i { display: block; height: 100%; width: 100%; border-radius: inherit; background: rgba(255, 255, 255, 0.55); transform-origin: left; transform: scaleX(var(--s, 1)); transition: transform 0.9s var(--ease); }
.att-bar--you .att-track i { background: var(--P); }
.att-title { margin-top: clamp(56px, 8vw, 110px); font-size: clamp(2.6rem, 6.4vw, 6rem); }
.att-note { margin-top: 22px; color: var(--soft); }
.att-note b { color: #fff; }
.att-source { margin-top: 28px; font-size: 13px; color: rgba(255, 255, 255, 0.45); }

/* ================================================================== STORY */
.story { padding-block: clamp(80px, 11vw, 160px) clamp(40px, 6vw, 80px); background: var(--paper); }
.story-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 100px); }
.story-head h2 [data-brand] { color: var(--P); }
.steps { display: grid; gap: clamp(56px, 8vw, 96px); counter-reset: none; }
.step { display: grid; gap: 30px; align-items: center; }
.step-text { max-width: 30em; }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--P); color: var(--ink); font-weight: 700; font-size: 18px; margin-bottom: 18px; transition: background 0.5s, color 0.5s; }
.step h3 { font: 600 clamp(2rem, 3.6vw, 3.2rem)/1 var(--sans); font-stretch: 86%; letter-spacing: -0.02em; margin-bottom: 14px; }
.step-text p { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--soft); }
.step-fig { margin: 0; display: grid; place-items: center; min-height: 340px; }

/* figures arrive like something being placed on a desk */
.js .step-fig > * { opacity: 0; transform: translateY(60px) rotate(-3deg) scale(0.94); transition: opacity 0.8s var(--ease), transform 1s var(--ease); }
.js .step.in .step-fig > * { opacity: 1; transform: none; }

/* 1 — the brief */
.mail { width: min(100%, 520px); padding: 22px 24px 20px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 30px 60px rgba(0, 0, 0, 0.12); }
.mail-head { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.mail-head span { color: var(--soft); }
.mail-body { min-height: 7.5em; padding: 18px 0 10px; font-size: 18px; line-height: 1.5; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: blink-line 1s steps(2) infinite; }
.mail-send { display: inline-flex; padding: 10px 20px; border-radius: 99px; background: var(--P); color: var(--ink); font-weight: 600; font-size: 15px; }

/* 2 — concepts */
.concepts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: min(100%, 640px); }
.concept { position: relative; display: grid; gap: 4px; }
.concept canvas { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16); margin-bottom: 8px; }
.concept b { font-size: 16px; }
.concept span { font-size: 14px; color: var(--soft); }
.concept em { position: absolute; top: -12px; left: 10px; padding: 5px 10px; border-radius: 99px; background: #000; color: #fff; font-style: normal; font-size: 12px; font-weight: 600; }
.concept:first-child canvas { box-shadow: 0 0 0 3px var(--P), 0 18px 40px rgba(0, 0, 0, 0.18); }

/* 3 — collage */
.collage { position: relative; width: min(100%, 560px); aspect-ratio: 4 / 3; }
.collage canvas { position: absolute; width: 58%; height: auto; aspect-ratio: 4 / 3; border-radius: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.22); transition: transform 0.5s var(--ease); }
.collage .c1 { left: 0; top: 2%; transform: rotate(-9deg); }
.collage .c2 { right: 0; top: 0; transform: rotate(7deg); }
.collage .c3 { left: 6%; bottom: 0; transform: rotate(5deg); }
.collage .c4 { left: 24%; top: 22%; width: 62%; transform: rotate(-2deg); z-index: 2; }
.collage:hover .c1 { transform: rotate(-14deg) translate(-12px, -8px); }
.collage:hover .c2 { transform: rotate(12deg) translate(12px, -8px); }
.collage:hover .c3 { transform: rotate(9deg) translate(-8px, 10px); }

/* 4 — live */
.live-set { display: flex; align-items: flex-end; gap: 18px; width: min(100%, 560px); }
.post { flex: 1; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 30px 60px rgba(0, 0, 0, 0.14); }
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 15px; }
.post-head span { color: var(--soft); font-size: 13px; }
.post-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--P); box-shadow: inset 0 0 0 4px var(--A); }
.post canvas { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 12px; }
.post-cap { margin-top: 12px; font-size: 15px; line-height: 1.4; }
.post-cap b { margin-right: 6px; }
.qr { display: grid; justify-items: center; gap: 10px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--rule), 0 20px 40px rgba(0, 0, 0, 0.12); transform: rotate(4deg); font-size: 14px; }
.qr canvas { width: 120px; height: 120px; image-rendering: pixelated; }

/* 5 — report */
.report { width: min(100%, 580px); padding: 22px; border-radius: 22px; background: #0B0B0C; color: #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25); }
.report-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin-bottom: 18px; }
.report-head > span { color: rgba(255, 255, 255, 0.5); font-size: 13px; }
.report-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.report-stats span { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.report-stats b { font: 600 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--sans); font-stretch: 84%; font-variant-numeric: tabular-nums; }
.report-chart { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin: 20px 0; }
.report-chart i { flex: 1; border-radius: 4px 4px 1px 1px; background: var(--P); height: var(--h, 20%); transform-origin: bottom; transform: scaleY(0); transition: transform 0.7s var(--ease); transition-delay: calc(var(--n, 0) * 50ms); }
.step.in .report-chart i { transform: scaleY(1); }
.report-you { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.report-you b { width: 100%; color: #fff; font-weight: 600; }
.report-you em { font-style: normal; color: var(--P); font-weight: 700; }

/* ============================================================ EVERY FORMAT */
.formats-sec { padding-block: clamp(80px, 11vw, 160px); background: var(--paper); }
.make-inner { display: grid; gap: 40px; }
.make-side { display: grid; gap: 20px; align-content: start; }
.make-side [data-brand] { color: var(--P); }
.make-preview { position: relative; margin-top: 10px; perspective: 1200px; }
.make-card { border-radius: 22px; overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.22); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease-out; }
.make-card canvas { display: block; width: 100%; height: auto; }
.make-card.swap canvas { animation: swap 0.5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: scale(1.08); } }
.make-tag { position: absolute; left: 18px; top: 18px; padding: 8px 14px; border-radius: 99px; background: #000; color: #fff; font-size: 14px; font-weight: 600; }
.formats { display: grid; border-top: 1px solid var(--rule); align-self: center; }
.formats li { border-bottom: 1px solid var(--rule); }
.formats button { display: grid; gap: 4px; width: 100%; padding: 20px 0; text-align: left; transition: padding 0.3s var(--ease); }
.formats b { font: 600 clamp(1.7rem, 3.4vw, 3rem)/1.02 var(--sans); font-stretch: 84%; letter-spacing: -0.02em; color: rgba(0, 0, 0, 0.3); transition: color 0.3s; }
.formats span { font-size: 16px; color: var(--soft); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s var(--ease), opacity 0.3s; }
.formats button.is-on b, .formats button:hover b { color: #000; }
.formats button.is-on { padding-left: 18px; box-shadow: inset 5px 0 0 var(--P); }
.formats button.is-on span { max-height: 3.5em; opacity: 1; }

/* ================================================================== PRICES */
.prices-sec { padding-block: 0 clamp(80px, 11vw, 150px); background: var(--paper); }
.prices-head { display: grid; gap: 18px; margin-bottom: 44px; }
.tickets { display: grid; gap: 18px; }
.ticket { position: relative; display: grid; gap: 12px; align-content: start; padding: 30px 28px 32px; border-radius: 22px; background: #F2F2EF; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.ticket:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12); }
.ticket::before, .ticket::after { content: ''; position: absolute; top: 108px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); }
.ticket::before { left: -13px; }
.ticket::after { right: -13px; }
.ticket h3 { font: 600 1.35rem/1.1 var(--sans); font-stretch: 92%; }
.t-num { font: 600 clamp(2.6rem, 4.6vw, 3.8rem)/1 var(--sans); font-stretch: 78%; letter-spacing: -0.03em; padding-bottom: 18px; border-bottom: 2px dashed rgba(0, 0, 0, 0.18); }
.t-num span { display: block; font: 500 15px/1.4 var(--sans); letter-spacing: 0; color: var(--soft); }
.ticket > p:last-child { color: var(--soft); font-size: 16px; }
.ticket--hot { background: var(--P); color: var(--ink); transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.5s, color 0.5s; }
.ticket--hot .t-num span, .ticket--hot > p:last-child { color: inherit; opacity: 0.78; }
.ticket--hot .t-num { border-color: color-mix(in srgb, currentColor 30%, transparent); }

/* ================================================================ CLOSING BAND */
.closer { overflow: hidden; background: var(--P); color: var(--ink); padding: 18px 0; transition: background 0.5s, color 0.5s; }
.closer-track { display: flex; width: max-content; white-space: nowrap; font: 700 clamp(3rem, 9vw, 8rem)/1 var(--sans); font-stretch: 78%; letter-spacing: -0.03em; animation: closer 26s linear infinite; }
.closer-track span { padding-right: 0.5em; }
.closer-track i { font-style: normal; font-weight: 400; opacity: 0.5; padding-right: 0.5em; }
@keyframes closer { to { transform: translateX(-50%); } }

/* ================================================================= CONTACT */
.contact { margin-top: 0; background: #000; color: #fff; --soft: rgba(255, 255, 255, 0.68); --rule: rgba(255, 255, 255, 0.24); }
.contact-inner { display: grid; gap: 48px; padding-top: clamp(64px, 9vw, 130px); padding-bottom: clamp(56px, 8vw, 110px); }
.contact-copy { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.contact-product { width: clamp(64px, 11vw, 150px); height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)); transform: rotate(-8deg); }
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); margin-bottom: 18px; }
#contact-name { color: var(--P); }
.form { display: grid; gap: 24px; align-self: start; }
.field { display: grid; gap: 6px; }
.field label { font-size: 15px; font-weight: 500; color: var(--soft); }
.field input, .field textarea { width: 100%; padding: 10px 0 12px; font: 400 19px/1.4 var(--sans); color: #fff; background: none; border: 0; border-bottom: 2px solid var(--rule); border-radius: 0; outline: none; resize: vertical; transition: border-color 0.2s; }
.field input:focus, .field textarea:focus { border-color: #fff; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #FF8A75; }
.contact .btn { background: #fff; color: #000; }
.form-status { min-height: 1.5em; font-size: 16px; color: var(--soft); }
.form-status.is-ok { color: #A5E8A5; }
.form-status.is-error { color: #FF8A75; }
.footer { display: grid; gap: 10px; padding-top: 30px; padding-bottom: 40px; border-top: 1px solid var(--rule); color: var(--soft); font-size: 15px; }
.footer .brand { color: #fff; }

/* ================================================================== PLAYER */
.player { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: #000; color: #fff; animation: player-in 0.3s var(--ease); }
.player[hidden] { display: none; }
@keyframes player-in { from { opacity: 0; } }
.player-bar { display: flex; align-items: center; gap: 18px; height: 54px; padding: 0 12px 0 18px; flex: none; }
.player-title { font-weight: 600; font-size: 17px; margin-right: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-open { font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.player-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #000; transition: transform 0.25s var(--ease); }
.player-close svg { width: 18px; height: 18px; }
.player-close:hover { transform: rotate(90deg); }
.player-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 64px; }
.player-phone { height: 100%; }
.player-phone .phone { height: 100%; width: 100vw; aspect-ratio: auto; }
.player-phone .phone::before { display: none; }
.player-phone .phone iframe { inset: 0; width: 100%; height: 100%; border-radius: 0; }
.player-side { display: none; }
body.is-playing { overflow: hidden; }
.events { margin-top: 24px; display: grid; gap: 8px; max-height: 46vh; overflow: auto; font-size: 14px; }
.events li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.08); animation: event-in 0.35s var(--ease); }
.events li b { font: 500 13.5px/1.4 ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.events li time { color: rgba(255, 255, 255, 0.6); }
.events li span { grid-column: 1 / -1; color: rgba(255, 255, 255, 0.6); word-break: break-word; }
.events li.events-empty { display: block; background: none; padding: 10px 0; color: rgba(255, 255, 255, 0.6); }
@keyframes event-in { from { opacity: 0; transform: translateY(-8px); } }

/* ================================================================ tablet+ */
@media (min-width: 720px) {
  .links { display: flex; }
  .footer { grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
  .player-bar { height: 64px; padding: 0 22px 0 28px; }
  .player-body { padding: 0 28px 28px; }
  .player-phone .phone { width: auto; aspect-ratio: 9 / 19; }
  .player-phone .phone::before { display: block; }
  .player-phone .phone iframe { inset: 2.6cqw; width: calc(100% - 5.2cqw); height: calc(100% - 5.2cqw); border-radius: 10.6cqw; }
}

/* ================================================================ desktop */
@media (min-width: 1000px) {
  .make { font-size: clamp(4.6rem, 8.2vw, 9.4rem); max-width: 12ch; }
  .playzone-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; min-height: 100svh; }
  .hero-demo .phone { width: auto; height: min(calc(100svh - 150px), 740px); }
  .case-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: center; gap: 48px; }
  .case-phone .phone { width: auto; height: min(72svh, 660px); }
  .step { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; }
  .step:nth-child(even) .step-text { order: 2; }
  .step-fig { min-height: 400px; }
  .make-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .make-side { position: sticky; top: 100px; align-self: start; }
  .tickets { grid-template-columns: repeat(3, 1fr); }
  .case { position: sticky; top: 0; }
  .contact-inner { grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: center; }
  .player-side { display: block; width: 330px; flex: none; }
  .player-side h3 { margin-bottom: 10px; font: 600 2rem/1.02 var(--sans); font-stretch: 84%; letter-spacing: -0.02em; }
  .player-side p { color: rgba(255, 255, 255, 0.7); font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .play, .live i, .closer-track, .caret { animation: none; }
  .js .step-fig > * { opacity: 1; transform: none; transition: none; }
}
