/* Layout: shop-front with a sticky masthead, full-bleed pattern bands, content held to a 1240px column */
:root {
  --bg: #f4f5f1;
  --surface: #ffffff;
  --ink: #18262a;
  --muted: #5a6a6c;
  --line: #dde2dc;
  --accent: #1f4e5f;      /* indigo-teal dye */
  --accent-ink: #ffffff;
  --marigold: #d9951a;    /* highlight */
  --sale: #b23a2e;
  --soft: #e7ece6;
  --shadow: 0 10px 30px rgba(24, 38, 42, .10);
  --f-display: "Gloock", "Georgia", serif;
  --f-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
  --r: 6px;
  --wrap: 1240px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111a1c; --surface: #182427; --ink: #e8eeea; --muted: #9fb0ad; --line: #2b3a3d;
    --accent: #6fb3c4; --accent-ink: #0d1719; --marigold: #e9b04a; --sale: #ec7b6c; --soft: #1e2d30;
    --shadow: 0 10px 30px rgba(0, 0, 0, .4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111a1c; --surface: #182427; --ink: #e8eeea; --muted: #9fb0ad; --line: #2b3a3d;
  --accent: #6fb3c4; --accent-ink: #0d1719; --marigold: #e9b04a; --sale: #ec7b6c; --soft: #1e2d30;
  --shadow: 0 10px 30px rgba(0, 0, 0, .4); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 28px; } }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.eyebrow { font: 600 .74rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.stack { display: grid; gap: 14px; }
.section { padding-block: 56px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head p { max-width: 60ch; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); padding: 12px 22px; border-radius: var(--r); cursor: pointer; font-weight: 600; text-decoration: none; transition: transform .15s, filter .15s; }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.mari { background: var(--marigold); border-color: var(--marigold); color: #1b1408; }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: .9rem; }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* announcement + header */
.announce { background: var(--ink); color: var(--bg); font-size: .82rem; }
.announce .wrap { display: flex; justify-content: center; gap: 28px; padding-block: 8px; flex-wrap: wrap; }
.announce b { color: var(--marigold); font-weight: 600; }
header.mast { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.mast .bar { display: flex; align-items: center; gap: 18px; padding-block: 14px; }
.logo { display: flex; align-items: baseline; gap: 6px; text-decoration: none; cursor: pointer; }
.logo .mark { font: 1.6rem/1 var(--f-display); letter-spacing: -.01em; }
.logo .sub { font: 500 .62rem/1 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
nav.main { display: flex; gap: 4px; margin-left: 18px; flex: 1; }
nav.main > .item { position: relative; }
nav.main a, nav.main button.top { display: block; padding: 8px 12px; border-radius: var(--r); text-decoration: none; font-weight: 500; background: none; border: 0; cursor: pointer; }
nav.main a:hover, nav.main button.top:hover { background: var(--soft); }
nav.main .hot { color: var(--accent); font-weight: 600; }
.drop { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; display: none; }
nav.main .item:hover .drop, nav.main .item:focus-within .drop { display: grid; }
.drop a { padding: 8px 10px; }
.drop small { display: block; color: var(--muted); font-size: .78rem; }
.tools { display: flex; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; cursor: pointer; }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 20px; height: 20px; }
.badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--marigold); color: #1b1408; font: 700 .7rem/18px var(--f-body); text-align: center; padding: 0 4px; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 10px 16px 18px; margin: 0; box-shadow: var(--shadow); max-height: 75vh; overflow: auto; }
  nav.main.open { display: flex; }
  .drop { position: static; display: grid; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .menu-btn { display: grid; }
}

/* search overlay */
.search-pop { position: fixed; inset: 0; z-index: 60; background: rgba(10, 16, 18, .55); display: grid; align-items: start; padding: 80px 16px; }
.search-box { max-width: 720px; width: 100%; margin: 0 auto; background: var(--surface); border-radius: 10px; padding: 18px; box-shadow: var(--shadow); }
.search-box input { width: 100%; font-size: 1.2rem; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.search-res { display: grid; gap: 4px; margin-top: 12px; max-height: 50vh; overflow: auto; }
.search-res a { display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: var(--r); text-decoration: none; cursor: pointer; }
.search-res a:hover { background: var(--soft); }
.search-res img { width: 46px; height: 46px; object-fit: cover; border-radius: 4px; }

/* hero slider */
.hero { position: relative; overflow: hidden; }
.slide { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 480px; }
.slide .copy { padding: 56px 28px 56px max(16px, calc((100vw - var(--wrap)) / 2 + 28px)); display: grid; align-content: center; gap: 18px; background: var(--surface); }
.slide .copy p { max-width: 46ch; color: var(--muted); font-size: 1.05rem; }
.slide .art { position: relative; background-size: cover; background-position: center; min-height: 320px; }
.slide .art .tag { position: absolute; left: 18px; bottom: 18px; background: var(--surface); padding: 8px 12px; border-radius: var(--r); font: 500 .78rem var(--f-mono); }
.hero-dots { position: absolute; bottom: 18px; left: max(16px, calc((100vw - var(--wrap)) / 2 + 28px)); display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; border: 0; border-radius: 2px; background: var(--line); cursor: pointer; padding: 0; }
.hero-dots button.on { background: var(--accent); }
@media (max-width: 760px) { .slide { grid-template-columns: 1fr; } .slide .art { min-height: 240px; order: -1; } .slide .copy { padding: 28px 16px 52px; } }

/* tiles */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; text-decoration: none; font-size: .9rem; }
.chip:hover, .chip.on { border-color: var(--accent); color: var(--accent); }
.chip .sw { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.chip .n { color: var(--muted); font: .76rem var(--f-mono); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile { position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; cursor: pointer; text-decoration: none; background: var(--soft); max-width: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.05); }
.tile .lbl { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; background: linear-gradient(transparent, rgba(8, 14, 16, .78)); color: #fff; }
.tile .lbl b { display: block; font: 1.1rem var(--f-display); font-weight: 400; }
.tile .lbl span { font: .74rem var(--f-mono); opacity: .85; }

/* product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 18px; }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .grid.g4 { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } }
.card { display: grid; gap: 8px; text-decoration: none; cursor: pointer; min-width: 0; }
.card .ph { position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; background: var(--soft); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .ph img { transform: scale(1.04); }
.card .flag { position: absolute; top: 10px; left: 10px; background: var(--surface); padding: 3px 8px; border-radius: 4px; font: 600 .7rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; }
.card .flag.sale { background: var(--sale); color: #fff; }
.card .quick { position: absolute; right: 10px; bottom: 10px; opacity: 0; transition: opacity .2s; }
.card:hover .quick, .card:focus-within .quick { opacity: 1; }
.card .nm { font-weight: 500; line-height: 1.35; }
.card .pcode { font-family: var(--f-mono, ui-monospace, monospace); font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.price { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.price .now { font-weight: 600; }
.price s { color: var(--muted); font-size: .85em; }
.price .unit { color: var(--muted); font-size: .8em; }

/* tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }

/* feature band */
.band { background: var(--ink); color: var(--bg); }
.band .muted { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.countdown { display: flex; gap: 10px; }
.countdown div { background: color-mix(in srgb, var(--bg) 10%, transparent); border-radius: var(--r); padding: 10px 12px; text-align: center; min-width: 64px; }
.countdown b { display: block; font: 600 1.6rem var(--f-mono); }
.countdown span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* before/after */
.ba { position: relative; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; user-select: none; max-width: 100%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 50%); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; pointer-events: none; }
.ba .handle::after { content: "⇆"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #18262a; display: grid; place-items: center; font-weight: 700; }
.ba .cap { position: absolute; top: 12px; padding: 4px 10px; border-radius: 4px; background: rgba(0,0,0,.55); color: #fff; font: .75rem var(--f-mono); }

/* usp */
.usp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usp > div { display: grid; gap: 6px; padding: 20px 0; border-top: 2px solid var(--ink); }
.usp b { font: 1.1rem var(--f-display); font-weight: 400; }
@media (max-width: 820px) { .usp { grid-template-columns: 1fr 1fr; } }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 12px; align-content: start; }
.stars { color: var(--marigold); letter-spacing: 2px; }
.sample-note { font: .72rem var(--f-mono); color: var(--muted); }

/* blog */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.post { display: grid; gap: 10px; text-decoration: none; cursor: pointer; }
.post .ph { aspect-ratio: 3/2; border-radius: var(--r); overflow: hidden; }
.post .ph img { width: 100%; height: 100%; object-fit: cover; }

/* footer */
footer.foot { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; padding-block: 48px; }
.foot h4 { margin: 0 0 12px; font: 600 .78rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; cursor: pointer; }
.foot a:hover { color: var(--accent); }
.foot .legal { border-top: 1px solid var(--line); padding-block: 18px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.pay { display: flex; gap: 6px; flex-wrap: wrap; }
.pay span { border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; font: 600 .68rem var(--f-mono); }
@media (max-width: 860px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot .cols { grid-template-columns: 1fr; } }
.news { display: flex; gap: 8px; margin-top: 10px; }
.news input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }

/* forms */
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .88rem; }
.input, select.input, textarea.input { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
textarea.input { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

/* breadcrumb + page head */
.crumbs { font-size: .84rem; color: var(--muted); padding-block: 16px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { cursor: pointer; text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.phead { position: relative; border-radius: 10px; overflow: hidden; min-height: 220px; display: grid; align-content: end; padding: 28px; color: #fff; background-size: cover; background-position: center; }
.phead::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 18, 20, .82), rgba(10, 18, 20, .25)); }
.phead > * { position: relative; }
.phead p { max-width: 60ch; opacity: .9; margin-top: 8px; }

/* collection layout */
.coll { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: 90px; display: grid; gap: 22px; }
.filters h4 { margin: 0 0 8px; font: 600 .78rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; }
.filters label.opt { display: flex; gap: 8px; align-items: center; padding: 3px 0; cursor: pointer; font-size: .92rem; }
.filters label.opt .n { margin-left: auto; color: var(--muted); font: .74rem var(--f-mono); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar select { padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.filter-toggle { display: none; }
@media (max-width: 900px) {
  .coll { grid-template-columns: 1fr; }
  .filters { position: static; display: none; background: var(--surface); padding: 16px; border-radius: var(--r); border: 1px solid var(--line); }
  .filters.open { display: grid; }
  .filter-toggle { display: inline-flex; }
}
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); cursor: pointer; font-family: var(--f-mono); }
.pager button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pager button:disabled { opacity: .4; cursor: default; }
.prose { max-width: 70ch; display: grid; gap: 14px; }
.prose h3 { margin-top: 10px; }
.prose ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
details.faq { border-bottom: 1px solid var(--line); padding-block: 14px; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font: 1.3rem/1 var(--f-mono); color: var(--accent); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin-top: 10px; color: var(--muted); max-width: 70ch; }
.empty { text-align: center; padding: 60px 16px; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* product page */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 10px; position: sticky; top: 90px; }
@media (max-width: 900px) { .gallery { position: static; } }
.gallery .main { aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; background: var(--soft); max-width: 100%; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs button { aspect-ratio: 1; border: 2px solid transparent; border-radius: var(--r); padding: 0; overflow: hidden; cursor: pointer; background: none; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.opt-group { display: grid; gap: 10px; }
.opt-group > .lbl { display: flex; justify-content: space-between; font-weight: 600; font-size: .9rem; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.swatch { text-align: left; border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; background: var(--surface); cursor: pointer; display: grid; gap: 2px; }
.swatch small { color: var(--muted); font-family: var(--f-mono); font-size: .74rem; }
.swatch.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dims { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.unit-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.unit-toggle button { border: 0; background: var(--surface); padding: 11px 12px; cursor: pointer; font-family: var(--f-mono); font-size: .85rem; }
.unit-toggle button.on { background: var(--accent); color: var(--accent-ink); }
.calc { background: var(--soft); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 6px; font-size: .92rem; }
.calc .ln { display: flex; justify-content: space-between; gap: 10px; }
.calc .tot { font-size: 1.15rem; font-weight: 600; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.qty button { width: 38px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 1.1rem; }
.qty span { min-width: 32px; text-align: center; font-family: var(--f-mono); }
.buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: .86rem; color: var(--muted); }
.perks div::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .92rem; }
.check input { margin-top: 4px; }
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec td:first-child { color: var(--muted); width: 40%; }

/* cart */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); align-items: start; }
.line img { width: 96px; height: 110px; object-fit: cover; border-radius: var(--r); }
.line .meta { display: grid; gap: 4px; min-width: 0; font-size: .9rem; }
.line .meta .muted { font-size: .82rem; }
.line .right { text-align: right; display: grid; gap: 8px; justify-items: end; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; display: grid; gap: 12px; position: sticky; top: 90px; }
.summary .ln { display: flex; justify-content: space-between; }
.summary .tot { font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; }
.ok { color: #2f7a4a; }
:root[data-theme="dark"] .ok { color: #7fd09b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ok { color: #7fd09b; } }
.err { color: var(--sale); font-size: .86rem; }

/* custom print */
.cp { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 960px) { .cp { grid-template-columns: 1fr; } }
.stage { position: sticky; top: 90px; display: grid; gap: 12px; }
@media (max-width: 960px) { .stage { position: static; } }
.stage canvas { width: 100%; height: auto; border-radius: 10px; background: var(--soft); display: block; touch-action: none; cursor: grab; max-width: 100%; }
.stage canvas.drag { cursor: grabbing; }
.drop-zone { border: 2px dashed var(--line); border-radius: 10px; padding: 22px; text-align: center; display: grid; gap: 8px; justify-items: center; cursor: pointer; background: var(--surface); transition: border-color .2s, background .2s; }
.drop-zone.over { border-color: var(--accent); background: var(--soft); }
.drop-zone input { display: none; }
.step { display: grid; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.step h3 { display: flex; gap: 10px; align-items: baseline; font-size: 1.15rem; }
.step h3 .no { font: 600 .78rem var(--f-mono); color: var(--accent); }
.res { font-size: .85rem; padding: 8px 12px; border-radius: var(--r); background: var(--soft); }
.res.warn { color: var(--sale); }
.range { display: flex; gap: 10px; align-items: center; }
.range input { flex: 1; accent-color: var(--accent); }
.scenes { display: flex; gap: 8px; flex-wrap: wrap; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: var(--r); box-shadow: var(--shadow); z-index: 80; display: flex; gap: 14px; align-items: center; font-size: .92rem; max-width: calc(100% - 32px); }
.toast button { background: none; border: 0; color: var(--marigold); font-weight: 600; cursor: pointer; }
.float-help { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; }
.float-help button { border-radius: 999px; box-shadow: var(--shadow); }

.notice { font-size: .8rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); padding: 8px 12px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .announce span:not(:first-child) { display: none; }
  .logo .sub { display: none; }
  .float-help button { padding: 10px 16px; font-size: .85rem; }
}
.tiles.tight { grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); }
.order-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-btns .btn svg { flex: none; }
.btn.wa { background: #25d366; border-color: #25d366; color: #0b2e17; }
.wa-custom { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px; border-radius: var(--r); background: color-mix(in srgb, #25d366 10%, var(--bg)); border: 1px solid color-mix(in srgb, #25d366 35%, var(--line)); }
.wa-custom h2 { margin: 0; }
@media (max-width: 760px) { .wa-custom { grid-template-columns: 1fr; padding: 20px; } }
.float-help { display: grid; gap: 10px; justify-items: end; }
.fab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: var(--shadow); }
.fab.wa { background: #25d366; color: #0b2e17; }
.fab.call { background: var(--accent); color: var(--accent-ink); }
.fab.call span { font-family: var(--f-mono); font-size: .88rem; }
@media (max-width: 600px) { .fab { padding: 12px; } .fab span { display: none; } }
@media (max-width: 420px) { .order-btns { grid-template-columns: 1fr; } }
.announce .tagline { color: var(--marigold); font-weight: 600; text-decoration: none; }
.announce .tagline:hover { text-decoration: underline; }
@media (max-width: 600px) { .announce .tagline ~ span { display: none; } }
.tagline-foot { font: 1.15rem/1.3 var(--f-display); }

/* custom design */
.cd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.cd-thumbs:empty { display: none; }
.cd-thumbs figure { position: relative; margin: 0; display: grid; gap: 4px; min-width: 0; }
.cd-thumbs img, .cd-thumbs .pdf { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); background: var(--soft); display: grid; place-items: center; }
.cd-thumbs figcaption { font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted, inherit); }
.cd-thumbs button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.cd-how { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); display: grid; gap: 12px; }
.cd-how ol { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.cd-how li { display: grid; gap: 2px; }
.cd-examples { display: grid; gap: 10px; }
.cd-examples > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cd-examples img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); display: block; }
.cd-pair { display: grid; grid-template-columns: 1fr auto 1.3fr; gap: 14px; align-items: center; }
.cd-pair figure { margin: 0; display: grid; gap: 6px; }
.cd-pair img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; }
.cd-pair figcaption { font: 500 .8rem var(--f-mono); text-align: center; }
.cd-pair .arrow { font-size: 1.6rem; color: var(--accent); }
@media (max-width: 520px) { .cd-pair { grid-template-columns: 1fr; } .cd-pair .arrow { justify-self: center; transform: rotate(90deg); } }

.vids { display: grid; grid-template-columns: 16fr 9fr; gap: 20px; align-items: start; }
.vid { margin: 0; display: grid; gap: 10px; }
.vid video { width: 100%; border-radius: var(--r); background: var(--soft); display: block; }
.vid.wide video { aspect-ratio: 16/9; }
.vid.tall video { aspect-ratio: 9/16; max-height: 640px; object-fit: cover; }
.vid figcaption { display: grid; gap: 2px; font-size: .92rem; }
@media (max-width: 760px) { .vids { grid-template-columns: 1fr; } .vid.tall video { max-height: 70vh; } }
