/* Pırlanta Halı Yıkama — the drying room. Four inks outside the carpets: lime-white wall, oil-paint green dado,
   graphite steel, tag yellow; heater amber is only a state (focus / active). */
@font-face { font-family: 'Chivo'; src: url(../fonts/chivo-latin-ext.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chivo'; src: url(../fonts/chivo-latin.woff2) format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Chivo Mono'; src: url(../fonts/chivomono-latin-ext.woff2) format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chivo Mono'; src: url(../fonts/chivomono-latin.woff2) format('woff2'); font-weight: 400 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --wall: #eef0ea; --wall-2: #e2e6de; --wall-3: #d3d9d1;
  --oil: #1f5a4c; --oil-2: #174538; --oil-3: #2a6b5b;
  --steel: #2b2f33; --steel-2: #474e54; --steel-3: #8b949a; --steel-4: #c3c9cd;
  --tag: #f4c418; --tag-2: #fbe27a; --tag-3: #fff4c4;
  --ink: #181c1f; --ink-2: #434b51;
  --on-oil: #eef0ea; --on-oil-2: #c4e4cf;
  --amber: #c9600e; --amber-hi: #f2a14e;
  --head: 74px;
  --gut: max(20px, env(safe-area-inset-left, 0px), 4vw);
  --sp: clamp(5rem, 9vw, 9rem);
  --mono: 'Chivo Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
html:not(.anim) { scroll-behavior: smooth; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 1.0625rem/1.55 'Chivo', 'Segoe UI', system-ui, sans-serif; font-optical-sizing: auto; overflow-x: clip; }
img, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--tag); color: var(--ink); }
html { scrollbar-color: var(--steel-2) var(--wall-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--wall-2); }
::-webkit-scrollbar-thumb { background: var(--steel-2); border: 3px solid var(--wall-2); border-radius: 8px; }
input, textarea { caret-color: var(--amber); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.band-oil :focus-visible, .band-steel :focus-visible, .foot :focus-visible, .wash :focus-visible { outline-color: var(--amber-hi); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--tag); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }
mark { background: linear-gradient(transparent 12%, var(--tag) 12%, var(--tag) 92%, transparent 92%); color: var(--ink); padding: 0 0.12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ex { display: inline-block; font: 600 0.7rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; border: 1.5px solid currentColor; padding: 3px 5px 2px; border-radius: 3px; vertical-align: 0.15em; }
.ph { font-family: var(--mono); font-weight: 400; font-style: normal; opacity: 0.9; }
.tiny { font-size: 0.8rem; line-height: 1.4; margin: 6px 0 0; color: var(--ink-2); }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.text-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--amber); }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- header: the rail ---------- */
.head { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--wall); padding-top: env(safe-area-inset-top, 0px); }
.head-in { height: 60px; display: flex; align-items: center; gap: 24px; padding: 0 var(--gut); }
.plate { display: inline-flex; flex-direction: column; justify-content: center; background: var(--oil); color: var(--on-oil); padding: 6px 16px 5px; text-decoration: none; position: relative; border-radius: 2px; line-height: 1; }
.plate::before, .plate::after { content: ''; position: absolute; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--steel-4); }
.plate::before { left: 5px; } .plate::after { right: 5px; }
.plate-name { font-weight: 900; font-size: 1.12rem; letter-spacing: 0.1em; text-transform: uppercase; }
.plate-sub { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--on-oil-2); margin-top: 3px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--amber); }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tool { min-width: 40px; height: 40px; display: inline-grid; place-items: center; background: transparent; border: 2px solid var(--steel-2); border-radius: 6px; cursor: pointer; font: 600 0.85rem var(--mono); padding: 0 8px; }
.tool svg { width: 20px; height: 20px; }
.tool[aria-pressed="false"] svg path { stroke-dasharray: 2 4; }
.tool:hover { border-color: var(--amber); }
.tag-btn { position: relative; display: inline-flex; align-items: center; height: 42px; padding: 0 18px 0 30px; background: var(--tag); color: var(--ink); font-weight: 800; text-decoration: none; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.tag-btn::before { content: ''; position: absolute; left: 13px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--wall); box-shadow: inset 0 0 0 2px #8a6d00; }
.tag-btn:hover { background: var(--tag-2); }
.tag-btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink); }
.head-rail { position: relative; height: 12px; background: linear-gradient(#5b636a, #2b2f33 45%, #1d2023); box-shadow: 0 3px 6px rgba(20, 30, 25, 0.22); }
.trolley { position: absolute; top: -5px; left: 0; width: 34px; height: 22px; background: var(--steel); border-radius: 3px; transform: translateX(calc(var(--p, 0) * (100vw - 34px))); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.trolley::before, .trolley::after { content: ''; position: absolute; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--steel-3); }
.trolley::before { left: 5px; } .trolley::after { right: 5px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(820px, 100svh); padding-top: var(--head); background: linear-gradient(var(--wall) 0, var(--wall) calc(100% - 250px), var(--oil-2) calc(100% - 250px), var(--oil-2) calc(100% - 244px), var(--oil) calc(100% - 244px)); }
.hero-in { display: grid; grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.9fr) minmax(330px, 370px); gap: clamp(16px, 2vw, 32px); padding: 0 var(--gut) 28px; min-height: calc(max(820px, 100svh) - var(--head)); }
.hero-copy { padding-top: clamp(40px, 6vh, 72px); min-width: 0; }
.hero h1 { font-weight: 850; font-size: clamp(2.5rem, 3.5vw, 4rem); line-height: 0.98; letter-spacing: -0.025em; margin-bottom: 0.45em; }
.lede { font-size: clamp(1.05rem, 1.25vw, 1.2rem); max-width: 34ch; }
.hero-hint { color: var(--ink-2); max-width: 34ch; font-size: 0.98rem; }
.hero-rail { position: relative; min-width: 0; min-height: 520px; }
#railCanvas { position: absolute; left: 0; top: var(--head); width: 100%; height: calc(100% - var(--head)); pointer-events: none; z-index: 0; }
.hero-in { position: relative; z-index: 1; }
.rail-flat { position: absolute; inset: 0; }
html.webgl .rail-flat { display: none; }
.rail-flat .flat-rail { position: absolute; left: -2vw; right: -2vw; height: 12px; background: linear-gradient(#5b636a, #2b2f33 45%, #1d2023); }
.rail-flat figure { position: absolute; margin: 0; }
.flat-hook { position: absolute; width: 3px; background: var(--steel); }
.rail-flat figure canvas { width: 100%; height: auto; filter: drop-shadow(10px 14px 14px rgba(15, 30, 25, 0.25)); }
.rail-flat figure::before { content: ''; position: absolute; left: -7px; right: -7px; top: -6px; height: 9px; background: var(--steel-2); border-radius: 2px; }
.ruler { position: absolute; left: 0; width: 26px; border-left: 3px solid var(--steel); }
.ruler span { position: absolute; left: 0; height: 2px; background: var(--steel); }
.ruler span.m { width: 18px; } .ruler span.h { width: 11px; } .ruler span.d { width: 6px; height: 1px; }
.ruler b { position: absolute; left: 22px; transform: translateY(-50%); font: 600 0.72rem var(--mono); white-space: nowrap; color: var(--ink); background: var(--wall); padding: 1px 3px; }
.ruler b.on-oil { color: var(--on-oil); background: var(--oil); }
.rail-caption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; text-align: center; color: var(--on-oil); font: 400 0.82rem var(--mono); }

/* the pickup tag */
.tag { position: relative; isolation: isolate; align-self: start; margin-top: 46px; padding: 32px 20px 18px; filter: drop-shadow(0 12px 18px rgba(16, 32, 26, 0.28)); color: var(--ink); }
.tag::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tag); clip-path: polygon(30px 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%, 0 30px); }
.tag::after { content: ''; position: absolute; left: 50%; top: -48px; width: 2px; height: 58px; background: var(--steel-2); }
.tag-hole { position: absolute; left: 50%; top: 9px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--wall); box-shadow: 0 0 0 3px #b08900; }
.tag :focus-visible { outline-color: var(--ink); }
.tag-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tag h2 { font-size: 1.55rem; font-weight: 850; letter-spacing: -0.01em; }
.tag-no { margin: 0; font-size: 0.8rem; display: flex; align-items: baseline; gap: 6px; }
.tag-no b { font-weight: 600; font-size: 0.95rem; }
.tag-row { border: 0; padding: 0; margin: 0 0 10px; min-width: 0; }
.tag-row.two, .f-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
legend, .f-label { font-weight: 700; font-size: 0.82rem; padding: 0; margin-bottom: 6px; }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 0.82rem; min-width: 0; }
.field input, .field select, .field textarea { font-weight: 400; font-size: 1rem; background: var(--tag-3); border: 2px solid var(--ink); border-radius: 4px; padding: 8px 10px; min-height: 42px; width: 100%; }
.field select { appearance: none; background-image: 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='%23181c1f' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px 8px; padding-right: 30px; }
.field textarea { resize: vertical; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day span { display: flex; flex-direction: column; align-items: center; padding: 5px 0 4px; border: 2px solid var(--ink); border-radius: 4px; background: var(--tag-3); line-height: 1.1; }
.day small { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.day b { font: 600 1rem var(--mono); }
.day input:checked + span { background: var(--ink); color: var(--tag); }
.day input:disabled + span { border-style: dashed; background: transparent; color: #6f5c10; text-decoration: line-through; }
.day input:disabled { cursor: not-allowed; }
.day input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.band-wall .day span, .order .day span { background: #fff; }
.order .day input:checked + span { background: var(--ink); color: var(--tag); }
.order .day input:disabled + span { color: var(--ink-2); background: transparent; }
.carpet-table { border-top: 2px solid var(--ink); font-size: 0.86rem; }
.ct-head, .ct-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr) minmax(0, 1.3fr) 3.3em 28px; gap: 6px; align-items: center; }
.ct-head { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 5px 0; border-bottom: 1px solid rgba(24, 28, 31, 0.4); }
.ct-body { max-height: 196px; overflow-y: auto; }
.ct-row { padding: 5px 0; border-bottom: 1px solid rgba(24, 28, 31, 0.25); }
.ct-row .nm { font-weight: 700; overflow-wrap: anywhere; }
.ct-row .sz { font-family: var(--mono); font-size: 0.8rem; white-space: nowrap; }
.ct-row select { width: 100%; font-size: 0.78rem; background: var(--tag-3); border: 1.5px solid var(--ink); border-radius: 3px; padding: 3px 2px; min-height: 30px; }
.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.rm { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; border-radius: 4px; }
.rm svg { width: 14px; height: 14px; }
.rm:hover { background: rgba(24, 28, 31, 0.12); }
.ct-empty { padding: 10px 0; font-size: 0.85rem; color: #4d420d; }
.add-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.add-label { font-weight: 700; font-size: 0.78rem; padding-top: 6px; }
.presets { display: flex; flex-wrap: wrap; gap: 5px; }
.pre { border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pre .mono { font-size: 0.72rem; font-weight: 400; }
.pre:hover { background: var(--ink); color: var(--tag); }
.pre:disabled { opacity: 0.45; cursor: not-allowed; }
.tag-sum { border-top: 2px solid var(--ink); padding-top: 10px; margin-bottom: 12px; }
.tag-sum dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.tag-sum dt { font-size: 0.78rem; font-weight: 700; }
.tag-sum dd { margin: 2px 0 0; font-size: 1.45rem; font-weight: 600; }
.go { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 18px; background: var(--ink); color: var(--tag); border: 0; border-radius: 4px; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; cursor: pointer; }
.go:hover { background: #000; }
.go.small { width: auto; min-height: 44px; font-size: 0.95rem; }
.band-oil .go, .band-steel .go { background: var(--tag); color: var(--ink); }
.band-oil .go:hover, .band-steel .go:hover { background: var(--tag-2); }
.flap { display: inline-block; }
.flap.roll { animation: flap 0.42s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes flap { 0% { transform: translateY(-0.35em); opacity: 0.2; } 100% { transform: none; opacity: 1; } }

/* ---------- bands (the rail frames each section: one continuous line) ---------- */
section[class*="band-"], .wash, .quiet { position: relative; padding-block: var(--sp); }
section[class*="band-"]::before, .wash::before, .quiet::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: linear-gradient(#5b636a, #2b2f33 45%, #1d2023); }
.band-wall { background: var(--wall); }
.band-oil { background: var(--oil); color: var(--on-oil); }
.band-oil mark, .band-steel mark { color: var(--ink); }
.band-steel { background: var(--steel); color: var(--on-oil); }
.band-oil .ex, .band-steel .ex { color: var(--tag); }
.band-oil .tiny, .band-oil .note { color: var(--on-oil-2); }
section h2 { font-weight: 850; font-size: clamp(2rem, 3.5vw, 3.3rem); line-height: 1.03; letter-spacing: -0.022em; max-width: 20ch; margin-bottom: 0.6em; }

/* three stops */
.route-line { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); position: relative; }
.route-line::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 6px; background: var(--steel); border-radius: 3px; }
.route-line li { position: relative; padding-top: 44px; }
.stop-dot { position: absolute; top: 0; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--tag); border: 4px solid var(--steel); }
.route-line h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.35em; }
.route-line p { max-width: 36ch; color: var(--ink-2); }

/* measure */
.measure-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.steps { padding-left: 1.3em; margin: 0 0 1.4em; }
.steps li { margin-bottom: 0.7em; max-width: 44ch; }
.note { font-size: 0.9rem; max-width: 46ch; }
.measure-tool { min-width: 0; }
.mt-stage { position: relative; height: clamp(360px, 46vw, 560px); background: var(--oil-2); border-radius: 6px; overflow: hidden; touch-action: none; }
#mtCanvas { position: absolute; left: 0; top: 0; image-rendering: auto; box-shadow: 10px 14px 22px rgba(0, 0, 0, 0.3); }
.tape { position: absolute; background: var(--tag); color: var(--ink); font: 600 0.78rem var(--mono); display: flex; align-items: center; justify-content: center; }
.tape-x { height: 22px; background-image: repeating-linear-gradient(90deg, rgba(24, 28, 31, 0.55) 0 1px, transparent 1px 10px); }
.tape-y { width: 22px; background-image: repeating-linear-gradient(180deg, rgba(24, 28, 31, 0.55) 0 1px, transparent 1px 10px); }
.tape span { background: var(--tag); padding: 0 4px; }
.tape-y span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 4px 0; }
.mt-handle { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--tag); border: 3px solid var(--ink); cursor: nwse-resize; touch-action: none; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); }
.mt-handle::after { content: ''; position: absolute; inset: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.mt-handle:focus-visible { outline: 3px solid var(--amber-hi); outline-offset: 3px; }
.mt-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; align-items: end; }
.band-oil .field input, .band-oil .field select { background: var(--wall); color: var(--ink); border-color: var(--wall); }
.mt-area { margin: 0; font-weight: 700; font-size: 0.85rem; display: flex; flex-direction: column; }
.mt-area b { font-size: 1.6rem; font-weight: 600; }
.mt-controls .go { grid-column: span 2; }

/* ---------- the wash ---------- */
.wash { background: var(--oil); color: var(--on-oil); }
.wash-head h2 { margin-bottom: 0.25em; }
.wash-sub { color: var(--on-oil-2); }
.wash-stage, .wash-stops { display: none; }
.stations { list-style: none; margin: 2.5rem auto 0; padding: 0 var(--gut); max-width: 1320px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(28px, 4vw, 64px); }
.station { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr); gap: 22px; align-items: start; }
.st-pic { width: 100%; height: auto; box-shadow: 8px 12px 18px rgba(0, 0, 0, 0.3); }
.station h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 0.4em; display: flex; gap: 10px; align-items: baseline; }
.st-n { font-size: 0.95rem; color: var(--tag); }
.station p { max-width: 46ch; }
.mark-line { margin: 0; }
html.wash3d .wash { padding: 0; transition: background-color 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
html.wash3d .wash[data-st="6"] { background-color: #3f5a3e; }
html.wash3d .wash-pin { position: relative; height: 100vh; min-height: 640px; overflow: hidden; }
html.wash3d .wash-head { position: absolute; left: 0; top: calc(var(--head) + 4vh); width: 40%; max-width: none; margin: 0; z-index: 2; }
html.wash3d .wash-stage { display: block; position: absolute; inset: 0; }
html.wash3d #washCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
html.wash3d .wash-box { position: absolute; left: 44%; right: 6%; top: calc(var(--head) + 26px); bottom: 110px; }
html.wash3d .stations { position: absolute; left: var(--gut); width: min(36%, 470px); top: calc(var(--head) + 4vh + 12.5rem); bottom: 120px; margin: 0; padding: 0; display: block; z-index: 2; }
html.wash3d .station { position: absolute; inset: 0 auto auto 0; display: block; opacity: 0; transform: translateY(18px); transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
html.wash3d .station.on { opacity: 1; transform: none; }
html.wash3d .station .st-pic { display: none; }
html.wash3d .station h3 { font-size: clamp(1.8rem, 2.6vw, 2.6rem); line-height: 1.05; }
html.wash3d .station p { font-size: 1.1rem; }
html.wash3d .wash-stops { display: block; position: absolute; left: var(--gut); right: var(--gut); bottom: 30px; z-index: 3; }
.wash-stops ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); position: relative; }
.wash-stops ol::before { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 6px; background: var(--steel); border-radius: 3px; }
.wash-stops button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: none; border: 0; color: var(--on-oil-2); padding: 0; cursor: pointer; font-size: 0.78rem; font-weight: 600; text-align: left; width: 100%; }
.wash-stops button::before { content: ''; width: 22px; height: 22px; border-radius: 50%; margin-top: 5px; background: var(--oil-2); border: 3px solid var(--steel-3); box-sizing: border-box; }
.wash-stops button.done::before { background: var(--steel-3); }
.wash-stops button.on { color: var(--on-oil); }
.wash-stops button.on::before { background: var(--amber-hi); border-color: var(--tag); }
.wash-stops button:hover { color: var(--on-oil); }

/* ---------- before / after ---------- */
.compare-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.compare-copy p { max-width: 44ch; }
.credit-line { font-size: 0.82rem; color: var(--ink-2); border-top: 2px solid var(--steel); padding-top: 10px; margin-top: 1.5em; }
.cmp { margin: 0; }
.cmp-img { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 2 / 3; max-height: 78vh; margin-inline: auto; box-shadow: 10px 16px 26px rgba(20, 35, 30, 0.25); max-width: 100%; }
.cmp-img img, .cmp-dirt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-dirt { clip-path: inset(0 calc(100% - var(--cut, 50%)) 0 0); }
.cmp-bar { position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 4px; margin-left: -2px; background: var(--tag); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.cmp-bar::after { content: ''; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--tag); border: 3px solid var(--ink); }
.cmp-lbl { position: absolute; top: 12px; font: 600 0.75rem var(--mono); background: var(--ink); color: var(--tag); padding: 4px 7px; border-radius: 3px; }
.cmp-lbl.l { left: 12px; } .cmp-lbl.r { right: 12px; }
.cmp-range { display: block; margin-top: 12px; }
.cmp-range input { width: 100%; accent-color: var(--ink); }

/* ---------- the quiet drying room ---------- */
.quiet { background: var(--wall); }
.quiet-pin { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 110px); align-items: center; padding: 0 var(--gut); max-width: 1320px; margin: 0 auto; }
.quiet-carpet { position: relative; justify-self: center; padding-top: 40px; width: min(260px, 60vw); }
.q-hook { position: absolute; left: -10%; right: -10%; top: 30px; height: 10px; background: var(--steel-2); border-radius: 2px; }
.quiet-carpet canvas { width: 100%; height: auto; box-shadow: 14px 20px 30px rgba(20, 35, 30, 0.22); transform-origin: 50% 0; }
html.anim .quiet-carpet canvas { animation: sway 7s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-0.6deg) skewX(0.4deg); } to { transform: rotate(0.6deg) skewX(-0.4deg); } }
.quiet h2 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); max-width: 14ch; }
.quiet-lines { list-style: none; margin: 1.2em 0 0; padding: 0; font-size: clamp(1.15rem, 1.6vw, 1.45rem); max-width: 30ch; }
.quiet-lines li { padding: 0.55em 0; border-top: 2px solid var(--wall-3); }
html.anim.desk .quiet { padding: 0; }
html.anim.desk .quiet-pin { height: 100vh; min-height: 640px; padding-top: var(--head); }

/* ---------- kinds ---------- */
.kinds-head p { max-width: 52ch; color: var(--on-oil-2); }
.kinds-track { display: flex; gap: clamp(28px, 4vw, 64px); padding: 2rem var(--gut) 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--gut); position: relative; align-items: flex-start; }
.kinds-track::before { content: ''; position: absolute; left: 0; top: 2rem; height: 10px; width: var(--track-w, 100%); background: var(--steel); }
.kind { flex: 0 0 clamp(250px, 26vw, 340px); scroll-snap-align: start; padding-top: 10px; }
.kind-hang { position: relative; height: 240px; display: flex; justify-content: center; align-items: flex-start; padding-top: 22px; margin-bottom: 18px; }
.kind-hang::before { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 26px; background: var(--steel-3); }
.kind-hang canvas { max-height: 210px; width: auto; box-shadow: 10px 16px 22px rgba(0, 0, 0, 0.32); transform-origin: 50% 0; }
html.anim .kind-hang canvas { animation: sway 6s ease-in-out infinite alternate; }
.kind:nth-child(2n) .kind-hang canvas { animation-delay: -2.5s; }
.kind h3 { font-size: 1.45rem; font-weight: 800; margin-bottom: 0.35em; }
.kind p { font-size: 0.98rem; }
.kind-photo { margin: 0 0 1em; }
.kind-photo img { width: 100%; height: 100px; object-fit: cover; border-radius: 3px; }
.kind-photo figcaption { font-size: 0.75rem; color: var(--on-oil-2); margin-top: 4px; }
html.anim.desk .areas { padding-block: calc(var(--head) + 4vh) 3vh; min-height: 100vh; }
html.anim.desk .kinds { padding: 0; }
html.anim.desk .kinds-pin { height: 100vh; min-height: 680px; padding-top: calc(var(--head) + 3vh); overflow: hidden; }
html.anim.desk .kinds-head h2 { max-width: none; }
html.anim.desk .kinds-track { overflow: visible; scroll-snap-type: none; padding-right: 30vw; width: max-content; }

/* ---------- stains ---------- */
.stains-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.stains-copy p { max-width: 44ch; color: var(--ink-2); }
.stain-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.6rem; }
.stain-tabs button { border: 2px solid var(--ink); background: transparent; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.stain-tabs button[aria-selected="true"] { background: var(--ink); color: var(--tag); }
.stain-tabs button:hover { border-color: var(--amber); }
.stain-panel { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; background: var(--wall-2); padding: 26px; border-radius: 6px; }
.stain-patch { width: 180px; height: 180px; border-radius: 3px; box-shadow: 6px 10px 16px rgba(20, 35, 30, 0.2); }
.stain-steps { margin: 0; padding-left: 1.3em; }
.stain-steps li { margin-bottom: 0.6em; }
.stain-dont { grid-column: 1 / -1; margin: 0; border-top: 2px solid var(--steel); padding-top: 12px; font-weight: 600; }
.stain-dont b { color: #8a2a12; }

/* ---------- care ---------- */
.table-scroll { overflow-x: auto; margin-top: 1.6rem; }
.care-table, .route-table, .rate-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.care-table th, .care-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-top: 1px solid rgba(238, 240, 234, 0.25); }
.care-table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-oil-2); border-top: 0; padding-bottom: 10px; }
.care-table tbody th { font-weight: 800; white-space: nowrap; width: 14em; }
.care-table td:last-child { color: var(--on-oil-2); width: 38%; }
.care-table td { min-width: 16em; }

/* ---------- areas ---------- */
.area-sub { max-width: 60ch; color: var(--ink-2); }
.route { overflow-x: auto; margin: 2.2rem 0 0; padding-bottom: 6px; }
.route-inner { position: relative; min-width: 780px; padding-top: 38px; }
.van { position: absolute; top: 0; left: -9px; width: 48px; }
.van svg { width: 48px; height: 28px; display: block; }
.route-stops button.here::before { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(201, 96, 14, 0.25); }
.route-table tr.here th { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 0.25em; }
.route-stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); position: relative; min-width: 780px; }
.route-stops::before { content: ''; position: absolute; left: 0; right: 0; top: 15px; height: 6px; background: var(--steel); border-radius: 3px; }
.route-stops button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-weight: 800; font-size: 1.08rem; width: 100%; }
.route-stops button::before { content: ''; width: 30px; height: 30px; border-radius: 50%; margin-top: 3px; background: var(--wall); border: 4px solid var(--steel); box-sizing: border-box; }
.route-stops button[aria-pressed="true"]::before { background: var(--tag); }
.route-stops .rdays { font: 400 0.78rem var(--mono); color: var(--ink-2); }
.route-table { margin-top: 0.6rem; }
.route-table th, .route-table td { padding: 8px 8px; border-bottom: 1px solid var(--wall-3); text-align: center; }
.route-table th:first-child, .route-table td:first-child { text-align: left; }
.route-table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.route-table tbody th { font-weight: 700; text-align: left; }
.route-table tr.sel { background: var(--tag-3); }
.rd { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--steel); border-radius: 3px; vertical-align: middle; }
.rd.on { background: var(--oil); border-color: var(--oil); }

/* ---------- prices ---------- */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.price-copy p { max-width: 44ch; color: var(--steel-4); }
.price-terms { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.price-terms li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(238, 240, 234, 0.25); }
.price-terms b { color: var(--tag); }
.board { background: var(--steel-2); padding: 22px 24px; border-radius: 6px; box-shadow: inset 0 0 0 3px #3a4045; }
.rate-table caption { text-align: left; font-size: 0.85rem; color: var(--steel-4); margin-bottom: 10px; }
.rate-table th, .rate-table td { padding: 11px 0; border-bottom: 1px solid rgba(238, 240, 234, 0.2); text-align: left; }
.rate-table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel-4); }
.rate-table tbody th { font-weight: 700; }
.rate-table td.num, .rate-table th.num { text-align: right; }
.rate-table td.num { font: 600 1.25rem var(--mono); color: var(--tag); }
.rate-table td.num small { font: 400 0.8rem 'Chivo', sans-serif; color: var(--steel-4); }

/* ---------- tracking ---------- */
.track-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.track-grid p { max-width: 44ch; color: var(--ink-2); }
.track-form { display: flex; gap: 10px; align-items: flex-end; max-width: 420px; }
.track-form .field { flex: 1; }
.track-form .field input { background: #fff; }
.track-msg { margin-top: 12px; font-weight: 700; color: var(--ink) !important; min-height: 1.5em; }
.track-rail ol { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.track-rail ol::before { content: ''; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 6px; background: var(--steel); border-radius: 3px; }
.track-rail li { position: relative; padding: 7px 0 7px 46px; font-weight: 600; color: var(--ink-2); }
.track-rail li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 24px; height: 24px; border-radius: 50%; background: var(--wall); border: 4px solid var(--steel); box-sizing: border-box; }
.track-rail li.done::before { background: var(--steel); }
.track-rail li.on { color: var(--ink); font-weight: 800; }
.track-rail li.on::before { background: var(--tag); border-color: var(--amber); }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); }
.faq-list details { border-top: 2px solid rgba(238, 240, 234, 0.3); }
.faq-list details:last-child { border-bottom: 2px solid rgba(238, 240, 234, 0.3); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 700; font-size: 1.15rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 18px; height: 3px; background: var(--tag); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0); }
.faq-list details p { max-width: 62ch; color: var(--on-oil-2); padding-bottom: 18px; margin: 0; }

/* ---------- order ---------- */
.order-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.order-copy p { max-width: 44ch; color: var(--ink-2); }
.order-tag { position: relative; isolation: isolate; margin-top: 2rem; padding: 34px 22px 22px; max-width: 360px; filter: drop-shadow(0 12px 18px rgba(16, 32, 26, 0.22)); }
.order-tag::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tag); clip-path: polygon(26px 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%, 0 26px); }
.order-tag::after { content: ''; position: absolute; left: 50%; top: 10px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--wall); box-shadow: 0 0 0 3px #b08900; }
.order-tag dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 0.9rem; }
.order-tag dt { font-weight: 700; }
.order-tag dd { margin: 0; font-family: var(--mono); }
.order-tag .ot-no { font: 600 1.3rem var(--mono); margin-bottom: 12px; display: block; }
.order-form { display: grid; gap: 14px; background: var(--wall-2); padding: clamp(18px, 3vw, 32px); border-radius: 6px; }
.order-form .field input, .order-form .field select, .order-form .field textarea { background: #fff; }
.order-form .field [aria-invalid="true"] { border-color: #a3260d; box-shadow: 0 0 0 2px #a3260d; }
.field .err { color: #8f1f0a; font-weight: 600; font-size: 0.8rem; }
.f-row { border: 0; padding: 0; margin: 0; min-width: 0; }
.f-carpets { list-style: none; margin: 0 0 8px; padding: 0; border-top: 2px solid var(--ink); }
.f-carpets li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--wall-3); font-size: 0.92rem; }
.f-carpets li span:last-child { font-family: var(--mono); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }
.form-errors { margin: 0; padding: 12px 14px; background: #fbe6df; color: #7c1b08; border-radius: 4px; font-weight: 700; }
.summary { margin-top: 2.4rem; background: var(--steel); color: var(--on-oil); padding: clamp(18px, 3vw, 32px); border-radius: 6px; }
.summary h3 { font-size: 1.5rem; margin-bottom: 0.6em; }
.sum-text { white-space: pre-wrap; font-size: 0.9rem; line-height: 1.6; margin: 0 0 16px; background: var(--steel-2); padding: 16px; border-radius: 4px; overflow-x: auto; }
.sum-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.summary .go { background: var(--tag); color: var(--ink); }
.summary .tiny { color: var(--steel-4); margin: 0; }

/* ---------- footer: the floor ---------- */
.foot { position: relative; background: var(--steel); color: var(--on-oil); padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-rail { height: 10px; background: linear-gradient(#5b636a, #2b2f33 45%, #1d2023); margin-bottom: 4rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(24px, 4vw, 64px); }
.plate.big { display: inline-flex; flex-direction: column; margin-bottom: 1rem; padding: 10px 22px 8px; }
.plate.big .plate-name { font-size: 1.6rem; }
.foot-brand p:not(.plate) { color: var(--steel-4); max-width: 36ch; }
.foot-facts { margin: 0; display: grid; gap: 12px; }
.foot-facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel-4); }
.foot-facts dd { margin: 2px 0 0; color: var(--tag); }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { font-weight: 600; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--tag); }
.foot-base { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 3.5rem; padding-top: 18px; border-top: 1px solid rgba(238, 240, 234, 0.2); font-size: 0.85rem; color: var(--steel-4); flex-wrap: wrap; }
.foot-base p { margin: 0; max-width: 70ch; }
.foot-tools { display: flex; gap: 10px; }
.foot .tool { border-color: var(--steel-3); color: var(--on-oil); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(320px, 370px); }
  .hero-copy { grid-column: 1 / -1; padding-top: 32px; }
  .hero-copy h1 { max-width: 16ch; }
  .hero-rail { grid-column: 1; grid-row: 2; min-height: 560px; }
  .tag { grid-column: 2; grid-row: 2; margin-top: 50px; }
  .hero { background: linear-gradient(var(--wall) 0, var(--wall) calc(100% - 230px), var(--oil-2) calc(100% - 230px), var(--oil-2) calc(100% - 224px), var(--oil) calc(100% - 224px)); }
  .nav { display: none; }
}
@media (max-width: 860px) {
  :root { --head: 66px; }
  .head-in { height: 54px; gap: 10px; }
  .plate { padding: 5px 12px 4px; }
  .plate-name { font-size: 0.98rem; }
  .tag-btn { padding: 0 12px 0 26px; height: 38px; font-size: 0.92rem; }
  .tool { min-width: 38px; height: 38px; }
  .hero { min-height: 0; background: var(--wall); }
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 40px; }
  .hero-copy, .hero-rail, .tag { grid-column: 1; grid-row: auto; }
  .hero-rail { min-height: 380px; margin: 0 calc(-1 * var(--gut)); background: linear-gradient(var(--wall) 0, var(--wall) 64%, var(--oil-2) 64%, var(--oil-2) calc(64% + 5px), var(--oil) calc(64% + 5px)); }
  .tag { margin-top: 40px; }
  .tag::after { top: -30px; height: 40px; }
  #railCanvas { z-index: 2; }
  .measure-grid, .compare-grid, .stains-grid, .price-grid, .track-grid, .faq-wrap, .order-grid, .quiet-pin { grid-template-columns: minmax(0, 1fr); }
  .route-line { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .route-line::before { left: 11px; right: auto; width: 6px; top: 0; bottom: 0; height: auto; }
  .route-line li { padding: 0 0 0 48px; }
  .stations { grid-template-columns: minmax(0, 1fr); }
  .station { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); gap: 16px; }
  .stain-panel { grid-template-columns: minmax(0, 1fr); }
  .stain-patch { width: 100%; height: 140px; }
  .care-table thead { display: none; }
  .care-table, .care-table tbody, .care-table tr, .care-table th, .care-table td { display: block; width: auto; min-width: 0; }
  .care-table tr { padding: 14px 0; border-top: 1px solid rgba(238, 240, 234, 0.25); }
  .care-table th, .care-table td { border: 0; padding: 2px 0; }
  .care-table tbody th { white-space: normal; color: var(--tag); }
  .care-table td:last-child { width: auto; font-size: 0.92rem; }
  .rail-flat .flat-rail { left: 0; right: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .mt-controls { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mt-controls .go { grid-column: 1 / -1; }
  .quiet-carpet { width: min(200px, 54vw); }
}
@media (max-width: 420px) {
  .head-tools .tool[data-motion-toggle] { display: none; }
  .ct-head, .ct-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 3.4em 30px; }
  .ct-head > :nth-child(3), .ct-row > .ty { display: none; }
  .days { gap: 3px; }
  .day small { font-size: 0.69rem; letter-spacing: 0; }
}
html:not(.anim) *, html:not(.anim) *::before, html:not(.anim) *::after { animation: none !important; transition: none !important; }
