/* ==========================================================================
   Bharat Packs – site stylesheet (one look, no theme switch)
   The site is a works drawing brought to life: lit sets where the cases are
   shown, and graph paper where things are listed, chosen and ordered.
   Layout: full-bleed sets with a caption column low on the left; on paper,
   a 12-column sheet with headings set left. One family, Archivo: wide for
   headings, normal for reading, narrow for dimensions.
   Change the brand colours in :root and the whole site follows.
   ========================================================================== */
:root {
  --paper: #eceee9;         /* graph-paper stock: the page */
  --sheet: #f7f8f4;         /* raised surfaces */
  --ink: #15181b;           /* graphite: text, dark bands */
  --anod: #58626a;          /* secondary text (anodised grey) */
  --line: #c5ccc6;          /* hairlines */
  --blue: #1a46a5;          /* marking blue: links, dimension lines */
  --orange: #ee7d12;        /* the one action that matters (logo orange) */
  --orange-deep: #b65a04;
  --orange-ink: #251200;
  --night: #0d0f11;         /* behind the lit sets */
  --on-night: #eceff1;
  --on-night-dim: #a3adb5;
  --ok: #1c7f47; --bad: #b3261e;
  --radius: 2px;
  --wrap: 1280px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12  0 0 0 0 .14  0 0 0 0 .12  0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  /* names the shop pages were written against */
  --mill: var(--paper); --graphite: var(--ink); --saffron: var(--orange); --saffron-ink: var(--orange-ink); --ring: var(--blue);
  --ph-bg: #e2e6e1; --ph-grid: #cfd6d0; --ph-ink: #1a46a5; --dimline: #1a46a5;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--paper) var(--grain); color: var(--ink); font: 400 17px/1.55 var(--font); font-stretch: 100%; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 740; font-stretch: 125%; letter-spacing: -0.022em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.9rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.1rem); }
h3 { font-size: 1.22rem; font-stretch: 112%; letter-spacing: -0.01em; line-height: 1.2; font-weight: 680; }
p { margin: 0 0 1em; max-width: 64ch; }
.wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.lede { font-size: 1.2rem; color: #333c44; max-width: 56ch; }
.muted { color: var(--anod); }
.small { font-size: .9rem; }
.dim { font-stretch: 72%; font-weight: 560; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.35em; border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink); font: 650 1rem/1.1 var(--font); font-stretch: 108%; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.btn.primary:hover { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; }
.btn.small { min-height: 36px; padding: .45em .9em; font-size: .9rem; }
.btn.onDark { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn.onDark:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btnRow { display: flex; flex-wrap: wrap; gap: 12px; }
.linkBtn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* segmented choice (kits, case lines, views) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 0; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--sheet); }
.seg button { appearance: none; border: 0; background: transparent; color: var(--ink); font: 600 .95rem/1 var(--font); font-stretch: 104%; padding: .75em 1.05em; cursor: pointer; min-height: 42px; }
.seg button + button { border-left: 1.5px solid var(--ink); }
.seg button:hover { background: rgba(21, 24, 27, .08); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.onNight .seg { border-color: rgba(255, 255, 255, .75); background: rgba(13, 15, 17, .72); }
.onNight .seg button { color: #fff; }
.onNight .seg button + button { border-left-color: rgba(255, 255, 255, .75); }
.onNight .seg button:hover { background: rgba(255, 255, 255, .14); }
.onNight .seg button[aria-pressed="true"] { background: #fff; color: var(--night); }

/* ---- header ---------------------------------------------------------------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.siteHeader { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); color: var(--ink); transition: background .25s, color .25s, border-color .25s; }
.siteHeader .wrap { display: flex; align-items: center; gap: 26px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-stretch: 125%; letter-spacing: -.012em; font-size: 1.12rem; white-space: nowrap; }
.brand svg { width: 32px; height: 32px; }
.brandText { display: flex; align-items: center; gap: 10px; }
.brandLogo { height: 40px; width: auto; max-width: 210px; object-fit: contain; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a { padding: 9px 12px; color: inherit; text-decoration: none; font-weight: 560; font-size: .97rem; border-radius: var(--radius); white-space: nowrap; }
.nav a:hover { background: rgba(21, 24, 27, .08); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.navShop { display: flex; align-items: center; gap: 2px; margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line); }
.cartCount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--orange); color: var(--orange-ink); font-size: .78rem; font-weight: 700; margin-left: 4px; }
.navToggle { display: none; margin-left: auto; padding: 9px 14px; min-height: 42px; border: 1.5px solid currentColor; border-radius: var(--radius); background: none; color: inherit; font: 650 .95rem var(--font); cursor: pointer; }
@media (max-width: 1020px) {
  .navToggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); padding: 8px var(--gut-r) 16px var(--gut); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .navShop { margin: 0; padding: 0; border: 0; flex-direction: column; align-items: stretch; }
}
/* over a lit set the header is clear until the page moves */
.overScene .siteHeader { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; color: #fff; }
.overScene .siteHeader.moved:not(.solid) { background: linear-gradient(rgba(8, 9, 10, .66), rgba(8, 9, 10, 0)); }
.overScene .siteHeader .nav a:hover { background: rgba(255, 255, 255, .14); }
.overScene .siteHeader .navShop { border-left-color: rgba(255, 255, 255, .3); }
.overScene .siteHeader.solid, .overScene .siteHeader.menuOpen { background: var(--paper); border-bottom-color: var(--line); color: var(--ink); }
.overScene .siteHeader.solid .nav a:hover { background: rgba(21, 24, 27, .08); }
.overScene .siteHeader.solid .navShop { border-left-color: var(--line); }
@media (max-width: 1020px) { .overScene .siteHeader .nav a:hover { background: rgba(21, 24, 27, .08); } }

/* ---- sections on paper ---------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, 116px); }
.section + .section { border-top: 1px solid var(--line); }
.sectionHead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(28px, 4vw, 52px); }
.sectionHead p { margin: 0; }
.graph { background-image: linear-gradient(rgba(60, 120, 84, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(60, 120, 84, .16) 1px, transparent 1px), linear-gradient(rgba(60, 120, 84, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(60, 120, 84, .07) 1px, transparent 1px), var(--grain);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px, 240px 240px; background-position: -1px -1px; }
.darkBand { background: var(--ink); color: #e6eaee; border: 0 !important; }
.darkBand .lede, .darkBand .muted { color: #a9b3bd; }
.darkBand a { color: #a9c2ff; }
/* a dimension, drawn the way a drawing gives one */
.dimLine { display: flex; align-items: center; gap: 8px; color: var(--blue); font-size: .88rem; }
.dimLine::before, .dimLine::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .55; }
.dimLine::before { max-width: 14px; }

/* ---- the lit sets (scroll stories) ---------------------------------------------------------------- */
.stages { position: relative; background: var(--night); color: var(--on-night); }
.stagePin { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; overflow: hidden; }
.stagePin canvas { width: 100%; height: 100%; opacity: 0; transition: opacity .9s; }
.stagePin.ready canvas { opacity: 1; }
/* caption scrim: keeps the words readable whatever the set shows */
.stagePin::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(8, 9, 10, .78), rgba(8, 9, 10, .34) 34%, rgba(8, 9, 10, 0) 58%), linear-gradient(0deg, rgba(8, 9, 10, .5), rgba(8, 9, 10, 0) 26%); }
.stageFade { position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; }
.hud { position: absolute; right: var(--gut-r); bottom: 22px; z-index: 2; display: flex; align-items: center; gap: 10px; color: var(--on-night-dim); font-size: .86rem; pointer-events: none; }
.hud svg { width: 26px; height: 26px; }
.act { position: relative; z-index: 1; pointer-events: none; }
.act .beat { min-height: var(--beat, 130vh); display: flex; align-items: center; padding-block: 12vh; }
.act .beat > .wrap > * { pointer-events: auto; }
.act .cap { max-width: 30rem; }
.act .cap h1, .act .cap h2 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.act .cap h2 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); }
.act .cap p { color: #d5dadf; font-size: 1.08rem; margin: 1em 0 0; max-width: 44ch; text-shadow: 0 1px 14px rgba(0, 0, 0, .6); }
.act .cap .btnRow { margin-top: 1.6em; }
.act .cap .dim { color: #ffc98f; font-size: .95rem; }
.beat.first { align-items: flex-start; padding-top: max(19vh, 120px); }
.hero h1 { font-size: clamp(2.05rem, 7.4vw, 5.5rem); line-height: .96; letter-spacing: -0.03em; }
.hero h1 .ln { display: block; white-space: nowrap; }
/* the headline comes out of the die: narrow to wide, once */
.extrude { font-stretch: 62%; transition: font-stretch 1.5s cubic-bezier(.2, .75, .15, 1) .15s; }
.extrude.out { font-stretch: 125%; }
.actTabs { position: sticky; top: 76px; z-index: 3; pointer-events: none; padding-top: 14px; height: 0; }
.actTabs .seg { pointer-events: auto; }
@media (max-width: 760px) {
  .stagePin::after { background: linear-gradient(0deg, rgba(8, 9, 10, .86), rgba(8, 9, 10, .42) 38%, rgba(8, 9, 10, 0) 62%); }
  .act .beat { align-items: flex-end; padding-block: 8vh calc(7vh + 30px); }
  /* the opening words belong on the first screen, clear of the floating button; the rest of the beat's height follows as space */
  .beat.first { align-items: flex-end; padding-top: 0; min-height: 100vh; min-height: 100svh; margin-bottom: calc(var(--beat, 130vh) - 100vh); }
  body.hasRibbon .act .beat { padding-bottom: calc(7vh + 76px); }
  .act .cap p { font-size: 1rem; }
  .actTabs { top: 66px; } .actTabs .seg button { padding: .7em .7em; font-size: .86rem; }
  .hud { display: none; }
}
/* no WebGL: the story reads as ordinary sections on dark */
.nogl .stagePin { display: none; }
.nogl .act .beat { min-height: 0; padding-block: 48px; }

/* ---- category tiles & product cards ------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; position: relative; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; overflow: hidden; transition: border-color .15s, transform .25s; }
.tile:nth-child(-n+2) { grid-column: span 3; }
.tile:hover { border-color: var(--ink); }
.tile .ph { aspect-ratio: 16/10; }
.tile:nth-child(-n+2) .ph { aspect-ratio: 16/8; }
.tile .tileBody { padding: 16px 20px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); }
.tile .count { color: var(--anod); font-size: .92rem; white-space: nowrap; }
@media (max-width: 800px) { .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .tile, .tile:nth-child(-n+2) { grid-column: span 1; } .tile:first-child { grid-column: span 2; } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile:first-child { grid-column: span 1; } .tile .ph, .tile:nth-child(-n+2) .ph { aspect-ratio: 16/9; } }

.ph { position: relative; background: var(--ph-bg); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
a:hover > .ph img, .card:hover .ph img { transform: scale(1.035); }
.ph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phBg { fill: var(--ph-bg); } .phGrid { stroke: var(--ph-grid); } .phInk { stroke: var(--ph-ink); opacity: .55; }
.ph .phLabel { position: absolute; left: 10px; bottom: 8px; font-size: .74rem; color: #5d6a63; background: rgba(247, 248, 244, .88); padding: 2px 6px; border-radius: 2px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card .ph { aspect-ratio: 4/3; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 1px solid var(--line); }
.card h3 { font-size: 1.08rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .meta { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; color: var(--anod); }
.card .price { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.card .actions { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 8px 14px; min-height: 40px; border: 1.5px solid var(--line); background: var(--sheet); border-radius: 100px; font: 560 .95rem var(--font); cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- split feature, lists, quotes, steps ---------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split > .ph { aspect-ratio: 5/4; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; max-width: 58ch; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 14px; height: 1.5px; background: var(--blue); }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.quote { margin: 0; padding: 26px 28px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.quote p { font-size: 1.08rem; }
.quote footer { font-weight: 650; font-size: .95rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); }
.steps li { counter-increment: step; padding: 24px 24px 26px; border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(step); display: block; font-stretch: 72%; font-weight: 600; font-size: 2.2rem; line-height: 1; color: var(--blue); margin-bottom: 14px; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; font-size: .97rem; color: #3c4650; }
@media (max-width: 700px) { .steps li { border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---- forms ---------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .two { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: 400 1rem var(--font); padding: 11px 12px; min-height: 44px; border: 1.5px solid #a7b0aa; border-radius: var(--radius); background: #fff; color: var(--ink); width: 100%; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; padding: 0; accent-color: var(--ink); }
input[type="range"] { padding: 0; border: 0; background: none; accent-color: var(--orange); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: 2px solid rgba(26, 70, 165, .25); }
.help { font-weight: 400; color: var(--anod); font-size: .88rem; }
.formError { color: var(--bad); font-weight: 600; margin: 0; }
.formError:empty { display: none; }

/* ---- page title band, product page ---------------------------------------------------------- */
.pageTitle { padding-block: clamp(40px, 6vw, 84px) clamp(28px, 4vw, 48px); }
.pageTitle h1 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); margin-bottom: 16px; }
.product { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); padding-block: 40px 80px; }
.product .ph { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); }
.product h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 8px 0 14px; }
.spec { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: .97rem; }
.spec th, .spec td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 38%; font-weight: 600; color: var(--anod); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.crumbs { font-size: .92rem; color: var(--anod); }

/* ---- footer = drawing title block ----------------------------------------------- */
.siteFooter { background: var(--ink); color: #cfd6dd; padding-block: 56px 28px; }
.siteFooter a { color: #e6eaee; text-decoration: none; }
.siteFooter a:hover { text-decoration: underline; }
.titleBlock { display: grid; grid-template-columns: 2.2fr 1.4fr 1.4fr 1.6fr; border: 1px solid #47515c; }
.titleBlock > div { padding: 20px 22px; border-right: 1px solid #47515c; min-width: 0; }
.titleBlock > div:last-child { border-right: 0; }
.titleBlock h4 { font-size: .8rem; font-stretch: 72%; font-weight: 560; letter-spacing: .02em; color: #8f9aa5; margin-bottom: 10px; }
.titleBlock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.titleBlock .big { font-size: 1.5rem; font-weight: 800; font-stretch: 125%; color: #fff; letter-spacing: -.01em; }
.titleBlock p { margin: .5em 0 0; color: #a9b3bd; }
.titleBlock address { font-style: normal; }
.footNote { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 18px; font-size: .86rem; color: #8f9aa5; }
@media (max-width: 900px) { .titleBlock { grid-template-columns: 1fr 1fr; } .titleBlock > div { border-bottom: 1px solid #47515c; } .titleBlock > div:nth-child(2n) { border-right: 0; } }
@media (max-width: 560px) { .titleBlock { grid-template-columns: 1fr; } .titleBlock > div { border-right: 0; } }

.waFloat { position: fixed; right: max(18px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 100px; background: #128c4a; color: #fff; text-decoration: none; font-weight: 650; font-size: .95rem; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.waFloat:hover { background: #0d733c; }
/* the desk lamp: warm light that follows the pointer (site.js) */
.deskLamp { position: fixed; left: 0; top: 0; width: 900px; height: 900px; border-radius: 50%; pointer-events: none; z-index: 45; mix-blend-mode: overlay; will-change: transform;
  background: radial-gradient(closest-side, rgba(255, 246, 222, .55), rgba(255, 246, 222, .18) 46%, rgba(255, 246, 222, 0) 72%); }
.previewRibbon { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 7px 16px calc(7px + env(safe-area-inset-bottom, 0px)); background: #1a46a5; color: #fff; font-size: .86rem; text-align: center; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } .extrude { font-stretch: 125%; } }

/* ==== product families and the shop bar (kept from the first site) ==== */
/* ==========================================================================
   Added: logo, product families (swatches, sizes, range table), shop bar,
   style switcher. Colours come from variables so themes.css can restyle them.
   ========================================================================== */
.brandText { display: inline-flex; align-items: center; gap: 10px; }

.shopBar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 34px; }
.shopBar .filters { margin: 0; }
.chipCount { opacity: .6; font-weight: 500; margin-left: 4px; font-variant-numeric: tabular-nums; }
.sortBox { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.sortBox select { width: auto; padding: 8px 10px; }
.rangeBlock { margin-bottom: 64px; scroll-margin-top: 90px; }
.rangeHead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin-bottom: 20px; }
.rangeHead h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.rangeHead p { margin: 0; font-size: .98rem; }

.cardSum { margin: 0; font-size: .95rem; color: var(--anod); }
.card .price { margin-right: auto; }
.optRow { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 2px; }
.chosen { margin: 0; font-size: .92rem; color: var(--anod); min-height: 1.5em; }
.chosen strong { color: var(--graphite); font-weight: 650; }
.vsw { position: relative; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 0; background: var(--frame); cursor: pointer; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .25); }
.vsw::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--lid); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.vsw.clear::after { background: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(150, 200, 245, .75)); }
.vsw[aria-pressed="true"] { outline: 2.5px solid var(--ring); outline-offset: 3px; }
.vsw[disabled], .vsize[disabled], .vseg[disabled] { opacity: .28; cursor: not-allowed; }
.vsize, .vseg { min-width: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--sheet); color: inherit; font: 650 .92rem var(--font); cursor: pointer; }
.vsize[aria-pressed="true"], .vseg[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }

.variantLine { margin: -6px 0 10px; font-size: 1.15rem; font-weight: 600; color: var(--anod); }
.bigPrice { font-size: 1.7rem; font-weight: 750; margin-bottom: .5em; }
.picker { margin-top: 22px; }
.pickerHead { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; font-size: .95rem; }
.pickerHead span { color: var(--anod); }
.pickerBody { display: flex; flex-wrap: wrap; gap: 10px; }
.pickerBody.pb-swatch { gap: 14px 8px; }
.swItem { display: grid; justify-items: center; gap: 7px; width: 78px; text-align: center; font-size: .78rem; line-height: 1.2; color: var(--anod); }
.swItem .vsw { width: 38px; height: 38px; } .swItem .vsw::after { inset: 9px; }
.swItem.off { opacity: .45; }
.ladder { margin: 18px 0 0; max-width: 360px; }
.ladder rect { fill: none; stroke: var(--line); stroke-width: 1.4; }
.ladder text { font: 600 10px var(--font); fill: var(--anod); }
.ladder .on rect { stroke: var(--ring); stroke-width: 2.4; fill: color-mix(in srgb, var(--ring) 10%, transparent); }
.ladder .on text { fill: var(--ring); }
.ladder .cap { font-weight: 400; font-size: 9.5px; }
.tableScroll { overflow-x: auto; }
.rangeTable table { border-collapse: separate; border-spacing: 6px; min-width: 640px; width: 100%; }
.rangeTable th { font-size: .86rem; font-weight: 600; color: var(--anod); text-align: left; padding: 4px 6px; }
.rangeTable thead th, .rangeTable tr:first-child th { text-align: center; }
.rangeTable td { text-align: center; }
.rangeTable .none { color: var(--line); }
.cell { width: 100%; padding: 10px 6px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--sheet); color: inherit; font: 600 .92rem var(--font); font-variant-numeric: tabular-nums; cursor: pointer; }
.cell[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }


/* ==== shop pages ==== */
/* Shop pages: cart, checkout, account, order, reviews, product buying controls */
.storePage { min-height: 60vh; }
.checkoutGrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; padding-bottom: 80px; }
@media (max-width: 900px) { .checkoutGrid { grid-template-columns: minmax(0, 1fr); } }
.summary { padding: 22px; display: grid; gap: 14px; position: sticky; top: 90px; }
.storePage fieldset.card { padding: 22px; margin: 0 0 18px; display: grid; gap: 14px; border-top: 1px solid var(--line); }
.storePage fieldset.card legend { float: left; width: 100%; font-weight: 750; font-size: 1.1rem; margin-bottom: 6px; }
.storePage fieldset.card legend + * { clear: both; }
.form .three { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form .three { grid-template-columns: 1fr; } }
.authGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding-bottom: 80px; max-width: 900px; }
.authGrid .card { padding: 24px; align-content: start; }
.cartLine { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.summary .cartLine { grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 10px; padding: 10px 0; font-size: .92rem; }
.cartPh { aspect-ratio: 1; border-radius: 10px; }
.cartInfo { display: grid; gap: 2px; font-size: .92rem; color: var(--anod); }
.cartInfo a { color: var(--graphite); text-decoration: none; font-size: 1rem; }
.cartPrice { text-align: right; font-weight: 700; display: grid; gap: 4px; justify-items: end; }
@media (max-width: 560px) { .cartLine { grid-template-columns: 64px minmax(0, 1fr) auto; } .cartLine .cartPrice { grid-column: 2 / -1; display: flex; justify-content: space-between; } }
.linkBtn { background: none; border: 0; padding: 0; color: var(--blue); font: 500 .88rem var(--font); text-decoration: underline; cursor: pointer; text-align: left; }

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: transparent; color: inherit; font-size: 1.2rem; cursor: pointer; }
.qty output { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.totals { width: 100%; border-collapse: collapse; font-size: .95rem; }
.totals td { padding: 5px 0; } .totals td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.totals .sub td { color: var(--anod); font-size: .86rem; padding: 2px 0; }
.totals .grand td { border-top: 1.5px solid var(--line); padding-top: 12px; font-size: 1.15rem; font-weight: 750; }
.formError { color: #c2281d; font-weight: 600; font-size: .92rem; margin: 0; min-height: 1em; }

.demoNote { padding: 12px 16px; border-radius: 10px; background: #fff1d6; color: #5a3b00; font-size: .92rem; border: 1px solid #f1c46b; max-width: none; }
.buyRow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.noteBox { margin-top: 22px; max-width: 480px; }
.customBody .vseg { display: inline-flex; align-items: center; gap: 8px; }
.customBody .vseg small { opacity: .7; font-weight: 500; }
.withDot i { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(128, 128, 128, .5); }
.taxNote { font-size: .85rem; font-weight: 500; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; }
.thumb[aria-pressed="true"] { border-color: var(--ring); } .thumb img { width: 100%; height: 100%; object-fit: cover; }
.stars { color: #f0a020; letter-spacing: 1px; } .stars i { color: var(--line); font-style: normal; }
.ratingLink { text-decoration: none; font-size: .95rem; color: var(--anod); }
.reviewsWrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .reviewsWrap { grid-template-columns: 1fr; } }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); } .review p { margin: .5em 0; } .review footer { font-size: .86rem; color: var(--anod); }
.verified { color: #1e8a4c; font-weight: 600; } 
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate label { display: inline; cursor: pointer; font-size: 1.9rem; line-height: 1; color: var(--line); } .rate input { position: absolute; opacity: 0; width: 1px; }
.rate label:has(input:checked) span:first-of-type, .rate label:has(input:checked) ~ label span:first-of-type, .rate label:hover span:first-of-type, .rate label:hover ~ label span:first-of-type { color: #f0a020; }
.rate { direction: ltr; }
.track { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 0 0 22px; }
.track li { position: relative; padding-top: 22px; font-size: .88rem; color: var(--anod); }
.track li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 4px; background: var(--line); }
.track li::after { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--line); }
.track li.done { color: var(--graphite); font-weight: 650; } .track li.done::before, .track li.done::after { background: var(--saffron); }
.orderRow { display: flex; justify-content: space-between; gap: 16px; padding: 16px 18px !important; margin-bottom: 12px; text-decoration: none; color: inherit; flex-direction: row; }
.orderRow div { display: grid; gap: 4px; } .orderRow div:last-child { text-align: right; justify-items: end; } .orderRow span { font-size: .88rem; color: var(--anod); }
.status { text-transform: capitalize; font-weight: 650; }
.reviewNudge { margin: 6px 0 0 100px; font-size: .88rem; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 20px; border-radius: 14px; background: #14181d; color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: opacity .35s, transform .35s; }
.toast.out { opacity: 0; transform: translate(-50%, 12px); }

.check { display: flex !important; align-items: center; gap: 10px; font-weight: 500; font-size: .95rem; } .check input { width: 18px; height: 18px; flex: none; }
.policy h2 { font-size: 1.5rem; margin: 46px 0 12px; scroll-margin-top: 90px; } .policy { max-width: 760px; padding-bottom: 90px; } .policy li { margin-bottom: 6px; }

/* ---- sign in / create account / verification codes ---- */
.pwWrap { position: relative; display: block; }
.pwWrap input { padding-right: 64px; }
.pwShow { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px 8px; font: 600 .82rem var(--font); color: var(--anod); cursor: pointer; }
.pwShow:hover { color: var(--graphite); }
.pwRules { list-style: none; margin: -6px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; font-size: .84rem; color: var(--anod); }
@media (max-width: 420px) { .pwRules { grid-template-columns: 1fr; } }
.pwRules li::before { content: "○"; display: inline-block; width: 1.2em; }
.pwRules li.met { color: #1e8a4c; } .pwRules li.met::before { content: "✓"; }
.pwRules li.miss { color: #c2281d; }
 
.otpIn { font: 700 1.45rem/1.2 ui-monospace, Consolas, Menlo, monospace !important; letter-spacing: .35em; text-align: center; max-width: 230px; }
.authLinks { display: flex; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 0; }
.form .resend { justify-self: start; margin-top: -6px; }
.form .resend:disabled { color: var(--anod); text-decoration: none; cursor: default; }
.form.busy { opacity: .7; pointer-events: none; }
.vBadge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 20px; background: rgba(194, 40, 29, .12); color: #a3241a; vertical-align: 2px; }
.vBadge.ok { background: rgba(30, 138, 76, .14); color: #16713d; }
 
.contactRow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.contactRow > div { display: grid; gap: 2px; min-width: 0; } .contactRow strong { overflow-wrap: anywhere; }
.accountSide { display: grid; gap: 18px; align-content: start; }
.invLink { font-size: .84rem; text-decoration: underline; cursor: pointer; }
.otpIn::placeholder { letter-spacing: 0; font-size: .95rem; font-weight: 400; font-family: var(--font); }
.contactRow .vBadge { justify-self: start; }


/* ==== catalogue pages: shop, product, account (new parts) ==== */
.shopWrap { padding-bottom: clamp(48px, 7vw, 88px); }
.card .meta .dim { color: var(--ink); white-space: nowrap; }
.rangeHead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.rangeHead h2 { margin: 0; }
.rangeHead p { margin: 0; flex: 1 1 320px; }
.rangeMore { font-weight: 600; white-space: nowrap; }
.crumbs { padding-top: 28px; margin: 0; }
.crumbs a { color: inherit; }

/* product: pictures on a sheet, the 3D model on the same sheet */
.product { align-items: start; padding-block: 22px clamp(48px, 6vw, 80px); }
.pGallery { position: sticky; top: 84px; min-width: 0; }
.pStage { position: relative; aspect-ratio: 4 / 3; background: #eef0eb; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pStage .ph { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; background: #eef0eb; }
.pStage .ph img { object-fit: contain; }
.pStage.is3d { cursor: grab; }
.p3d, .p3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.p3dMsg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; max-width: none; padding: 20px; text-align: center; color: var(--anod); }
.pBar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 14px; margin-top: 10px; min-height: 40px; }
.pCap { font-size: .88rem; color: var(--anod); }
.pBtns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.pGallery .thumbs { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.pGallery .thumb { padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius); background: #eef0eb; cursor: pointer; aspect-ratio: 4 / 3; overflow: hidden; }
.pGallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pGallery .thumb[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pInfo { min-width: 0; }
.pInfo .lede { font-size: 1.08rem; }
.pAmazon { margin: 12px 0 0; }
.pMade { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin: 26px 0 8px; padding: 18px 20px; background: var(--sheet); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius); }
.pMade > div { flex: 1 1 260px; min-width: 0; }
.pMade h3 { font-size: 1.05rem; margin-bottom: 4px; }
.pMade p { margin: 0; font-size: .95rem; color: #3c4650; }
.pFine { font-size: .93rem; }
.dimFig { margin: 22px 0 6px; padding: 16px 16px 12px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  background-image: linear-gradient(rgba(26, 70, 165, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(26, 70, 165, .07) 1px, transparent 1px); background-size: 16px 16px; }
.dimFig svg { width: min(100%, 380px); height: auto; overflow: visible; }
.dimFig .body { fill: rgba(247, 248, 244, .9); stroke: var(--ink); stroke-width: 1.6; }
.dimFig .split { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 5 4; fill: none; }
.dimFig .dl path { stroke: var(--blue); stroke-width: 1; fill: none; }
.dimFig .dl text { fill: var(--blue); font: 560 13px var(--font); font-stretch: 72%; font-variant-numeric: tabular-nums; }
.dimFig figcaption { margin-top: 8px; font-size: .88rem; color: var(--anod); }
@media (max-width: 860px) { .pGallery { position: static; } }

/* account: requests, designs, orders */
.acct { display: grid; gap: 34px; min-width: 0; align-content: start; }
.acct h2 { font-size: 1.45rem; margin-bottom: 14px; }
.acct section { scroll-margin-top: 90px; }
.acctRow { flex-direction: row; gap: 16px; padding: 16px 18px; margin-bottom: 10px; align-items: stretch; }
.acctThumb { position: relative; flex: 0 0 132px; aspect-ratio: 4 / 3; align-self: flex-start; background: #eef0eb; border: 1px solid var(--line); overflow: hidden; }
.acctThumb img, .acctThumb svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acctMain { flex: 1 1 auto; min-width: 0; }
.acctMain p { margin: 2px 0; }
.acctHead { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 4px; }
.acctHead strong { font-size: 1.05rem; }
.acctPrice { margin-top: 8px !important; }
.acctMsg { margin-top: 8px !important; padding: 8px 12px; background: #fff; border-left: 3px solid var(--blue); white-space: pre-line; }
.acctSide { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.status.s-new { background: #dbe6ff; color: #173a8f; } .status.s-quoted { background: #fde9c8; color: #7a4a00; } .status.s-won { background: #d8f1e3; color: #12633a; } .status.s-lost, .status.s-closed { background: #e6eaee; color: #4a545d; }
.demoIn { max-width: 460px; padding: 22px; }
@media (max-width: 620px) { .acctRow { flex-direction: column; } .acctSide { flex-direction: row; align-items: center; flex-wrap: wrap; } .acctThumb { flex-basis: auto; width: 100%; max-width: 220px; } }
/* the preview ribbon sits at the bottom edge: lift what floats there */
body.hasRibbon .waFloat { bottom: calc(52px + env(safe-area-inset-bottom, 0px)); }
body.hasRibbon .toast { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
body.hasRibbon .siteFooter { padding-bottom: 62px; }

/* made to order */
.quote h3 { margin-bottom: 8px; }
.quote blockquote { margin: 12px 0; padding-left: 14px; border-left: 3px solid var(--blue); color: #333c44; }
.quote .ph { aspect-ratio: 16 / 10; margin: -26px -28px 18px; }
.mtoTerms { margin-top: 26px; }
.steps li p .mtoBand { white-space: nowrap; }
.enqCopy { display: grid; gap: 8px; padding: 14px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.enqCopy p { margin: 0; }
.enqCopy textarea { min-height: 0; font-size: .92rem; }
.enqCopy .btn { justify-self: start; }
.pStage .pShot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card .cardSum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: .95rem; color: #3c4650; }

/* the kept shop parts, brought into line with the new look (square corners, one radius) */
.toast { border-radius: var(--radius); }
.cartPh, .demoNote { border-radius: var(--radius); }
.pGallery .thumb { width: auto; height: auto; border-radius: var(--radius); }
.acctHead .status, .orderRow .status { padding: 2px 9px; border-radius: 20px; font-size: .78rem; }
.acctHead .status { text-transform: none; }
.rate label { font-size: 1.7rem; }
.storePage .pageTitle { padding-bottom: 24px; }
.summary h3 { margin: 0; }
.form .two { align-items: end; }
