/* =============================================================================
   LoomPilot website styles: block print, cloth, dye and a brass rail.
   Wholesale (default) = indigo dusk + haldi gold. Retail = ivory paper + madder.
   ============================================================================= */
:root {
    --indigo: #0f1733; --indigo-2: #16214a; --haldi: #d9a21b; --madder: #a8322a; --ivory: #f5efe3; --inkc: #1d1f27;
    --brand: #d9a21b;
    --f-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
    --f-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-deva: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;
    --wrap: 1260px; --ease: cubic-bezier(.2, .7, .2, 1);
    --brass: linear-gradient(180deg, #f6dc8e 0%, #e2b955 28%, #c9952e 52%, #8a6420 100%);
    --ok: #5f8f5a; --bad: #e0605a;
    --k-sample: #8fb3d1; --k-fabric: #a9c48a; --k-print: #c2453a; --k-wash: #6f93c9; --k-stitch: #e3a1a6; --k-qc: #b5652d; --k-pack: #d9a21b;
    --bp: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 4c3.4 6.2 3.4 10 0 13.6-3.4-3.6-3.4-7.4 0-13.6zm0 32c-3.4-6.2-3.4-10 0-13.6 3.4 3.6 3.4 7.4 0 13.6zM4 20c6.2-3.4 10-3.4 13.6 0-3.6 3.4-7.4 3.4-13.6 0zm32 0c-6.2 3.4-10 3.4-13.6 0 3.6-3.4 7.4-3.4 13.6 0z'/%3E%3Ccircle cx='20' cy='20' r='2.6'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='40' cy='0' r='3'/%3E%3Ccircle cx='0' cy='40' r='3'/%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/svg%3E");
    --jaal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23000' stroke-width='1.2'%3E%3Cpath d='M40 0C56 18 56 62 40 80M40 0C24 18 24 62 40 80M0 40C18 24 62 24 80 40M0 40C18 56 62 56 80 40'/%3E%3C/g%3E%3Ccircle cx='40' cy='40' r='4'/%3E%3Ccircle cx='0' cy='0' r='3'/%3E%3Ccircle cx='80' cy='0' r='3'/%3E%3Ccircle cx='0' cy='80' r='3'/%3E%3Ccircle cx='80' cy='80' r='3'/%3E%3C/svg%3E");
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .28 1.4 0 0 0 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html, html[data-mode="wholesale"] {
    --bg: #0f1733; --bg2: #16214a; --bg3: #1f2c5e; --surface: rgba(255, 255, 255, .045); --surface2: rgba(255, 255, 255, .085);
    --text: #f3ead8; --muted: #a9afc6; --line: rgba(243, 234, 216, .13); --line2: rgba(243, 234, 216, .26);
    --accent: var(--brand); --accent-ink: #1a1405; --accent-soft: rgba(217, 162, 27, .16);
    --paper: #f5efe3; --paper-ink: #1d1f27; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .65); --grain-op: .09;
    --mat-a: #1d2d5e; --mat-b: #101a3c; --mat-line: rgba(243, 234, 216, .09); --mat-line2: rgba(243, 234, 216, .16);
    color-scheme: dark;
}
html[data-mode="retail"] {
    --bg: #f5efe3; --bg2: #efe5d1; --bg3: #e6d8bd; --surface: #fffaf1; --surface2: #ffffff;
    --text: #1d1f27; --muted: #5f5a52; --line: rgba(29, 31, 39, .12); --line2: rgba(29, 31, 39, .24);
    --accent: #a8322a; --accent-ink: #fff; --accent-soft: rgba(168, 50, 42, .1);
    --paper: #fffaf1; --paper-ink: #1d1f27; --shadow: 0 24px 50px -26px rgba(90, 55, 20, .4); --grain-op: .16;
    --mat-a: #d5dcc6; --mat-b: #bfc9ad; --mat-line: rgba(40, 60, 30, .12); --mat-line2: rgba(40, 60, 30, .22);
    --bad: #b3261e;
    color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--f-ui); overflow-x: clip; -webkit-font-smoothing: antialiased; transition: background-color .6s, color .6s; }
body::after { content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none; background-image: var(--grain); opacity: var(--grain-op); }
img, svg { max-width: 100%; }
img { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .4em; font-variation-settings: "opsz" 120; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 600; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.lab { display: block; font: 700 11px/1.3 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.deva, .deva-inline { font-family: var(--f-deva); font-weight: 400; letter-spacing: 0; text-transform: none; }
.deva-inline { font-size: 1.2em; }
html[data-mode="retail"] .w-only { display: none !important; }
html[data-mode="wholesale"] .r-only, html:not([data-mode]) .r-only { display: none !important; }
body.modal-open { overflow: hidden; }

/* mode switch: dye bloom via View Transitions; fallback colour fade */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
html.mode-fade *, html.mode-fade *::before { transition: background-color .7s, color .7s, border-color .7s, box-shadow .7s !important; }

/* reveal */
.rv { transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.ready .rv:not(.in) { opacity: 0; transform: translateY(28px); }

/* ---------------------------------------------------------------- type helpers */
.kick { display: inline-flex; align-items: center; gap: 10px; font: 800 12px/1.3 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
.kick::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, currentColor 55%, transparent 0) 0 0 / 7px 2px repeat-x; }
.lede { font-size: clamp(1.02rem, 1.25vw, 1.16rem); color: var(--muted); max-width: 58ch; }
.h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; margin: 0 0 14px; }
.h3 small, .h4 small { font: 500 13px var(--f-ui); }
.h4 { font-family: var(--f-display); font-size: 1.15rem; font-weight: 500; margin: 18px 0 10px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 26px; }
.ticks li { position: relative; padding-left: 30px; margin: .55em 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------------------------------------------------------------- buttons, chips, fields */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .9em 1.45em; border-radius: 999px; border: 1px solid transparent; font: 700 15px/1.1 var(--f-ui); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s, border-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 30px -12px var(--accent), inset 0 0 0 1px rgba(255, 255, 255, .25); }
.btn.primary::after { content: ""; position: absolute; inset: 3px; border-radius: inherit; border: 1px dashed rgba(0, 0, 0, .28); pointer-events: none; }
html[data-mode="retail"] .btn.primary::after { border-color: rgba(255, 255, 255, .4); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.sm { padding: .6em 1.05em; font-size: 13px; }
.btn.wide { width: 100%; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 28px; }
.cta-row.center { justify-content: center; }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface2); color: var(--text); font: 700 12.5px/1.2 var(--f-ui); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip.sm { padding: 3px 10px; font-size: 11.5px; border-color: var(--accent); color: var(--accent); background: transparent; margin-left: 4px; }
.chip.sm:hover { background: var(--accent); color: var(--accent-ink); }
.icon-btn { width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center; border-radius: 50%; border: 1px solid var(--line2); background: none; color: var(--text); cursor: pointer; transition: color .2s, border-color .2s; }
.icon-btn:hover { color: var(--bad); border-color: currentColor; }
input, select, textarea { width: 100%; font: 500 15px/1.3 var(--f-ui); color: var(--text); background: var(--surface); border: 1px solid var(--line2); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[aria-invalid="true"] { border-color: var(--bad); }
select option { color: #1d1f27; background: #fff; }
.field { display: grid; gap: 6px; margin: 0 0 14px; }
.field > span { font: 700 12px var(--f-ui); color: var(--muted); letter-spacing: .02em; }
.field > span small { font-weight: 500; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.err { display: block; color: var(--bad); font-size: 12.5px; margin: 0; min-height: 0; }
.err:empty { display: none; }
.done { color: var(--accent); font-weight: 600; font-size: 14px; margin: 12px 0 0; }
.done:empty { display: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 28px); }
.form .btn.wide { margin-top: 6px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px; background: var(--bg); overflow: hidden; flex: none; }
.stepper button { width: 34px; height: 36px; border: 0; background: none; color: var(--text); font: 600 18px/1 var(--f-ui); cursor: pointer; transition: background-color .15s; }
.stepper button:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent); }
.stepper button:disabled { opacity: .28; cursor: default; }
.stepper input { width: 48px; border: 0; border-radius: 0; background: none; text-align: center; padding: 0; font: 800 15px var(--f-ui); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { box-shadow: none; background: var(--accent-soft); }
.stepper.sm button { width: 25px; height: 30px; font-size: 15px; }
.stepper.sm input { width: 26px; font-size: 13px; }
.toggle { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-size: 14px; cursor: pointer; position: relative; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .tg { width: 42px; height: 24px; border-radius: 999px; background: var(--line2); position: relative; flex: none; transition: background-color .3s; }
.toggle .tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.toggle input:checked + .tg { background: var(--accent); }
.toggle input:checked + .tg::after { transform: translateX(18px); }
.toggle input:focus-visible + .tg { outline: 2px solid var(--accent); outline-offset: 2px; }
.st { display: inline-block; font: 800 10px/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; vertical-align: middle; }
.st.ready { background: #d6ecd3; color: #23552a; }
.st.mto { background: #f5e0c4; color: #7a4510; }
.cw-dots { display: inline-flex; flex: none; }
.cw-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--paper); margin-left: -4px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25); }
.cw-dots i:first-child { margin-left: 0; }

/* dye drops (hero re-dye, showroom colour filter) */
.dyes { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.dye-drop { width: 26px; height: 26px; padding: 0; flex: none; border-radius: 50% 50% 50% 0; transform: rotate(135deg); border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; background: radial-gradient(circle at 62% 38%, rgba(255, 255, 255, .55), transparent 38%), var(--dye); box-shadow: 0 4px 10px rgba(0, 0, 0, .3); transition: transform .3s var(--ease), box-shadow .3s; }
html[data-mode="retail"] .dye-drop { border-color: rgba(0, 0, 0, .12); }
.dye-drop:hover { transform: rotate(135deg) scale(1.12); }
.dye-drop[aria-pressed="true"] { transform: rotate(135deg) scale(1.22); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }

/* fabric discs (CSS cloth textures) and wooden blocks */
.fab-disc { display: block; flex: none; width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), inset -4px -6px 10px rgba(0, 0, 0, .12), 0 5px 12px rgba(0, 0, 0, .28); transition: transform .4s var(--ease), box-shadow .3s; }
.fab-disc.lg { width: 60px; height: 60px; }
.fab-cambric { background: repeating-linear-gradient(0deg, rgba(60, 40, 20, .09) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(60, 40, 20, .09) 0 1px, transparent 1px 3px), #efe6d2; }
.fab-mulmul { background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .85), transparent 55%), repeating-linear-gradient(90deg, rgba(60, 40, 20, .05) 0 1px, transparent 1px 4px), #f7f2e8; }
.fab-rayon { background: linear-gradient(125deg, #e7d8bd 0%, #fff7e6 32%, #d8c6a4 52%, #f4e8d0 78%, #e2d2b4 100%); }
.fab-chanderi { background: repeating-linear-gradient(90deg, rgba(201, 149, 46, .45) 0 1px, transparent 1px 6px), linear-gradient(135deg, #efe2c4, #fff9e8 42%, #e5d1a4); }
.fab-linen { background: repeating-linear-gradient(0deg, rgba(90, 70, 40, .14) 0 1px, transparent 1px 2px, rgba(90, 70, 40, .08) 2px 3px, transparent 3px 5px), repeating-linear-gradient(90deg, rgba(90, 70, 40, .12) 0 2px, transparent 2px 4px), #dacdb3; }
.blk { display: block; flex: none; width: 52px; height: 52px; filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .35)); transition: transform .3s var(--ease); }
.blk svg { width: 100%; height: 100%; display: block; }
.blk.sm { width: 40px; height: 40px; }

/* ---------------------------------------------------------------- demo bar + nav */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 7px 46px 7px 16px; font-size: 12.5px; text-align: center; background: var(--accent-soft); border-bottom: 1px solid var(--line); position: relative; }
.demo-reset { background: none; border: 1px solid var(--line2); border-radius: 999px; padding: 2px 10px; font: 700 11.5px var(--f-ui); cursor: pointer; color: var(--text); }
.demo-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; padding: 4px; color: var(--muted); }
.nav { position: sticky; top: 0; z-index: 120; background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s, background-color .6s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { max-width: 1400px; margin: 0 auto; padding: 0 clamp(14px, 3vw, 32px); height: 70px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.logo .mark { width: 38px; height: 38px; color: var(--accent); flex: none; }
.logo-t { display: grid; line-height: 1.1; }
.logo-t b { font: 600 19px var(--f-display); letter-spacing: -.01em; }
.logo-t small { font: 700 9.5px var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav-links > a { position: relative; padding: 8px 14px; border-radius: 999px; text-decoration: none; font: 700 14px var(--f-ui); color: var(--muted); transition: color .2s, background-color .2s; display: inline-flex; align-items: center; gap: 6px; }
.nav-links > a:hover { color: var(--text); }
.nav-links > a[aria-current="page"] { color: var(--text); background: var(--surface2); }
.nav-links > a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 14px; height: 2px; margin-left: -7px; background: linear-gradient(90deg, var(--accent) 55%, transparent 0) 0 0 / 5px 2px repeat-x; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 800 11px/20px var(--f-ui); text-align: center; }
.badge.pop { animation: pop .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pop { 40% { transform: scale(1.6); } }
.nav-drawer-tools { display: none; }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.mode-switch { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); }
.mode-switch button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border: 0; background: none; color: var(--muted); font: 800 12.5px var(--f-ui); cursor: pointer; border-radius: 999px; transition: color .4s; white-space: nowrap; }
.mode-switch button[aria-checked="true"] { color: var(--accent-ink); }
.ms-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--accent); box-shadow: 0 4px 14px -4px var(--accent); transition: transform .6s cubic-bezier(.7, 0, .2, 1), background-color .6s; }
.ms-thumb::after { content: ""; position: absolute; inset: 2px; border-radius: inherit; border: 1px dashed rgba(0, 0, 0, .25); }
html[data-mode="retail"] .ms-thumb { transform: translateX(100%); }
html[data-mode="retail"] .ms-thumb::after { border-color: rgba(255, 255, 255, .45); }
.cur select { width: auto; padding: 8px 28px 8px 13px; border-radius: 999px; background: var(--surface2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 11px center / 10px 6px; border: 1px solid var(--line); font: 800 12.5px var(--f-ui); -webkit-appearance: none; appearance: none; cursor: pointer; }
.cur > span:not(.sr) { font: 700 12px var(--f-ui); color: var(--muted); }
.pass-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); color: var(--text); font: 800 12.5px var(--f-ui); cursor: pointer; white-space: nowrap; }
.pass-btn:hover, .cur select:hover { border-color: var(--accent); }
.pass-btn i { color: var(--accent); font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--surface2); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
body.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mini line sheet / bag + toast + fly */
.mini-sheet { position: fixed; right: 18px; bottom: 18px; z-index: 110; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .55); transform: translateY(160%); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s; font-size: 13px; }
.mini-sheet.show { transform: none; visibility: visible; transition: transform .6s var(--ease); }
.mini-sheet .ms-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .14); font-size: 17px; }
.mini-sheet span:not(.ms-ico) { display: grid; line-height: 1.2; }
.mini-sheet small { opacity: .8; font-size: 11.5px; }
.mini-sheet strong { font: 600 17px var(--f-display); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 450; max-width: min(92vw, 540px); padding: 13px 20px; border-radius: 14px; background: var(--paper); color: var(--paper-ink); box-shadow: 0 20px 50px -14px rgba(0, 0, 0, .55); font-size: 14px; transform: translate(-50%, 180%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; border: 1px solid rgba(0, 0, 0, .08); }
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }
.toast a { color: var(--madder); font-weight: 800; }
.toast i { color: var(--madder); }
.fly { position: fixed; left: 0; top: 0; width: 72px; height: 42px; z-index: 460; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .35)); }
.fly svg { width: 100%; height: 100%; display: block; }

/* block-print border strip */
.bp-border { height: 24px; background: var(--accent); opacity: .85; -webkit-mask: var(--bp) repeat-x center / 24px 24px; mask: var(--bp) repeat-x center / 24px 24px; }

/* ---------------------------------------------------------------- sections */
.sec { padding: clamp(56px, 6.5vw, 96px) 0; position: relative; }
.sec-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 4vw, 56px); align-items: end; margin-bottom: clamp(30px, 4vw, 52px); }
.sec-head h2, .set-copy h2, .pl-copy h2, .promise h2, .faq-grid h2, .o-quote h2, .st-sample h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); margin: 0; }
.sec-head > p { color: var(--muted); margin: 0; max-width: 46ch; }

/* ---------------------------------------------------------------- HERO: the living block */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(18px, 3vw, 44px) 0 clamp(34px, 4vw, 56px); min-height: min(calc(100svh - 70px), 900px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-jaal { position: absolute; inset: -20%; background-color: var(--accent); opacity: .07; -webkit-mask: var(--jaal) 0 0 / 120px 120px repeat; mask: var(--jaal) 0 0 / 120px 120px repeat; animation: drift 90s linear infinite; }
.hero-glow { position: absolute; inset: 0; background: radial-gradient(55% 55% at 72% 42%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%), radial-gradient(40% 45% at 6% 96%, rgba(168, 50, 42, .22), transparent 70%), linear-gradient(180deg, transparent 70%, var(--bg)); }
@keyframes drift { to { transform: translate(120px, 120px); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: clamp(20px, 4vw, 60px); align-items: center; width: 100%; max-width: 1360px; }
.hero h1 { font-size: clamp(2.8rem, 5.5vw, 5.1rem); line-height: .96; letter-spacing: -.03em; margin: .1em 0 .32em; font-variation-settings: "opsz" 144; }
.hero h1 em { padding-bottom: .06em; background: linear-gradient(90deg, var(--accent) 55%, transparent 0) 0 100% / 16px 3px repeat-x; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #67c26f; box-shadow: 0 0 0 0 rgba(103, 194, 111, .6); animation: live 2s infinite; }
.kick .live-dot { margin-right: -2px; }
.hero .kick::before { display: none; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(103, 194, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(103, 194, 111, 0); } }
.hero-stats { display: flex; gap: clamp(16px, 2.6vw, 34px); flex-wrap: wrap; margin: 38px 0 0; }
.hero-stats > div { border-left: 1px solid var(--line2); padding-left: 14px; }
.hero-stats dt { font: 500 clamp(1.7rem, 2.7vw, 2.4rem)/1 var(--f-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.hero-stats dd { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); max-width: 19ch; line-height: 1.35; }
.hero-stats dd small { opacity: .7; }
.count { display: inline-block; }
.count.bump { animation: bump .32s ease-out; }
@keyframes bump { 35% { transform: translateY(-4px); color: var(--text); } }
.hero-stage { position: relative; }
.lb-stage { position: relative; width: 100%; aspect-ratio: 640 / 600; user-select: none; -webkit-tap-highlight-color: transparent; }
.lb-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; cursor: crosshair; touch-action: manipulation; }
.lb-block, .lb-shadow { position: absolute; left: 0; top: 0; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.lb-block svg { width: 100%; height: 100%; display: block; }
.lb-shadow { border-radius: 16px; background: rgba(0, 0, 0, .6); filter: blur(9px); }
.lb-tip { position: absolute; left: 50%; bottom: 1.5%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line2); font: 700 12px var(--f-ui); color: var(--text); white-space: nowrap; pointer-events: none; animation: tip 3s ease-in-out infinite; transition: opacity .5s; }
.lb-tip.gone { opacity: 0; animation: none; }
@keyframes tip { 50% { transform: translate(-50%, -4px); } }
#lbShadow { transition: opacity .6s; }
.lb-chalk { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 2.2 1.4; opacity: 0; transition: opacity .3s; }
.lb-chalk.draw { opacity: .95; animation: march 1s linear infinite; }
.lb-chalk.gone { opacity: 0; }
@keyframes march { to { stroke-dashoffset: -7.2; } }
#lbPiece.thak { animation: thak .18s ease-out; }
@keyframes thak { 45% { transform: translateY(1.4px); } }
.lb-imp .lb-mot { transform-box: fill-box; transform-origin: center; animation: impIn .5s cubic-bezier(.2, .8, .3, 1) both; }
.lb-halo { transform-box: fill-box; transform-origin: center; opacity: .025; animation: halo 1.7s ease-out both; }
.lb-imp.instant .lb-mot, .lb-imp.instant .lb-halo { animation: none; }
.lb-imp.redye .lb-mot { animation: redye .55s ease-out; }
@keyframes impIn { 0% { opacity: 0; transform: scale(.84); } 30% { opacity: 1; } 100% { opacity: 1; transform: scale(1); } }
@keyframes halo { 0% { opacity: 0; transform: scale(.3); } 22% { opacity: .16; } 100% { opacity: .025; transform: scale(1.08); } }
@keyframes redye { 0% { opacity: .2; transform: scale(1.12); } 100% { opacity: 1; transform: scale(1); } }
.lb-tray-l { font: 800 10px var(--f-ui); letter-spacing: .2em; text-transform: uppercase; fill: var(--muted); }
.lb-hangitem { transition: transform 1s var(--ease), opacity .7s; }
.lb-hangitem.arrive { animation: arrive .8s var(--ease) both; }
@keyframes arrive { from { opacity: 0; } }
.lb-sway { animation: sway 4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-2.4deg); } 50% { transform: rotate(2.4deg); } }
.lb-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 8px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lb-dyes { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lb-ink { font: 600 13px var(--f-ui); color: var(--text); min-width: 12ch; }
.lb-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.lb-meta b { color: var(--text); }

/* thread marquee */
.thread-strip { position: relative; overflow: hidden; padding: 16px 0; background: var(--bg2); border-block: 1px solid var(--line); }
.thread-strip::before, .thread-strip::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent) 50%, transparent 0) 0 0 / 14px 2px repeat-x; opacity: .45; }
.thread-strip::before { top: 6px; }
.thread-strip::after { bottom: 6px; }
.ts-track { display: flex; align-items: center; gap: 26px; width: max-content; white-space: nowrap; font: 400 italic clamp(1.05rem, 1.6vw, 1.32rem) var(--f-display); animation: marquee 48s linear infinite; }
.ts-track i { font-style: normal; color: var(--accent); font-size: .8em; }
.ts-track b { color: var(--accent); font-weight: 600; }
.thread-strip:hover .ts-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* rail teaser */
.rail-sec { overflow: hidden; }
.tease-wrap { position: relative; max-width: 1440px; margin: 0 auto; padding-top: 18px; }
.tease-rod { position: absolute; left: clamp(10px, 3vw, 40px); right: clamp(10px, 3vw, 40px); top: 26px; height: 11px; border-radius: 6px; background: var(--brass); box-shadow: 0 8px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .6); z-index: 2; }
.tease-rod i { position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4cc, #c9952e 55%, #7a5418); }
.tease-rod i:first-child { left: -10px; }
.tease-rod i:last-child { right: -10px; }
.tease { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 26px); padding: 0 clamp(20px, 5vw, 70px) 10px; }
.tr-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: inherit; outline-offset: 6px; }
.tr-swing { display: block; width: 100%; transform-origin: 50% 0; will-change: transform; }
.tr-idle { display: block; transform-origin: 50% 0; animation: sway2 5.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.9s); }
.tr-idle svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 22px 20px rgba(0, 0, 0, .38)); transition: transform .5s var(--ease); }
.tr-item:hover .tr-idle svg, .tr-item:focus-visible .tr-idle svg { transform: translateY(-6px); }
@keyframes sway2 { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.tr-tag { position: relative; margin-top: 6px; display: grid; gap: 1px; text-align: center; padding: 9px 12px 10px; min-width: 78%; background: var(--paper); color: var(--paper-ink); border-radius: 26px 26px 8px 8px / 14px 14px 8px 8px; font-size: 12px; line-height: 1.3; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .5); transform: rotate(-2deg); }
.tr-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; margin: 0 auto 3px; box-shadow: inset 0 0 0 1.5px #c9952e; }
.tr-tag b { font: 800 11px var(--f-ui); letter-spacing: .1em; color: var(--madder); }
.tr-tag em { font: 600 15px var(--f-display); font-style: normal; }
.tr-tag em small { font: 600 10px var(--f-ui); opacity: .65; }
.rail-sec .center { margin-top: 34px; }

/* what is a set */
.set-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.set-copy p { color: var(--muted); margin-top: 18px; }
.set-lab { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(16px, 3vw, 32px); box-shadow: var(--shadow); }
.sl-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; align-items: baseline; }
.sl-ratio { font: 700 13px var(--f-ui); color: var(--muted); }
.sl-ratio b { color: var(--text); font-family: var(--f-display); font-size: 16px; }
.sc-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 16px); align-items: end; padding: 14px clamp(8px, 1.4vw, 16px) 10px; border-radius: 16px; background: linear-gradient(180deg, var(--bg2), var(--bg3)); border-bottom: 8px solid #6b4a2f; box-shadow: inset 0 -12px 18px -10px rgba(0, 0, 0, .35); }
.sc-col { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: ns-resize; touch-action: none; user-select: none; border-radius: 12px; padding: 4px 2px; transition: background-color .2s; }
.sc-col:hover, .sc-col:focus-visible { background: var(--accent-soft); }
.sc-stack { display: flex; flex-direction: column-reverse; justify-content: flex-start; gap: 3px; height: clamp(120px, 14vw, 156px); width: 100%; max-width: 92px; }
.sc-piece { display: block; aspect-ratio: 120 / 70; width: 100%; opacity: .07; filter: grayscale(1); transform: translateY(-16px); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.4, .5, 1); transition-delay: calc(var(--j) * 40ms); }
.sc-piece svg { width: 100%; height: 100%; display: block; }
.sc-piece.on { opacity: 1; filter: none; transform: none; }
.sc-n { font: 600 22px/1 var(--f-display); color: var(--accent); }
.sc-col > b { font: 800 12px var(--f-ui); letter-spacing: .06em; }
.sl-eq { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2.4vw, 26px); margin: 18px 0 8px; text-align: center; }
.sl-eq b { display: block; font: 500 clamp(1.9rem, 3.4vw, 2.7rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.sl-eq div span { font-size: 12px; color: var(--muted); }
.sl-eq .op { font: 300 1.7rem var(--f-display); color: var(--muted); }
.sl-range { display: grid; gap: 8px; margin: 10px 0 4px; }
input[type="range"] { -webkit-appearance: none; appearance: none; height: 8px; padding: 0; border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--p, 5%), var(--line2) var(--p, 5%)); box-shadow: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4cc, #d9a21b 50%, #7a5418); border: 3px solid var(--bg); box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff4cc, #d9a21b 50%, #7a5418); border: 3px solid var(--bg); }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.ladder { list-style: none; padding: 0; margin: 18px 0 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; align-items: end; }
.ladder li { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; height: calc(86px + var(--i) * 14px); padding: 10px; border: 1px solid var(--line); border-radius: 14px 14px 5px 5px; background: var(--surface); transition: transform .5s var(--ease), border-color .4s, box-shadow .4s, opacity .4s; }
.ladder li.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 30px -14px var(--accent); transform: translateY(-5px); background: var(--accent-soft); }
.ladder li.done { opacity: .55; }
.l-step b { display: block; font: 800 12.5px var(--f-ui); }
.l-step small { font-size: 11px; color: var(--muted); }
.l-price { font: 500 clamp(1rem, 1.6vw, 1.2rem)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.l-price small { font: 600 10px var(--f-ui); color: var(--muted); }
.l-fill { position: absolute; left: 0; bottom: 0; height: 4px; width: calc(var(--p) * 100%); background: var(--accent); transition: width .6s var(--ease); }
.nudge { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.nudge b { color: var(--text); }
.sl-foot { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--line2); padding-top: 14px; }
.sl-foot b { font: 500 1.6rem var(--f-display); font-variant-numeric: tabular-nums; }
.sl-foot div:last-child { text-align: right; }
.sl-foot div:last-child b { color: var(--accent); }

/* private label teaser */
.pl-sec { background: linear-gradient(180deg, transparent, var(--bg2) 18%, var(--bg2) 82%, transparent); }
.pl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.pl-visual { position: relative; display: grid; justify-items: center; }
.pl-arch, .fr-arch::before { border-radius: 50% 50% 16px 16px / 32% 32% 16px 16px; }
.pl-arch { position: relative; width: min(100%, 430px); aspect-ratio: 3 / 4; overflow: hidden; background: radial-gradient(ellipse at 50% 28%, var(--bg3), var(--bg)); border: 1px solid var(--line2); box-shadow: inset 0 0 0 10px color-mix(in srgb, var(--accent) 9%, transparent), var(--shadow); }
.pl-arch::after { content: ""; position: absolute; inset: 16px; border-radius: inherit; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); pointer-events: none; }
.pl-stage { position: absolute; inset: 7% 9% 3%; }
.pl-layer, .fr-layer, .st-layer { position: absolute; inset: 0; }
.pl-layer svg, .fr-layer svg, .st-layer svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .35)); }
.dip { animation: dip 1s cubic-bezier(.65, 0, .25, 1) both; }
@keyframes dip { from { clip-path: inset(100% 0 0 0); filter: saturate(1.6) brightness(1.15); } to { clip-path: inset(0 0 0 0); filter: none; } }
.tag-card, .st-tag { position: absolute; background: var(--paper); color: var(--paper-ink); border-radius: 44px 44px 10px 10px / 24px 24px 10px 10px; box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .5); }
.tag-card { right: 0; top: 18%; width: 150px; padding: 30px 14px 14px; text-align: center; transform-origin: 50% -40px; animation: tagSwing 6s ease-in-out infinite; }
@keyframes tagSwing { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(9deg); } }
.tc-hole { position: absolute; top: 11px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px #c9952e; }
.tc-string { position: absolute; left: 50%; bottom: calc(100% - 16px); width: 1.5px; height: 46px; background: #c9952e; transform-origin: bottom; transform: rotate(-24deg); }
.tag-card b { display: block; font: 600 italic 22px/1.1 var(--f-display); overflow-wrap: anywhere; }
.tag-card small { display: block; margin: 6px 0 10px; font: 700 9px/1.4 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: #6d645a; }
.tc-code { display: block; border-top: 1px dashed rgba(0, 0, 0, .2); padding-top: 6px; font: 800 11px var(--f-ui); letter-spacing: .14em; color: var(--madder); }
.pl-cap { margin: 16px 0 0; font-size: 13px; color: var(--muted); text-align: center; min-height: 2.8em; max-width: 46ch; }
.pl-copy > p { color: var(--muted); margin-top: 18px; }
.steps-mini { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.steps-mini li { counter-increment: s; position: relative; padding: 12px 12px 12px 46px; border: 1px solid var(--line); border-radius: 14px; font-size: 13.5px; color: var(--muted); background: var(--surface); }
.steps-mini li::before { content: counter(s); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 800 12px/24px var(--f-ui); text-align: center; }
.steps-mini b { display: block; color: var(--text); }

/* from block to box */
.b2b { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); }
.b2b-sticky { position: sticky; top: 92px; height: calc(100vh - 124px); max-height: 740px; display: flex; flex-direction: column; gap: 18px; }
.b2b-pics { position: relative; flex: 1; border-radius: 26px; overflow: hidden; background: var(--bg3); box-shadow: var(--shadow); }
.b2b-pics img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.1); clip-path: circle(0% at 28% 62%); transition: opacity .8s, transform 1.8s var(--ease), clip-path 1.2s cubic-bezier(.65, 0, .25, 1); }
.b2b-pics img.on { opacity: 1; transform: scale(1); clip-path: circle(150% at 28% 62%); z-index: 1; }
.b2b-pics::after { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 55%, rgba(8, 10, 24, .7)); pointer-events: none; }
.b2b-deva { position: absolute; right: 22px; bottom: 6px; z-index: 3; font: 400 clamp(3rem, 7vw, 6rem)/1.2 var(--f-deva); color: rgba(255, 246, 225, .9); text-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
.b2b-thread { padding: 0 6px; }
.th-line { position: relative; height: 10px; border-radius: 5px; background: var(--line); }
.th-seg { position: absolute; top: 0; bottom: 0; background: var(--k); opacity: .35; border-right: 2px solid var(--bg); }
.th-fill { position: absolute; left: 0; top: 0; bottom: 0; z-index: 1; border-radius: 5px; background: var(--accent); transition: width .9s var(--ease); }
.th-needle { position: absolute; top: 50%; z-index: 2; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--madder); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); transition: left .9s var(--ease); }
.th-lab { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); }
#thNow { color: var(--text); font-weight: 800; }
.k-sample { --k: var(--k-sample); } .k-fabric { --k: var(--k-fabric); } .k-print { --k: var(--k-print); } .k-wash { --k: var(--k-wash); } .k-stitch { --k: var(--k-stitch); } .k-qc { --k: var(--k-qc); } .k-pack { --k: var(--k-pack); }
.b2b-steps { list-style: none; margin: 0; padding: 0; }
.b2b-step { position: relative; min-height: 54vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 24px 32px; border-left: 2px solid transparent; border-image: linear-gradient(180deg, var(--line2) 50%, transparent 0) 1 / 0 0 0 2px repeat; opacity: .32; transition: opacity .6s; }
.b2b-step.on { opacity: 1; }
.b2b-step::before { content: ""; position: absolute; left: -8px; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); transition: background-color .4s, box-shadow .4s, border-color .4s; }
.b2b-step.on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 7px var(--accent-soft); }
.b2b-n { font: 800 13px var(--f-ui); letter-spacing: .16em; color: var(--accent); }
.b2b-step h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: .2em 0 .25em; }
.b2b-when { font: 800 13px var(--f-ui); color: var(--accent); margin-bottom: .6em; }
.b2b-step p:last-child { color: var(--muted); max-width: 46ch; }
.b2b-mob { display: none; }

/* buyer tiles */
.bt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.bt-tile { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 460px; border-radius: 24px; border: 1px solid var(--line); transition: box-shadow .4s, transform .4s var(--ease); }
.bt-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.bt-tile:hover img { transform: scale(1.06); }
.bt-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 14, 32, .05) 25%, rgba(10, 14, 32, .94) 78%); }
.bt-tile.on { box-shadow: 0 0 0 2px var(--accent), 0 20px 50px -20px var(--accent); transform: translateY(-4px); }
.bt-body { padding: 22px; color: #f5efe3; width: 100%; }
.bt-body h3 { font-size: 1.85rem; margin: 0 0 8px; color: #f5efe3; }
.bt-body ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: 13.5px; opacity: .92; }
.bt-body li::before { content: "✿ "; color: var(--haldi); }
.bt-body .btn.ghost { color: #f5efe3; border-color: rgba(245, 239, 227, .45); }
.bt-tile.on .btn.ghost { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* trust */
.trust-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 24px; align-items: stretch; }
.promise { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 4vw, 46px); }
.match { display: flex; align-items: center; gap: clamp(10px, 2vw, 20px); margin: 30px 0 22px; }
.match figure { margin: 0; flex: 1; max-width: 230px; }
.match figure:first-child { transform: rotate(-2.5deg); }
.match figure:last-of-type { transform: rotate(2deg); }
.match .sw { aspect-ratio: 1; overflow: hidden; border-radius: 8px; border: 7px solid var(--paper); box-shadow: var(--shadow); }
.match .sw svg { width: 100%; height: 100%; display: block; }
.match figcaption { margin-top: 10px; font-size: 13px; }
.match figcaption b { display: block; }
.match figcaption small { color: var(--muted); }
.match-thread { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 8px var(--accent-soft); }
.docs { position: relative; overflow: hidden; background: var(--paper); color: var(--paper-ink); border-radius: 26px; padding: clamp(22px, 3vw, 34px); }
.docs h3 { font-size: 1.6rem; color: var(--paper-ink); }
.docs dl { margin: 0; }
.docs dl div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px dashed rgba(0, 0, 0, .16); font-size: 14px; }
.docs dt { font: 800 10.5px/1.8 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: #7a6f60; }
.docs dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.docs .deva { position: absolute; right: -4px; bottom: -30px; font-size: 5.5rem; color: rgba(168, 50, 42, .1); pointer-events: none; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); }
.faq-grid > div:first-child p { margin-top: 16px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 20px 44px 20px 0; font: 500 1.22rem/1.3 var(--f-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 300 30px/1 var(--f-ui); color: var(--accent); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 62ch; }
.faq details p b { color: var(--text); }

/* final CTA */
.cta-final { padding: 20px 0 clamp(60px, 8vw, 110px); }
.cta-card { position: relative; overflow: hidden; text-align: center; padding: clamp(46px, 7vw, 100px) clamp(20px, 5vw, 80px); border-radius: 34px; border: 1px solid var(--line2); background: radial-gradient(90% 130% at 50% 0%, color-mix(in srgb, var(--accent) 22%, var(--bg2)), var(--bg2) 70%); }
.cta-card::before, .cta-card::after { content: ""; position: absolute; left: 0; right: 0; height: 22px; background: var(--accent); opacity: .5; -webkit-mask: var(--bp) repeat-x center / 22px 22px; mask: var(--bp) repeat-x center / 22px 22px; }
.cta-card::before { top: 14px; }
.cta-card::after { bottom: 14px; }
.cta-card .deva { color: var(--accent); font-size: 1.3rem; letter-spacing: .08em; }
.cta-card h2 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); max-width: 16ch; margin: 0 auto .35em; }
.cta-card > p { color: var(--muted); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-card .small { margin-top: 18px; }

/* footer */
.foot { margin-top: 40px; background: var(--bg2); border-top: 1px solid var(--line); }
.foot .bp-border { margin-top: -12px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.25fr 1.2fr; gap: 32px; padding-top: 50px; padding-bottom: 34px; }
.foot h4 { font: 800 11.5px var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 6px 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); text-decoration: underline; }
.foot-brand p { font-size: 14px; margin: 14px 0 6px; max-width: 34ch; }
.foot-brand .deva { font-size: 1.6rem; color: var(--accent); opacity: .7; margin-top: 10px; }
.foot-docs li { display: flex; gap: 8px; align-items: baseline; overflow-wrap: anywhere; }
.foot-docs i { color: var(--accent); }
.foot-bot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- inner page heads */
.page-head { position: relative; overflow: hidden; padding: clamp(34px, 6vw, 70px) 0 clamp(22px, 3vw, 36px); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: var(--accent); opacity: .05; -webkit-mask: var(--jaal) 0 0 / 110px 110px repeat; mask: var(--jaal) 0 0 / 110px 110px repeat; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--line2) 50%, transparent 0) 0 0 / 12px 2px repeat-x; }
.ph-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(3.2rem, 8.6vw, 7rem); line-height: .9; letter-spacing: -.035em; margin: .05em 0 .18em; font-variation-settings: "opsz" 144; }
.page-head .lede { margin: 0; }
.ph-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.ph-note { font-size: 13.5px; color: var(--muted); max-width: 36ch; padding: 12px 16px; border: 1px dashed var(--line2); border-radius: 14px; }
.ph-note i { color: var(--accent); }
.search { position: relative; display: flex; align-items: center; }
.search i { position: absolute; left: 15px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; border-radius: 999px; width: min(330px, 86vw); background: var(--surface2); }
.view-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); }
.view-toggle button { border: 0; background: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; font: 800 13px var(--f-ui); cursor: pointer; display: inline-flex; gap: 7px; align-items: center; transition: background-color .3s, color .3s; }
.view-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- showroom filters */
.filters { background: var(--bg2); border-block: 1px solid var(--line); padding: 14px 0 8px; }
.f-mob { display: none; }
.f-grid { display: grid; grid-template-columns: auto auto minmax(230px, 1fr) auto; gap: 18px 30px; }
#fStock { flex-direction: column; align-items: flex-start; gap: 6px; }
.f-group { min-width: 0; }
.f-row { flex-wrap: nowrap; }
.f-row.dyes { flex-wrap: wrap; max-width: 330px; }
.sr-head { padding-bottom: 18px; }
.sr-head h1 { font-size: clamp(3rem, 6vw, 5rem); }
.sr-head .ph-grid { align-items: flex-end; }
.f-h { font: 800 11px var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.f-h small { font-weight: 500; letter-spacing: .02em; text-transform: none; opacity: .75; }
.f-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.f-fab .fab-disc { width: 40px; height: 40px; }
.f-blk .blk { width: 44px; height: 44px; }
.f-fab, .f-blk { width: 58px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 2px; border: 0; border-radius: 12px; background: none; color: var(--text); cursor: pointer; font: 700 11px/1.2 var(--f-ui); text-align: center; }
.f-fab small { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.f-fab:hover .fab-disc { transform: rotate(30deg) scale(1.07); }
.f-fab[aria-pressed="true"] .fab-disc { box-shadow: 0 0 0 3px var(--bg2), 0 0 0 5px var(--accent); }
.f-blk:hover .blk { transform: translateY(-3px); }
.f-blk[aria-pressed="true"] .blk { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
.f-blk.thak .blk { animation: stamp .38s ease-out; }
@keyframes stamp { 40% { transform: scale(.84) translateY(4px); } }
.f-fab[aria-pressed="true"], .f-blk[aria-pressed="true"] { color: var(--accent); }
.f-row.dyes { gap: 10px; padding: 6px 4px; }
.f-tag { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 7px 22px; border: 0; background: var(--paper); color: var(--paper-ink); font: 800 12px var(--f-ui); cursor: pointer; clip-path: polygon(11px 0, 100% 0, 100% 100%, 11px 100%, 0 50%); border-radius: 0 6px 6px 0; transition: background-color .25s, color .25s, transform .25s; }
.f-tag::before { content: ""; position: absolute; left: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--bg2); }
.f-tag:hover { transform: rotate(-2deg); }
.f-tag[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.f-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; font-size: 13.5px; color: var(--muted); }
.f-status p { margin: 0; }
.f-status b { color: var(--text); }

/* ---------------------------------------------------------------- the rail */
.rail-view { position: relative; }
.rail-wall { position: relative; overflow: hidden; background: radial-gradient(38% 80% at var(--sx, 50%) 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%), linear-gradient(180deg, var(--bg2), var(--bg) 88%); border-bottom: 1px solid var(--line); }
.rail-wall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(180deg, transparent, color-mix(in srgb, #000 18%, var(--bg))); pointer-events: none; z-index: 1; }
.rail-rod { position: absolute; left: 0; right: 0; top: 36px; height: 12px; z-index: 2; background: var(--brass); box-shadow: 0 9px 18px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .6); }
.rail { position: relative; z-index: 3; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; overscroll-behavior-x: contain; padding-bottom: 34px; }
.rail::-webkit-scrollbar { display: none; }
.rail.grab { cursor: grabbing; user-select: none; }
.rail.grab .hang { pointer-events: none; }
.rail-track { display: flex; align-items: flex-start; gap: clamp(8px, 1.8vw, 26px); width: max-content; padding: 22px clamp(60px, 8vw, 130px) 0; }
.hang { position: relative; width: clamp(156px, 16vw, 216px); display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; animation: hangIn .8s var(--ease) both; animation-delay: calc(min(var(--n), 10) * 50ms); }
@keyframes hangIn { from { opacity: 0; transform: translateY(-46px); } }
.hang-swing { display: flex; flex-direction: column; align-items: center; width: 100%; transform-origin: 50% 0; will-change: transform; }
.hang-g { display: block; width: 100%; }
.hang-g svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 22px rgba(0, 0, 0, .42)); transition: transform .5s var(--ease); }
.hang:hover .hang-g svg, .hang:focus-visible .hang-g svg { transform: translateY(-6px) scale(1.025); }
.hang:focus-visible { outline: none; }
.hang:focus-visible .hang-tag { outline: 3px solid var(--accent); outline-offset: 3px; }
.hang-tag { position: relative; display: grid; gap: 2px; width: 88%; margin-top: 0; padding: 11px 12px 12px; background: var(--paper); color: var(--paper-ink); border-radius: 7px; font-size: 12px; line-height: 1.35; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .55); transform: rotate(-1.5deg); }
.hang-tag b { font: 800 11.5px var(--f-ui); letter-spacing: .1em; color: var(--madder); }
.hang-tag > span:not(.ht-cw) { font: 600 14px/1.2 var(--f-display); }
.ht-cw { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #6a6156; }
.hang-tag em { font: 600 17px var(--f-display); font-style: normal; margin-top: 2px; }
.hang-tag em small { font: 700 10px var(--f-ui); color: #7a6f60; }
.hang-tag .st { position: absolute; right: 9px; top: 10px; }
.hang-floor { width: 62%; height: 14px; margin-top: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .35), transparent); }
.rail-empty { padding: 110px 40px 120px; text-align: center; color: var(--muted); width: min(86vw, 620px); }
.rail-empty i { font-size: 34px; color: var(--accent); }
.rail-nav { position: absolute; top: 42%; z-index: 4; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line2); background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: var(--text); font-size: 20px; cursor: pointer; transition: transform .25s, border-color .25s; }
.rail-nav:hover { transform: scale(1.08); border-color: var(--accent); }
.rail-nav.prev { left: 14px; }
.rail-nav.next { right: 14px; }
.rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-top: 16px; }
.rail-foot p { margin: 0; }
.rail-prog { position: relative; flex: 1; max-width: 360px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rail-prog span { position: absolute; top: 0; bottom: 0; width: 22%; left: calc(var(--p, 0%) * .78); border-radius: 2px; background: var(--accent); }
kbd { font: 800 11px var(--f-ui); border: 1px solid var(--line2); border-bottom-width: 2px; border-radius: 5px; padding: 0 6px; }

/* line-sheet table */
.sheet-view { padding: 34px 0 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sheet-head h2 { font-size: 2.1rem; margin: 0 0 4px; }
.sheet-head p { margin: 0; }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); margin-bottom: 14px; }
.ls-tbl { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: 13.5px; }
.ls-tbl th { text-align: left; font: 800 10.5px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 15px 12px; border-bottom: 1px solid var(--line); }
.ls-tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ls-tbl tr:last-child td { border-bottom: 0; }
.ls-g { width: 70px; }
.ls-g svg { width: 58px; height: auto; display: block; }
.ls-cw { display: flex; align-items: center; gap: 7px; white-space: nowrap; margin-bottom: 4px; }
.ls-slabs span { display: block; white-space: nowrap; }
.ls-slabs small { display: inline-block; min-width: 72px; color: var(--muted); }

/* ---------------------------------------------------------------- fitting room */
.fr { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; }
.fr-scrim { position: absolute; inset: 0; background: rgba(5, 8, 20, .74); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); opacity: 0; transition: opacity .45s; }
.fr.open .fr-scrim { opacity: 1; }
.fr-panel { position: relative; width: min(1200px, 96vw); height: min(92vh, 900px); overflow: hidden; overflow: clip; background: var(--bg); color: var(--text); border: 1px solid var(--line2); border-radius: 30px; box-shadow: 0 50px 130px -30px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(34px) scale(.97); transition: transform .6s var(--ease), opacity .4s; }
.fr.open .fr-panel { opacity: 1; transform: none; }
.fr-curtain { position: absolute; top: 0; bottom: 0; z-index: 5; width: 50.5%; pointer-events: none; background: repeating-linear-gradient(90deg, #7a241f 0 16px, #a8322a 16px 30px, #8c2a23 30px 44px); box-shadow: inset -24px 0 40px rgba(0, 0, 0, .45); transition: transform 1.05s cubic-bezier(.7, 0, .2, 1) .12s; }
html[data-mode="wholesale"] .fr-curtain { background: repeating-linear-gradient(90deg, #172d5a 0 16px, #24427e 16px 30px, #1b3466 30px 44px); }
.fr-curtain::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px; background: var(--brass); -webkit-mask: var(--bp) repeat-x center / 26px 26px; mask: var(--bp) repeat-x center / 26px 26px; }
.fr-curtain.l { left: 0; }
.fr-curtain.r { right: 0; transform: scaleX(-1); }
.fr.open .fr-curtain.l { transform: translateX(-104%); }
.fr.open .fr-curtain.r { transform: translateX(104%) scaleX(-1); }
.fr-x { position: absolute; top: 16px; right: 16px; z-index: 8; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line2); background: var(--surface2); color: var(--text); cursor: pointer; font-size: 16px; }
.fr-x:hover { border-color: var(--accent); color: var(--accent); }
.fr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; }
.fr-mirror { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 26px 28px 22px; background: radial-gradient(70% 60% at 50% 30%, var(--bg3), var(--bg2)); border-right: 1px solid var(--line); }
.fr-room { position: absolute; top: 22px; left: 28px; margin: 0; font: 800 11px var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.fr-arch { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.fr-arch::before { content: ""; position: absolute; inset: 5% 12% 0; border: 1px solid var(--line2); background: radial-gradient(ellipse at 50% 18%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 72%); box-shadow: inset 0 0 0 9px color-mix(in srgb, var(--accent) 6%, transparent); }
.fr-g { position: relative; z-index: 6; width: 100%; max-width: 460px; height: 100%; }
.fr-layer { inset: 6% 7% 0; }
.fr-under { display: flex; gap: 18px; align-items: center; padding-top: 14px; }
.fr-loupe-wrap { display: grid; justify-items: center; gap: 6px; flex: none; }
.fr-loupe { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent); background: var(--paper); box-shadow: var(--shadow); }
.fr-loupe svg { width: 100%; height: 100%; display: block; transform: scale(1.5); }
.fr-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.cw-chip { width: 46px; height: 46px; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid var(--line2); background: none; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s; }
.cw-chip svg { width: 100%; height: 100%; display: block; }
.cw-chip:hover { transform: scale(1.06); }
.cw-chip[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: scale(1.1); }
.fr-info { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 38px clamp(20px, 3vw, 40px) 30px; }
#frHead h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); line-height: 1; margin: .15em 0 .3em; }
#frHead .kick { gap: 8px; }
#frHead .kick::before { display: none; }
.fr-story { color: var(--muted); }
.fr-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 6px; }
.fab-card { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.fab-card > div { display: grid; font-size: 12.5px; line-height: 1.35; }
.fab-card b { font-size: 14px; }
.fab-card span, .fab-card small { color: var(--muted); }
.composer, .retail-buy { margin-top: 14px; padding: 18px; border: 1px solid var(--line2); border-radius: 22px; background: var(--surface); }
.cmp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cmp-head h3 { margin: 0; font-size: 1.45rem; }
.ratio { display: flex; gap: 8px; flex-wrap: wrap; }
.r-size { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.r-size b { font-weight: 800; }
.cmp-row { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin: 16px 0 6px; }
.cmp-row > div { display: grid; gap: 4px; }
.big { font: 500 1.9rem/1 var(--f-display); font-variant-numeric: tabular-nums; }
.cmp-total { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed var(--line2); }
.cmp-total > div { display: grid; }
.cmp-total b { font: 500 1.35rem var(--f-display); }
.cmp-total b.big { font-size: 1.9rem; color: var(--accent); }
.cmp-total b small { font: 700 11px var(--f-ui); color: var(--muted); }
.cmp-total .btn { margin-left: auto; }
.moq-hint { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.moq-hint i { color: var(--accent); }
.size-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.size-pick button { min-width: 54px; height: 48px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg); color: var(--text); font: 800 14px var(--f-ui); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.size-pick button:hover { transform: translateY(-2px); border-color: var(--accent); }
.size-pick button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.retail-buy .btn.wide { margin-top: 12px; }

/* ---------------------------------------------------------------- studio */
.studio { padding: clamp(24px, 3vw, 40px) 0 0; }
.st-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.st-left { position: sticky; top: 88px; }
.st-stage { position: relative; aspect-ratio: 1 / 1.04; overflow: hidden; border-radius: 26px; border: 1px solid var(--line2); box-shadow: var(--shadow);
    background: linear-gradient(var(--mat-line) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(90deg, var(--mat-line) 1px, transparent 1px) 0 0 / 24px 24px, linear-gradient(var(--mat-line2) 1px, transparent 1px) 0 0 / 120px 120px, linear-gradient(90deg, var(--mat-line2) 1px, transparent 1px) 0 0 / 120px 120px, radial-gradient(ellipse at 45% 35%, var(--mat-a), var(--mat-b)); }
.st-ruler { position: absolute; z-index: 1; background-color: color-mix(in srgb, var(--paper) 88%, transparent); }
.st-ruler.h { left: 0; right: 0; top: 0; height: 20px; background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, .45) 0 1px, transparent 1px 12px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .55) 0 1px, transparent 1px 60px); background-size: 100% 7px, 100% 13px; background-repeat: no-repeat; }
.st-ruler.v { top: 20px; bottom: 0; left: 0; width: 20px; background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, .45) 0 1px, transparent 1px 12px), repeating-linear-gradient(0deg, rgba(0, 0, 0, .55) 0 1px, transparent 1px 60px); background-size: 7px 100%, 13px 100%; background-repeat: no-repeat; }
.st-g { position: absolute; inset: 7% 25% 4% 6%; z-index: 2; }
.st-layer.stamp { animation: stampIn .65s cubic-bezier(.2, .8, .3, 1) both; }
.st-layer.morph { animation: morph .75s var(--ease) both; }
@keyframes stampIn { 0% { opacity: 0; transform: scale(1.05); filter: blur(4px) brightness(1.3); } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes morph { 0% { opacity: 0; transform: scale(.92, .97) translateY(10px); } 100% { opacity: 1; transform: none; } }
.st-loupe { position: absolute; z-index: 3; top: 8%; right: 4%; display: grid; justify-items: center; gap: 8px; }
.st-loupe .lab { color: var(--muted); }
.woven { width: 156px; padding: 13px 10px 10px; text-align: center; border-radius: 3px; color: var(--lt, #f3ead8); background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .09) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 2px), var(--lb, #1f3a6e); box-shadow: 0 10px 22px rgba(0, 0, 0, .4), inset 0 0 0 3px var(--lb, #1f3a6e), inset 0 0 0 4px color-mix(in srgb, var(--lt, #fff) 45%, transparent); transform: rotate(-3deg); transition: background-color .5s; }
.woven span { display: block; font: 600 17px/1.1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; overflow-wrap: anywhere; }
.woven small { display: block; margin-top: 4px; font: 800 7.5px var(--f-ui); letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.st-tag { z-index: 3; right: 5%; bottom: 7%; width: 156px; padding: 30px 14px 12px; border-top: 6px solid var(--tg, #a8322a); transform: rotate(-5deg); transform-origin: 50% -40px; animation: tagSwing2 7s ease-in-out infinite; }
@keyframes tagSwing2 { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(-1deg); } }
.st-tag b { display: block; text-align: center; font: 600 italic 20px/1.1 var(--f-display); overflow-wrap: anywhere; }
.st-tag > small { display: block; text-align: center; margin: 5px 0 8px; font: 700 8.5px/1.4 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: #6d645a; }
.st-tag dl { margin: 0; display: grid; gap: 2px; font-size: 10px; }
.st-tag dl div { display: flex; justify-content: space-between; gap: 6px; border-top: 1px dashed rgba(0, 0, 0, .16); padding-top: 2px; }
.st-tag dt { color: #7a6f60; }
.st-tag dd { margin: 0; font-weight: 800; text-align: right; }
.st-caption { font-size: 13px; color: var(--muted); margin: 12px 0; min-height: 2.6em; }
.st-caption b { color: var(--text); }
.st-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.st-right { display: grid; gap: 12px; }
.ctl { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--surface); }
.ctl.two { display: grid; grid-template-columns: 1fr; gap: 14px; }
.ctl-h { display: flex; align-items: baseline; gap: 9px; font-size: 1.15rem; margin: 0 0 12px; }
.ctl-h span { font: 800 11px var(--f-ui); letter-spacing: .12em; color: var(--accent); }
.ctl-h small { font: 500 12px var(--f-ui); color: var(--muted); }
.ctl .field { margin: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 64px; padding: 8px 6px; border: 1px solid var(--line2); border-radius: 14px; background: var(--bg); color: var(--text); font: 800 11.5px/1.2 var(--f-ui); cursor: pointer; text-align: center; transition: border-color .2s, background-color .2s, transform .25s var(--ease), box-shadow .2s; }
.opt:hover { transform: translateY(-2px); border-color: var(--accent); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); color: var(--text); }
.opts.sil .opt { flex: 1 1 calc((100% - 40px) / 6); min-width: 62px; }
.opt-g { display: block; width: 100%; height: 74px; }
.opt-g svg { width: 100%; height: 100%; display: block; }
.opts.icons .opt { flex: 1 1 0; min-width: 56px; }
.ico { width: 34px; height: 24px; display: block; }
.opts.blocks .opt, .opts.fabrics .opt { flex: 1 1 70px; }
.dye-row { margin-bottom: 4px; }
.dye-row .lab b { color: var(--text); text-transform: none; letter-spacing: 0; font-size: 12px; }
.pots { display: flex; flex-wrap: wrap; gap: 6px; margin: 7px 0 12px; }
.pot { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .55), transparent 38%), var(--dye); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25), 0 0 0 1px var(--line2); transition: transform .25s var(--ease), box-shadow .25s; }
.pot:hover { transform: scale(1.12); }
.pot[aria-pressed="true"] { transform: scale(1.12); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .25), 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.qty-wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-end; }
.qty-wrap label { display: grid; gap: 6px; }
.qty-wrap p { flex-basis: 100%; margin: 0; }
.st-numbers { padding-top: clamp(40px, 5vw, 70px); padding-bottom: 0; }
.st-num-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.cost-big { display: grid; margin-bottom: 14px; }
.cost-big b { font: 500 clamp(2.6rem, 5vw, 3.6rem)/1 var(--f-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.cost-big small { color: var(--muted); font-size: 12.5px; }
.cost-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 10px; }
.cost-tbl td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.cost-tbl td:last-child { text-align: right; font-weight: 800; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.cost-tbl .sub td { font-weight: 800; }
.cost-tbl .tot td { font-size: 15px; font-weight: 800; border-bottom: 1px solid var(--line2); color: var(--accent); }
.st-sample-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
.st-sample-grid > div > p { color: var(--muted); margin-top: 16px; }
.st-saved { padding-top: 0; }
.saved-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 12px; }
.saved { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); font-size: 14px; }
.saved small { color: var(--muted); }
.saved-g { width: 56px; height: 78px; flex: none; }
.saved-g svg { width: 100%; height: 100%; }
.saved-a { margin-left: auto; display: flex; gap: 6px; align-items: center; }

/* gantt */
.g-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.g-head b { color: var(--text); }
.g-disp b { color: var(--accent); font: 600 17px var(--f-display); }
.g-disp i { color: var(--accent); }
.g-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g-row { display: grid; grid-template-columns: minmax(150px, 34%) minmax(0, 1fr); gap: 14px; align-items: center; }
.g-lab { line-height: 1.3; }
.g-lab b { display: block; font-size: 13.5px; }
.g-lab small { font-size: 11.5px; color: var(--muted); }
.g-track { position: relative; height: 28px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 10%); }
.g-bar { position: absolute; top: 0; bottom: 0; left: var(--a); width: var(--w); display: flex; align-items: center; overflow: hidden; border-radius: 8px; background: var(--k, var(--accent)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transform-origin: left; animation: grow .85s var(--ease) both; animation-delay: calc(var(--i) * 110ms); }
.g-bar em { font: 800 10.5px var(--f-ui); font-style: normal; color: #1d1f27; padding: 0 8px; white-space: nowrap; }
.k-print .g-bar em, .k-qc .g-bar em { color: #fff; }
@keyframes grow { from { transform: scaleX(0); } }
.gantt.compact .g-track { height: 18px; }
.gantt.compact .g-rows { gap: 6px; }

/* ---------------------------------------------------------------- order atelier */
body[data-page="order"] main { display: flex; flex-direction: column; }
body.retail-first .page-head { order: -2; }
body.retail-first .o-retail { order: -1; }
.carton-floor { position: relative; overflow: hidden; padding: 28px 0 44px; background: linear-gradient(180deg, var(--bg2), var(--bg)); border-bottom: 1px solid var(--line); }
.carton-floor::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 90px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 80px); transform: perspective(300px) rotateX(55deg); transform-origin: bottom; opacity: .8; pointer-events: none; }
.cf-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cf-head .h3 i { color: var(--accent); }
.cartons { position: relative; z-index: 1; display: flex; flex-wrap: wrap-reverse; align-items: flex-end; justify-content: center; gap: 22px 14px; min-height: 180px; padding-top: 22px; }
.ctn { position: relative; width: clamp(140px, 14vw, 182px); }
.ctn.new { animation: ctnIn .7s var(--ease) both; animation-delay: calc(var(--c) * 50ms); }
@keyframes ctnIn { from { opacity: 0; transform: translateY(-40px) rotate(-3deg); } }
.ctn-flaps i { position: absolute; top: -15px; width: 52%; height: 20px; background: linear-gradient(180deg, #d1ab78, #b48a58); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .2); }
.ctn-flaps i:first-child { left: -2px; transform-origin: right bottom; transform: skewX(24deg); border-radius: 3px 0 0 0; }
.ctn-flaps i:last-child { right: -2px; transform-origin: left bottom; transform: skewX(-24deg); border-radius: 0 3px 0 0; }
.ctn-in { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); align-content: end; gap: 2px; min-height: 62px; padding: 8px 8px 4px; background: #5d3f24; border-radius: 3px 3px 0 0; box-shadow: inset 0 10px 16px rgba(0, 0, 0, .5); }
.fold { display: block; aspect-ratio: 120 / 70; }
.fold svg { width: 100%; height: 100%; display: block; }
.fold.drop { animation: drop .6s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(min(var(--j), 24) * 35ms); }
@keyframes drop { from { opacity: 0; transform: translateY(-70px) rotate(-8deg); } }
.ctn-face { position: relative; display: grid; gap: 1px; padding: 10px 10px 12px; color: #3b2a1a; background: linear-gradient(180deg, #ccA472, #b38655); border-radius: 0 0 6px 6px; box-shadow: 0 16px 26px -10px rgba(0, 0, 0, .55); }
.ctn-face::before { content: ""; position: absolute; top: 0; bottom: 0; left: 44%; width: 12%; background: rgba(245, 225, 175, .45); }
.ctn-face b { position: relative; font: 800 14px var(--f-ui); letter-spacing: .14em; }
.ctn-face span { position: relative; font: 800 11px var(--f-ui); }
.ctn-face small { position: relative; font: 800 8px var(--f-ui); letter-spacing: .14em; opacity: .7; }
.ctn.more { display: grid; place-items: center; align-content: center; height: 130px; border: 2px dashed var(--line2); border-radius: 10px; color: var(--muted); text-align: center; }
.ctn.more b { font: 500 2rem var(--f-display); color: var(--text); }
.o-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; padding-top: 30px; }
.o-side { position: sticky; top: 88px; }
.o-sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.o-sec-h .h3 { margin: 0; }
.ol { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 16px; margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); transition: opacity .28s, transform .28s; }
.ol.leaving { opacity: 0; transform: translateX(40px); }
.ol-g svg { width: 86px; height: auto; display: block; }
.ol-main header h3 { margin: 0; font-size: 1.2rem; }
.ol-main header p { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: 3px 0 10px; font-size: 12.5px; color: var(--muted); }
.ol-ratio { display: flex; gap: 6px; flex-wrap: wrap; }
.ol-ratio label { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; }
.ol-slab { margin-top: 12px; }
.slab-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.slab-bar span { display: block; height: 100%; width: calc(var(--p) * 100%); background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); transition: width .6s var(--ease); }
.ol-slab p { margin: 7px 0 0; font-size: 12.5px; color: var(--muted); }
.ol-slab b { color: var(--text); }
.ol-sum { display: grid; gap: 8px; justify-items: end; text-align: right; align-content: start; }
.ol-sum dl { margin: 0; display: grid; gap: 2px; font-size: 12.5px; }
.ol-sum dl div { display: flex; justify-content: space-between; gap: 14px; min-width: 150px; }
.ol-sum dt { color: var(--muted); }
.ol-sum dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.ol-tot dd { font: 500 1.25rem var(--f-display); color: var(--accent); }
.o-sum .h3 { margin-bottom: 12px; }
.moq-bar { position: relative; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.moq-bar span { display: block; height: 100%; width: var(--p); background: repeating-linear-gradient(45deg, var(--accent) 0 8px, color-mix(in srgb, var(--accent) 78%, #fff) 8px 16px); transition: width .8s var(--ease); }
.moq-bar.met span { background: var(--ok); }
.moq p { font-size: 13px; margin: 8px 0 14px; color: var(--muted); }
.moq p b { color: var(--text); }
.moq p i { color: var(--ok); }
.totals { margin: 0; display: grid; gap: 7px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 800; font-variant-numeric: tabular-nums; }
.totals .save dd { color: var(--ok); }
.totals .grand { margin-top: 4px; padding-top: 10px; border-top: 1px dashed var(--line2); align-items: center; }
.totals .grand dt { color: var(--text); font-weight: 800; }
.totals .grand dd { font: 500 1.8rem var(--f-display); color: var(--accent); }
.disp { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); }
.disp b { font: 600 1.1rem var(--f-display); }
.o-plan { margin-top: 28px; }
.o-plan .o-sec-h p { margin: 0; }
.o-plan .o-sec-h i { color: var(--accent); }
.cap-bar { display: flex; height: 12px; margin-top: 20px; border-radius: 6px; overflow: hidden; background: var(--line); }
.cap-bar .b { width: var(--b); background: var(--line2); }
.cap-bar .y { width: var(--y); background: var(--accent); }
.o-quote { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 44px); align-items: start; padding-top: 60px; padding-bottom: 24px; }
.o-quote > div > p { color: var(--muted); margin-top: 16px; }
.o-customs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.o-customs li { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.o-customs small { display: block; color: var(--muted); }
.cu-g { width: 40px; height: 56px; flex: none; }
.cu-g svg { width: 100%; height: 100%; }
.o-done { display: flex; gap: 26px; align-items: center; margin: 24px 0; border-color: var(--accent); }
.o-done h3 { font-size: 1.7rem; }
.o-done h3 b { color: var(--accent); font-weight: 600; }
.o-done p { color: var(--muted); }
.done-stamp { position: relative; flex: none; width: 124px; height: 124px; color: var(--accent); animation: stampDown .7s cubic-bezier(.3, 1.6, .5, 1) both; transform: rotate(-8deg); }
.done-stamp svg { width: 100%; height: 100%; }
.done-stamp i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; }
@keyframes stampDown { 0% { opacity: 0; transform: scale(1.8) rotate(-20deg); } 60% { opacity: 1; transform: scale(.92) rotate(-8deg); } 100% { transform: scale(1) rotate(-8deg); } }
.o-bag-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; }
.bag-it { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.bag-it .ol-g svg { width: 60px; }
.bag-it p { margin: 2px 0 0; }
.bag-sum { font: 500 1.15rem var(--f-display); font-variant-numeric: tabular-nums; }
.bag-total { display: grid; margin-bottom: 14px; }
.bag-total b { font: 500 2.2rem var(--f-display); color: var(--accent); }
.bag-total small { color: var(--muted); }
.q-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.q-list li { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); font-size: 13.5px; }
.o-quotes { padding-top: 30px; }
.empty-card { max-width: 660px; text-align: center; }
.empty-card h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.empty-card p { color: var(--muted); }
.empty-ctn { position: relative; width: 210px; height: 170px; margin: 0 auto 26px; }
.ec-box { position: absolute; left: 10%; right: 10%; bottom: 0; height: 104px; display: grid; place-content: center; text-align: center; color: #3b2a1a; background: linear-gradient(180deg, #cca472, #b38655); border-radius: 4px 4px 8px 8px; box-shadow: var(--shadow); }
.ec-box b { font: 800 15px var(--f-ui); letter-spacing: .16em; }
.ec-box small { font: 700 10px var(--f-ui); opacity: .75; }
.ec-flap { position: absolute; bottom: 100px; width: 41%; height: 34px; background: linear-gradient(180deg, #d1ab78, #b48a58); }
.ec-flap.l { left: 10%; transform-origin: left bottom; animation: flapL 3.4s ease-in-out infinite; }
.ec-flap.r { right: 10%; transform-origin: right bottom; animation: flapR 3.4s ease-in-out infinite; }
@keyframes flapL { 0%, 100% { transform: rotate(-30deg); } 50% { transform: rotate(-42deg); } }
@keyframes flapR { 0%, 100% { transform: rotate(30deg); } 50% { transform: rotate(42deg); } }

/* ---------------------------------------------------------------- buyer passport */
.passport { position: fixed; inset: 0; z-index: 320; display: grid; place-items: center; padding: 16px; }
.pp-scrim { position: absolute; inset: 0; background: rgba(5, 8, 20, .76); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .45s; }
.passport.open .pp-scrim { opacity: 1; }
.pp-book { position: relative; display: grid; grid-template-columns: 230px minmax(0, 1fr); width: min(1100px, 100%); max-height: calc(100svh - 32px); overflow: hidden; border-radius: 24px; box-shadow: 0 60px 140px -30px rgba(0, 0, 0, .85); opacity: 0; transform: perspective(1800px) rotateY(-16deg) translateY(30px); transform-origin: left center; transition: transform .8s var(--ease), opacity .5s; }
.passport.open .pp-book { opacity: 1; transform: none; }
.pp-cover { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 36px 24px; text-align: center; color: #d9a21b; background: radial-gradient(circle at 50% 35%, #22306a, #10183a); border-right: 4px double rgba(217, 162, 27, .5); overflow: hidden; }
.pp-cover::before { content: ""; position: absolute; inset: 0; background-color: #d9a21b; opacity: .07; -webkit-mask: var(--jaal) 0 0 / 70px 70px repeat; mask: var(--jaal) 0 0 / 70px 70px repeat; }
.pp-emb .mark { width: 72px; height: 72px; color: #d9a21b; }
.pp-emb .mark circle { fill: #16214a; }
.pp-kick { margin: 0; font: 800 12px var(--f-ui); letter-spacing: .32em; text-transform: uppercase; }
.pp-deva { margin: 0; font: 400 3.8rem/1.2 var(--f-deva); }
.pp-maker { margin: 0; font: 600 1.35rem var(--f-display); color: #f5efe3; }
.pp-small { margin: 0; font: 700 10px var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: #f5efe3; opacity: .65; }
.pp-thread { width: 70%; height: 2px; margin-top: 12px; background: linear-gradient(90deg, #d9a21b 50%, transparent 0) 0 0 / 10px 2px repeat-x; opacity: .6; }
.pp-page { position: relative; overflow-y: auto; padding: 32px clamp(18px, 3vw, 38px) 24px; color: #1d1f27; background: repeating-radial-gradient(circle at 100% 0, rgba(168, 50, 42, .045) 0 1px, transparent 1px 11px), #f7f1e5; }
.pp-page .kick { color: #a8322a; }
.pp-page h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin: 0 0 .25em; }
.pp-page h2 em { color: #a8322a; }
.pp-page .muted { color: #5f5a52; }
.pp-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(29, 31, 39, .2); background: #fff; color: #1d1f27; cursor: pointer; }
.pp-stamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 20px 0 12px; }
.pp-stamp { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px; text-align: center; border: 1px dashed rgba(29, 31, 39, .28); border-radius: 18px; background: rgba(255, 255, 255, .55); color: #1d1f27; cursor: pointer; transition: transform .25s var(--ease), border-color .25s, background-color .25s; }
.pp-stamp:hover { transform: translateY(-3px); border-color: #a8322a; }
.pp-stamp:focus-visible { outline-color: #a8322a; }
.pp-ink { position: relative; display: block; width: 86px; height: 86px; color: #8a8174; transition: color .3s; }
.pp-ink svg { width: 100%; height: 100%; display: block; }
.pp-ink i { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; }
.pp-stamp b { font: 600 1.05rem var(--f-display); }
.pp-stamp small { font-size: 11.5px; line-height: 1.35; color: #5f5a52; }
.pp-stamp.stamped { border-style: solid; border-color: #a8322a; background: #fff; }
.pp-stamp.stamped .pp-ink { color: #a8322a; transform: rotate(-8deg); animation: stampDown .6s cubic-bezier(.3, 1.6, .5, 1) both; }
.pp-cur { margin: 8px 0; }
.pp-cur p { margin: 0 0 8px; }
.pp-cur .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-cur .chip { background: #fff; color: #1d1f27; border-color: rgba(29, 31, 39, .25); }
.pp-cur .chip:hover { border-color: #a8322a; }
.pp-visa { min-height: 1.6em; margin: 8px 0 14px; font-size: 14px; color: #3b3a36; }
.visa-stamp { display: inline-block; margin-right: 6px; padding: 2px 10px; border: 2px solid #5f8f5a; border-radius: 6px; color: #3f6f3a; font: 800 11.5px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-3deg); }
.pp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 14px; border-top: 1px dashed rgba(29, 31, 39, .2); }
.pp-foot .linkish { color: #a8322a; }
.pp-foot .muted { font-size: 12.5px; }

/* ---------------------------------------------------------------- print */
.print-only { display: none; }
.spec-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid #1d1f27; }
.spec-head h2 { font-size: 26px; margin: 0 0 4px; }
.spec-head p { margin: 0; font-size: 12px; }
.spec-maker { font-size: 11px; text-align: right; }
.spec-grid { display: grid; grid-template-columns: 220px 1fr; gap: 22px; margin-bottom: 16px; }
.spec-g svg { width: 100%; height: auto; }
.spec-tbl, .pf-tbl { width: 100%; border-collapse: collapse; font-size: 11px; }
.spec-tbl th, .spec-tbl td, .pf-tbl th, .pf-tbl td { padding: 5px 7px; border-bottom: 1px solid #ddd; text-align: left; vertical-align: top; }
.spec-tbl th { width: 34%; color: #555; font-weight: 600; }
.pf-tbl thead th { border-bottom: 2px solid #1d1f27; }
.pf-tbl tfoot td { font-weight: 700; }
.pf-tbl .grand td { font-size: 13px; border-top: 2px solid #1d1f27; }
.spec-dyes { margin-top: 12px; }
.spec-dyes span { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; font-size: 11px; }
.spec-dyes i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #999; display: inline-block; }
.spec-note { font-size: 10px; color: #555; margin-top: 14px; }
.pf-buyer { font-size: 12px; }
@media print {
    @page { margin: 13mm; }
    html, html[data-mode] { --bg: #fff; --bg2: #fff; --surface: #fff; --surface2: #fff; --text: #1d1f27; --muted: #555; --line: rgba(0, 0, 0, .15); --line2: rgba(0, 0, 0, .3); --accent: #a8322a; --accent-ink: #fff; --paper: #fff; }
    html, body { background: #fff !important; color: #1d1f27 !important; }
    #srPrint { display: none !important; }
    body::after, #lpTop, #lpFoot, .mini-sheet, .toast, .passport, .fr, .no-print, .skip { display: none !important; }
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none !important; transition: none !important; }
    .print-only { display: block !important; color: #1d1f27; }
    body.print-sheet main > :not(#sheetView), body.print-spec main > :not(#stSpec), body.print-proforma main > :not(#oProforma) { display: none !important; }
    body.print-sheet #sheetView { display: block !important; padding: 0; }
    body.print-sheet .tbl-scroll { border: 0; overflow: visible; background: none; }
    body.print-sheet .ls-tbl { min-width: 0; font-size: 9.5px; color: #1d1f27; }
    body.print-sheet .ls-tbl th, body.print-sheet .ls-tbl td { color: #1d1f27; border-color: #ccc; padding: 6px; }
    body.print-sheet .sheet-head h2, .spec-card h2, .proforma h2 { color: #1d1f27; }
    .gantt { color: #1d1f27; }
    .g-head, .g-lab small { color: #555; }
    .g-track { background: #f1ede4; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
    .f-grid { grid-template-columns: auto minmax(0, 1fr); }
    .f-row { overflow-x: auto; scrollbar-width: none; }
    .bt-grid { grid-template-columns: 1fr 1fr; }
    .bt-tile { min-height: 400px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    .pass-top span { display: none; }
    /* the full nav needs ~1180px; below that the links and tools move into the menu */
    .burger { display: inline-flex; }
    .cur-top, .pass-top { display: none; }
    .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px clamp(14px, 3vw, 32px) 20px; background: var(--bg2); border-bottom: 1px solid var(--line); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .5); }
    body.nav-open .nav-links { display: flex; }
    .nav-links > a { padding: 12px 14px; font-size: 16px; }
    .nav-drawer-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--line); }
    .nav-drawer-tools .cur { display: flex; align-items: center; gap: 8px; }
}
@media (max-width: 1020px) {
    .hero { min-height: 0; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-stage { max-width: 680px; width: 100%; margin: 0 auto; }
    .hero-grid { gap: 0; }
    .hero-copy { display: contents; }
    .hero-copy > .kick { order: 1; }
    .hero-copy > h1 { order: 2; }
    .hero-stage { order: 3; margin: 4px auto 26px; }
    .hero-copy > .lede { order: 4; }
    .hero-copy > .cta-row { order: 5; margin-top: 18px; }
    .hero-copy > .hero-stats { order: 6; }
    .sec-head, .set-grid, .pl-grid, .trust-grid, .faq-grid, .st-grid, .st-num-grid, .st-sample-grid, .o-grid, .o-quote, .o-bag-grid { grid-template-columns: 1fr; }
    .st-left, .o-side { position: static; }
    .b2b { grid-template-columns: 1fr; }
    .b2b-sticky { display: none; }
    .b2b-mob { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; margin: 12px 0 6px; }
    .b2b-step { min-height: 0; opacity: 1; padding: 22px 0 22px 26px; }
    .b2b-step::before { top: 32px; }
}
@media (max-width: 860px) {
    .fr-panel { width: 100vw; height: 100svh; border-radius: 0; border: 0; }
    .fr-grid { display: block; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
    .fr-mirror { height: min(64svh, 560px); border-right: 0; border-bottom: 1px solid var(--line); }
    .fr-info { overflow: visible; padding-top: 24px; }
    .rail-nav { display: none; }
}
@media (max-width: 680px) {
    body { font-size: 15px; }
    .tease { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px; padding: 0 20px 10px; }
    .tease::-webkit-scrollbar { display: none; }
    .tr-item { flex: 0 0 44%; scroll-snap-align: center; }
    .f-grid { grid-template-columns: 1fr; gap: 14px; display: none; padding-top: 12px; }
    .filters.f-open .f-grid { display: grid; }
    .f-mob { display: block; }
    .f-row.dyes { flex-wrap: nowrap; max-width: none; }
    .sr-head h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
    .f-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
    .f-row::-webkit-scrollbar { display: none; }
    .steps-mini, .f2, .ctl.two, .fr-cards { grid-template-columns: 1fr; }
    .bt-grid { grid-template-columns: 1fr; }
    .bt-tile { min-height: 380px; }
    .foot-grid { grid-template-columns: 1fr; gap: 22px; }
    .hero-stats > div { flex: 1 1 40%; }
    .lb-controls { flex-direction: column; align-items: flex-start; }
    .tag-card { width: 120px; padding: 26px 10px 10px; top: 10%; }
    .tag-card b { font-size: 18px; }
    .ol { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
    .ol-g svg { width: 62px; }
    .ol-sum { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; border-top: 1px dashed var(--line); padding-top: 10px; }
    .ol-sum .lab { display: none; }
    .bag-it { grid-template-columns: 52px minmax(0, 1fr) auto; }
    .bag-it .stepper { grid-column: 2; }
    .q-list li { grid-template-columns: 1fr 1fr; }
    .cmp-total .btn { margin-left: 0; width: 100%; }
    .g-row { grid-template-columns: 1fr; gap: 4px; }
    .st-g { inset: 9% 30% 4% 4%; }
    .st-loupe { transform: scale(.8); transform-origin: top right; }
    .st-tag { width: 128px; padding: 26px 10px 10px; transform-origin: 50% -40px; }
    .st-tag b { font-size: 16px; }
    .match { flex-wrap: wrap; justify-content: center; }
    .match figure { flex: 1 1 38%; }
    .o-done { flex-direction: column; align-items: flex-start; }
    .ladder li { height: calc(76px + var(--i) * 12px); padding: 8px 7px; }
    .pp-book { grid-template-columns: 1fr; }
    .pp-cover { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 18px; text-align: left; border-right: 0; border-bottom: 4px double rgba(217, 162, 27, .5); }
    .pp-emb .mark { width: 42px; height: 42px; }
    .pp-deva { font-size: 2rem; }
    .pp-small, .pp-thread { display: none; }
    .pp-stamps { grid-template-columns: 1fr 1fr; gap: 8px; }
    .pp-ink { width: 58px; height: 58px; }
    .pp-stamp small { display: none; }
}
@media (max-width: 520px) {
    .logo-t { display: none; }
    .mode-switch button { padding: 7px 10px; }
    .mode-switch button i { display: none; }
    .nav-in { gap: 10px; }
    .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
    .page-head h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
    .sc-stack { height: 112px; }
    .mini-sheet { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
    .demo-bar { font-size: 11.5px; }
}

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
    .ts-track, .hero-jaal, .lb-sway, .tr-idle, .tag-card, .st-tag, .live-dot, .lb-tip, .ec-flap { animation: none !important; }
    html.ready .rv:not(.in) { opacity: 1; transform: none; }
}

/* =============================================================================
   Wave 2 integration: Tools menu, buyer toolkit, margin card, export estimator
   ============================================================================= */
/* ---------------------------------------------------------------- nav: Tools dropdown */
.nav-dd { position: relative; }
.nav-dd-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 700 14px var(--f-ui); cursor: pointer; transition: color .2s, background-color .2s; }
.nav-dd-btn:hover, .nav-dd.open .nav-dd-btn { color: var(--text); }
.nav-dd-btn.on { color: var(--text); background: var(--surface2); }
.nav-dd-btn.on::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 14px; height: 2px; margin-left: -7px; background: linear-gradient(90deg, var(--accent) 55%, transparent 0) 0 0 / 5px 2px repeat-x; }
.nav-dd-btn i { font-size: 10px; transition: transform .3s var(--ease); }
.nav-dd.open .nav-dd-btn i { transform: rotate(180deg); }
.nav-dd-panel { position: absolute; top: calc(100% + 16px); left: 50%; z-index: 130; width: min(640px, 92vw); padding: 16px; border-radius: 22px; background: var(--bg2); border: 1px solid var(--line2); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); opacity: 0; transform: translate(-50%, -8px); transition: opacity .25s, transform .4s var(--ease); }
.nav-dd-panel.in { opacity: 1; transform: translate(-50%, 0); }
.nav-dd-panel::before { content: ""; position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; background: var(--bg2); border-left: 1px solid var(--line2); border-top: 1px solid var(--line2); transform: translateX(-50%) rotate(45deg); }
.nav-dd-h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 10px; font: 800 10.5px var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.nav-dd-h .deva-inline { color: var(--accent); font-size: 15px; opacity: .8; }
.nav-dd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nav-dd-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color .2s, transform .3s var(--ease), background-color .2s; }
.nav-dd-panel.in .nav-dd-card { animation: ddIn .45s var(--ease) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes ddIn { from { opacity: 0; transform: translateY(8px); } }
.nav-dd-card:hover, .nav-dd-card:focus-visible { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }
.nav-dd-card[aria-current="page"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.nav-dd-ico { width: 40px; height: 40px; margin-bottom: 6px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 18px; }
.nav-dd-card b { font: 600 1.1rem/1.15 var(--f-display); }
.nav-dd-card small { font-size: 12px; line-height: 1.4; color: var(--muted); }
.nav-dd-go { margin-top: auto; padding-top: 8px; font: 800 11.5px var(--f-ui); color: var(--accent); }
.nav-dd-desk { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 8px; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--line2); background: none; color: var(--text); font: 600 13px var(--f-ui); text-align: left; cursor: pointer; transition: border-color .2s, background-color .2s; }
.nav-dd-desk:hover, .nav-dd-desk:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.nav-dd-desk i { color: var(--accent); font-size: 16px; }
.nav-dd-desk kbd { margin-left: auto; }
.nav-tools-m { display: none; }
@media (min-width: 1181px) and (max-width: 1340px) {
    .nav-links { margin-left: 4px; }
    .nav-links > a, .nav-dd-btn { padding: 8px 10px; }
    .nav-in { gap: 12px; }
}
@media (max-width: 1180px) {
    .nav-dd { display: none; }
    .nav-tools-m { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--line); }
    .nav-tools-m .lab { padding: 4px 14px 2px; }
    .nav-tools-m a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 999px; text-decoration: none; font: 700 16px var(--f-ui); color: var(--muted); }
    .nav-tools-m a i { color: var(--accent); }
    .nav-tools-m a:hover, .nav-tools-m a[aria-current="page"] { color: var(--text); background: var(--surface2); }
    .nav-links { max-height: calc(100svh - 80px); overflow-y: auto; }
}

/* ---------------------------------------------------------------- home: the buyer toolkit */
.tk-sec { overflow: hidden; }
.tk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tk-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .45s var(--ease), box-shadow .45s; }
.tk-card:hover { border-color: var(--line2); transform: translateY(-4px); box-shadow: var(--shadow); }
.tk-desk, .tk-lab { grid-column: span 2; flex-direction: row; }
.tk-lab { flex-direction: row-reverse; }
.tk-vis { position: relative; min-height: 230px; display: grid; place-items: center; padding: 22px 18px; border-bottom: 1px solid var(--line); background: radial-gradient(80% 90% at 50% 30%, color-mix(in srgb, var(--accent) 10%, var(--bg3)), var(--bg2) 75%); overflow: hidden; }
.tk-vis::before { content: ""; position: absolute; inset: 0; background-color: var(--accent); opacity: .05; -webkit-mask: var(--jaal) 0 0 / 70px 70px repeat; mask: var(--jaal) 0 0 / 70px 70px repeat; pointer-events: none; }
.tk-vis > * { position: relative; }
.tk-desk .tk-vis, .tk-lab .tk-vis { flex: 1.15; border-bottom: 0; }
.tk-desk .tk-vis { border-right: 1px solid var(--line); }
.tk-lab .tk-vis { border-left: 1px solid var(--line); }
.tk-copy { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 22px 24px 24px; }
.tk-kick { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 800 11px var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.tk-copy h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); margin: 0 0 8px; }
.tk-copy p:not(.tk-kick) { color: var(--muted); font-size: 14px; }
.tk-copy .btn { align-self: flex-start; margin-top: auto; }
.tk-copy .btn kbd { color: inherit; border-color: rgba(0, 0, 0, .25); }
.tk-link { margin-top: auto; display: inline-flex; align-items: center; gap: 7px; font: 800 14px var(--f-ui); color: var(--accent); text-decoration: none; }
.tk-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tk-link i { transition: transform .3s var(--ease); }
.tk-card:hover .tk-link i { transform: translateX(4px); }
.tk-card:has(.tk-link:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.tk-link:focus-visible { outline: none; }
/* trade-desk typing demo */
.tk-term { width: min(100%, 460px); display: grid; gap: 12px; }
.tk-line { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line2); box-shadow: 0 0 0 4px var(--accent-soft), 0 20px 40px -20px rgba(0, 0, 0, .55); font: 500 15px var(--f-ui); }
.tk-line > i { color: var(--accent); font-size: 17px; }
.tk-typed { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .3s; }
.tk-caret { flex: none; width: 2px; height: 20px; margin-left: -6px; background: var(--accent); animation: tkBlink 1s steps(1) infinite; }
@keyframes tkBlink { 50% { opacity: 0; } }
.tk-line kbd { margin-left: auto; flex: none; }
.tk-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; transition: opacity .3s; }
.tk-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface2); font: 700 12px/1.2 var(--f-ui); animation: tkChip .45s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.tk-chips li i { color: var(--accent); }
.tk-chips li.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tk-chips li.on i { color: inherit; }
@keyframes tkChip { from { opacity: 0; transform: translateY(8px) scale(.95); } }
.tk-res { display: flex; align-items: center; gap: 12px; min-height: 66px; transition: opacity .3s; }
.tk-res > * { animation: tkChip .5s var(--ease) .45s both; }
.tk-g { width: 46px; flex: none; }
.tk-g svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .35)); }
.tk-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.tk-res b { display: block; font: 500 1.15rem/1.2 var(--f-display); }
.tk-res b small { font: 600 11px var(--f-ui); color: var(--muted); }
.tk-res span > small { display: block; font-size: 12px; color: var(--muted); }
.tk-desk.erase .tk-typed, .tk-desk.erase .tk-chips, .tk-desk.erase .tk-res { opacity: 0; }
/* capsule rail */
.tk-cap { width: 100%; max-width: 340px; }
.tk-rod { height: 7px; margin: 0 2px; border-radius: 4px; background: var(--brass); box-shadow: 0 6px 12px rgba(0, 0, 0, .35); }
.tk-hangs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; height: 112px; margin-top: -6px; }
.tk-h { opacity: 0; transform: translate(-26px, -10px) rotate(-10deg); transform-origin: 50% 0; transition: opacity .5s, transform .8s cubic-bezier(.3, 1.5, .5, 1); }
.tk-h.on { opacity: 1; transform: none; }
.tk-h svg { width: 100%; height: auto; display: block; transform-origin: 50% 0; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .35)); }
.tk-h.on svg { animation: sway2 4.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); }
.tk-meter { height: 8px; margin-top: 10px; border-radius: 4px; background: var(--line); overflow: hidden; }
.tk-fill { display: block; width: 0; height: 100%; background: repeating-linear-gradient(45deg, var(--accent) 0 8px, color-mix(in srgb, var(--accent) 78%, #fff) 8px 16px); transition: width .8s var(--ease); }
.tk-cap-t { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tk-cap-t b { font: 600 15px var(--f-display); color: var(--text); font-variant-numeric: tabular-nums; }
/* live floor */
.tk-floor { position: relative; width: 100%; max-width: 360px; }
.tk-belt { position: absolute; left: 8.33%; right: 8.33%; top: 20px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--line2) 0 8px, transparent 8px 14px); background-size: 14px 4px; animation: tkBelt .6s linear infinite; }
@keyframes tkBelt { to { background-position: 14px 0; } }
.tk-bundle { position: absolute; z-index: 3; top: 50%; left: 0; width: 18px; height: 13px; margin: -6.5px 0 0 -9px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 6px 10px rgba(0, 0, 0, .35); animation: tkBundle 6.5s linear infinite; }
.tk-bundle::after { content: ""; position: absolute; left: 3px; right: 3px; top: 5px; height: 2px; background: rgba(0, 0, 0, .25); }
@keyframes tkBundle { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 88% { left: 100%; opacity: 1; } 94%, 100% { left: 100%; opacity: 0; } }
.tk-stations { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tk-stations li { display: grid; justify-items: center; gap: 6px; }
.tk-stations li span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 2px solid var(--k); color: var(--k); font-size: 17px; animation: tkStation 6.5s ease-out infinite; animation-delay: calc(var(--i) * 1.03s + .1s); }
@keyframes tkStation { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 3% { background: var(--k); color: #1d1f27; box-shadow: 0 0 0 7px color-mix(in srgb, var(--k) 30%, transparent); } 16% { background: var(--bg); color: var(--k); box-shadow: 0 0 0 14px transparent; } }
.tk-stations small { font: 800 10px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tk-capbar { height: 8px; margin-top: 20px; border-radius: 4px; background: var(--line); overflow: hidden; }
.tk-capbar span { display: block; height: 100%; background: color-mix(in srgb, var(--accent) 60%, var(--line2)); }
/* print lab */
.tk-lab { width: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 30px); }
.tk-tile { position: relative; width: min(44%, 190px); aspect-ratio: 1; border-radius: 6px; box-shadow: var(--shadow); outline: 1px dashed var(--line2); outline-offset: 7px; }
.tk-tile svg { width: 100%; height: 100%; display: block; border-radius: 6px; }
.tk-imp.new { transform-box: fill-box; transform-origin: center; animation: tkImp .5s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes tkImp { from { opacity: 0; transform: scale(.82); } }
.tk-blk { position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; pointer-events: none; transform: translate(-50%, -50%) translateY(-14px) scale(1.06); filter: drop-shadow(0 14px 10px rgba(0, 0, 0, .45)); transition: left .34s cubic-bezier(.55, 0, .3, 1), top .34s cubic-bezier(.55, 0, .3, 1), opacity .4s; }
.tk-blk svg { width: 100%; height: 100%; display: block; }
.tk-blk.press { animation: tkPress .32s ease-in-out; }
@keyframes tkPress { 50% { transform: translate(-50%, -50%) translateY(0) scale(.93); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); } }
.tk-blk.rest { opacity: 0; }
.tk-rep { position: relative; width: min(44%, 190px); aspect-ratio: 1; overflow: hidden; border-radius: 50%; border: 3px solid var(--accent); box-shadow: var(--shadow); opacity: .2; transform: scale(.9) rotate(-6deg); transition: opacity .8s, transform 1s var(--ease); }
.tk-rep.on { opacity: 1; transform: none; }
.tk-rep svg { width: 100%; height: 100%; display: block; }
.tk-rep span { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: var(--paper); color: var(--paper-ink); font: 800 10px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 1020px) {
    .tk-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    .tk-grid { grid-template-columns: 1fr; }
    .tk-desk, .tk-lab { grid-column: auto; flex-direction: column; }
    .tk-desk .tk-vis, .tk-lab .tk-vis { flex: none; border: 0; border-bottom: 1px solid var(--line); }
}

/* ---------------------------------------------------------------- fitting room: margin at MRP */
.mg-card { margin-top: 14px; padding: 14px; border-radius: 16px; border: 1px dashed var(--line2); background: color-mix(in srgb, var(--accent) 5%, transparent); }
.mg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.mg-head h4 { margin: 0; font-size: 1.12rem; }
.mg-head span { font-size: 11.5px; font-style: italic; color: var(--muted); }
.mg-bar { display: flex; height: 26px; overflow: hidden; border-radius: 8px; background: var(--line); font: 800 10.5px var(--f-ui); }
.mg-bar em { font-style: normal; }
.mg-cost { flex: none; width: var(--to); display: flex; align-items: center; padding: 0 8px; overflow: hidden; white-space: nowrap; background: var(--line2); color: var(--text); animation: mgGrow .9s var(--ease) both; }
@keyframes mgGrow { from { width: var(--from); } }
.mg-gain { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 8px; overflow: hidden; white-space: nowrap; background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 65%, transparent), var(--ok)); color: #fff; }
.mg-facts { margin: 10px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mg-facts div { display: grid; gap: 2px; align-content: start; }
.mg-facts dt { font: 800 9.5px/1.3 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mg-facts dd { margin: 0; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mg-facts dd small { color: var(--ok); font-weight: 800; }
.mg-tot dd { font: 500 1.15rem var(--f-display); color: var(--accent); }
.mg-note { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }
@media (max-width: 680px) { .mg-facts { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- order: production hold + export estimator */
.o-hold { display: flex; gap: 10px; align-items: flex-start; margin: -4px 0 14px; padding: 10px 12px; border-radius: 14px; border: 1px dashed var(--accent); font-size: 13px; }
.o-hold i { color: var(--accent); font-size: 18px; line-height: 1.2; }
.o-hold small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.o-hold a { color: var(--accent); font-weight: 700; }
.ex-card { margin-top: 24px; padding: 0; overflow: hidden; }
.ex-sum { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px clamp(18px, 3vw, 28px); cursor: pointer; }
.ex-sum::-webkit-details-marker { display: none; }
.ex-sum:focus-visible { outline-offset: -4px; border-radius: 22px; }
.ex-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); font-size: 20px; }
.ex-sum-t { display: grid; gap: 2px; }
.ex-sum-t b { font: 500 1.5rem/1.1 var(--f-display); }
.ex-sum-t small { font-size: 13px; color: var(--muted); }
.ex-chev { margin-left: auto; color: var(--muted); transition: transform .35s var(--ease); }
.ex-card[open] .ex-chev { transform: rotate(180deg); }
.ex-body { padding: 0 clamp(18px, 3vw, 28px) clamp(18px, 3vw, 28px); border-top: 1px dashed var(--line2); }
.ex-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(18px, 3vw, 36px); padding-top: 18px; }
.ex-ctl .field { margin-bottom: 14px; }
.ex-modes { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); }
.ex-modes button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 800 13px var(--f-ui); cursor: pointer; transition: background-color .25s, color .25s; }
.ex-modes button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.ex-hs { display: flex; gap: 10px; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--surface2); font-size: 13px; color: var(--muted); }
.ex-hs i { color: var(--accent); font-size: 17px; }
.ex-hs b { color: var(--text); }
.ex-ctns { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; min-height: 34px; margin-bottom: 12px; }
.ex-ctns span { position: relative; width: 40px; height: 28px; border-radius: 3px; background: linear-gradient(180deg, #cca472, #b38655); box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .5); animation: ctnIn .5s var(--ease) both; animation-delay: calc(var(--i) * 45ms); }
.ex-ctns span::before { content: ""; position: absolute; top: 0; bottom: 0; left: 44%; width: 12%; background: rgba(245, 225, 175, .5); }
.ex-ctns small { position: absolute; left: 4px; bottom: 2px; font: 800 8px var(--f-ui); color: #3b2a1a; }
.ex-ctns em { align-self: center; font: 600 1rem var(--f-display); font-style: normal; color: var(--muted); }
.ex-stats { margin: 0 0 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ex-stats div { padding: 10px 12px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); }
.ex-stats dt { font: 800 9.5px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ex-stats dd { margin: 4px 0 0; font: 500 1.35rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.ex-stats dd small { display: block; margin-top: 2px; font: 600 11px/1.3 var(--f-ui); color: var(--muted); }
.ex-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ex-tbl td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ex-tbl td:last-child { padding-left: 12px; text-align: right; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ex-tbl .tot td { font-size: 15px; color: var(--accent); border-bottom: 1px solid var(--line2); }
.ex-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.ex-note i { color: var(--accent); }
@media (max-width: 1020px) { .ex-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) {
    .ex-stats { grid-template-columns: 1fr 1fr; }
    .ex-tbl td:last-child { white-space: normal; }
    .ex-sum-t b { font-size: 1.25rem; }
}

/* ---------------------------------------------------------------- studio: your prints from the Print Lab */
.st-yp-h { margin: 14px 0 8px; }
.st-yp-h small { font-weight: 600; letter-spacing: .02em; text-transform: none; }
.st-yp .opts .opt { flex: 0 1 108px; }
.st-yp-sw.blk.sm { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; }
.st-lablink { display: inline-flex; align-items: center; gap: 7px; margin-top: 12px; font: 800 13px var(--f-ui); color: var(--accent); text-decoration: none; }
.st-lablink:hover { text-decoration: underline; text-underline-offset: 3px; }

@media print { .tk-sec, .ex-card, .mg-card { display: none !important; } }
@media (prefers-reduced-motion: reduce) {
    .tk-caret, .tk-belt, .tk-stations li span, .tk-h.on svg, .nav-dd-card { animation: none !important; }
    .tk-bundle { animation: none !important; left: 46%; opacity: 1; }
}
