/* Miradea A "Workshop": graphite workshop grounds, hard cuts to drafting paper,
   one marking colour (two lightnesses: one per ground family). */
:root {
  --graphite: #1c1b19; --graphite-2: #252320; --steel: #9ba1a5;
  --paper: #eee8dc; --paper-2: #f8f4ec; --rope: #c4ab83; --ash: #d8b98d;
  --mark-dark: #ee7a4f; --mark-paper: #ad421b; --btn: #c94f25;
  --sc-canvas: var(--graphite); --sc-surface: var(--graphite-2);
  --sc-ink: #efe9dd; --sc-ink-soft: #b9af9f;
  --sc-accent: var(--mark-dark); --sc-accent-ink: #1c1b19;
  --sc-font-display: "Geologica", system-ui, sans-serif;
  --sc-font-text: "Golos Text", system-ui, sans-serif;
  --sc-shadow-color: 30 20% 4%;
  --tape-h: 46px;
  --chat-bg: #f8f4ec; --chat-ink: #1c1b19; --chat-soft: #5c554a; --chat-accent: var(--btn); --chat-accent-ink: #fff;
  --chat-font: "Golos Text", system-ui, sans-serif; --chat-radius: 6px; --chat-launch-radius: 4px;
}
html { background: var(--graphite); }
body { background: var(--graphite); color: var(--sc-ink); font-family: var(--sc-font-text); }
::selection { background: var(--mark-dark); color: #1c1b19; }
.w-paper { --sc-canvas: var(--paper); --sc-ink: #1c1b19; --sc-ink-soft: #5b5449; --sc-accent: var(--mark-paper); --sc-accent-ink: #fff;
  background: var(--paper); color: var(--sc-ink); }
.w-paper ::selection { background: var(--mark-paper); color: #fff; }
.w-wrap { width: min(100% - 2 * var(--sc-gutter), var(--sc-maxw)); margin-inline: auto; }
.w-skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--paper); color: #1c1b19; padding: 10px 14px; border-radius: 4px; }
.w-skip:focus { top: 12px; }

/* type */
.w-h2 { font-family: var(--sc-font-display); font-weight: 600; font-size: var(--sc-t-2xl); line-height: 1.04; letter-spacing: -0.028em; margin: 0 0 var(--sc-4); text-wrap: balance; }
.w-body { font-size: var(--sc-t-base); line-height: 1.62; color: var(--sc-ink-soft); max-width: 56ch; margin: 0 0 var(--sc-4); text-wrap: pretty; }
.w-kicker, .w-step__no { font-family: var(--sc-font-display); font-weight: 500; font-size: var(--sc-t-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sc-accent); margin: 0 0 var(--sc-3); }

/* controls */
.w-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem; border: 0; border-radius: 4px;
  background: var(--btn); color: #fff; font: 600 0.98rem/1 var(--sc-font-display); letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 6px 16px -8px rgb(0 0 0 / 0.6); transition: transform 140ms var(--sc-ease-out), background-color 160ms; }
.w-btn:hover { background: #b34420; }
.w-btn:active { transform: translateY(1px) scale(0.99); }
.w-btn:disabled { opacity: 0.55; cursor: default; }
.w-link { color: var(--sc-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--sc-accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.w-link:hover { color: var(--sc-accent); }
:is(a, button, input, select, textarea, label):focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 3px; border-radius: 3px; }
.w-ask { border: 1px solid color-mix(in oklab, var(--sc-ink) 26%, transparent); background: transparent; color: var(--sc-ink); border-radius: 4px; padding: 0.7rem 1rem; font: 500 0.92rem/1.2 var(--sc-font-text); cursor: pointer; display: inline-flex; gap: 0.5rem; align-items: center; text-align: left; transition: border-color 150ms, background-color 150ms; }
.w-ask::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v8a2.5 2.5 0 0 1-2.5 2.5H10l-4.2 3.6c-.5.4-1.3.1-1.3-.6V16A2.5 2.5 0 0 1 4 13.5z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3h11A2.5 2.5 0 0 1 20 5.5v8a2.5 2.5 0 0 1-2.5 2.5H10l-4.2 3.6c-.5.4-1.3.1-1.3-.6V16A2.5 2.5 0 0 1 4 13.5z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat; color: var(--sc-accent); }
.w-ask:hover { border-color: var(--sc-accent); background: color-mix(in oklab, var(--sc-accent) 7%, transparent); }

/* chrome: two small graphite plates, readable over any ground */
.w-bar { position: fixed; z-index: 70; top: max(12px, env(safe-area-inset-top)); left: var(--sc-gutter); right: var(--sc-gutter); display: flex; align-items: center; gap: 10px; pointer-events: none; }
.w-bar > * { pointer-events: auto; }
.w-mark { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; background: var(--graphite); border-radius: 4px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07); margin-right: auto; }
.w-mark span { display: block; width: 118px; height: 22px; background: #efe9dd; -webkit-mask: url(../../shared/logo.png) left center / contain no-repeat; mask: url(../../shared/logo.png) left center / contain no-repeat; }
.w-bar .langnav { display: flex; height: 44px; align-items: center; background: var(--graphite); border-radius: 4px; padding: 0 6px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.07); }
.langnav a, .langnav span { font: 600 0.78rem/1 var(--sc-font-display); letter-spacing: 0.08em; padding: 9px 8px; border-radius: 3px; color: #b9af9f; text-decoration: none; }
.langnav span { color: #efe9dd; box-shadow: inset 0 -2px 0 var(--mark-dark); border-radius: 0; }
.langnav a:hover { color: #efe9dd; }
.w-btn--bar { min-height: 44px; }

/* tape measure nav, bottom edge */
.w-tape { position: fixed; z-index: 65; left: 0; right: 0; bottom: 0; height: calc(var(--tape-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: #e9dcbc; color: #2a2722; box-shadow: 0 -1px 0 rgb(0 0 0 / 0.25), 0 -10px 24px -14px rgb(0 0 0 / 0.55); overflow: hidden; --tx: 0px; }
.w-tape::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(255 255 255 / 0.35), transparent 30%, transparent 70%, rgb(0 0 0 / 0.08)); pointer-events: none; z-index: 2; }
.w-tape__track { position: absolute; top: 0; left: 0; height: var(--tape-h); transform: translate3d(var(--tx), 0, 0); will-change: transform; }
.w-tape__ticks { height: 100%; width: 100%;
  background-image:
    repeating-linear-gradient(90deg, #2a2722 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, #2a2722 0 1px, transparent 1px 20px),
    repeating-linear-gradient(90deg, rgb(42 39 34 / 0.75) 0 1px, transparent 1px 4px);
  background-size: 100% 15px, 100% 10px, 100% 6px; background-repeat: repeat-x; background-position: 0 0, 0 0, 0 0; }
.w-tape__num { position: absolute; top: 15px; transform: translateX(-50%); font: 600 10px/1 var(--sc-font-display); color: #5b5449; font-variant-numeric: tabular-nums; }
.w-tape__marks { list-style: none; margin: 0; padding: 0; position: absolute; left: 0; top: 0; height: var(--tape-h); transform: translate3d(var(--tx), 0, 0); will-change: transform; z-index: 3; }
.w-tape__marks li { position: absolute; top: 0; height: 100%; transform: translateX(-1px); }
.w-tape__marks a { display: flex; align-items: flex-end; height: 100%; padding: 0 10px 8px 9px; border-left: 2px solid var(--mark-paper); color: #2a2722; text-decoration: none;
  font: 600 0.78rem/1 var(--sc-font-display); letter-spacing: 0.02em; white-space: nowrap; background: linear-gradient(90deg, rgb(173 66 27 / 0.12), transparent 70%); }
.w-tape__marks a:hover { color: var(--mark-paper); }
.w-tape__marks a[aria-current="step"] { color: #fff; background: var(--mark-paper); }
.w-tape__needle { position: absolute; z-index: 4; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #1c1b19; }
.w-tape__needle::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: #1c1b19; border-bottom: 0; }
.w-tape__read { position: absolute; z-index: 5; left: 0; top: 0; bottom: 0; display: flex; align-items: center; padding: 0 14px 0 var(--sc-gutter); background: #1c1b19; color: #efe9dd;
  font: 600 0.74rem/1 var(--sc-font-display); letter-spacing: 0.12em; text-transform: uppercase; min-width: 9.5rem; }
.w-tape__read::after { content: ""; position: absolute; right: -10px; top: 0; bottom: 0; width: 10px; background: linear-gradient(90deg, rgb(0 0 0 / 0.28), transparent); }
.mchat { bottom: calc(var(--tape-h) + 14px + env(safe-area-inset-bottom)); }
main { padding-bottom: 0; }

/* hero */
.w-hero__stage { background: radial-gradient(120% 90% at 70% 40%, #4a3b2c 0%, #24201b 45%, #141311 100%); isolation: isolate; }
.w-hero__plate, .w-hero__beam, .w-hero__scrim { position: absolute; inset: 0; }
.w-hero__plate { transform: scaleX(-1); }
.w-hero__plate img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transform-origin: 40% 85%;
  transform: scale(1.06) translate3d(calc(var(--mx, 0) * 8px), calc(var(--my, 0) * -5px), 0); }
.w-hero__beam { z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0.55;
  background: linear-gradient(112deg, transparent 38%, rgb(255 196 140 / 0.16) 47%, rgb(255 205 150 / 0.05) 55%, transparent 62%),
    radial-gradient(1.5px 1.5px at 52% 32%, rgb(255 230 200 / 0.7), transparent 60%), radial-gradient(1px 1px at 58% 44%, rgb(255 230 200 / 0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 47% 51%, rgb(255 230 200 / 0.5), transparent 60%), radial-gradient(1px 1px at 61% 27%, rgb(255 230 200 / 0.6), transparent 60%),
    radial-gradient(1px 1px at 55% 60%, rgb(255 230 200 / 0.4), transparent 60%); }
.w-hero__scrim { z-index: 2; background: radial-gradient(70% 55% at 12% 88%, rgb(20 19 17 / 0.86), rgb(20 19 17 / 0.58) 55%, transparent 80%), linear-gradient(90deg, rgb(20 19 17 / 0.94) 0%, rgb(20 19 17 / 0.9) 34%, rgb(20 19 17 / 0.68) 46%, transparent 63%); }
.w-hero__copy { position: absolute; z-index: 5; left: var(--sc-gutter); top: max(18vh, 104px); width: min(40rem, 44vw); }
.w-hero__h { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(2.6rem, 1.4rem + 4.1vw, 5.6rem); line-height: 0.98; letter-spacing: -0.034em; margin: 0 0 var(--sc-5); text-wrap: balance; color: #f4efe5; }
.w-hero__sub { font-size: var(--sc-t-lg); line-height: 1.5; color: #d8cfc1; max-width: 34ch; margin: 0 0 var(--sc-6); text-wrap: pretty; }
.w-hero__actions { display: flex; flex-wrap: wrap; gap: var(--sc-5); align-items: center; }
.w-hero__chair { position: absolute; z-index: 6; right: 10vw; bottom: calc(var(--tape-h) + 3vh); width: min(36vw, 60vh, 700px); transform-origin: 80% 96%;
  transform: translate3d(calc(var(--mx, 0) * 14px), 0, 0); }
.w-hero__chair img { width: 100%; height: auto; display: block; position: relative; filter: drop-shadow(0 18px 22px rgb(0 0 0 / 0.35)); }
.w-shadow { position: absolute; left: 6%; right: 2%; bottom: -2.5%; height: 12%; border-radius: 50%; background: radial-gradient(closest-side, rgb(8 6 4 / 0.75), rgb(8 6 4 / 0.35) 55%, transparent); filter: blur(6px); }
.w-hero__coil { position: absolute; z-index: 7; left: -6vw; bottom: -15vh; width: min(25vw, 440px); pointer-events: none; }
.w-hero__coil img { width: 100%; display: block; filter: blur(5px) brightness(0.8); transform: rotate(-12deg); }
.w-hero__beat { position: absolute; z-index: 8; left: var(--sc-gutter); bottom: calc(var(--tape-h) + 10vh); margin: 0; max-width: 18ch;
  font: 500 var(--sc-t-2xl)/1.05 var(--sc-font-display); letter-spacing: -0.025em; color: #f4efe5; text-wrap: balance; text-shadow: 0 2px 24px rgb(0 0 0 / 0.5); }
@media (prefers-reduced-motion: no-preference) {
  .w-hero__plate img { transform: scale(calc(1.06 + var(--sc-p, 0) * 0.1)) translate3d(calc(var(--mx, 0) * 8px), calc(var(--sc-p, 0) * -2% + var(--my, 0) * -5px), 0); }
  .w-hero__chair { transform: translate3d(calc(var(--mx, 0) * 14px), calc(var(--sc-p, 0) * -3vh), 0) scale(calc(1 + var(--sc-p, 0) * 0.16)); }
  .w-hero__coil { transform: translate3d(calc(var(--sc-p, 0) * -22vw + var(--mx, 0) * 28px), calc(var(--sc-p, 0) * 22vh + var(--my, 0) * 10px), 0); }
  .w-hero__beam { transform: translate3d(calc(var(--sc-p, 0) * 3vw), 0, 0); animation: w-beam 9s ease-in-out infinite alternate; }
}
@keyframes w-beam { from { opacity: 0.4; } to { opacity: 0.68; } }

/* drawing station */
.w-draw { padding-block: clamp(5rem, 11vw, 9.5rem) clamp(5rem, 10vw, 8rem); }
.w-draw__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.w-sheet { margin: 0; background: var(--paper-2); border-radius: 2px; padding: clamp(1.25rem, 3vw, 2.5rem); position: relative;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.7) inset, 0 2px 4px rgb(60 45 25 / 0.08), 0 24px 48px -24px rgb(60 45 25 / 0.35);
  background-image: linear-gradient(rgb(28 27 25 / 0.05) 1px, transparent 1px), linear-gradient(90deg, rgb(28 27 25 / 0.05) 1px, transparent 1px); background-size: 24px 24px; }
.w-sheet__dims { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.15em 0.28em; font: 300 clamp(2.1rem, 0.9rem + 3.1vw, 4.2rem)/1 var(--sc-font-display); letter-spacing: -0.04em; color: #1c1b19; font-variant-numeric: tabular-nums; }
.w-sheet__dims i { font-style: normal; color: var(--mark-paper); font-weight: 300; }
.w-sheet__dims small { font-size: 0.32em; letter-spacing: 0.04em; color: #5b5449; margin-left: 0.3em; }
.w-sheet__plan { width: 100%; height: auto; margin-top: var(--sc-5); display: block; }
.w-plan rect { fill: none; stroke: #1c1b19; stroke-width: 2.2; }
.w-plan .w-plan__soft { fill: rgb(173 66 27 / 0.08); stroke-dasharray: 6 5; stroke-width: 1.4; }
.w-plan__dim { fill: none; stroke: var(--mark-paper); stroke-width: 1.4; }
.w-sheet__plan text { font: 600 15px var(--sc-font-display); fill: var(--mark-paper); }
.w-sheet figcaption { font-size: var(--sc-t-sm); color: #5b5449; margin-top: var(--sc-3); }
.w-link--dark { color: #1c1b19; }

/* the workbench (peak) */
.w-bench__stage { background: #1b1a18; }
.w-bench__grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(239 233 221 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(239 233 221 / 0.045) 1px, transparent 1px),
    linear-gradient(rgb(239 233 221 / 0.022) 1px, transparent 1px), linear-gradient(90deg, rgb(239 233 221 / 0.022) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px; }
.w-bench__copy { position: absolute; z-index: 3; left: var(--sc-gutter); top: max(17vh, 96px); width: min(26rem, 32vw); }
.w-step { position: absolute; inset: 0 auto auto 0; width: 100%; }
.w-step .w-h2 { font-size: var(--sc-t-xl); color: #f4efe5; }
.w-bench__drawing { position: absolute; z-index: 2; margin: 0; right: var(--sc-gutter); top: 8vh; bottom: calc(var(--tape-h) + 4vh); width: min(62vw, 1100px); display: flex; flex-direction: column; justify-content: center; }
.w-draft { width: 100%; height: auto; max-height: calc(100% - 40px); display: block; overflow: visible; }
.w-titleblock { display: flex; gap: 0; align-self: flex-start; margin-left: 12%; margin-top: 6px; border: 1px solid rgb(239 233 221 / 0.28); font: 500 0.72rem/1 var(--sc-font-display); letter-spacing: 0.08em; text-transform: uppercase; color: #b9af9f; }
.w-titleblock span { padding: 8px 12px; }
.w-titleblock span + span { border-left: 1px solid rgb(239 233 221 / 0.28); }
.w-bench__photo { position: absolute; z-index: 4; margin: 0; right: calc(var(--sc-gutter) + 1vw); bottom: calc(var(--tape-h) + 8vh); width: min(17vw, 250px); background: var(--paper-2); padding: 12px 12px 10px; border-radius: 2px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.25), 0 30px 50px -20px rgb(0 0 0 / 0.7); opacity: 0; transform: translate3d(0, 16px, 0) rotate(2deg); transition: opacity 320ms var(--sc-ease-out), transform 420ms var(--sc-ease-out); pointer-events: none; }
.w-bench__photo.is-on { opacity: 1; transform: none; }
.w-bench__photo img { width: 100%; height: auto; display: block; }
.w-bench__photo figcaption { font-size: 0.72rem; color: #5b5449; margin-top: 6px; }
.w-tones { position: absolute; z-index: 4; left: var(--sc-gutter); bottom: calc(var(--tape-h) + 5vh); display: flex; gap: var(--sc-6); flex-wrap: wrap; width: min(30rem, 36vw); }
.w-tones__set { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; opacity: 0; visibility: hidden; transform: translate3d(0, 8px, 0); transition: opacity 260ms var(--sc-ease-out), transform 260ms var(--sc-ease-out), visibility 0s 260ms; }
.w-tones__set.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.w-tones legend { font: 600 0.72rem/1 var(--sc-font-display); letter-spacing: 0.14em; text-transform: uppercase; color: #b9af9f; margin-bottom: 8px; padding: 0; width: 100%; }
.w-tones label { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px 0 8px; border-radius: 4px; border: 1px solid rgb(239 233 221 / 0.18); color: #efe9dd; font-size: 0.86rem; cursor: pointer; transition: border-color 150ms; }
.w-tones label:hover { border-color: rgb(239 233 221 / 0.45); }
.w-tones input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.w-tones label:has(input:checked) { border-color: var(--mark-dark); background: rgb(238 122 79 / 0.1); }
.w-tones label:has(input:focus-visible) { outline: 2px solid var(--mark-dark); outline-offset: 2px; }
.w-sw { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25), inset 0 -3px 4px rgb(0 0 0 / 0.25); }

/* draft svg */
.w-draft text { font-family: var(--sc-font-display); }
.w-ghost path { fill: none; stroke: rgb(239 233 221 / 0.22); stroke-width: 1.4; stroke-dasharray: 7 6; }
.w-frame path { fill: none; stroke: var(--steel); stroke-width: 6; stroke-linecap: square; stroke-linejoin: miter; }
.w-frame .w-frame__seat { fill: #2a2926; stroke: none; }
.w-dims path { fill: none; stroke: var(--mark-dark); stroke-width: 1.6; }
.w-dims text { fill: var(--mark-dark); font-size: 22px; font-weight: 600; letter-spacing: 0.02em; }
.w-face { stroke: none; }
.w-face--side { fill: rgb(0 0 0 / 0.26); }
.w-face__edge { fill: none; stroke: color-mix(in oklab, var(--rope-tone, #c4ab83) 70%, #000); stroke-width: 2; stroke-linejoin: round; }
.w-head { stroke: #fff6e6; stroke-width: 3; stroke-linecap: round; opacity: 0.9; }
.w-ash path { fill: var(--ash); stroke: #a9875c; stroke-width: 1.4; stroke-linejoin: round; }
.w-ash .w-ash__grain { fill: none; stroke: rgb(140 100 60 / 0.45); stroke-width: 1.2; }
.w-cush path { stroke: rgb(0 0 0 / 0.18); stroke-width: 1.5; stroke-linejoin: round; }
.w-cush .c-top { fill: color-mix(in oklab, var(--cush-tone, #6e5442) 82%, #fff); }
.w-cush .c-front { fill: var(--cush-tone, #6e5442); }
.w-cush .c-side { fill: color-mix(in oklab, var(--cush-tone, #6e5442) 72%, #000); }

/* by hand */
.w-hands { position: relative; background: var(--graphite); padding-bottom: clamp(4rem, 8vw, 7rem); }
.w-hands__fig { margin: 0; height: min(100vh, 66vw); min-height: 420px; overflow: hidden; }
.w-hands__fig img { width: 100%; height: 100%; object-fit: cover; display: block; }
.w-hands__copy { position: relative; z-index: 2; margin: -9rem 0 0 var(--sc-gutter); width: min(34rem, calc(100% - 2 * var(--sc-gutter))); background: var(--graphite); padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 2px; box-shadow: var(--sc-e3); }
.w-hands__copy .w-h2 { color: #f4efe5; }
.w-hands__copy .w-body { margin-bottom: 0; }

/* check */
.w-check { padding-block: clamp(5rem, 10vw, 9rem); }
.w-check__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.w-asks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sc-6); }
.w-spec { background: var(--paper-2); border-radius: 2px; box-shadow: 0 2px 4px rgb(60 45 25 / 0.08), 0 24px 48px -24px rgb(60 45 25 / 0.35); }
.w-spec__head { display: flex; justify-content: space-between; gap: 1rem; padding: 14px 20px; background: #1c1b19; color: #efe9dd; font: 600 0.74rem/1.2 var(--sc-font-display); letter-spacing: 0.12em; text-transform: uppercase; }
.w-spec__figs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgb(28 27 25 / 0.14); }
.w-spec__figs p { margin: 0; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 6px; }
.w-spec__figs p + p { border-left: 1px solid rgb(28 27 25 / 0.14); }
.w-spec__n { font: 300 clamp(2.4rem, 1.6rem + 2.6vw, 4rem)/1 var(--sc-font-display); letter-spacing: -0.04em; color: #1c1b19; font-variant-numeric: tabular-nums; }
.w-spec__figs span:last-child { font-size: 0.8rem; color: #5b5449; }
.w-spec__list { margin: 0; padding: 6px 20px 10px; }
.w-spec__list div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: 12px 0; border-bottom: 1px solid rgb(28 27 25 / 0.1); }
.w-spec__list dt { color: #5b5449; font-size: 0.9rem; }
.w-spec__list dd { margin: 0; font-weight: 500; }
.w-spec__price dd strong { font: 600 1.25rem/1 var(--sc-font-display); }
.w-spec__price dd s { color: #5b5449; margin-left: 8px; }
.w-spec__note { margin: 0; padding: 12px 20px 18px; font-size: 0.8rem; color: #5b5449; }

/* range rail */
.w-range__stage { background: var(--graphite); display: flex; align-items: center; }
.w-rail { display: flex; gap: clamp(1.5rem, 3vw, 3rem); align-items: stretch; padding: 0 var(--sc-gutter); }
.w-rail__lead { flex: 0 0 min(28rem, 78vw); align-self: center; }
.w-rail__lead .w-h2 { color: #f4efe5; }
.w-item { flex: 0 0 clamp(17rem, 25vw, 23rem); display: flex; flex-direction: column; }
.w-item__img { aspect-ratio: 4 / 3; display: grid; place-items: end center; position: relative; padding: 8% 6% 10%; background: radial-gradient(70% 55% at 50% 60%, #3a3630, #25231f 70%); border-radius: 2px; margin-bottom: var(--sc-4); }
.w-item__img::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 9%; height: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgb(0 0 0 / 0.55), transparent); z-index: 0; }
.w-item__img img { position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.w-item h3 { font: 600 var(--sc-t-xl)/1.1 var(--sc-font-display); letter-spacing: -0.02em; margin: 0 0 6px; color: #f4efe5; }
.w-item__mat { margin: 0 0 10px; color: #b9af9f; font-size: 0.92rem; }
.w-item__price { margin: 0 0 12px; font: 600 1.05rem/1.2 var(--sc-font-display); color: #efe9dd; }
.w-item__price s { color: #8f8677; font-weight: 400; margin-left: 6px; font-size: 0.9rem; }
.w-item__link { margin-top: auto; color: #efe9dd; font-size: 0.9rem; text-decoration: underline; text-decoration-color: var(--mark-dark); text-underline-offset: 4px; align-self: flex-start; }
.w-rail__end { flex: 0 0 min(22rem, 70vw); align-self: center; display: flex; flex-direction: column; gap: var(--sc-4); align-items: flex-start; padding-right: var(--sc-gutter); }
.w-ask--dark { --sc-ink: #efe9dd; --sc-accent: var(--mark-dark); }
@media (prefers-reduced-motion: no-preference) {
  .w-item { opacity: max(0.55, min(1, calc((var(--sc-p, 0) * 9) - var(--i, 0) + 1.2))); }
}

/* out the door */
.w-out { position: relative; min-height: 118vh; overflow: hidden; display: flex; align-items: flex-end; background: #11100e; }
.w-out__plate { position: absolute; inset: -8vh 0; }
.w-out__plate img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.92; }
.w-out::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(17 16 14 / 0.94) 0%, rgb(17 16 14 / 0.55) 30%, transparent 55%); pointer-events: none; }
.w-out__copy { position: relative; z-index: 2; padding: 0 var(--sc-gutter) calc(var(--tape-h) + 14vh); max-width: 52rem; }
.w-out__h { font: 300 var(--sc-t-3xl)/1.02 var(--sc-font-display); letter-spacing: -0.035em; margin: 0 0 var(--sc-4); color: #f4efe5; text-wrap: balance; }

/* the work order (close) */
.w-order { padding-top: clamp(5rem, 10vw, 8rem); }
.w-ticket { position: relative; max-width: 58rem; margin: 0 auto; background: #fbf8f1; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 2px;
  box-shadow: 0 2px 4px rgb(60 45 25 / 0.08), 0 30px 60px -28px rgb(60 45 25 / 0.45);
  -webkit-mask: radial-gradient(circle 6px at 50% 0, transparent 98%, #000) 0 0 / 22px 100% repeat-x; mask: radial-gradient(circle 6px at 50% 0, transparent 98%, #000) 0 0 / 22px 100% repeat-x; }
.w-ticket__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 2px solid #1c1b19; padding-bottom: 12px; margin-bottom: var(--sc-6); }
.w-ticket__title { margin: 0; font: 600 0.9rem/1 var(--sc-font-display); letter-spacing: 0.16em; text-transform: uppercase; }
.w-ticket__meta { margin: 0; display: flex; gap: 1rem; font: 500 0.78rem/1 var(--sc-font-display); letter-spacing: 0.08em; color: #5b5449; font-variant-numeric: tabular-nums; }
.w-ticket__rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; margin: var(--sc-6) 0; }
.w-f { display: flex; flex-direction: column; gap: 6px; }
.w-f--wide { grid-column: 1 / -1; }
.w-f > span { font: 600 0.72rem/1 var(--sc-font-display); letter-spacing: 0.12em; text-transform: uppercase; color: #5b5449; }
.w-f :is(input, select, textarea) { font: 500 1.05rem/1.35 var(--sc-font-text); color: #1c1b19; background: transparent; border: 0; border-bottom: 1.5px solid rgb(28 27 25 / 0.35); border-radius: 0; padding: 8px 0; caret-color: var(--mark-paper); min-height: 44px; }
.w-f select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c1b19' stroke-width='1.6'/%3E%3C/svg%3E") right 4px center / 12px no-repeat; padding-right: 24px; cursor: pointer; }
.w-f textarea { resize: vertical; }
.w-f :is(input, select, textarea):focus { outline: none; border-bottom-color: var(--mark-paper); }
.w-f :is(input, select, textarea):focus-visible { outline: 2px solid var(--mark-paper); outline-offset: 2px; }
.w-f.is-bad :is(input) { border-bottom-color: #b3261e; }
.w-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.w-ticket__foot { display: flex; align-items: center; gap: var(--sc-5); flex-wrap: wrap; }
.w-ticket__consent { margin: 0; flex: 1 1 18rem; font-size: 0.78rem; color: #5b5449; }
.w-ticket__consent a { color: inherit; }
.w-ticket__status { margin: var(--sc-4) 0 0; font-weight: 500; min-height: 1.5em; }
.w-ticket__status.is-ok { color: #2e5b2a; }
.w-ticket__status.is-bad { color: #b3261e; }
.w-stamp { position: absolute; right: clamp(1rem, 5vw, 3.5rem); top: clamp(4rem, 8vw, 5.5rem); padding: 10px 18px; border: 3px solid var(--mark-paper); color: var(--mark-paper); border-radius: 4px;
  font: 700 1.1rem/1 var(--sc-font-display); letter-spacing: 0.18em; text-transform: uppercase; transform: rotate(-8deg) scale(1.3); opacity: 0; pointer-events: none; mix-blend-mode: multiply; transition: opacity 200ms, transform 260ms var(--sc-ease-out); }
.w-ticket.is-sent .w-stamp { opacity: 0.9; transform: rotate(-8deg) scale(1); }
.w-direct { max-width: 58rem; margin: var(--sc-6) auto 0; display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.w-direct p { margin: 0; color: #5b5449; width: 100%; }
.w-direct a { color: #1c1b19; font: 600 1.05rem/1.3 var(--sc-font-display); text-decoration: underline; text-decoration-color: var(--mark-paper); text-underline-offset: 4px; }
.w-foot { margin-top: clamp(4rem, 8vw, 6rem); background: var(--graphite); color: #b9af9f; padding: clamp(2.5rem, 5vw, 4rem) 0 calc(var(--tape-h) + 2.5rem); font-size: 0.86rem; }
.w-foot__grid { display: grid; grid-template-columns: 1.2fr 0.8fr 1.4fr; gap: 2rem; }
.w-mark--foot { padding: 0; height: auto; margin: 0 0 12px; background: none; box-shadow: none; }
.w-foot a { color: #efe9dd; }
.w-foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.w-foot__small p { margin: 0 0 8px; }
.w-foot .langnav { display: inline-flex; margin-top: 6px; margin-left: -8px; }

/* ----------------------------------------------------------------- phones */
@media (max-width: 860px) {
  :root { --tape-h: 40px; }
  .w-mark span { width: 96px; }
  .w-btn--bar { padding: 0 0.9rem; font-size: 0.86rem; }
  .w-hero__copy { top: 92px; width: auto; right: var(--sc-gutter); }
  .w-hero__h { font-size: clamp(2.2rem, 1.2rem + 5.4vw, 3.2rem); }
  .w-hero__sub { font-size: var(--sc-t-base); }
  .w-hero__scrim { background: linear-gradient(180deg, rgb(20 19 17 / 0.92) 0%, rgb(20 19 17 / 0.82) 42%, rgb(20 19 17 / 0.1) 66%, transparent 76%); }
  .w-hero__chair { right: 50%; width: min(92vw, 520px); margin-right: max(-46vw, -260px); bottom: calc(var(--tape-h) + 3vh); }
  .w-hero__coil { width: 46vw; left: -14vw; bottom: -8vh; }
  .w-hero__beat { bottom: auto; top: 96px; }
  .w-draw__grid, .w-check__grid { grid-template-columns: 1fr; }
  .w-bench__copy { top: 84px; width: auto; right: var(--sc-gutter); }
  .w-step .w-h2 { font-size: var(--sc-t-lg); margin-bottom: 8px; }
  .w-step .w-body { font-size: 0.92rem; line-height: 1.5; }
  .w-bench__drawing { left: -2vw; right: -2vw; width: auto; top: 33vh; bottom: calc(var(--tape-h) + 15vh); }
  .w-draft { max-height: 100%; }
  .w-titleblock { display: none; }
  .w-tones { left: var(--sc-gutter); right: var(--sc-gutter); width: auto; bottom: calc(var(--tape-h) + 10px); gap: 10px 16px; }
  .w-tones label { min-height: 36px; padding: 0 10px 0 6px; font-size: 0.8rem; }
  .w-tones legend { margin-bottom: 4px; }
  .w-bench__photo { width: 34vw; right: var(--sc-gutter); bottom: auto; top: 40vh; }
  .w-hands__copy { margin-top: -5rem; }
  .w-spec__list div { grid-template-columns: 1fr; gap: 2px; }
  .w-ticket__rows { grid-template-columns: 1fr; }
  .w-foot__grid { grid-template-columns: 1fr; }
  .w-tape__marks a { font-size: 0.72rem; padding: 0 8px 7px 7px; }
  .w-tape__read { min-width: 0; padding: 0 12px; font-size: 0.66rem; }
  .w-out__copy { padding-bottom: calc(var(--tape-h) + 10vh); }
}
@media (max-width: 520px) {
  .w-btn--bar { display: none; }
}
@media (max-width: 420px) {
  .w-bar .langnav { padding: 0 2px; }
  .langnav a, .langnav span { padding: 9px 6px; }
  .w-tape__read { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .w-bench__photo, .w-tones__set, .w-stamp { transition: none; }
}

/* ---- phone pass (owner: "very mobile friendly"): 16px fields so iOS never zooms, 44px tap areas, no tiny text ---- */
@media (max-width: 760px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: 16px !important; }
  input[type=range] { min-height: 44px; }
  .langnav a, .langnav span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .w-bar .langnav { height: 48px; }
  .w-link, .w-item__link { display: inline-flex; align-items: center; min-height: 44px; }
  .w-spec__note, .w-ticket__consent { font-size: 14px; }
  main p { font-size: max(15px, 1em); }
}

@media (max-width: 760px) {
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]), select { min-height: 44px; }
  :is(a[href^="tel:"], a[href^="mailto:"], a[href*="t.me/"], a[href*="vk.com"], a[href*="instagram"], a[href*="max.ru"], a[href*="miradea.pro/"], a[href*="greengard.su"]):not(p a):not(li a) { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---- phone hero, art-directed: copy in flow on top, the chair takes the height that is left and
   stands on the tape; nothing ever sits under the text ---- */
@media (max-width: 760px) {
  .w-hero__stage { display: flex; flex-direction: column; }
  .w-hero__copy { position: relative; inset: auto; top: auto; left: auto; right: auto; width: auto; flex: none;
    padding: calc(max(12px, env(safe-area-inset-top)) + 60px) var(--sc-gutter) 0; z-index: 5; }
  .w-hero__h { font-size: clamp(1.95rem, 1.1rem + 4.6vw, 2.9rem); margin-bottom: 12px; }
  .w-hero__sub { font-size: 15px; line-height: 1.45; margin-bottom: 16px; max-width: 40ch; }
  .w-hero__actions { gap: 8px 18px; }
  .w-hero__chair { position: relative; right: auto; bottom: auto; left: auto; margin: 6px auto calc(var(--tape-h) + 10px);
    flex: 1 1 0; min-height: 0; width: auto; max-width: 88vw; display: flex; align-items: flex-end; justify-content: center; transform-origin: 50% 100%; }
  .w-hero__chair img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
  .w-shadow { left: 12%; right: 12%; bottom: -3%; }
  .w-hero__scrim { background: linear-gradient(180deg, rgb(20 19 17 / 0.94) 0%, rgb(20 19 17 / 0.88) 48%, rgb(20 19 17 / 0.25) 70%, transparent 82%); }
  .w-hero__coil { width: 34vw; left: -12vw; bottom: calc(var(--tape-h) - 8vw); z-index: 4; }
  .w-hero__beat { top: calc(max(12px, env(safe-area-inset-top)) + 64px); bottom: auto; font-size: 1.7rem; }
  .w-hero__plate img { object-position: 50% 80%; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .w-hero__chair { transform: translate3d(0, calc(var(--sc-p, 0) * -1.5vh), 0) scale(calc(1 + var(--sc-p, 0) * 0.08)); }
  .w-hero__coil { transform: translate3d(calc(var(--sc-p, 0) * -14vw), calc(var(--sc-p, 0) * 10vh), 0); }
}
/* short phones: the secondary link gives its room to the chair (the tape measure is the way in) */
@media (max-width: 420px) and (max-height: 700px) {
  .w-hero__actions .w-link { display: none; }
  .w-hero__h { font-size: 1.85rem; }
}

/* phones: the assistant button steps aside where it would sit on controls (the tone chips at the
   workbench, the field being typed in); it is back as soon as you scroll on or leave the field */
@media (max-width: 760px) {
  .mchat__launch { transition: opacity 180ms, transform 140ms var(--sc-ease-out); }
  body.w-in-bench .mchat:not(.is-open) .mchat__launch,
  body:has(.w-ticket :focus) .mchat:not(.is-open) .mchat__launch { opacity: 0; pointer-events: none; }
  .w-tape__marks a { padding: 0 8px 7px 6px; }
}

@media (max-width: 760px) and (max-height: 700px) {
  .w-bench__drawing { top: 38vh; bottom: calc(var(--tape-h) + 14vh); }
}
