/* theRhea, direction five ("House"): the shop floor and the workroom under one roof.
   Host Grotesk + Noto Sans Georgian for the interface, Zodiak + Noto Serif Georgian for headings.
   Photographs are 4:5 everywhere and meet edge to edge in editorial spreads. */
@font-face { font-family: "Zodiak"; src: url("../shared/fonts/zodiak/Zodiak-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("../shared/fonts/zodiak/Zodiak-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --paper: #ffffff;
  --plate: #f2eee9;
  --ivory: #efeae3;
  --choc: #2a1e18;
  --bone: #f1ebe2;
  --bone-mut: #c3b5a6;
  --ink: #1c1916;
  --muted: #645e58;
  --rule: #ddd6ce;
  --rule-dark: #4a3a31;
  --thread: #a11d2b;
  --sans: "Host Grotesk", "Noto Sans Georgian", system-ui, sans-serif;
  --serif: "Zodiak", "Noto Serif Georgian", Georgia, serif;
  --gut: clamp(16px, 2.2vw, 32px);
  --hd: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (max-width: 900px) { :root { --hd: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.55 var(--sans); font-variant-numeric: lining-nums; }
html[lang="ka"] body { line-height: 1.65; }
html.menu-open, html.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--thread); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; }
.skip:focus { top: 8px; }
.mut { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }
.u { text-decoration: underline; text-underline-offset: 0.25em; }
.u:hover { text-decoration-color: var(--thread); }
#main:focus { outline: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--ink); color: #fff; text-decoration: none; font-size: 14.5px; border: 1px solid var(--ink); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.btn:hover { background: #000; }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.btn.light { background: var(--bone); color: var(--choc); border-color: var(--bone); }
/* hover turns the light button into its outline: readable on stone (ink text), noir and the dark tones (bone text) */
.btn.light:hover { background: var(--light-hover, #fff); border-color: var(--light-hover, #fff); }
.btn.line-light { background: transparent; color: var(--bone); border-color: var(--bone-mut); }
.btn.line-light:hover { border-color: var(--bone); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.acts { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.msg { min-height: 1.5em; font-size: 14px; }
.msg.is-error { color: var(--thread); }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: clamp(24px, 3.4vw, 56px); height: var(--hd); padding: 0 var(--gut); background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--rule); }
.logo { display: block; flex: none; padding: 10px 0; }
.logo img { width: 116px; height: auto; }
.mainnav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.mainnav a, .util .wide { font-size: 14px; text-decoration: none; white-space: nowrap; }
.mainnav a:hover, .util .wide:hover { text-decoration: underline; }
.mainnav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--thread); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
.util { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 1.8vw, 26px); }
.util .n, .side-head .n, .rack h2 .n { display: inline-block; min-width: 1.4em; color: var(--muted); font-variant-numeric: tabular-nums; }
.ico { display: none; position: relative; width: 44px; height: 44px; align-items: center; justify-content: center; }
.ico svg { width: 22px; height: 22px; }
.ico .badge { position: absolute; top: 7px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 10.5px; line-height: 16px; text-align: center; }
.ico .badge:empty, .ico .badge[data-zero] { display: none; }
@media (max-width: 900px) {
  .mainnav, .util .wide { display: none; }
  .ico { display: inline-flex; }
  .hd { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; }
  .hd .menu-btn { justify-self: start; margin-left: -10px; }
  .hd .logo { grid-column: 2; }
  .util { grid-column: 3; justify-self: end; gap: 0; margin: 0 -10px 0 0; }
  .logo img { width: 100px; }
}

/* menu (phones) */
.menu { position: fixed; inset: 0; z-index: 40; background: var(--paper); display: flex; flex-direction: column; padding: 0 var(--gut) 24px; overflow: auto; }
.menu[hidden] { display: none; }
.menu-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--hd); border-bottom: 1px solid var(--rule); }
.menu-top button { justify-self: start; }
.menu-top a { grid-column: 2; }
.menu-fit { padding: 4px 0 20px; font-size: 15px; }
.menu-fit a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.menu-fit .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.menu-top img { width: 100px; }
.menu-top button { min-height: 44px; font-size: 14px; text-decoration: underline; }
.menu ul { padding: 20px 0; }
.menu li a { display: block; padding: 10px 0; font: 300 1.75rem/1.25 var(--serif); text-decoration: none; }
html[lang="ka"] .menu li a { font-size: 1.4rem; line-height: 1.5; font-weight: 400; }
.menu li a .n { font: 400 15px/1 var(--sans); color: var(--muted); margin-left: 8px; }
.menu li a[aria-current="page"] { color: var(--thread); }
.menu-foot { margin-top: auto; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.menu-foot button { justify-self: start; min-height: 44px; text-decoration: underline; color: var(--ink); }

/* ---------- compact first screen ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px clamp(24px, 5vw, 80px); align-items: end; padding: 20px var(--gut) 18px; }
.intro h1 { font: 400 clamp(1.8rem, 2.6vw, 2.6rem)/1.06 var(--serif); letter-spacing: -0.012em; margin-bottom: 8px; }
html[lang="ka"] .intro h1 { font-size: clamp(1.45rem, 2.1vw, 2.15rem); line-height: 1.25; letter-spacing: 0; }
.intro-a p { max-width: 48ch; color: var(--muted); }
.intro.slim { padding-bottom: 14px; }
.intro .prev { justify-self: end; font-size: 13px; }
.facts { margin: 0; font-size: 13.5px; }
.facts div { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 5px 0; border-top: 1px solid var(--rule); }
.facts div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; padding: 18px var(--gut) 16px; gap: 12px; }
  .intro .prev { justify-self: start; }
  .facts { font-size: 13px; }
  .facts div { padding: 4px 0; grid-template-columns: 7.2em 1fr; }
}

/* ---------- product cards ---------- */
.rowhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px var(--gut); border-top: 1px solid var(--rule); }
@media (max-width: 600px) { body[data-page="home"] .intro-a p { display: none; } }
.rowhead h2 { font: 500 15px/1.3 var(--sans); }
.rowhead a { font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 16px; padding: 0 var(--gut); }
.card .ph { display: block; position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--plate); }
.card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .ph .main { object-position: var(--pos, 50% 50%); transform: scale(var(--z, 1)); transform-origin: var(--pos, 50% 50%); }
.card .ph .alt { opacity: 0; transition: opacity 0.35s var(--ease); }
@media (hover: hover) { .card .ph:hover .alt, .card:focus-within .ph .alt { opacity: 1; } }
.cap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px; padding-top: 10px; font-size: 13.5px; line-height: 1.45; }
.cap .no { color: var(--muted); font-variant-numeric: tabular-nums; }
.cap h2, .cap h3 { font: inherit; grid-column: 2 / 4; }
.cap :is(h2, h3) a { text-decoration: none; }
.cap :is(h2, h3) a:hover { text-decoration: underline; }
.cap .pr { grid-column: 2; color: var(--muted); }
.fitbtn { grid-column: 3; display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.fitbtn svg { width: 12px; height: 12px; flex: none; }
.fitbtn:hover { color: var(--ink); }
.fitbtn[aria-pressed="true"] { color: var(--thread); }
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
  .cap { font-size: 14px; }
  .cap :is(h2, h3) { min-height: calc(2 * 1.45em); }
  .fitbtn { grid-column: 2 / 4; justify-self: start; min-height: 40px; }
  .grid .fitbtn .lf { display: none; }
}
.fitbtn .ls { display: none; }
@media (max-width: 900px) { .grid .fitbtn .ls { display: inline; } }

/* ---------- edge-to-edge spreads and wall labels ---------- */
.shead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px clamp(24px, 5vw, 80px); align-items: end; padding: clamp(64px, 8vw, 120px) var(--gut) 28px; }
.shead h2 { font: 300 clamp(2rem, 3.4vw, 3.4rem)/1.02 var(--serif); letter-spacing: -0.015em; }
html[lang="ka"] .shead h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.22; letter-spacing: 0; font-weight: 400; }
.shead p { max-width: 46ch; color: var(--muted); }
@media (max-width: 900px) { .shead { grid-template-columns: 1fr; padding-top: 56px; } }


/* ---------- construction notes: a ruled ledger ---------- */
.ledger { margin: 0 var(--gut); border-top: 1px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: 48px minmax(0, 2.3fr) minmax(0, 2fr) minmax(0, 4fr) minmax(0, 2fr); gap: 0 clamp(16px, 2.4vw, 40px); align-items: start; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.ledger .no { font: 300 1.6rem/1 var(--serif); color: var(--thread); font-variant-numeric: tabular-nums; }
.ledger .crop { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--plate); }
.ledger .crop img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transform: scale(1.9); transform-origin: var(--pos); }
.ledger h3 { font: 300 clamp(1.4rem, 2vw, 1.9rem)/1.1 var(--serif); }
html[lang="ka"] .ledger h3 { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.35; font-weight: 400; }
.ledger .piece { color: var(--muted); font-size: 13.5px; margin-top: 8px; }
.ledger p.d { max-width: 52ch; }
.ledger .acts { flex-direction: column; align-items: start; gap: 6px; font-size: 14px; }
@media (max-width: 900px) {
  .ledger li { grid-template-columns: 34% 1fr; gap: 10px 16px; }
  .ledger .no { display: none; }
  .ledger .crop { grid-row: 1 / 4; }
  .ledger .acts { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- the suit: the one dark band on the home page ---------- */

/* size chips */
.sizes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-left: 1px solid var(--rule); }
.size { position: relative; display: block; }
.size input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.size span { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; border: 1px solid var(--rule); border-left: 0; font-size: 14px; font-variant-numeric: tabular-nums; transition: background 0.15s var(--ease), color 0.15s var(--ease); }
.size small { font-size: 11px; color: var(--muted); }
.size input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.size input:checked + span small { color: #d9d2ca; }
.size input:focus-visible + span { outline: 2px solid var(--thread); outline-offset: -2px; }
.size:hover span { background: var(--plate); }
.size input:checked + span:hover { background: var(--ink); }

/* ---------- the cutting table draws itself once, when it comes into view ---------- */
.nest-sizes { margin-bottom: 20px; }
.table-wrap { overflow-x: auto; }
.mtable { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.mtable caption { text-align: left; color: var(--muted); padding-bottom: 8px; font-size: 13px; }
.mtable th, .mtable td { padding: 7px 6px; text-align: right; border-bottom: 1px solid var(--rule); font-weight: 400; }
.mtable th[scope="row"] { text-align: left; color: var(--muted); }
.mtable .sel, .mtable tr.sel th, .mtable tr.sel td { color: var(--thread); font-weight: 600; }
.pc { fill: none; stroke: #8f867d; stroke-width: 0.9; vector-effect: non-scaling-stroke; transition: stroke 0.25s var(--ease); }
.pc.sel { stroke: var(--thread); stroke-width: 1.8; }
.pm { fill: none; stroke: var(--ink); stroke-width: 0.9; vector-effect: non-scaling-stroke; }
.pl { font: 500 2.1px/1 var(--sans); fill: var(--ink); }
.pl.s { font-size: 1.6px; fill: var(--muted); }

/* ---------- lookbook pair: one large, one small, offset ---------- */

/* ---------- booking band ---------- */
.bookband { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(24px, 5vw, 80px); margin: clamp(72px, 9vw, 140px) var(--gut) 0; padding: 32px 0 clamp(48px, 6vw, 88px); border-top: 1px solid var(--ink); }
.bookband h2 { font: 300 clamp(1.9rem, 3vw, 2.9rem)/1.05 var(--serif); margin-bottom: 10px; letter-spacing: -0.012em; }
html[lang="ka"] .bookband h2 { font-size: clamp(1.5rem, 2.3vw, 2.2rem); line-height: 1.25; font-weight: 400; letter-spacing: 0; }
.bookband p { color: var(--muted); max-width: 46ch; }
.bb-act { display: grid; gap: 14px; justify-items: start; align-content: end; font-size: 14px; }
@media (max-width: 900px) { .bookband { grid-template-columns: 1fr; } }

/* ---------- footer: compact, two columns at every width ---------- */
.ft { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px var(--gut); padding: 28px var(--gut) calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); font-size: 13.5px; }
.ft-a { display: grid; gap: 4px; justify-items: start; }
.ft-a img { width: 88px; margin-bottom: 8px; }
.ft-a .ft-line { margin-bottom: 6px; }
.ft-a button { min-height: 32px; }
.ft-b { display: flex; flex-wrap: wrap; gap: 2px 22px; align-content: start; }
.ft-b li { break-inside: avoid; }
.ft-b a { display: inline-block; padding: 3px 0; text-decoration: none; }
.ft-b a:hover { text-decoration: underline; }
.ft-c { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12.5px; }
@media (max-width: 600px) { .ft-b { gap: 0 14px; } .ft { font-size: 13px; } }

/* ---------- side dialogs: bag and Fit Desk ---------- */
dialog.side { margin: 0 0 0 auto; width: min(520px, 100vw); height: 100dvh; max-height: none; max-width: none; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
dialog.side::backdrop { background: rgba(28, 25, 22, 0.38); }
.side-in { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 0 clamp(18px, 3vw, 32px) calc(28px + env(safe-area-inset-bottom)); }
.side-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: var(--hd); background: var(--paper); border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.side-head h2 { font: 500 15px/1.3 var(--sans); }
.side-head button { min-height: 44px; font-size: 14px; }
.bag-lines li { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.bag-lines img { width: 88px; aspect-ratio: 4 / 5; object-fit: cover; }
.bag-lines div { display: grid; align-content: start; gap: 2px; }
.bag-lines .chg { color: var(--thread); font-size: 13px; }
.bag-lines button { align-self: start; font-size: 13px; text-decoration: underline; min-height: 44px; padding: 0 4px; }
.bag-foot { display: grid; gap: 12px; padding-top: 20px; }
.bag-foot .sum { display: flex; justify-content: space-between; font-size: 15px; }

/* ---------- shop ---------- */
.controls { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; padding: 10px var(--gut) 14px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 24px; font-size: 14px; }
.ctl { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ctl.end { margin-left: auto; gap: 24px; }
.ctl-l { color: var(--muted); font-size: 13px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips button, .view button { min-height: 34px; padding: 0 11px; border: 1px solid transparent; font-size: 14px; white-space: nowrap; }
.chips button .c { color: var(--muted); margin-left: 4px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chips button:hover, .view button:hover { border-color: var(--rule); }
.chips button[aria-pressed="true"], .view button[aria-pressed="true"] { border-color: var(--ink); }
.view { display: flex; align-items: center; gap: 4px; }
.view .ctl-l { margin-right: 8px; }
.sort-sel { display: flex; align-items: center; gap: 8px; }
.sort-sel select { min-height: 34px; border: 1px solid var(--rule); background: var(--paper); padding: 0 8px; }
.works { width: calc(100% - 2 * var(--gut)); margin: 0 var(--gut); border-collapse: collapse; font-size: 14px; }
.works th { text-align: left; font-weight: 400; color: var(--muted); font-size: 13px; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ink); }
.works td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.works td.no { color: var(--thread); font-variant-numeric: tabular-nums; width: 3em; }
.works td.th img { width: 52px; aspect-ratio: 4 / 5; object-fit: cover; }
.works td.th { width: 64px; }
.works td.pr, .works th.pr { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.works a { text-decoration: none; }
.works a:hover { text-decoration: underline; }
.empty { padding: 40px var(--gut); color: var(--muted); }
@media (max-width: 900px) {
  .controls { flex-direction: column; align-items: stretch; gap: 6px; padding-bottom: 10px; margin-bottom: 18px; }
  .controls > .ctl { min-width: 0; max-width: 100%; }
  .ctl { flex-wrap: wrap; gap: 4px 10px; }
  .ctl > .ctl-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ctl .chips { flex-wrap: wrap; gap: 4px; }
  .ctl.end { margin-left: 0; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
  .chips button, .view button { min-height: 38px; padding: 0 9px; font-size: 13.5px; }
  .view { flex-wrap: wrap; }
  .works .fab, .works .sil { display: none; }
}

/* ---------- product page ---------- */
.crumb { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 12px var(--gut); font-size: 13px; color: var(--muted); }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { color: var(--muted); }
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pdp > * { min-width: 0; }
.pdp > .gallery { grid-column: 1; grid-row: 1; }
.pdp > .info-wrap { grid-column: 2; grid-row: 1 / span 2; }
.pdp > #pnote { grid-column: 1; grid-row: 2; }
.info-wrap { position: relative; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; background: var(--plate); }
.shots figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.shots figure.solo { grid-column: 1 / -1; }
.shots figure.l { width: calc(100% + 1px); } /* one-pixel overlap: no hairline between paired photographs */
.shots img { width: 100%; height: 100%; object-fit: cover; }
.poses { display: none; }
.info { position: sticky; top: calc(var(--hd) + 16px); padding: 8px var(--gut) 40px clamp(24px, 4vw, 64px); display: grid; gap: 18px; }
.info.free { position: static; }
.info .no { color: var(--thread); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.info h1 { font: 400 clamp(1.8rem, 2.6vw, 2.5rem)/1.08 var(--serif); letter-spacing: -0.012em; margin-top: -10px; }
html[lang="ka"] .info h1 { font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.28; letter-spacing: 0; }
.info .price { display: flex; gap: 12px; align-items: baseline; font-size: 16px; margin-top: -8px; }
.info .price .mut { font-size: 13px; }
.colour { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.colour i { display: block; width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.18); }
.info legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.info .warn { color: var(--thread); font-size: 14px; min-height: 0; }
.info .warn:empty { display: none; }
/* v7.7: try it on yourself, on every piece */
.m-rail { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; margin: 4px 0; scrollbar-width: thin; }
.m-rail button { flex: 0 0 auto; display: grid; grid-template-columns: 34px auto; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; background: transparent; color: var(--bone); border: 1px solid var(--rule-dark); font-size: 13px; white-space: nowrap; cursor: pointer; }
.m-rail button[aria-pressed="true"] { border-color: var(--bone); background: rgba(241, 235, 226, 0.08); }
.m-rail button:focus-visible { outline: 2px solid var(--bone); outline-offset: 2px; }
.m-rail img { width: 34px; height: 42px; object-fit: cover; object-position: 50% 20%; }
.m-try-msg:empty { display: none; }
.m-sizeq { margin-top: 18px; font-size: 14px; }
.m-back { margin: 0 0 10px; font-size: 14px; }
/* the atelier's two services on every piece: a live video viewing, and a fitting at home in Tbilisi */
.svc { display: grid; border: 1px solid var(--rule); background: var(--paper); }
.svc-a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 18px; color: var(--ink); text-decoration: none; transition: background 0.2s var(--ease); }
.svc-a + .svc-a { border-top: 1px solid var(--rule); }
.svc-a:hover { background: var(--plate); }
.svc-a:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.svc-a b { display: block; font: 400 19px/1.2 var(--serif); }
.svc-a small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.svc-ic { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.svc-go { font-size: 18px; transition: transform 0.2s var(--ease); }
.svc-a:hover .svc-go { transform: translateX(3px); }
/* round 13: the atelier's own data on the product page, the comparison, and requests that reach the atelier */
.model-line { margin: 0; font-size: 14px; color: var(--muted); }
.bodies { display: flex; flex-wrap: wrap; gap: 8px; }
.bodies button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--rule); background: var(--paper); font-size: 14px; }
.bodies button[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.promise { margin: 0; }
.ask { margin: -4px 0 0; }
.atable th.on, .atable td.on { background: var(--ivory); font-weight: 600; }
.shots figure.motion { background: #121110; }
.shots figure.motion video { width: 100%; height: calc(100% - 30px); object-fit: contain; display: block; background: #121110; }
.shots figure.motion figcaption { height: 30px; padding: 6px 12px 0; color: #d8d2c8; }
.cmp { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); display: grid; gap: 12px; }
.cmp h3 { margin: 0; font: 400 22px/1.2 var(--serif); }
.cmp-res { margin: 8px 0 0; }
.cmp-res:focus { outline: none; }
.fitter { margin: 8px 0; }
.fitter-acts { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.req { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--rule); background: var(--paper); }
.req .acts { display: flex; flex-wrap: wrap; gap: 10px; }
.req-h { margin: 0; font-weight: 600; }
.req-h:focus { outline: none; }
.req-text { margin: 0; padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper); font: 400 14px/1.55 var(--sans); white-space: pre-wrap; overflow-wrap: anywhere; }
.req-off { margin: 0; padding: 12px 16px; border-left: 2px solid var(--thread); background: var(--ivory); font-size: 14px; }
.bk-for { margin: 0; padding: 12px 16px; border-left: 2px solid var(--ink); background: var(--ivory); font: 400 18px/1.3 var(--serif); }
.bk-note { margin: 10px 0 0; max-width: 56ch; }
.field textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #a69c92; background: var(--paper); font: inherit; font-size: 16px; resize: vertical; }
.field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 1px var(--ink); }
.fdslot { border: 1px solid var(--ink); padding: 16px 18px; display: grid; gap: 8px; }
.fdslot h2 { font: 500 15px/1.3 var(--sans); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fdslot h2 small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.fdslot p { font-size: 14px; color: var(--muted); }
.fdslot .acts { margin-top: 4px; }
.fdslot .verdict { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--thread); }
.fdslot .verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--thread); }
.info .buy { display: grid; grid-template-columns: 1fr; gap: 10px; }
.info .desc { font-size: 14.5px; }
.info .note { font-size: 13px; color: var(--muted); }
.acc details { border-top: 1px solid var(--rule); }
.acc details:last-child { border-bottom: 1px solid var(--rule); }
.acc summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; cursor: pointer; list-style: none; font-size: 14.5px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-size: 18px; color: var(--muted); }
.acc details[open] summary::after { content: "\2212"; }
.acc details > :not(summary) { padding-bottom: 14px; font-size: 14px; }
.acc details ul { display: grid; gap: 4px; }
.acc .mtable { margin-bottom: 10px; }
.pnote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: center; padding: 28px var(--gut) 0; }
.pnote .crop { position: relative; aspect-ratio: 1; overflow: hidden; }
.pnote .crop img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transform: scale(2.1); transform-origin: var(--pos); }
.pnote h2 { font: 500 13.5px/1.3 var(--sans); color: var(--muted); margin-bottom: 6px; }
.pnote h3 { font: 300 1.7rem/1.1 var(--serif); margin-bottom: 8px; }
html[lang="ka"] .pnote h3 { font-size: 1.3rem; line-height: 1.35; font-weight: 400; }
.with { margin-top: clamp(64px, 8vw, 112px); }
@media (max-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp > .gallery, .pdp > .info-wrap, .pdp > #pnote { grid-column: 1; grid-row: auto; }
  .poses { display: flex; gap: 2px; padding: 0 var(--gut) 8px; overflow-x: auto; scrollbar-width: none; }
  .poses button { min-height: 36px; padding: 0 12px; border: 1px solid var(--rule); font-size: 13px; white-space: nowrap; }
  .poses button[aria-current="true"] { border-color: var(--ink); }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--paper); }
  .shots figure { flex: 0 0 86%; scroll-snap-align: start; }
  .shots figure:only-child { flex-basis: 100%; }
  .shots figure.l { width: auto; }
  .info { position: static; padding: 20px var(--gut) 8px; }
  .pnote { grid-template-columns: 38% 1fr; }
}

/* Fit Desk */
.fd .side-head h2 { display: grid; gap: 2px; }
.fd .demo { display: block; font: 400 12.5px/1.4 var(--sans); color: var(--muted); }
.fd form { display: grid; gap: 20px; }
.fd .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; }
.field input { width: 100%; min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid #a69c92; background: var(--paper); font-size: 16px; font-variant-numeric: tabular-nums; }
.field input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 1px var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--thread); }
.field small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.fd legend, .bookform legend { font-size: 14px; margin-bottom: 8px; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); font-size: 14px; }
.opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--thread); outline-offset: 2px; }
.opt:hover span { border-color: #a69c92; }
.opt.day span { display: grid; align-content: center; gap: 0; min-width: 72px; line-height: 1.25; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; align-items: start; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.fd .err { color: var(--thread); font-size: 14px; }
.fd .err:empty { display: none; }
.ticket { border: 1px solid var(--ink); margin-top: 8px; }
.ticket .t-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--ink); font-size: 13px; }
.ticket .t-head .route { color: var(--thread); }
.ticket .t-body { padding: 18px 16px; display: grid; gap: 12px; }
.ticket h3 { font: 400 clamp(1.6rem, 4vw, 2rem)/1.1 var(--serif); }
html[lang="ka"] .ticket h3 { font-size: 1.45rem; line-height: 1.3; }
.ticket .order { border-top: 1px dashed transparent; display: grid; gap: 6px; padding: 12px 14px; background: var(--ivory); font-size: 14px; }
.ticket .order b { font-weight: 600; color: var(--thread); font-variant-numeric: tabular-nums; }
.ticket .t-acts { display: grid; gap: 10px; padding: 0 16px 18px; }
.ticket .t-foot { padding: 10px 16px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }
.fd details { margin-top: 18px; border-top: 1px solid var(--rule); }
.fd details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 14px; }
.fd .again { margin-top: 16px; font-size: 14px; min-height: 44px; }

/* ---------- atelier / made to measure ---------- */
.table-sec { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px clamp(24px, 4vw, 64px); padding: clamp(72px, 9vw, 140px) var(--gut) 0; }
.rail { padding-top: 28px; display: grid; gap: 12px; align-content: start; }
.rail h2 { font: 300 clamp(1.7rem, 2.6vw, 2.5rem)/1.05 var(--serif); }
html[lang="ka"] .rail h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.25; font-weight: 400; }
.rail p { color: var(--muted); }
.board { background: var(--paper); border: 1px solid var(--rule); padding: clamp(20px, 4vw, 56px); margin: 0 calc(var(--gut) * -1) 0 0; }
.board svg { display: block; width: 100%; height: auto; max-height: 76vh; margin: 0 auto; overflow: visible; }
.board .pc { stroke: var(--ink); vector-effect: none; }
.board .pc.cut { stroke-width: 0.3; }
.board .pm { stroke-width: 0.14; vector-effect: none; stroke: var(--thread); }
.board .pm.roll { stroke-dasharray: 0.9 0.7; }
.draw .pc.cut, .draw .pm:not(.roll) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawline 1.8s var(--ease) forwards; }
.draw .pm.roll, .draw .pl { opacity: 0; animation: fadein 0.6s 1.4s forwards; }
.draw .p2 .pc.cut { animation-delay: 0.35s; }
.draw .p3 .pc.cut { animation-delay: 0.7s; }
.draw .pm { animation-delay: 1.1s; animation-duration: 1s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: clamp(72px, 9vw, 140px); background: var(--choc); color: var(--bone); }
.story-in { padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 80px) clamp(40px, 6vw, 96px) var(--gut); display: grid; gap: 16px; align-content: center; }
.story h2 { font: 300 clamp(2rem, 3.4vw, 3.4rem)/1.02 var(--serif); margin-bottom: 4px; }
html[lang="ka"] .story h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.22; font-weight: 400; }
.story p { color: var(--bone-mut); max-width: 50ch; }
.facts.dark div { border-color: var(--rule-dark); }
.facts.dark dt { color: var(--bone-mut); }
.terms { margin: clamp(56px, 6vw, 96px) var(--gut) 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(24px, 5vw, 80px); padding-top: 28px; border-top: 1px solid var(--rule); }
.terms h2 { font: 300 clamp(1.7rem, 2.6vw, 2.5rem)/1.05 var(--serif); grid-row: 1 / 3; }
html[lang="ka"] .terms h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.25; font-weight: 400; }
.ruled { margin: 0; }
.ruled div { display: grid; grid-template-columns: minmax(8em, 0.4fr) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.ruled dt { font-weight: 500; }
.ruled dd { margin: 0; color: var(--muted); }
.terms > p { font-size: 13.5px; max-width: 70ch; grid-column: 2; }
@media (max-width: 900px) {
  .table-sec { grid-template-columns: 1fr; }
  .board { margin: 0 calc(var(--gut) * -1); }
  .story { grid-template-columns: 1fr; }
  .story-in { padding: 40px var(--gut); }
  .terms { grid-template-columns: 1fr; }
  .terms h2 { grid-row: auto; }
  .terms > p { grid-column: auto; }
  .ruled div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- lookbook ---------- */
.chap { scroll-margin-top: var(--hd); }

/* ---------- booking ---------- */
.bookgrid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 6vw, 112px); padding: 24px var(--gut) 0; border-top: 1px solid var(--rule); }
.rack h2 { font: 500 15px/1.3 var(--sans); margin-bottom: 12px; }
.rack ul { display: grid; gap: 0; border-top: 1px solid var(--ink); margin-bottom: 16px; }
.rack li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 14px; align-items: start; }
.rack li img { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; }
.rack li div { display: grid; gap: 2px; }
.rack .badge2 { color: var(--thread); font-size: 13px; }
.rack li button { font-size: 13px; text-decoration: underline; min-height: 32px; }
.rack .empty-r { color: var(--muted); padding: 16px 0; border-top: 1px solid var(--ink); margin-bottom: 16px; }
.bookform { display: grid; gap: 24px; align-content: start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bookform .field input { min-height: 48px; padding: 0 12px; border: 1px solid #a69c92; font-size: 16px; }
.bookform .btn { justify-self: start; }
@media (max-width: 900px) { .bookgrid { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; } }

/* ---------- round 2: Fit Desk on the home page ---------- */
.fdhome { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: clamp(72px, 9vw, 140px); background: var(--paper); }
.fdh-ph { position: relative; overflow: hidden; }
.fdh-ph a { display: block; height: 100%; }
.fdh-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; aspect-ratio: 4 / 5; }
.fdh-in { padding: clamp(36px, 5vw, 80px) var(--gut) clamp(36px, 5vw, 72px) clamp(24px, 5vw, 80px); display: grid; gap: 18px; align-content: start; max-width: 760px; }
.fdh-in .kicker { font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fdh-in .kicker > span:first-child { color: var(--thread); font-weight: 500; }
.fdh-in h2 { font: 300 clamp(2rem, 3.4vw, 3.4rem)/1.02 var(--serif); letter-spacing: -0.015em; }
html[lang="ka"] .fdh-in h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.22; font-weight: 400; letter-spacing: 0; }
.fdh-in .lede { color: var(--muted); max-width: 56ch; }
.exs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.ex { display: grid; gap: 2px; text-align: left; padding: 10px 12px; min-height: 56px; border: 1px solid var(--rule); background: var(--paper); font-size: 13.5px; }
.ex b { font-weight: 500; font-variant-numeric: tabular-nums; }
.ex span { color: var(--muted); font-size: 12.5px; }
.ex:hover { border-color: #a69c92; }
.ex[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.ex-empty { font-size: 14px; padding: 6px 0; }
#fd-ex-out .ticket { background: var(--paper); }
@media (max-width: 900px) { .fdhome { grid-template-columns: 1fr; } .fdh-ph img { aspect-ratio: 4 / 3; object-position: 50% 62%; } .exs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the ticket: a workroom order, with the reason drawn */
.ticket .t-head { flex-wrap: wrap; }
.ticket .chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border: 1px solid var(--thread); color: var(--thread); font-size: 12px; }
.ticket .t-p { flex: 1; min-width: 0; }
#fd-h:focus, .ticket:focus { outline: none; }
@media (max-width: 600px) { .ticket .t-head { gap: 6px 10px; } .ticket .t-p { flex-basis: 100%; order: 3; } .ticket .route { margin-left: auto; } }
.ticket .order p { display: grid; gap: 2px; }
.ticket .order p span { color: var(--muted); font-size: 13px; }
.meters { display: grid; gap: 14px; padding-top: 4px; }
.meter-row { display: grid; gap: 6px; }
.m-k { font-size: 13.5px; font-weight: 500; }
.m-k .mut { font-weight: 400; }
.meter { position: relative; height: 18px; border-bottom: 1px solid var(--rule); }
.meter span { position: absolute; }
.m-win { top: 0; height: 18px; background: rgba(161, 29, 43, 0.12); border-left: 1px solid var(--thread); border-right: 1px solid var(--thread); }
.m-tgt { top: 0; height: 18px; width: 1px; background: var(--thread); }
.m-you { top: 6px; height: 6px; background: var(--ink); }
.m-you.ghost { background: transparent; border: 1px dashed #8f867d; }
.fdhome .ticket.compact .m-l, .fdhome .ticket.compact .t-foot { display: none; }
.m-l { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-l span::before { content: ""; display: inline-block; width: 10px; height: 6px; margin-right: 6px; vertical-align: middle; }
.m-l .k-win::before { background: rgba(161, 29, 43, 0.12); border: 1px solid var(--thread); }
.m-l .k-you::before { background: var(--ink); }
.m-l .k-you.ghost::before { background: transparent; border: 1px dashed #8f867d; }
.m-l .k-after::before { background: var(--ink); box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--thread); }
.ticket .why { margin: 0; border-top: 1px solid var(--rule); padding: 0 16px 10px; }
.ticket .why summary { font-size: 13.5px; }
.ticket .why .table-wrap { margin-bottom: 8px; }
.ticket .t-acts .msg { font-size: 13.5px; }

/* the measuring help inside Fit Desk */
.fd-lead { margin-bottom: 14px; }
.howto { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 14px; margin-bottom: 14px; background: var(--ivory); }
.dress { width: 96px; height: auto; }
.dress .df { fill: none; stroke: #8f867d; stroke-width: 1.2; }
.dress .ml { fill: none; stroke: var(--thread); stroke-width: 1.6; }
.dress .dim { fill: none; stroke: var(--ink); stroke-width: 0.9; }
.dress .mn, .dress .dt { font: 600 10px/1 var(--sans); fill: var(--thread); }
.dress .dt { fill: var(--ink); font-weight: 400; }
.howto ol { display: grid; gap: 8px; font-size: 13.5px; }
.howto li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.howto li b { color: var(--thread); }
.fill-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 16px; }
.fill-ex button { min-height: 32px; font-variant-numeric: tabular-nums; }
.method-note { margin-top: 8px; max-width: 54ch; }
.stale { padding: 14px 16px; margin-top: 16px; border: 1px solid var(--thread); color: var(--thread); font-size: 14px; }

/* the product slot, once Fit Desk has answered */
.fdslot.live { background: var(--paper); border-color: var(--rule); }
.slot-res { display: grid; gap: 6px; justify-items: start; padding: 10px 0 2px; border-top: 1px solid var(--rule); }
.slot-res .chg { color: var(--thread); font-size: 14px; }
.saved-link { font-size: 13.5px; }
.saved-link:empty { display: none; }

/* phones: a buy bar once the add-to-bag button has scrolled away */
.buybar { display: none; }
@media (max-width: 900px) {
  .buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.98); border-top: 1px solid var(--rule); transform: translateY(110%); visibility: hidden; transition: transform 0.25s var(--ease), visibility 0s 0.25s; }
  .buybar.show { transform: none; visibility: visible; transition: transform 0.25s var(--ease); }
  .buybar .bb-t { display: grid; font-size: 13.5px; min-width: 0; }
  .buybar .bb-t b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .buybar .btn { min-height: 44px; flex: none; }
}
.buybar[hidden] { display: none !important; }

/* the steel spread: each look can turn to its second photograph, against the same shutter */

/* the booking rack: a size can be set here; suggestions when it is empty */
.rsize { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.rsize select { min-height: 36px; border: 1px solid var(--rule); background: var(--paper); padding: 0 6px; color: var(--ink); }
.rack .suggest { border-top: 1px solid var(--rule); margin-bottom: 16px; }
.rack .suggest li { grid-template-columns: 56px 1fr auto; align-items: center; }
.rack .suggest img { width: 56px; }
.rack h2:focus { outline: none; }

/* the cutting table: six sizes drawn over each other, the chosen one in ink */
.board .pg { fill: none; stroke: #b9b0a6; stroke-width: 0.12; }
.board .pc.cut { stroke: var(--ink); }
.board figcaption { font-size: 13px; color: var(--muted); padding-top: 12px; }
.rail .sizes { background: var(--paper); }
.rail .table-wrap { margin-top: 4px; }
@media (max-width: 900px) { .board .pl { display: none; } }

/* small states */
.noscript { margin: 16px var(--gut); padding: 14px 16px; border: 1px solid var(--rule); }
.notfound { grid-column: 1 / -1; display: grid; gap: 20px; justify-items: start; padding: 48px var(--gut) 96px; }
.notfound h1 { font: 400 clamp(1.6rem, 2.4vw, 2.2rem)/1.2 var(--serif); }
.empty { display: grid; gap: 16px; justify-items: start; }
.privacy .ptext { display: grid; gap: 10px; max-width: 64ch; font-size: 14.5px; }
.privacy .acts { grid-column: 2; }
@media (max-width: 900px) { .privacy .acts { grid-column: auto; } }

/* ---------- v7.2: grounds, italics, and the compositions taken from the four directions ---------- */
@font-face { font-family: "Zodiak"; src: url("../shared/fonts/zodiak/Zodiak-LightItalic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
:root { --noir: #141312; --rule-noir: #34302c; --thread-d: #e2737c; }
html[lang="ka"] { font-synthesis: none; }
/* a Latin line in Zodiak italic (Evening); Georgian stays upright, in Noto Serif Georgian */
.it { font: italic 300 clamp(1.05rem, 1.35vw, 1.3rem)/1.45 var(--serif); color: var(--muted); max-width: 46ch; }
html[lang="ka"] .it { font-style: normal; font-weight: 400; font-size: clamp(0.98rem, 1.1vw, 1.08rem); line-height: 1.7; }
.kicker { font-size: 13.5px; color: var(--thread); }
.sec-head h2, .walk-text h2, .night-text h2, .seq-text h2, .suit-head h2, .colophon h2 { font: 300 clamp(2rem, 3.4vw, 3.4rem)/1.02 var(--serif); letter-spacing: -0.015em; }
html[lang="ka"] :is(.sec-head, .walk-text, .night-text, .seq-text, .suit-head, .colophon) h2 { font-size: clamp(1.6rem, 2.6vw, 2.5rem); line-height: 1.22; font-weight: 400; letter-spacing: 0; }

/* round 20: the owner prefers a white ground ("თეთრი ფონი მირჩევნია"), after chocolate (round 14) and stone. The old
   tailoring sections (hero panel, story, suit sizer, lookbook chapters I and VI) keep their token names but are white:
   ink text, muted ink, quiet rules, the plate behind photographs. Tokens stay scoped to these sections, never :root
   (the noir sections and the camera page share --bone). The ?tone preview and tone.js are retired.
   Section transitions (round 15, rewritten in round 20). Grounds: white everywhere; noir for silk and the workroom
   drawing; ivory only inside small boxes (notes, tickets, tables), the plate only behind photographs.
   1. White meets white over a quiet full-width rule at the section step; the ink rule is kept for the booking band.
   2. White meets noir edge to edge, with no rule and no gap (home: the suit into "after dark").
   3. A small label that introduces the next section sits close to it, not midway (product: the chapter plaque and "worn with"). */
:is(.hero, .story, .suit, .lb-choc) { --choc: #fff; --bone: var(--ink); --bone-mut: var(--muted); --rule-dark: var(--rule); --thread-d: var(--thread); --stage: var(--plate); --choc-hover: var(--plate); --fr: var(--plate); --light-hover: #000; }
.suit + .night { margin-top: 0; }
.plaque + .with { margin-top: clamp(28px, 3.5vw, 48px); }
.lb.lb-steel { padding-top: clamp(40px, 5vw, 72px); }
/* dark grounds: chocolate for tailoring, noir for silk and the workroom drawing */
.night, .lb-noir, .seq { background: var(--noir); color: var(--bone); }
.lb-choc { background: var(--choc); color: var(--bone); }
.lb-ivory { background: var(--paper); }
:is(.night, .lb-noir, .lb-choc, .seq, .suit, .story) :is(.it, .mut, .lbl .no, .lbl .pr, .fitbtn) { color: var(--bone-mut); }
:is(.night, .lb-noir, .lb-choc, .seq, .suit, .story) .fitbtn[aria-pressed="true"] { color: var(--thread-d); }
:is(.night, .lb-noir, .lb-choc, .seq) :focus-visible { outline-color: var(--bone); }
:is(.night, .lb-noir, .lb-choc) figure .fr { background: var(--fr, #2b2724); }

/* the wall label (Gallery): number, name and price, the fitting button; inside its figure */
figure .fr { display: block; position: relative; overflow: hidden; background: var(--plate); }
figure .fr img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.lbl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 4px; align-items: start; padding-top: 10px; font-size: 13.5px; line-height: 1.45; }
.lbl .no { color: var(--muted); font-variant-numeric: tabular-nums; }
.lbl .lt { display: grid; }
.lbl .lt a { text-decoration: none; }
.lbl .lt a:hover { text-decoration: underline; }
.lbl .pr { color: var(--muted); }
.lbl .fitbtn { grid-column: 3; }
.lbl .turn, .lbl .look { grid-column: 2 / -1; justify-self: start; min-height: 32px; }
.fitbtn.s .lf { display: none; }
.fitbtn.s .ls { display: inline; }
.flush figure .lbl, .row3 figure .lbl { padding-left: 12px; padding-right: 12px; }
@media (max-width: 900px) { .lbl .fitbtn { grid-column: 2 / -1; justify-self: start; min-height: 36px; } .flush figure .lbl, .row3 figure .lbl { padding-left: 8px; padding-right: 8px; } }

/* ---------- home: two tailorings (Evening's wide duo, hung unevenly) ---------- */
.duo { padding: clamp(72px, 9vw, 140px) var(--gut) 0; }
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 4vw, 56px); }

/* the walk home (Evening): one frame, the coat seated, standing or close */
.walk { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 16px; padding: clamp(72px, 9vw, 140px) var(--gut) 0; align-items: start; }
.walk-text { grid-column: 1 / 6; display: grid; gap: 16px; align-content: start; justify-items: start; padding-right: clamp(0px, 3vw, 48px); }
.views { display: flex; flex-wrap: wrap; gap: 0; margin-top: 8px; }
.views button { min-height: 44px; padding: 0 2px; margin-right: 20px; border: 0; border-bottom: 1px solid transparent; font-size: 14px; color: var(--muted); }
.views button[aria-pressed="true"] { color: var(--ink); border-bottom: 2px solid var(--ink); }
@media (max-width: 900px) { .walk { grid-template-columns: 1fr; } .walk-text, .walk-stage { grid-column: auto; } .walk-pair { display: none; } }

/* black after dark (Evening): the noir ground, a small photograph hung high beside a large one */
.night { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 16px; margin-top: clamp(72px, 9vw, 140px); padding: clamp(56px, 7vw, 112px) var(--gut); align-items: start; }
.night-text { grid-column: 1 / 5; display: grid; gap: 16px; align-content: start; justify-items: start; }
.night .n-small { width: 78%; margin-top: 24px; }
.night .n-big { grid-column: 6 / 13; }
@media (max-width: 900px) {
  .night { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: 0 10px; }
  .night-text { display: contents; }
  .night-text > :is(h2, .it) { grid-column: 1 / -1; margin-bottom: 14px; }
  .night .n-small { grid-column: 1; grid-row: 3; width: auto; margin: 0; align-self: end; }
  .night .n-big { grid-column: 2; grid-row: 3; }
  .night-text > a { grid-column: 1 / -1; grid-row: 4; margin-top: 18px; justify-self: start; }
}

/* the Fit Desk section: a narrower photograph, the examples given the room */
.fdhome { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.ticket.compact .full { padding-top: 4px; }
@media (max-width: 900px) {
  .fdhome { grid-template-columns: 96px minmax(0, 1fr); gap: 0 14px; padding: 32px var(--gut); }
  .fdhome .fdh-in { display: contents; }
  .fdhome .fdh-ph { grid-row: 1 / 3; align-self: start; }
  .fdhome .fdh-ph img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
  .fdhome .kicker { grid-column: 2; align-self: end; }
  .fdhome h2 { grid-column: 2; }
  .fdhome .fdh-in > :not(.kicker):not(h2) { grid-column: 1 / -1; margin-top: 16px; }
}

/* ---------- the suit in two sizes (Evening): the jacket on one side of the photograph, the trousers on the other ---------- */
.suit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 1fr); grid-template-areas: "head head head" "left img right" "foot foot foot"; gap: 32px clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(72px, 9vw, 140px); padding: clamp(48px, 6vw, 96px) var(--gut); background: var(--choc); color: var(--bone); }
.suit[hidden] { display: none; }
.suit-head { grid-area: head; justify-self: center; text-align: center; display: grid; gap: 12px; justify-items: center; }
.suit-head .lede { color: var(--bone-mut); max-width: 46ch; }
.suit-side { grid-area: left; display: grid; gap: 14px; padding: 22px 0; border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark); }
.suit-side.right { grid-area: right; }
.suit-side h3.it { color: var(--bone); font-size: clamp(1.5rem, 2.2vw, 2rem); }
html[lang="ka"] .suit-side h3.it { font-size: 1.3rem; }
.suit-side .nm { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--bone-mut); }
.suit-side .nm a { color: var(--bone); text-decoration: none; }
.suit-side .nm a:hover { text-decoration: underline; }
.suit-side .sline { font-size: 13px; color: var(--bone-mut); }
.suit-side .sline:empty { display: none; }
.suit-ph { grid-area: img; }
.suit-ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.suit-foot { grid-area: foot; display: grid; justify-items: center; gap: 14px; text-align: center; }
.suit-total { display: flex; gap: 16px; align-items: baseline; }
.suit-total b { font: 300 2rem/1 var(--serif); font-variant-numeric: tabular-nums; }
.suit .msg { color: var(--bone-mut); }
.suit .msg a { color: var(--bone); }
.suit .sizes { border-left-color: var(--rule-dark); }
.suit .size span { border-color: var(--rule-dark); }
.suit .size:hover span { background: var(--choc-hover, #35281f); }
.suit .size input:checked + span { background: var(--bone); color: var(--choc); border-color: var(--bone); }
.suit :focus-visible { outline-color: var(--bone); }
@media (max-width: 1000px) {
  .suit { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "img" "left" "right" "foot"; gap: 24px; }
  .suit-ph { width: min(64%, 320px); justify-self: center; }
  .suit-side.right { border-top: 0; padding-top: 0; }
}

/* ---------- product: photographs open the viewer; the study band, the chapter plaque, the pairing ---------- */
.shot { display: block; position: relative; width: 100%; height: 100%; padding: 0; cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .hint { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; background: rgba(255, 255, 255, 0.94); font-size: 13px; opacity: 0; transition: opacity 0.2s var(--ease); }
@media (hover: hover) { .shot:hover .hint { opacity: 1; } }
.shot:focus-visible .hint { opacity: 1; }
@media (hover: none) { #shot-0 .shot .hint { opacity: 1; } }
.p-head { display: grid; gap: 6px; }
.p-head .no { color: var(--thread); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.p-head h1 { font: 400 clamp(1.8rem, 2.6vw, 2.5rem)/1.08 var(--serif); letter-spacing: -0.012em; }
html[lang="ka"] .p-head h1 { font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.28; letter-spacing: 0; }
.p-head .price { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.p-head .price .mut { font-size: 13px; }
@media (max-width: 900px) { .pdp > .p-head { padding: 4px var(--gut) 16px; } }
.study { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 5vw, 80px); align-items: center; margin-top: clamp(56px, 7vw, 112px); padding: clamp(40px, 5vw, 80px) var(--gut); background: var(--paper); }
.study[hidden] { display: none; }
.study .crop { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--plate); max-width: 520px; }
.study .crop img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transform: scale(2); transform-origin: var(--pos); }
.st-text { display: grid; gap: 14px; justify-items: start; max-width: 56ch; }
.st-text h2 { font: 300 clamp(1.6rem, 2.6vw, 2.4rem)/1.12 var(--serif); }
html[lang="ka"] .st-text h2 { font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.35; font-weight: 400; }
.roll { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.roll svg { width: 96px; height: auto; overflow: visible; }
.roll .pc { stroke: var(--ink); stroke-width: 1; }
.roll .rl { fill: none; stroke: var(--thread); stroke-width: 2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.plaque { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px clamp(20px, 3vw, 48px); align-items: center; margin: clamp(48px, 6vw, 88px) var(--gut) 0; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.plaque .num { font: 300 clamp(3rem, 5vw, 4.8rem)/0.9 var(--serif); color: var(--thread); font-variant-numeric: lining-nums; }
.plaque h2 { font: 400 clamp(1.3rem, 2vw, 1.8rem)/1.2 var(--serif); }
html[lang="ka"] .plaque h2 { font-size: 1.3rem; line-height: 1.4; }
.plaque > div { display: grid; gap: 4px; }
@media (max-width: 900px) { .study { grid-template-columns: 1fr; } .plaque { grid-template-columns: auto minmax(0, 1fr); } .plaque > a { grid-column: 1 / -1; } }
.with { margin-top: clamp(56px, 7vw, 112px); }

/* ---------- the viewer: look closer, on the largest file ---------- */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #f6f3ef; color: var(--ink); }
.viewer::backdrop { background: rgba(28, 25, 22, 0.6); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.vw-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 8px var(--gut); padding-top: calc(8px + env(safe-area-inset-top)); background: var(--paper); border-bottom: 1px solid var(--rule); }
.vw-bar h2 { font: 400 1.15rem/1.3 var(--serif); }
.vw-n { color: var(--muted); font-size: 13.5px; }
.vw-ctl { margin-left: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.vw-ctl button { min-height: 40px; min-width: 40px; padding: 0 12px; border: 1px solid var(--rule); background: var(--paper); font-size: 14px; }
.vw-ctl button:hover { border-color: var(--ink); }
.vw-ctl button.u { border-color: transparent; }
.vw-stage { position: relative; overflow: hidden; touch-action: none; cursor: zoom-in; }
.vw-stage.zoomed { cursor: grab; }
.vw-stage img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.vw-stage:focus-visible { outline-offset: -4px; }
.vw-hint { padding: 8px var(--gut) calc(8px + env(safe-area-inset-bottom)); font-size: 12.5px; color: var(--muted); }
@media (max-width: 600px) { .vw-ctl { margin-left: 0; width: 100%; } .vw-ctl button { flex: 1 1 auto; } }

/* ---------- shop: the closing card, the rooms, the list of works with its plate ---------- */
.mtm-card { grid-column: span 2; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(20px, 3vw, 40px); background: var(--paper); border: 1px solid var(--rule); }
.mtm-card h2 { font: 300 clamp(1.5rem, 2.2vw, 2.1rem)/1.12 var(--serif); margin-bottom: 8px; }
html[lang="ka"] .mtm-card h2 { font-size: 1.3rem; line-height: 1.4; font-weight: 400; }
.mtm-card p { color: var(--muted); max-width: 46ch; margin-bottom: 16px; }
.nest-mini { width: 100%; height: auto; overflow: visible; }
.nest-mini path { fill: none; stroke: #b9b0a6; stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.nest-mini path.sel { stroke: var(--thread); stroke-width: 1.5; }
@media (max-width: 900px) { .mtm-card { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; } }
@media (max-width: 600px) { .mtm-card { grid-template-columns: 1fr; } .mtm-card svg { width: 96px; height: auto; } }
.room { padding-top: clamp(40px, 5vw, 72px); }
.room:first-child { padding-top: 8px; }
.room-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 20px; align-items: baseline; padding: 0 var(--gut) 20px; }
.room-h .num { font: 300 clamp(2.4rem, 4vw, 3.8rem)/0.9 var(--serif); color: var(--thread); grid-row: 1 / 4; }
.room-h h2 { font: 400 clamp(1.3rem, 2vw, 1.8rem)/1.2 var(--serif); }
html[lang="ka"] .room-h h2 { font-size: 1.3rem; line-height: 1.4; }
.room-h a { justify-self: start; }
.works-wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(24px, 5vw, 80px); padding: 0 var(--gut); align-items: start; }
.works-idx { border-top: 1px solid var(--ink); }
.works-idx li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid var(--rule); padding-right: 8px; }
.works-idx li.cur { background: var(--plate); }
.works-idx li > a { display: grid; grid-template-columns: 3em minmax(0, 1fr) 8em 6.5em; gap: 12px; align-items: baseline; padding: 14px 0 14px 8px; text-decoration: none; font-size: 14.5px; }
.works-idx .th { display: none; }
.works-idx .no { color: var(--thread); font-variant-numeric: tabular-nums; }
.works-idx .nm small { display: block; color: var(--muted); font-size: 13px; }
.works-idx .sil { color: var(--muted); font-size: 13.5px; }
.works-idx .pr { text-align: right; font-variant-numeric: tabular-nums; }
.works-idx li > a:hover .nm, .works-idx li > a:focus-visible .nm { text-decoration: underline; }
.works-prev { position: sticky; top: calc(var(--hd) + 16px); display: grid; gap: 10px; }
.works-prev .plate { position: relative; aspect-ratio: 4 / 5; background: var(--plate); overflow: hidden; }
.works-prev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s var(--ease); }
.works-prev img.on { opacity: 1; }
.pv-cap { font-size: 13.5px; color: var(--muted); max-width: 52ch; }
@media (max-width: 900px) {
  .works-wrap { grid-template-columns: 1fr; padding: 0; }
  .works-prev { display: none; }
  .works-idx { margin: 0 var(--gut); }
  .works-idx li > a { grid-template-columns: 2.2em 44px minmax(0, 1fr) auto; align-items: center; padding-left: 0; }
  .works-idx .th { display: block; width: 44px; aspect-ratio: 4 / 5; object-fit: cover; }
  .works-idx .sil { display: none; }
  .works-idx li { padding-right: 0; }
}

/* ---------- atelier: the sequence drawing beside its four steps (Atelier) ---------- */
.seq { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px clamp(32px, 6vw, 112px); padding: clamp(56px, 7vw, 112px) var(--gut); align-items: start; }
.seq-text { display: grid; gap: 16px; align-content: start; }
.seq-steps { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--rule-noir); }
.seq-steps li { border-bottom: 1px solid var(--rule-noir); }
.seq-steps button { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; width: 100%; padding: 22px 0; text-align: left; color: var(--bone-mut); }
.seq-steps .i { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--bone-mut); border-radius: 50%; font-size: 14px; font-variant-numeric: tabular-nums; }
.seq-steps .st { display: grid; gap: 4px; }
.seq-steps b { font: 400 clamp(1.3rem, 2vw, 1.7rem)/1.2 var(--serif); color: var(--bone); }
html[lang="ka"] .seq-steps b { font-size: 1.2rem; line-height: 1.4; }
.seq-steps button[aria-pressed="true"] { color: var(--bone); }
.seq-steps button[aria-pressed="true"] .i { background: var(--bone); color: var(--noir); border-color: var(--bone); }
.seq-steps button:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.seq .price { color: var(--bone-mut); font-size: 14px; padding-top: 8px; }
.seq-fig { position: sticky; top: calc(var(--hd) + 24px); display: grid; gap: 12px; justify-items: center; }
.seq-fig svg { width: 100%; height: min(70vh, 640px); overflow: visible; }
.seq-fig figcaption { font-size: 13px; color: var(--bone-mut); }
.seq .pc { fill: none; stroke: var(--bone); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.seq .layer { opacity: 0; transition: opacity 0.5s var(--ease); }
.seq-fig[data-step="1"] .l1, .seq-fig[data-step="2"] .l1, .seq-fig[data-step="2"] .l2, .seq-fig[data-step="3"] .l1, .seq-fig[data-step="3"] .l2, .seq-fig[data-step="3"] .l3 { opacity: 1; }
.seq .l1 circle { fill: var(--bone); }
.seq .l1 path { fill: none; stroke: #b8afa5; stroke-width: 0.9; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.seq .l2 path { fill: none; stroke: var(--thread-d); stroke-width: 1.6; stroke-dasharray: 7 5; vector-effect: non-scaling-stroke; }
.seq .l3 path { fill: #4a3a31; stroke: none; }
@media (min-width: 901px) { .seq-steps li { min-height: 18vh; display: grid; align-items: center; } }
@media (max-width: 900px) { .seq { grid-template-columns: 1fr; } .seq-fig { position: static; order: -1; } .seq-fig svg { height: 46vh; } }
.notes { padding-bottom: 8px; }
@media (min-width: 901px) { .story { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.story-ph { overflow: hidden; }
.story-ph img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; display: block; }

/* ---------- lookbook: a named composition for every chapter ---------- */
.lb-intro { align-items: start; }
.lb-intro .contents ol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 24px; border-top: 1px solid var(--rule); margin-top: 8px; }
@media (max-width: 900px) { .lb-intro .contents ol { grid-template-columns: minmax(0, 1fr); } }
.contents a { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) 36px; gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 14px; }
.contents a:hover .t { text-decoration: underline; }
.contents .num { font: 400 1rem/1 var(--serif); color: var(--thread); }
.contents img { width: 36px; aspect-ratio: 4 / 5; object-fit: cover; }
.lb { padding: clamp(56px, 7vw, 112px) 0; scroll-margin-top: var(--hd); }
.lb + .lb { margin-top: 0; }
.lb .chap-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 20px; align-items: baseline; padding: 0 var(--gut) clamp(24px, 3vw, 40px); }
.lb .chap-head .num { font: 300 clamp(2.6rem, 4.6vw, 4.6rem)/0.9 var(--serif); color: var(--thread); grid-row: 1 / 3; }
:is(.lb-noir, .lb-choc) .chap-head .num { color: var(--thread-d); }
.lb .chap-head h2 { font: 400 clamp(1.5rem, 2.4vw, 2.2rem)/1.15 var(--serif); }
html[lang="ka"] .lb .chap-head h2 { font-size: clamp(1.25rem, 1.9vw, 1.7rem); line-height: 1.35; }
.lb .chap-head:not(:has(.num)) { grid-template-columns: minmax(0, 1fr); }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.row3 figure:not(:last-child) .fr { margin-right: -1px; } /* one-pixel overlap: no hairline between the photographs */
.flip figure .fr .second { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 0.45s var(--ease); }
.flip figure.on .fr .second { opacity: 1; }
.turn[aria-pressed="true"] { color: var(--thread); }
.mirror, .apart, .scale, .wduo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 16px; padding: 0 var(--gut); }
.mirror { align-items: stretch; }
.mirror .m-big { grid-column: 1 / 8; }
.mirror .m-side { grid-column: 9 / 13; display: grid; align-content: space-between; gap: 32px; }
.mirror .m-side .chap-head { padding: 0; }
.apart { align-items: start; }
.apart .a-big { grid-column: 1 / 6; grid-row: 1 / 3; }
.apart .a-small { grid-column: 8 / 11; grid-row: 1; }
.apart .essay { grid-column: 7 / 12; grid-row: 2; align-self: end; margin-top: 40px; }
.inter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 16px; padding: clamp(40px, 5vw, 72px) var(--gut) 0; align-items: end; }
.inter .essay { grid-column: 1 / 7; }
.inter .i-small { grid-column: 9 / 12; }
.scale { align-items: end; }
.scale .s-detail { grid-column: 1 / 7; }
.scale .s-pair { grid-column: 8 / 13; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.scale .s-pair figure:first-child .fr { margin-right: -1px; }
.scale .s-pair figure .lbl { padding-left: 10px; padding-right: 10px; }
.wduo { align-items: end; }
.wduo .w-big { grid-column: 1 / 8; }
.wduo .w-small { grid-column: 9 / 12; }
.essay { display: grid; gap: 14px; max-width: 54ch; }
.essay h3 { font: 300 clamp(1.5rem, 2.4vw, 2.2rem)/1.1 var(--serif); }
html[lang="ka"] .essay h3 { font-size: 1.35rem; line-height: 1.35; font-weight: 400; }
.essay p { color: var(--muted); font-size: 15px; }
.essay.on-dark p { color: var(--bone-mut); }
.colophon { display: grid; gap: 32px; justify-items: center; padding-left: var(--gut); padding-right: var(--gut); text-align: left; }
.colophon .essay { max-width: 62ch; }
.colophon .essay p { color: var(--ink); font-size: 16px; line-height: 1.7; }
.colophon .acts { justify-self: center; }
@media (max-width: 900px) {
  .lb-intro .contents { order: 2; }
  .row3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .row3 figure:first-child { grid-column: 1 / -1; }
  .row3 figure:first-child .fr { margin-right: 0; }
  .mirror, .interleave { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 0 10px; }
  .mirror .m-side, .interleave .il-side { display: contents; }
  .mirror .chap-head, .interleave .chap-head { grid-column: 1 / -1; grid-row: 1; padding: 0 0 24px; }
  .mirror .m-big { grid-column: 1; grid-row: 2; }
  .mirror .m-small { grid-column: 2; grid-row: 2; align-self: end; }
  .apart { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 0 10px; }
  .apart .a-big { grid-column: 1; grid-row: 1; }
  .apart .a-small { grid-column: 2; grid-row: 1; }
  .apart .essay { grid-column: 1 / -1; grid-row: 2; margin-top: 32px; }
  .inter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 10px; }
  .inter .essay { grid-column: 1 / -1; }
  .inter .i-small { grid-column: 2; }
  .scale { grid-template-columns: minmax(0, 1fr); gap: 16px 0; }
  .scale .s-detail, .scale .s-pair { grid-column: auto; }
  .wduo { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); gap: 0 10px; }
  .wduo .w-big, .wduo .w-small { grid-column: auto; }
}

/* ---------- booking: the form first, the fitting list and what happens next beside it ---------- */
.bookgrid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.rack-col { display: grid; gap: 28px; align-content: start; align-self: start; padding: clamp(20px, 3vw, 36px); background: var(--paper); border: 1px solid var(--rule); }
.rack-col .rack ul { border-top-color: var(--ink); }
.next h2 { font: 500 15px/1.3 var(--sans); margin-bottom: 10px; }
.next ol { display: grid; gap: 10px; counter-reset: n; }
.next li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 8px; font-size: 14px; color: var(--muted); }
.next li::before { content: counter(n); font: 400 1.05rem/1.2 var(--serif); color: var(--thread); }
@media (max-width: 900px) { .bookgrid { grid-template-columns: 1fr; } }

/* ---------- v7.3: modern. Two type registers, rails, a product stage, motion with a purpose ---------- */

/* type has two jobs: Zodiak for editorial moments, Host Grotesk for service */
.sec-head h2, .walk-text h2, .night-text h2, .suit-head h2, .colophon h2, .story h2 { font: 300 clamp(2.4rem, 4.4vw, 4.4rem)/0.98 var(--serif); letter-spacing: -0.022em; }
html[lang="ka"] :is(.sec-head, .walk-text, .night-text, .suit-head, .colophon, .story) h2 { font: 400 clamp(1.75rem, 3vw, 2.75rem)/1.2 var(--serif); letter-spacing: 0; }
.fdh-in h2, .seq-text h2, .bookband h2, .terms h2, .mtm-card h2, .outfit h2, .table-sec .rail h2 { font: 500 clamp(1.6rem, 2.4vw, 2.2rem)/1.12 var(--sans); letter-spacing: -0.012em; }
html[lang="ka"] :is(.fdh-in, .seq-text, .bookband, .terms, .mtm-card, .outfit, .table-sec .rail) h2 { font: 500 clamp(1.3rem, 1.9vw, 1.7rem)/1.35 var(--sans); letter-spacing: 0; }
.lede { color: var(--muted); max-width: 54ch; }
.seq .lede { color: var(--bone-mut); }

/* commerce cards: the name carries, the price follows, the fitting action waits underneath */
.cap { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; padding-top: 12px; font-size: 14.5px; line-height: 1.5; }
.cap :is(h2, h3) { grid-column: 1; }
.cap .pr { grid-column: 2; color: var(--muted); font-variant-numeric: tabular-nums; }
.cap .fitbtn { grid-column: 1 / -1; justify-self: start; margin-top: 2px; }
.card .ph .alt { transition-duration: 0.2s; }
@media (max-width: 900px) {
  .cap { grid-template-columns: minmax(0, 1fr); font-size: 14px; }
  .cap :is(h2, h3) { min-height: 0; }
  .cap .pr { grid-column: 1; }
  .cap .fitbtn { grid-column: 1; min-height: 44px; margin-top: -6px; }
}

/* native horizontal rails, with named previous / next when they overflow */
.hrail { scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.rail-ctl { display: flex; gap: 6px; padding: 12px var(--gut) 0; }
.rail-ctl[hidden] { display: none; }
.rail-ctl button { min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); font-size: 13.5px; }
.rail-ctl button:hover:not(:disabled) { border-color: var(--ink); }
.rail-ctl button:disabled { opacity: 0.4; cursor: default; }

/* two tailorings: an equal comparison on one baseline */
.duo-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
@media (max-width: 900px) {
  .duo-pair { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 8px; }
  .duo-pair figure { flex: 0 0 84%; scroll-snap-align: start; }
}

/* the walk home: a filmstrip that bleeds off the right edge */
.walk { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.walk-text { grid-column: 1 / 5; position: sticky; top: calc(var(--hd) + 24px); }
.walk-lbl { width: 100%; max-width: 340px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.walk-lbl .lbl { padding-top: 0; }
.walk-rail { grid-column: 5 / 13; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(var(--gut) * -1); padding: 0 var(--gut) 10px 0; }
.walk-rail figure { flex: 0 0 clamp(260px, 30vw, 440px); scroll-snap-align: start; }
@media (min-width: 901px) {
  .walk-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; overflow: visible; margin-right: 0; padding: 0; }
  .walk .views { display: none; }
}
.walk-rail .w-pair { flex-basis: clamp(220px, 22vw, 320px); align-self: end; }
.walk-rail .w-pair .lbl { padding-top: 2px; }
@media (max-width: 900px) {
  .walk { grid-template-columns: minmax(0, 1fr); }
  .walk-text { grid-column: auto; position: static; }
  .walk-rail { grid-column: auto; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut) 10px; }
  .walk-rail figure { flex-basis: 78%; }
  .walk-rail .w-pair { flex-basis: 62%; }
}

/* the suit on a phone: the photograph at a real size, the two actions as equals */
@media (max-width: 1000px) {
  .suit-ph { width: min(86%, 420px); }
  .suit-foot { justify-items: stretch; width: 100%; }
  .suit-foot .suit-total { justify-content: center; }
  .suit-foot .acts { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
}

/* ---------- shop: one quiet bar that stays at hand ---------- */
.controls { gap: 10px 28px; background: var(--paper); z-index: 20; }
@media (min-width: 901px) { .controls { position: sticky; top: var(--hd); } }
.chips button, .view button { border: 0; border-bottom: 2px solid transparent; padding: 0 8px; color: var(--muted); transition: color 0.15s var(--ease), border-color 0.15s var(--ease); }
.chips button:hover, .view button:hover { color: var(--ink); border-color: transparent; }
.chips button[aria-pressed="true"], .view button[aria-pressed="true"] { color: var(--ink); border-color: var(--thread); }
.refine { display: contents; }
.refine > summary { display: none; }
.refine-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
@media (max-width: 900px) {
  .controls { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
  .controls > .ctl:first-child { overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
  .controls > .ctl:first-child .chips { flex-wrap: nowrap; }
  .refine { display: block; order: 3; }
  .refine > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--rule); font-size: 13.5px; cursor: pointer; list-style: none; }
  .refine > summary::-webkit-details-marker { display: none; }
  .refine > summary::after { content: "+"; color: var(--muted); }
  .refine[open] > summary::after { content: "\2212"; }
  .refine-in { padding-top: 10px; gap: 10px 16px; }
  .controls > .ctl.end { order: 2; overflow-x: auto; scrollbar-width: thin; }
  .controls > .ctl.end .view { flex-wrap: nowrap; }
  .controls > .ctl.end .view .ctl-l { display: none; }
}

/* ---------- product: one stage and its thumbnails on a computer ---------- */
@media (min-width: 901px) {
  .gallery { display: grid; gap: 14px; align-content: start; padding: 0 0 0 var(--gut); }
  .shots { display: block; background: var(--plate); }
  .shots figure { display: none; aspect-ratio: auto; overflow: visible; }
  .shots figure.cur { display: block; }
  .shots .shot { display: block; height: min(760px, calc(100svh - var(--hd) - 136px)); }
  .shots .shot img { width: auto; height: 100%; max-width: 100%; margin: 0 auto; aspect-ratio: 4 / 5; object-fit: cover; }
  .poses { display: flex; flex-wrap: wrap; gap: 10px; order: 2; }
  .poses button { display: grid; gap: 6px; justify-items: start; width: 72px; padding: 0; font-size: 12.5px; color: var(--muted); text-align: left; }
  .poses .tn { width: 72px; aspect-ratio: 4 / 5; object-fit: cover; outline: 1px solid transparent; outline-offset: 2px; transition: outline-color 0.15s var(--ease); }
  .poses button:hover .tn { outline-color: var(--rule); }
  .poses button[aria-current="true"] { color: var(--ink); }
  .poses button[aria-current="true"] .tn { outline-color: var(--ink); }
}
@media (max-width: 900px) {
  .poses .tn { display: none; }
  .poses button { min-height: 44px; }
  body[data-page="product"] main { padding-bottom: 72px; }
}
.fd-mini { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fd-mini summary { display: flex; gap: 10px; align-items: baseline; min-height: 44px; padding-top: 12px; cursor: pointer; list-style: none; font-size: 14px; }
.fd-mini summary::-webkit-details-marker { display: none; }
.fd-mini summary .mut { font-size: 12.5px; }
.fd-mini summary::after { content: "+"; margin-left: auto; color: var(--muted); }
.fd-mini[open] summary::after { content: "\2212"; }
.fd-mini p { font-size: 14px; color: var(--muted); padding-bottom: 12px; }
/* wear it with: the piece and its partner side by side, one action for both */
.outfit { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 3fr); gap: 24px 16px; align-items: end; padding: 0 var(--gut) clamp(48px, 6vw, 88px); }
.outfit .pc-text { display: grid; gap: 12px; justify-items: start; align-self: start; padding-right: clamp(0px, 3vw, 48px); }
@media (max-width: 900px) { .outfit { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 10px; } .outfit .pc-text { grid-column: 1 / -1; } }

/* ---------- lookbook: a chapter strip that stays at hand; a sequence of four; a ruled contact sheet ---------- */
.chap-strip { position: sticky; top: var(--hd); z-index: 15; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.chap-strip ol { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gut); }
.chap-strip a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-bottom: 2px solid transparent; text-decoration: none; font-size: 13.5px; white-space: nowrap; color: var(--muted); }
.chap-strip .num { font: 400 1rem/1 var(--serif); color: var(--thread); }
.chap-strip a:hover { color: var(--ink); }
.chap-strip a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--thread); }
@media (max-width: 900px) { .chap-strip a { padding: 0 14px; } .lb-intro .contents { display: none; } }
.lb { scroll-margin-top: calc(var(--hd) + 46px); }
.seq4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.seq4 figure:not(:last-child) .fr { margin-right: -1px; }
.seq4-lbl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; padding: 0 var(--gut); }
@media (max-width: 900px) {
  .seq4 { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gut) 8px; }
  .seq4 figure { flex: 0 0 80%; scroll-snap-align: start; }
  .seq4 figure .fr { margin-right: 0; }
  .seq4-lbl { grid-template-columns: minmax(0, 1fr); }
}
.sheet { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 var(--gut); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.sheet > * { padding: 16px 16px 16px 0; }
.sheet > * + * { padding-left: 16px; border-left: 1px solid var(--rule); }
.sheet .sh-head { display: grid; align-content: space-between; gap: 24px; }
.sheet .sh-head .chap-head { padding: 0; }
.sheet .pose { padding-top: 8px; font-size: 13px; color: var(--muted); }
.sheet .crop { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--plate); }
.sheet .crop img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transform: scale(2.1); transform-origin: var(--pos); }
@media (max-width: 900px) {
  .sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sheet .sh-head { grid-column: 1 / -1; border-bottom: 1px solid var(--rule); }
  .sheet > * + * { border-left: 0; padding-left: 0; }
  .sheet > figure { padding-right: 10px; }
  .sheet > figure:nth-of-type(2n) { padding-left: 10px; padding-right: 0; border-left: 1px solid var(--rule); }
  .sheet > .sh-detail { padding-right: 0; }
  /* the detail closes the sheet across both columns instead of leaving half a row empty */
  .sheet > .sh-detail { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
  .sheet > .sh-detail .crop { aspect-ratio: 3 / 2; }
  .sheet > .sh-detail .crop img { transform: scale(1.6); }
}

/* ---------- atelier on a phone: the drawing under the chosen step ---------- */
@media (max-width: 900px) {
  .seq-steps li .seq-fig { order: 0; padding: 0 0 22px; }
  .seq-steps li .seq-fig svg { height: 40vh; }
}

/* ---------- the header settles a little once the page moves ---------- */
.logo img { transition: width 0.2s var(--ease); }
.hd.scrolled { border-bottom-color: #cfc7be; }
.hd.scrolled .logo img { width: 100px; }
@media (max-width: 900px) { .hd.scrolled .logo img { width: 90px; } }

/* ---------- motion with a purpose, only where motion is welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* the photograph travels from the grid into the product page (cross-document view transitions) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.2s; }
  ::view-transition-group(piece) { animation-duration: 0.32s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
  /* a few signature photographs move as they arrive, each in its own way; nothing is ever hidden, and the grid stays still */
  @supports (animation-timeline: view()) {
    .duo-pair figure .fr { animation: plate-open linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    .night .n-big .fr img, #ch-1 .m-big .fr img, #ch-6 .w-big .fr img { animation: plate-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 36%; }
    .lb-steel .row3 figure .fr { animation: shutter linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
    .lb-steel .row3 figure:nth-child(2) .fr { animation-range: entry 16% cover 46%; }
    .lb-steel .row3 figure:nth-child(3) .fr { animation-range: entry 22% cover 52%; }
    @keyframes plate-open { from { clip-path: inset(4% 3% 4% 3%); } to { clip-path: inset(0); } }
    @keyframes plate-settle { from { transform: scale(1.05); } to { transform: scale(1); } }
    @keyframes shutter { from { clip-path: inset(0 0 10% 0); } to { clip-path: inset(0); } }
  }
}

/* ---------- v7.4: the hero. Four scenes from the lookbook across the whole first screen.
   The words sit on a chocolate panel, never over a photograph; the photographs meet edge to edge. ---------- */
.hero { display: grid; grid-template-columns: minmax(360px, 33%) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto; min-height: max(560px, calc(100vh - var(--hd))); min-height: max(560px, calc(100svh - var(--hd))); background: var(--choc); color: var(--bone); }
.hero-stage { grid-column: 2; grid-row: 1 / -1; position: relative; overflow: hidden; background: var(--stage, #1d1511); touch-action: pan-y pinch-zoom; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; opacity: 0; transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.slide.on { opacity: 1; }
.slide .sl-a, .slide .sl-b { position: relative; overflow: hidden; min-height: 0; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-head { grid-column: 1; grid-row: 1; padding: clamp(24px, 4.4vh, 52px) clamp(20px, 2.8vw, 44px) 0; }
.hero-kick { display: flex; gap: 12px; margin-bottom: clamp(14px, 2.8vh, 30px); font-size: 12.5px; letter-spacing: 0.05em; color: var(--bone-mut); }
.hero-kick span:first-child { color: var(--thread-d); }
.hero h1 { font: 300 clamp(2rem, 2.9vw, 3.1rem)/1.04 var(--serif); letter-spacing: -0.015em; }
html[lang="ka"] .hero h1 { font-size: clamp(1.7rem, 2.3vw, 2.5rem); line-height: 1.14; letter-spacing: 0; }
.hero-line { margin-top: 14px; max-width: 36ch; color: var(--bone-mut); }
.hero-facts { grid-column: 1; grid-row: 2; margin: clamp(18px, 3.2vh, 32px) clamp(20px, 2.8vw, 44px) 0; font-size: 13px; }
.hero-facts div { grid-template-columns: 7.5em 1fr; border-color: var(--rule-dark); }
.hero-facts div:last-child { border-color: var(--rule-dark); }
.hero-facts dt { color: var(--bone-mut); }
.hero-scene { grid-column: 1; grid-row: 4; padding: 18px clamp(20px, 2.8vw, 44px) 14px; }
.hs-ch { display: flex; align-items: baseline; gap: 10px; font: 400 1.3rem/1.2 var(--serif); }
.hs-ch .num { color: var(--thread-d); font-size: 1.05rem; }
.hs-ch a { text-decoration: none; }
.hs-ch a:hover { text-decoration: underline; }
.hs-pcs { display: grid; gap: 3px; margin-top: 8px; font-size: 13.5px; }
.hs-pcs a { text-decoration: underline; text-decoration-color: var(--rule-dark); text-underline-offset: 0.25em; }
.hs-pcs a:hover { text-decoration-color: var(--bone); }
.hs-pcs .pr { margin-left: 6px; color: var(--bone-mut); }
.hero-ctl { grid-column: 1; grid-row: 5; display: flex; align-items: center; gap: 2px; margin: 0 clamp(20px, 2.8vw, 44px); padding: 10px 0 clamp(16px, 3vh, 30px); border-top: 1px solid var(--rule-dark); }
.hc-arrow { display: grid; place-items: center; width: 44px; height: 44px; color: var(--bone-mut); }
.hc-arrow:first-child { margin-left: -12px; }
.hc-arrow svg { width: 18px; height: 18px; }
.hc-tabs { display: flex; }
.hc-tabs button { position: relative; min-width: 44px; height: 44px; font: 400 15px/1 var(--serif); color: var(--bone-mut); }
.hc-tabs button[aria-current="true"] { color: var(--bone); }
.hc-tabs button[aria-current="true"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 9px; height: 1px; background: var(--bone); }
.hc-play { margin-left: auto; min-height: 44px; font-size: 13px; color: var(--bone-mut); text-decoration: underline; text-underline-offset: 0.25em; }
.hc-arrow:hover, .hc-tabs button:hover, .hc-play:hover { color: var(--bone); }
.hero :focus-visible { outline-color: var(--bone); }
@media (max-width: 900px) {
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero-stage { order: 0; height: calc(100vh - var(--hd) - var(--hero-panel, 190px)); height: calc(100svh - var(--hd) - var(--hero-panel, 190px)); min-height: 300px; }
  .slide { grid-template-columns: 1fr; }
  .slide .sl-b { display: none; }
  .hero-head { order: 1; padding: 14px var(--gut) 0; }
  .hero-kick, .hero-line { display: none; }
  .hero h1, html[lang="ka"] .hero h1 { font-size: clamp(1.45rem, 6.4vw, 1.9rem); line-height: 1.12; }
  .hero-scene { order: 2; padding: 6px var(--gut) 0; }
  .hs-ch { font-size: 1.02rem; }
  .hs-pcs { display: none; }
  .hero-ctl { order: 3; margin: 0 var(--gut); padding: 2px 0 6px; border-top: 0; }
  .hero-facts { order: 4; margin: 0; padding: 4px var(--gut) 18px; }
}
.hero-acts { grid-column: 1; grid-row: 3; align-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: clamp(20px, 3.4vh, 34px) clamp(20px, 2.8vw, 44px) 0; }
.hero-acts .u { color: var(--bone); text-decoration-color: var(--bone-mut); }
@media (max-width: 900px) { .hero-acts { order: 2; margin: 0; padding: 12px var(--gut) 4px; } .hero-scene { order: 3; } .hero-ctl { order: 4; } .hero-facts { order: 5; padding-top: 14px; } }

/* ---------- v7.4: the Fit Desk atelier desk (a demonstration on the public preview) ---------- */
.desk { --pane: 1180px; }
.desk-intro { align-items: start; padding-top: 26px; }
.desk-intro .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; font-size: 13.5px; }
.chip { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border: 1px solid var(--rule); font-size: 12px; line-height: 1.2; white-space: nowrap; }
.chip.syn { border-color: var(--thread); color: var(--thread); }
.chip.pil { border-color: var(--ink); }
.chip.warn { border-color: var(--thread); color: var(--thread); }
.desk-data { align-self: stretch; display: grid; align-content: start; gap: 10px; padding: 16px 18px; background: var(--ivory); }
.dd-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.btn.sm { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.u[disabled] { opacity: 0.45; cursor: not-allowed; text-decoration: none; }
label.file { position: relative; cursor: pointer; }
label.file input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
label.file:focus-within { outline: 2px solid var(--thread); outline-offset: 2px; }
.dd-confirm:empty { display: none; }
.dd-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 8px; border-top: 1px solid var(--rule); }
.dd-msg:empty { display: none; }
.err { color: var(--thread); font-size: 14px; }
.err:empty { display: none; }
.ok { color: #2f5d3a; }
.warn { color: var(--thread); }

.desk-tabs { position: sticky; top: var(--hd); z-index: 5; background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.desk-tabs ul { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 0 calc(var(--gut) - 12px); }
.desk-tabs ul::-webkit-scrollbar { display: none; }
.desk-tabs a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; text-decoration: none; white-space: nowrap; font-size: 14.5px; color: var(--muted); border-bottom: 1px solid transparent; margin-bottom: -1px; }
.desk-tabs a:hover { color: var(--ink); }
.desk-tabs a[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.desk-pane { max-width: var(--pane); padding: 28px var(--gut) 64px; }
.desk-pane:focus { outline: none; }
.pane-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.pane-head h2 { font: 400 clamp(1.5rem, 2vw, 2rem)/1.15 var(--serif); }
.desk .sub { font: 500 15px/1.35 var(--sans); margin: 22px 0 10px; }
.desk .note { margin: -6px 0 18px; max-width: 70ch; }
.dsteps { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 24px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); counter-reset: none; }
.dsteps li { display: flex; align-items: center; gap: 8px; }
.dsteps span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--rule); border-radius: 50%; font-size: 12px; }
.dsteps li[aria-current="step"] { color: var(--ink); }
.dsteps li[aria-current="step"] span { border-color: var(--ink); background: var(--ink); color: #fff; }
.dform { display: grid; gap: 22px; max-width: 760px; }
.dform fieldset { display: grid; gap: 10px; }
.dform legend { font-weight: 500; margin-bottom: 8px; padding: 0; }
.drow { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 6px 18px; align-items: end; }
.drow .mut { padding-bottom: 12px; }
.field select, .field textarea { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #a69c92; background: var(--paper); font-size: 16px; }
.field textarea { padding: 10px 12px; resize: vertical; font: inherit; }
.field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 1px var(--ink); }
.field.inline { grid-template-columns: auto minmax(0, 220px); align-items: center; gap: 12px; }
.mtable.rd th, .mtable.rd td { text-align: left; vertical-align: middle; }
.mtable.rd input { width: 100%; min-width: 72px; min-height: 42px; padding: 0 10px; border: 1px solid #a69c92; background: var(--paper); font-size: 16px; font-variant-numeric: tabular-nums; }
.mtable.rd input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 1px var(--ink); }
.mtable tr.warn td { color: var(--thread); text-align: left; font-size: 13px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.prop { padding: 18px 20px; margin-bottom: 18px; border-left: 2px solid var(--ink); background: var(--ivory); display: grid; gap: 6px; }
.prop .route-big { font: 400 1.6rem/1.2 var(--serif); }
.prop .route-big:focus { outline: none; }
.prop .agree { color: #2f5d3a; }
.prop .disagree { color: var(--thread); }
.prop .hem, .ticket .hem { font-size: 14px; }
.over { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.saved { margin: 22px 0 12px; padding: 14px 16px; border: 1px solid var(--ink); }
.saved:focus { outline: none; }
.desk .mtable { margin-bottom: 14px; }
.mtable.log th, .mtable.log td { text-align: left; vertical-align: top; }
.mtable.log .dot { color: var(--thread); }
.mtable.wo td:last-child { text-align: left; color: var(--muted); font-size: 12.5px; }
.mtable.conf td.diag { background: var(--ivory); font-weight: 600; }
.ticket .wo-h { font-weight: 500; margin-bottom: 4px; }
.prof { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
.prof:empty { display: none; }
.opt-len { max-width: 50%; }
.oc .facts { margin-bottom: 16px; }
.desk .facts { max-width: 640px; }
.desk .facts div { grid-template-columns: minmax(10em, 15em) 1fr; }
.desk .table-wrap { max-width: 920px; }
.dform > .btn, .dform > .acts { justify-self: start; }
.dr-form .four .field { align-content: end; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-bottom: 26px; }
.tile { display: grid; gap: 4px; align-content: start; padding: 16px; background: var(--paper); }
.t-k { font-size: 13.5px; color: var(--muted); min-height: 2.6em; }
.t-v { font: 300 2.2rem/1.1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.tile .bar { position: relative; height: 4px; margin-top: 8px; background: var(--plate); }
.tile .bar span { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.tile .bar i { position: absolute; top: -4px; bottom: -4px; width: 1px; background: var(--thread); }
.rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 48px; }
.rep-grid section { min-width: 0; }
.hbars { display: grid; gap: 8px; font-size: 14px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 11em) 1fr 2.4em; align-items: center; gap: 12px; }
.hb { height: 10px; background: var(--plate); }
.hb span { display: block; height: 100%; background: var(--ink); }
.hb-n { text-align: right; font-variant-numeric: tabular-nums; }
ul.plain { display: grid; gap: 4px; font-size: 14px; }
.spec { padding: 22px 0; border-top: 1px solid var(--rule); }
.spec header { margin-bottom: 8px; }
.spec header .sub { margin: 0 0 4px; }
.csv { padding-top: 22px; border-top: 1px solid var(--ink); }
.csv .btn { margin: 10px 0 14px; }
.ph-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 16px 0 18px; }
.ph-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 28px; align-items: start; }
.ph-wrap { background: var(--plate); }
#ph-cv { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: manipulation; }
.ph-steps { display: grid; gap: 8px; margin-bottom: 12px; font-size: 14px; counter-reset: ph; }
.ph-steps li { counter-increment: ph; display: grid; grid-template-columns: 24px 1fr; color: var(--muted); }
.ph-steps li::before { content: counter(ph) "."; }
.ph-steps li[aria-current="step"] { color: var(--ink); font-weight: 500; }
.ph-steps li.done { text-decoration: line-through; text-decoration-color: var(--rule); }
.ph-manual { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); }
.ph-manual summary { cursor: pointer; font-size: 14px; min-height: 32px; }
.ph-manual .two { margin: 10px 0 14px; }
.dr-form .four { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dr-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 28px; align-items: start; margin-top: 26px; }
.checks { display: grid; gap: 6px; margin-bottom: 18px; font-size: 14px; }
.checks .ok span:first-child { color: #2f5d3a; }
.checks .bad { color: var(--thread); }
.dr-svg { padding: 12px; background: var(--paper); border: 1px solid var(--rule); overflow: auto; }
.dr-svg svg { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .drow, .ph-grid, .dr-grid, .rep-grid { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dr-form .four { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .opt-len { max-width: none; }
  .desk-data { margin: 0 calc(-1 * var(--gut)); padding-inline: var(--gut); }
  .hbars li { grid-template-columns: minmax(0, 8.5em) 1fr 2em; }
}
#print-area { display: none; }
@media print {
  html.printing body > *:not(#print-area) { display: none !important; }
  html.printing #print-area { display: block; padding: 0; color: #000; font: 11pt/1.4 var(--sans); }
  html.printing #print-area h1 { font: 400 18pt/1.2 var(--serif); margin-bottom: 6pt; }
  html.printing #print-area .syn { color: #a11d2b; margin: 6pt 0 12pt; }
}

/* ---------- v7.5: the camera fitting mirror (experimental). A calm intro, then a full-screen noir stage with large
   type that reads from two metres away. ---------- */
.mirror-page { padding-bottom: 48px; }
.m-intro { max-width: 1180px; padding: 28px var(--gut) 8px; }
.m-head { max-width: 62ch; margin-bottom: 26px; }
.m-head .kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; font-size: 13.5px; }
.m-head h1 { font: 400 clamp(2rem, 3.2vw, 3rem)/1.06 var(--serif); letter-spacing: -0.012em; margin-bottom: 12px; }
.m-head .lede { color: var(--muted); }
.m-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(28px, 5vw, 72px); align-items: start; }
.m-how { display: grid; gap: 14px; counter-reset: none; }
.m-how li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.m-how b { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; font: 400 14px var(--serif); }
.m-piece { font-size: 14.5px; }
/* v7.6: the pieces the mirror can measure for, one per mode */
.m-pieces { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin-top: 18px; border: 1px solid var(--rule); }
.m-pieces a { display: grid; gap: 2px; padding: 10px 18px; color: inherit; text-decoration: none; border-right: 1px solid var(--rule); }
.m-pieces a:last-child { border-right: 0; }
.m-pieces b { font: 400 17px/1.2 var(--serif); }
.m-pieces span { font-size: 12.5px; color: var(--muted); }
.m-pieces a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.m-pieces a[aria-current="page"] span { color: var(--bone-mut); }
.m-pieces a:not([aria-current]):hover { background: var(--ivory); }
.m-pieces a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 520px) { .m-pieces { width: 100%; } .m-pieces a { flex: 1 1 50%; padding: 10px 12px; } .m-pieces b { font-size: 15px; } }
.m-privacy { display: grid; gap: 6px; padding: 14px 16px; background: var(--ivory); font-size: 14px; }
.m-tape { max-width: 640px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule); }
.m-stage { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: #0d0c0b; color: var(--bone); }
.m-stage[hidden] { display: none; }
.m-stage video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.m-stage canvas { grid-area: 2 / 1; justify-self: center; align-self: center; max-width: 100%; max-height: 100%; width: auto; height: auto; }
#m-gl { pointer-events: none; } /* the real garment, drawn over the video */
.m-stage.no-cam canvas { visibility: hidden; }
.m-top { grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: calc(10px + env(safe-area-inset-top)) var(--gut) 10px; background: rgba(13, 12, 11, 0.86); }
#m-status { font: 400 clamp(1.25rem, 2.4vw, 2rem)/1.15 var(--serif); }
.m-tools { display: flex; gap: 8px; }
.m-btn { min-height: 44px; padding: 0 16px; border: 1px solid var(--bone-mut); color: var(--bone); font-size: 14.5px; }
.m-btn:hover { border-color: var(--bone); }
.m-panel { grid-row: 3; max-height: 46vh; overflow-y: auto; padding: 14px var(--gut) calc(16px + env(safe-area-inset-bottom)); background: rgba(13, 12, 11, 0.9); font-size: 16px; }
.m-stage :focus-visible { outline-color: var(--bone); }
.m-big { font: 400 clamp(1.35rem, 3vw, 2.3rem)/1.2 var(--serif); margin: 4px 0 10px; }
.m-big:focus { outline: none; }
.m-small { color: var(--bone-mut); font-size: 14.5px; margin-top: 8px; max-width: 70ch; }
.m-coach { display: flex; align-items: center; gap: 16px; margin: 2px 0 10px; font: 400 clamp(1.4rem, 3.4vw, 2.6rem)/1.15 var(--serif); }
.m-arrow { display: grid; place-items: center; flex: 0 0 auto; width: 1.6em; height: 1.6em; border: 1px solid var(--bone-mut); border-radius: 50%; font-family: var(--sans); font-size: 0.8em; }
.m-ready { height: 6px; max-width: 520px; background: var(--rule-dark); }
.m-ready span { display: block; height: 100%; background: #7fc49a; transition: width 0.3s var(--ease); }
.m-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: clamp(15px, 1.8vw, 20px); }
.m-checks li { display: flex; gap: 8px; align-items: baseline; color: var(--bone-mut); }
.m-checks li.ok { color: #9fd8b1; }
.m-facts { display: grid; gap: 4px; margin: 4px 0 8px; max-width: 520px; }
.m-facts div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding: 6px 0; border-top: 1px solid var(--rule-dark); font-size: 17px; }
.m-facts dt { color: var(--bone-mut); }
.m-facts dd { margin: 0; }
.m-facts b { font-weight: 500; font-size: 1.15em; }
.m-route { font-size: 18px; margin-top: 10px; }
.m-route span { color: var(--bone-mut); }
.m-stage .acts { margin-top: 14px; }
.m-stage .u { color: var(--bone); text-decoration-color: var(--bone-mut); min-height: 44px; }
.m-sizes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.m-sizes button { min-width: 52px; min-height: 44px; border: 1px solid var(--rule-dark); color: var(--bone); font: 400 16px var(--sans); }
.m-sizes button[aria-pressed="true"] { border-color: var(--bone); background: var(--bone); color: var(--choc); }
.m-ease { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 16px; padding: 4px 0 4px 12px; border-left: 3px solid var(--bone-mut); }
.m-ease span { color: var(--bone-mut); font-size: 14px; }
.m-ease.fits { border-left-color: #7fc49a; }
.m-ease.tight { border-left-color: #ff6b74; }
.m-ease.loose, .m-ease.uncertain { border-left-color: #f2c66d; }
.m-ease.uncertain { border-left-style: dashed; }
@media (max-width: 900px) {
  .m-grid { grid-template-columns: minmax(0, 1fr); }
  .m-panel { max-height: 52vh; font-size: 15px; }
  .m-tools .m-btn { padding: 0 12px; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .draw .pc.cut, .draw .pm:not(.roll) { stroke-dasharray: none; stroke-dashoffset: 0; }
  .draw .pm.roll, .draw .pl { opacity: 1; }
}
