/* KLAMPO home page (site/bg/index.html), direction C "Работилница" (DESIGN.md). Phone first.
   Loaded after site.css (tokens, buttons, forms, the shop) and wow.css (the night 3D first screen).
   1 first screen + release · 2–4 the travel (turning hanger, cards) · 5 looks · 6 night (AI picture) · 7 shop · 8 brief */

/* ---- shared bits on this page ---- */
.home-c .mono, .home-c .kicker { font-family: var(--mono); font-size: 0.75rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.home-c .kicker { display: block; margin: 0 0 10px; color: var(--muted); text-align: center; }
.plate { display: inline-block; white-space: nowrap; line-height: 1.1; background: var(--ink); color: var(--paper); padding: 0 .3em 0 .18em;
  clip-path: polygon(0 0, 100% 0, 100% 72%, calc(100% - .35em) 100%, 0 100%); }
.on-night .plate { background: var(--on-night, #F1EFEA); color: #121212; }

/* ---- top bar: always on screen. Over the night first screen a dark night bar (so the links never sit on the bright
   monitors), paper once the page turns to paper ---- */
.has-wow .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; max-width: none; min-height: 56px; margin: 0;
  padding: max(6px, env(safe-area-inset-top)) 16px 6px; gap: 8px; flex-wrap: wrap; border: 0;
  background: color-mix(in srgb, var(--night, #0E1015) 93%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgb(241 239 234 / .14); transition: background-color .2s ease, box-shadow .2s ease; }
html.js .has-wow .site-header { position: fixed; flex-wrap: nowrap; }
.has-wow .site-header.is-solid { background: color-mix(in srgb, var(--room) 94%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--room-rule); }
/* on paper the bar is paper; over the travel it takes the room under it (home.js sets data-room on it while the travel
   is under the bar; the room colours are below, with the travel's) */
.has-wow .site-header { --room: var(--paper); --room-ink: var(--ink); --room-rule: var(--rule); --swap: .31s;
  transition: background-color .2s ease, box-shadow .2s ease, --room .7s linear, --room-rule .7s linear, --room-ink var(--swap) steps(1, end); }
.has-wow .site-header[data-room] { transition: box-shadow .2s ease, --room .7s linear, --room-rule .7s linear, --room-ink var(--swap) steps(1, end); } /* over the travel the ground is the room's alone */
/* the dark rooms: the logo for dark backgrounds */
.has-wow .site-header.is-solid[data-tone="dark"] .logo-night { display: block; } /* home.js: with the ink, not before */
.has-wow .site-header.is-solid[data-tone="dark"] .logo-day { display: none; }
.site-logo .logo-day { display: none; }
.has-wow .site-header.is-solid .logo-night { display: none; }
.has-wow .site-header.is-solid .logo-day { display: block; }
.has-wow .site-logo img { height: 24px; width: auto; }
.has-wow .site-nav a { color: var(--on-night, #F1EFEA); }
.has-wow .site-nav a:hover { color: var(--lamp); }
.has-wow .site-header.is-solid .site-nav a:hover { color: var(--room-ink); text-decoration: underline; }
.has-wow .site-header.is-solid .site-nav a { color: var(--room-ink); }
.nav-cta { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; margin-left: auto; padding: 0 14px; border-radius: 2px; background: var(--lamp); color: var(--on-lamp, #121212);
  font: 600 min(0.8125rem, 4.1vw)/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.nav-cta:hover { background: #E8962E; color: var(--on-lamp, #121212); }
.nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 2px; border: 1px solid rgb(241 239 234 / .6); background: transparent; color: var(--on-night, #F1EFEA); cursor: pointer; }
/* three bars (22 Nov 2026, the owner: no "Меню" word); they turn into a cross while the menu is open */
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s ease, background-color .2s ease; }
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background-color: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { transition: none; } }
.has-wow .site-header.is-solid .nav-toggle { border-color: var(--room-ink); color: var(--room-ink); }
html:not(.js) .nav-toggle { display: none; }
/* without JavaScript the links stay in the bar, which then sits above the first screen, not on it */
html:not(.js) .has-wow .site-header { position: relative; background: var(--night, #0E1015); }
/* the full row of links from 64em (1024 px at the default font; later when the visitor enlarges the font, so it never wraps) */
@media (max-width: 63.99em) {
  .has-wow .site-nav { order: 5; width: 100%; flex-wrap: wrap; }
  html.js .has-wow .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; width: auto; flex-direction: column; gap: 0; padding: 4px 16px 14px;
    background: var(--room, var(--paper)); border-bottom: 1px solid var(--room-ink, var(--ink)); }
  html.js .has-wow .site-header.nav-open .site-nav { display: flex; }
  html.js .has-wow .site-nav a { min-height: 52px; padding: 0 2px; font-size: 1.0625rem; color: var(--room-ink, var(--ink)); border-top: 1px solid var(--room-rule, var(--rule)); justify-content: center; }
  html.js .has-wow .site-nav a:first-child { border-top: 0; }
  .nav-cta { transition: opacity .2s ease, visibility .2s; }
  html.js .has-wow .site-header:not(.past-first) .nav-cta { opacity: 0; visibility: hidden; }
  .nav-toggle { margin-left: 0; }
  html.js .has-wow .site-header:not(.past-first) .nav-toggle { margin-left: auto; }
}
@media (min-width: 64em) {
  .has-wow .site-header { display: grid; grid-template-columns: 1fr auto 1fr; padding: 10px 48px; }
  .has-wow .site-logo img { height: 28px; }
  .has-wow .site-nav { gap: 4px; }
  .has-wow .site-nav a { padding: 0 14px; font-size: 1rem; }
  .nav-cta { justify-self: end; margin-left: 0; }
  .nav-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) { .has-wow .site-header, .nav-cta { transition: none; } }

/* ---- 1. first screen (wow.css draws the night scene; here only direction C's type on it) ---- */
.home-c .wow { --midnight: #12151C; --monitor: #8EC9F5; --muted: #A9A6A0; --paper: #F1EFEA; --ink: #121212; --error: #FF9C94; --head: var(--text); }
.home-c .wow-title { font: 700 clamp(1.75rem, 7.6vw, 3.25rem)/1.08 var(--text); letter-spacing: -.02em; text-wrap: balance; }
.home-c .wow-title .plate { display: inline-block; }
.home-c .wow-sub { margin: 0 auto; max-width: 34em; font-size: 0.9375rem; line-height: 1.45; color: #D6D3CC; text-wrap: pretty; }
.home-c .wow-name label { font: 0.75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #A9A6A0; }
.home-c .wow-field input, .home-c .wow-again { border-radius: 2px; }
.home-c .wow-again { font: 600 0.75rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.home-c .wow-cta { border-radius: 2px; font: 600 0.9375rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: #121212; }
.wow-facts { margin: -2px 0 0; text-align: center; font: 0.75rem/1.4 var(--mono); letter-spacing: .04em; color: #A9A6A0; text-wrap: balance; transition: opacity .7s ease .15s; }
/* the Christmas season: a small label over the first screen's title */
.wow-season { justify-self: center; display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 5px 11px; border: 1px solid rgb(240 168 72 / .55); border-radius: 999px; background: rgb(18 21 28 / .55); color: #F0A848; font: 500 0.75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
@media (max-height: 700px) and (max-aspect-ratio: 1/1) { .wow-season { display: none; } }
.wow-gift { justify-self: center; display: inline-flex; align-items: center; min-height: 44px; color: #F1EFEA; font-size: 0.9375rem; text-underline-offset: 4px; transition: opacity .7s ease .15s; }
.wow-gift:hover { color: #fff; }
.wow[data-cta='off'] .wow-facts, .wow[data-cta='off'] .wow-gift { opacity: 0; }
.has-wow .wow-ui { text-align: center; }
@media (max-height: 700px) and (max-aspect-ratio: 1/1) { .home-c .wow-sub { font-size: 0.8125rem; } .home-c .wow .wow-ui { gap: 8px; } .wow-gift { min-height: 36px; } }
@media (max-height: 640px) { .home-c .wow-title { font-size: clamp(1.25rem, 6.4vw, 2rem); } .wow-facts { display: none; } .home-c .wow-name label { display: none; } }
@media (max-height: 520px) { .home-c .wow-sub, .wow-gift { display: none; } }
@media (max-height: 420px) { .home-c .wow-name:not(:focus-within) { display: none; } } /* a very short window (400 % zoom): the title and the button */
/* phones, typing the name with the keyboard up (home.js .kb): what is still visible keeps the field and its button, and the 3D name above */
.home-c .wow.kb { min-height: 0; }
.home-c .wow.kb .wow-ui > :not(.wow-name, .wow-cta) { display: none; }
.home-c .wow.kb .wow-name label { display: none; }
@media (max-aspect-ratio: 1/1) { .has-wow .wow-poster img { object-position: 50% 100%; } }

/* ---- the release: the first screen holds while the hanger winds off the desk, then the paper picture takes over ---- */
.release { position: relative; z-index: 2; height: 320svh; }
.release .wow { position: sticky; top: 0; height: 100vh; height: 100svh; box-shadow: 0 calc(100lvh - 100svh) 0 0 #121318; } /* the band Safari's folded toolbar opens under it takes the scene's dark, not the paper (AI testers on iPhone, 23 Nov) */
.release.done .wow { visibility: hidden; } /* the travel underneath shows the same picture: swapped in one frame */
html:not(.js) .release { height: auto; } /* without JavaScript: one plain first screen */
html:not(.js) .release .wow { position: relative; }
.handoff { position: absolute; inset: 0; z-index: 3; opacity: 0; pointer-events: none; background: var(--paper) linear-gradient(var(--rule) 1px, transparent 1px) 0 0 / 100% 48px; }
.handoff img { position: absolute; left: 50%; width: var(--tr-size); top: var(--tr-top); aspect-ratio: 1; transform: translateX(-50%); filter: drop-shadow(0 18px 18px rgb(18 18 18 / .16)); }
.tr-readout { position: absolute; left: 16px; top: calc(var(--tr-top) + 0.5rem); color: var(--room-muted, #5E5B55); line-height: 1.35; }
/* which order the turning hanger shows now (home.js writes it when the chapter changes), in the empty band over the
   hanger, where no text ever holds. Phones: the name at the right of the "3D визуализация" row, the look and the icon
   on a second row. From 900 px: one row, centred over the hanger. */
.tr-caption { position: absolute; right: 16px; top: calc(var(--tr-top) + 0.5rem); max-width: calc(100% - 32px); text-align: right; color: var(--room-muted, #5E5B55); line-height: 1.35; }
.home-c .tr-caption .n { text-transform: none; font-weight: 600; color: var(--room-ink, var(--ink)); }
.home-c .tr-caption .ex { text-transform: none; } /* „Пример:“: the travel shows example orders, not the name typed above (AI testers, 23 Nov) */ /* the name as it is printed */
.tr-caption .s { display: none; }
.tr-caption .d { display: block; }
@media (min-width: 900px) {
  .tr-caption { right: auto; left: 50%; transform: translateX(-50%); max-width: none; white-space: nowrap; text-align: center; }
  .tr-caption .s, .tr-caption .d { display: inline; }
}
/* reduced motion: no release; the first screen is a plain section and the travel starts under it */
@media (prefers-reduced-motion: reduce) {
  .release { height: auto; }
  .release .wow { position: relative; }
  .home-c .release + .travel { margin-top: 0; }
  .home-c .release + .travel .tr-panel:first-child { padding-top: 0; min-height: 150svh; }
  .handoff { display: none; }
}

/* ---- 2–4. the travel: a sticky stage with the turning hanger, cards pass under it ---- */
/* every chapter is another room (20 Nov 2026): home.js sets data-room (1..6) when the order on the canvas changes. The
   black hangers stand in light rooms, the white ones in dark rooms; the texts stay on their light cards. The colours are
   registered so that they fade (0.7 s) instead of jumping; only on a change, never while the scroll goes on. */
@property --room { syntax: '<color>'; inherits: true; initial-value: #F1EFEA; }
@property --room-rule { syntax: '<color>'; inherits: true; initial-value: #D3CFC6; }
@property --room-ink { syntax: '<color>'; inherits: true; initial-value: #121212; }
@property --room-muted { syntax: '<color>'; inherits: true; initial-value: #5E5B55; }
@property --glow { syntax: '<color>'; inherits: true; initial-value: #3D8BFF; }
.travel { --room: var(--paper); --room-rule: var(--rule); --room-ink: var(--ink); --room-muted: #5E5B55; --glow-k: .38;
  position: relative; overflow-x: clip; background: var(--room) linear-gradient(var(--room-rule) 1px, transparent 1px) 0 0 / 100% 48px;
  /* the ground fades evenly; the ink never fades with it (the two would cross and the text vanish for a moment, QA 20 Nov):
     it switches at once when the ground is far enough on its way (--swap: 58 % of the fade into a dark room, 44 % into a
     light one), so the text stays at 4:1 or more all the way */
  /* The ground itself changes at once: the travel is about 10 000 px tall, and fading its colour repainted all of it on
     every frame for 0.7 s (20-30 frames a second on a phone, 20 Nov). The fade is .tr-room's, a screen-sized layer in the
     old colour that home.js fades out (opacity only); the texts' halos and the bar fade with it (below). */
  --swap: .31s;
  transition: --room-ink var(--swap) steps(1, end), --room-muted var(--swap) steps(1, end);
  --glow: #3D8BFF; color: var(--room-ink); }
.travel[data-room="2"], .site-header[data-room="2"] { --swap: .41s; --room: #151C2E; --room-rule: #222B40; --room-ink: #F1EFEA; --room-muted: #A9B0C2; --glow-k: .8; }  /* ShadowX: night blue */
.travel[data-room="3"], .site-header[data-room="3"] { --room: #E6D8C2; --room-rule: #D6C5A9; }                                                         /* Мама: warm sand */
.travel[data-room="4"], .site-header[data-room="4"] { --swap: .41s; --room: #0F2C30; --room-rule: #1C3D42; --room-ink: #F1EFEA; --room-muted: #9DBDC0; --glow-k: .8; }  /* Георги99: dark petrol */
.travel[data-room="5"], .site-header[data-room="5"] { --room: #DCE8DF; --room-rule: #C5D7CA; }                                                         /* Тате: light mint */
.travel[data-room="6"], .site-header[data-room="6"] { --swap: .41s; --room: #231A36; --room-rule: #32284B; --room-ink: #F1EFEA; --room-muted: #B8ABD2; --glow-k: .8; }  /* Ники: dark violet */
/* the RGB light behind the hanger, in the colour of its icon (like a gaming stand's): it breathes slowly, and with every
   new order it flares and settles (home.js, the Web Animations API: transform and opacity only) */
.tr-room { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; pointer-events: none; opacity: 0; will-change: opacity; }
html:not(.js) .tr-room { display: none; }
/* the halos behind the texts and the plate follow the fade (each card is its own small layer) */
.tr-card { transition: --room .7s linear, --glow .7s linear; }
.tr-glow { position: absolute; left: calc(50% - var(--tr-size) * .8); top: calc(var(--tr-top) + var(--tr-lift, 0px) - var(--tr-size) * .3); width: calc(var(--tr-size) * 1.6); aspect-ratio: 1;
  will-change: translate, scale, opacity; }
/* the order's icon gives the room its accent (home.js sets data-icon with data-room): the light, the plate, the dots */
.travel[data-icon="gamepad"] { --glow: #A259FF; }
.travel[data-icon="crown"] { --glow: #FFB21F; }
.travel[data-icon="bolt"] { --glow: #FFD60A; }
.travel[data-icon="star"] { --glow: #FF4FA0; }
.travel[data-icon="none"] { --glow: #F0A848; }
.tr-glow::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, var(--glow) 0%, color-mix(in srgb, var(--glow) 45%, transparent) 38%, transparent 100%);
  opacity: var(--glow-k); animation: tr-breathe 3.4s ease-in-out infinite alternate; will-change: opacity; transition: opacity .7s ease; }
.tr-glow.is-off::before { animation-play-state: paused; }
@keyframes tr-breathe { from { opacity: calc(var(--glow-k) * .62); } to { opacity: var(--glow-k); } }
@media (prefers-reduced-motion: reduce) { .tr-glow::before { animation: none; } }
.release + .travel { margin-top: -100vh; margin-top: -100svh; z-index: 1; } /* starts under the last screen of the release */
html:not(.js) .release + .travel { margin-top: 0; }
.travel.gift:not([data-room]) { --room: var(--sand, #E6D8C2); --room-rule: #D6C5A9; } /* the gift's sand, where there are no rooms (reduced motion) */
/* the hanger's size and place, shared by the travel's stage and the release's last picture (home.js lines the 3D up with it) */
.home-c { --tr-top: 64px; --tr-size: min(86vw, 40svh, 640px); --tr-lift: 0px; }
/* phones: the caption takes two rows over the hanger; the hanger starts under them (AI testers on an iPhone SE, 23 Nov:
   the second row touched it) */
@media (max-width: 899px) { .home-c { --tr-lift: 2.25rem; } }
@media (max-height: 700px) { .home-c { --tr-size: min(80vw, 30svh); } }
@media (min-width: 900px) { .home-c { --tr-top: 72px; --tr-size: min(50svh, 46vw, 620px); } }
@media (min-width: 900px) and (max-height: 760px) { .home-c { --tr-size: min(44svh, 40vw); } } /* low laptops: room for the text */
/* the Christmas season: emojis in the empty margins left and right of the travel, never over the hanger or the text */
.tr-xmas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; --gutter: max(0px, (100vw - 46rem) / 2); }
@media (min-width: 900px) { .tr-xmas { --gutter: max(0px, (100vw - 64rem) / 2); } } /* the cards are 64rem wide here */
/* each one fits its margin: its left edge at x of the margin, its size what is left of it (with room for the swing) */
.tr-xmas span { position: absolute; top: var(--y); font-size: max(calc(24px * var(--k)), min(calc(56px * var(--k)), calc(var(--gutter) * (0.9 - var(--x)) / 1.35))); line-height: 1;
  font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; filter: drop-shadow(0 6px 6px rgb(18 18 18 / .14));
  animation: tr-bob var(--d) ease-in-out var(--dl) infinite alternate; will-change: transform; }
.tr-xmas .l { left: max(4px, calc(var(--gutter) * var(--x))); }
.tr-xmas .r { right: max(4px, calc(var(--gutter) * var(--x))); } /* no margin (cards as wide as the screen): along the edges, behind the cards */
@keyframes tr-bob { from { transform: translateY(-12px) rotate(-10deg); } to { transform: translateY(12px) rotate(10deg); } }
/* narrow screens: no margin beside the cards, so small ones along the very edges, beside the hanger */
@media (max-width: 899px) { .tr-xmas span { font-size: calc(26px * min(var(--k), 1.1)); } .tr-xmas .l { left: calc(4px + var(--x) * 22vw); } .tr-xmas .r { right: calc(4px + var(--x) * 22vw); } } /* beside the hanger; where the text is, they pass under its card */
@media (max-width: 899px) and (min-width: 600px) { .tr-xmas span { font-size: calc(30px * var(--k)); } .tr-xmas .l { left: calc(var(--x) * 40px); } .tr-xmas .r { right: calc(var(--x) * 40px); } }
@media (prefers-reduced-motion: reduce) { .tr-xmas span { animation: none; } }
html:not(.js) .tr-xmas { display: none; }
.tr-stage { position: sticky; top: 0; height: 100vh; height: 100svh; pointer-events: none; display: grid; place-items: start center; padding-top: calc(var(--tr-top) + var(--tr-lift, 0px)); will-change: transform; } /* the same for the hanger's stage */
.tr-stage canvas { position: relative; width: var(--tr-size); aspect-ratio: 1; filter: drop-shadow(0 18px 18px rgb(18 18 18 / .16)); will-change: transform; }
html:not(.js) .tr-stage { display: none; }
.tr-panels { position: relative; margin-top: -100vh; margin-top: -100svh; }
html:not(.js) .tr-panels { margin-top: 0; }
/* one idea per screen: the text comes up from below, stops under the hanger while it is read, then fades (home.js) */
.tr-panel { min-height: 150vh; min-height: 150svh; padding: 0 16px; }
.release + .travel .tr-panel:first-child { padding-top: 75svh; min-height: 210svh; } /* its text comes up from below */
html:not(.js) .tr-panel, html:not(.js) .release + .travel .tr-panel:first-child { min-height: 0; padding: 48px 16px; }
.tr-card { position: sticky; top: calc(var(--tr-top) + var(--tr-lift, 0px) + var(--tr-size) + 12px); width: 100%; max-width: 46rem; margin: 0 auto; padding: 10px 12px 14px;
  text-align: center; color: var(--room-ink);
  /* no box: the text stands in the room. A soft halo of the room's own colour keeps the lines and the emojis that pass
     behind it quiet, with no edge to be seen */
  background: radial-gradient(ellipse 58% 62% at 50% 50%, var(--room) 62%, transparent 100%);
  will-change: transform, opacity; transform: translateZ(0); } /* its own layer: the scroll itself holds it (iPhone, 20 Nov: drawn from the page's thread it shook 1-3 px every frame; will-change: opacity alone did not make one there) */
html:not(.js) .tr-card { position: static; }
/* phones: the text runs to the edges, so the halo is a band across the whole width that fades only above and below;
   the emojis along the edges pass behind it, as they did behind the card */
@media (max-width: 899px) {
  .tr-card { width: calc(100% + 32px); max-width: none; margin-inline: -16px; padding-inline: 24px;
    background: linear-gradient(transparent, var(--room) 18px, var(--room) calc(100% - 18px), transparent); }
}
.tr-card h2 { font: 700 clamp(1.75rem, 7vw, 3rem)/1.1 var(--text); letter-spacing: -.02em; margin: 8px 0 12px; }
.tr-card p { margin: 0 auto; max-width: 36rem; font-size: 1.125rem; line-height: 1.5; color: var(--room-ink); }
.tr-card p + p, .tr-card .tr-chips + p { margin-top: 12px; }
.tr-card .mono { color: var(--room-ink); font-size: 0.8125rem; }
.tr-card .muted { color: var(--room-muted); }
/* the label: a lit dot in the order's colour, like the LED of a gaming stand */
.tr-card > .mono:first-child { display: inline-flex; align-items: center; gap: 9px; color: var(--room-muted); letter-spacing: .12em; }
.tr-card > .mono:first-child::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--glow) 22%, transparent), 0 0 12px var(--glow); }
/* the plate in the heading: the order's colour, the ink on it always dark (4.5:1 or more on every accent) */
.tr-card .plate { background: var(--glow); color: #121212; }
.tr-card h2 { text-wrap: balance; }
.tr-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; }
.tr-steps li { counter-increment: s; padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--room-ink) 22%, transparent); }
.tr-steps li::before { content: "0" counter(s); display: inline-block; margin-right: 8px; padding: 3px 5px; background: var(--glow); color: #121212; font: 600 0.75rem/1 var(--mono); vertical-align: 2px; } /* the step's number on the order's colour */
.tr-steps b { font-size: 1.125rem; line-height: 1.3; }
.tr-steps span { display: block; margin: 2px auto 0; color: var(--room-ink); font-size: 1rem; line-height: 1.4; max-width: 24rem; }
.tr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; }
.tr-chips span { font: 600 1rem/1 var(--mono); border: 1px solid color-mix(in srgb, var(--room-ink) 45%, transparent); padding: 10px 12px; transition: background-color .5s ease, color .5s ease, border-color .5s ease; }
.tr-chips span.is-on { background: var(--glow); border-color: var(--glow); color: #121212; } /* the name that is on the hanger now */
.tr-link { display: inline-flex; align-items: center; min-height: 48px; margin-top: 6px; color: var(--room-ink); font-size: 1.125rem; font-weight: 600; text-underline-offset: 6px; text-decoration-color: var(--glow); text-decoration-thickness: 2px; }
.tr-dim { margin: 14px auto 12px; max-width: 30rem; display: flex; align-items: center; gap: 10px; }
.tr-rule { flex: 1; height: 13px; border-left: 2px solid var(--glow); border-right: 2px solid var(--glow); background: linear-gradient(var(--room-ink), var(--room-ink)) center / 100% 1px no-repeat; }
.tr-qa { margin: 12px 0 0; text-align: center; }
.tr-qa div { padding: 8px 0; border-top: 1px solid color-mix(in srgb, var(--room-ink) 22%, transparent); }
.tr-qa dt { font-weight: 700; font-size: 1.125rem; }
.tr-qa dd { margin: 2px auto 0; max-width: 30rem; color: var(--room-muted); font-size: 1rem; line-height: 1.4; }
@media (max-height: 700px) { /* short phones: the same text, a little tighter */
  .tr-card h2 { font-size: 1.625rem; margin: 6px 0 8px; }
  .tr-card p, .tr-qa dt { font-size: 1rem; }
  .tr-steps li, .tr-qa div { padding: 5px 0; }
  .tr-steps b { font-size: 1rem; }
  .tr-steps span, .tr-qa dd { font-size: 0.9375rem; }
}
@media (min-width: 900px) {
  .tr-panel { padding: 0 48px; }
  .tr-card { max-width: 64rem; padding: 12px 24px 16px; }
  .tr-card p { font-size: 1.25rem; }
  /* the three steps and the three answers side by side: the same height as one paragraph */
  .tr-steps, .tr-qa { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 20rem); justify-content: center; gap: 0 32px; }
  .tr-steps li, .tr-qa div { align-content: start; padding: 12px 0; }
  .tr-steps li::before { margin: 0 0 8px; } /* the number over its step */
  .tr-steps li { display: flex; flex-direction: column; align-items: center; }
  .tr-steps b { font-size: 1.375rem; }
  .tr-steps span, .tr-qa dd { font-size: 1.0625rem; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .tr-card h2 { font-size: 2.25rem; margin: 6px 0 8px; }
  .tr-card p { font-size: 1.125rem; }
  .tr-steps li, .tr-qa div { padding: 8px 0; }
}
@media (prefers-reduced-motion: reduce) { .travel { transition: none; } }

/* ---- sections on paper ---- */
.band { position: relative; padding: 64px 16px; scroll-margin-top: 56px; border-top: 1px solid var(--ink); }
.band:focus, .wow:focus { outline: none; }
.wrap { max-width: 1120px; margin: 0 auto; }
.band-title { font: 700 clamp(1.75rem, 7vw, 2.75rem)/1.1 var(--text); letter-spacing: -.02em; max-width: 18em; margin: 0 auto; text-align: center; text-wrap: balance; }
.band-lead { margin: 14px auto 0; max-width: 36em; font-size: 1.0625rem; line-height: 1.5; color: var(--muted); text-align: center; text-wrap: pretty; }
.band-foot { margin: 24px auto 0; max-width: 40em; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); text-align: center; }
.shot { position: relative; margin: 0; overflow: hidden; background: #E4E0D8; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mark { position: absolute; left: 8px; bottom: 8px; padding: 4px 7px; background: rgb(241 239 234 / .9); color: #121212; pointer-events: none; }
@media (min-width: 900px) { .band { padding: 96px 48px; } }

/* 5. colours: the 11 filaments as a row of named dots (centred, wrapping), then the four ready-made sets as framed
   renders, two by two on a phone, one row on a desktop */
.palette { list-style: none; margin: 28px auto 0; padding: 0; max-width: 760px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
.palette li { display: flex; align-items: center; gap: 8px; font: 400 0.8125rem/1.3 var(--mono); letter-spacing: .04em; color: var(--ink); }
.palette .dot { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgb(18 18 18 / .35); forced-color-adjust: none; }
.palette-note { margin: 14px auto 0; font-size: 0.8125rem; text-align: center; }
.looks-kicker { margin: 40px auto 0; font-size: 0.75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: center; color: var(--ink); }
.looks-kicker + .looks-grid { margin-top: 16px; }
.looks-grid { list-style: none; margin: 32px auto 0; padding: 0; max-width: 1040px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--ink); }
.look { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.look:nth-child(2n) { border-right: 0; }
.look:nth-child(n+3) { border-bottom: 0; }
.look a { display: block; height: 100%; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.look .shot { aspect-ratio: 4 / 5; }
.look .shot img { transition: transform .3s ease; }
.look a:hover .shot img { transform: scale(1.03); }
.look a:focus-visible { outline: 2px solid #121212; outline-offset: -4px; }
.look-cap { display: block; padding: 10px 10px 12px; font-size: 0.875rem; line-height: 1.4; color: var(--muted); text-align: center; border-top: 1px solid var(--ink); }
.look-cap b { display: block; color: var(--ink); font-weight: 600; }
@media (min-width: 900px) {
  .looks-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 48px; }
  .looks-kicker + .looks-grid { margin-top: 20px; }
  .look, .look:nth-child(2n) { border-right: 1px solid var(--ink); border-bottom: 0; }
  .look:last-child { border-right: 0; }
}
@media (prefers-reduced-motion: reduce) { .look .shot img { transition: none; } .look a:hover .shot img { transform: none; } }

/* 6. night: one AI picture, full width; on a wide screen the words sit in its dark left side */
.night { padding: 0; background: var(--night, #0E1015); color: var(--on-night, #F1EFEA); border-top: 0; overflow: hidden; }
.night-shot { aspect-ratio: 4 / 3; background: #0B0C10; }
.night-shot img { object-position: 74% 50%; }
.night-copy { position: relative; padding: 28px 16px 56px; text-align: center; }
.night .kicker { color: rgb(241 239 234 / .62); }
.night .band-lead { color: rgb(241 239 234 / .78); }
.night-cta { display: inline-flex; align-items: center; min-height: 48px; margin-top: 24px; padding: 0 22px; border-radius: 2px; background: #F0A848; color: #1B1205; font: 600 0.875rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.night-cta:hover { filter: brightness(1.06); }
@media (min-width: 700px) { .night-shot { aspect-ratio: 1344 / 752; } .night-shot img { object-position: 50% 50%; } }
@media (min-width: 1200px) {
  .night { display: grid; }
  .night > * { grid-area: 1 / 1; }
  .night-shot { max-height: 92vh; width: 100%; }
  .night-shot img { object-position: 60% 50%; }
  .night-copy { align-self: center; justify-self: start; max-width: 27rem; margin-left: clamp(24px, 5vw, 96px); padding: 0; text-align: left; }
  .night .kicker, .night .band-title, .night .band-lead { text-align: left; margin-left: 0; }
  .night .mark { left: auto; right: 12px; bottom: 12px; }
  .night-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(11 12 16 / .78) 0%, rgb(11 12 16 / .45) 30%, transparent 52%); pointer-events: none; }
}

/* 7. the shop: site.css draws it; on this page its heading is centred like the rest */
.has-wow .hero { scroll-margin-top: 56px; padding-top: 64px; }
.has-wow .hero-copy { text-align: center; }
.has-wow .hero-title { font: 700 clamp(1.75rem, 7vw, 2.75rem)/1.1 var(--text); letter-spacing: -.02em; }
.has-wow .hero-copy p { margin: 10px auto 0; max-width: 32em; }
@media (min-width: 960px) { .has-wow .stage-wrap { top: 76px; } }

/* 8. short and clear */
.brief-cols { display: grid; gap: 36px; max-width: 760px; margin: 32px auto 0; }
.brief-cols h3 { margin: 0 0 10px; color: var(--ink); text-align: center; }
.brief-cols ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.brief-cols li { padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; text-align: center; }
.brief-more { display: flex; justify-content: center; align-items: center; min-height: 44px; margin-top: 6px; font-size: 0.9375rem; color: var(--ink); text-underline-offset: 4px; }
.brief-cols details { border-bottom: 1px solid var(--rule); }
.brief-cols details:first-of-type { border-top: 1px solid var(--ink); }
.brief-cols summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 48px; padding: 6px 0; font-weight: 600; font-size: 0.9375rem; cursor: pointer; list-style: none; }
.brief-cols summary::-webkit-details-marker { display: none; }
.brief-cols summary::after { content: '+'; flex: none; font: 600 1.125rem/1 var(--mono); color: var(--ink); }
.brief-cols details[open] summary::after { content: '–'; }
.brief-cols details p { margin: 0 0 14px; font-size: 0.9375rem; color: var(--muted); }
.brief-cta { margin: 48px 0 0; text-align: center; }
.brief-cta .btn { min-width: min(100%, 360px); }
@media (min-width: 900px) { .brief-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: none; margin-top: 48px; } }
.has-wow .site-footer { margin-top: 0; }

/* pictures below the first screen are fetched only when their section comes near (home.js); without JavaScript the <noscript> copy shows */
html:not(.js) img[data-src] { display: none; }
html:not(.js) .shot noscript { display: contents; }
/* on the night first screen the focus ring is the lamp, not ink (DESIGN.md) */
.wow :focus-visible, .has-wow .site-header:not(.is-solid) :focus-visible { outline-color: var(--lamp); }
/* the shop's heading spans both columns, centred over the preview and the options */
@media (min-width: 960px) { .has-wow .hero { grid-template-areas: 'copy copy' 'stage buy'; grid-template-rows: auto auto; } .has-wow .hero-copy { margin-bottom: 16px; } }
@media (max-width: 959px) { .in-release .buybar { transform: translateY(110%); visibility: hidden; transition: none; } }
/* the "3D визуализация" label fits a narrow picture at any font size */
.mark { max-width: calc(100% - 16px); font-size: min(0.75rem, max(12px, 3.4vw)) !important; line-height: 1.25; }

/* ---- phones and touch screens: smooth scrolling (18 Nov) ----
   A blur behind the bar and shadow filters on what moves are redrawn by the graphics chip on every scroll frame; on a
   phone that is what made the scroll stutter. Here the bar is (almost) solid and the moving hanger and emojis carry no
   filter. test/site-anim.mjs ("phone") checks it. */
@media (max-width: 899px), (pointer: coarse) {
  .has-wow .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--night, #0E1015) 97%, transparent); }
  .has-wow .site-header.is-solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in srgb, var(--room) 98%, transparent); }
  .tr-stage canvas, .handoff img, .tr-xmas span { filter: none; }
}
/* phones: a link to the configurator lands on the preview, just under the top bar (home.js) */
@media (max-width: 959px) { .has-wow .stage-wrap { scroll-margin-top: 68px; } }
/* the emojis rest while the travel is out of view (home.js) */
.tr-xmas.is-off span { animation-play-state: paused; }
