/* ==========================================================================
   Stak Maker 2026 — "Frosted acrylic + laser" design system
   Shop side: light frosted acrylic, navy ink, laser-orange only on actions.
   Lab side (.sm-lab): dark machine workspace. Type: Archivo, width axis as voice.
   ========================================================================== */
:root {
  --frost: #eef1f4; --frost-2: #e2e7ee; --paper: #ffffff; --ink: #0c1f3d; --ink-2: #3a4a66; --ink-3: #56657d;
  --laser: #ff7a2f; --laser-2: #ff9657; --laser-deep: #c2410c;
  --lab: #0a1322; --lab-2: #121f35; --lab-line: rgba(160,190,230,.14);
  --mint: #7fd8be; --macaroon: #f7a8c4; --butter: #ffd166; --sky: #7cb8ff;
  --ok: #16a34a; --err: #dc2626;
  --edge: rgba(12,31,61,.10); --edge-2: rgba(12,31,61,.18);
  --r-lg: 20px; --r: 12px; --r-sm: 8px; --r-xs: 6px; --pill: 999px;
  --f: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --top-h: 64px; --tab-h: 68px; --safe-b: env(safe-area-inset-bottom, 0px);
  /* Motion: only transform/opacity and the individual translate/scale properties move things. Hover and colour: var(--dur-1) ease. Enter: --ease-out at --dur-2. Exit: --dur-1. Sheets and fixed bars: --ease-drawer at --dur-3. Press: --dur-press. Never ease-in, never transition `all`, never scale(0), never animate a keyboard-opened UI. */
  --ease-out: cubic-bezier(.23,1,.32,1);
  --ease-in-out: cubic-bezier(.77,0,.175,1);
  --ease-drawer: cubic-bezier(.32,.72,0,1);
  --ease: var(--ease-out);            /* legacy alias: every existing var(--ease) upgrades */
  --dur-press: 120ms; --dur-1: 160ms; --dur-2: 240ms; --dur-3: 300ms;
  --rise: 8px;                        /* entrance offset; reduced motion sets 0 */
  --focus: var(--ink);
  --lift: 0 1px 0 rgba(255,255,255,.8) inset, 0 1px 2px rgba(12,31,61,.06), 0 8px 24px -12px rgba(12,31,61,.18);
  --lift-2: var(--lift), 0 18px 36px -18px rgba(12,31,61,.42);   /* hover / raised */
  --lift-3: var(--lift), 0 36px 72px -36px rgba(12,31,61,.45);   /* floating hero objects, sticky bars, sheets */
  --fs-xs: 12px; --fs-sm: 13px; --fs-ui: 14px; --fs-md: 15px;    /* small-text ladder: whole pixels only */
  --fs-hero: clamp(2rem, 6vw, 3.25rem);   /* split-hero H1s (bulk, ideas, christmas, about, gifts, our-work) */
  --sec: clamp(48px, 6.5vw, 80px);          /* section vertical rhythm */
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --bar-h: 0px;                             /* seasonal top bar height */
  --line-on: var(--ink);                    /* outline/ring colour; #fff on dark surfaces */
}
.sm-season-october:not(.sm-seasonbar-hidden), .sm-season-xmas:not(.sm-xmasbar-hidden) { --bar-h: 60px; }
/* Self-hosted Archivo (variable wdth + wght), Latin + ₱ subset built by tools/font.py */
@font-face { font-family: 'Archivo'; src: url(../fonts/archivo.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
*, *::before, *::after { box-sizing: border-box; }
/* keep focused fields / anchors clear of the sticky header (and the phone tab bar) */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
@media (max-width: 959px) { html { scroll-padding-bottom: calc(var(--tab-h) + 24px + var(--safe-b)); } }
/* touch: no grey tap flash (every control has its own :active), no double-tap wait, controls don't select on long-press */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, label, [role=button], input[type=range] { touch-action: manipulation; }
:is(.sm-btn, .button, .sm-chip, .sm-ic, .sm-tab, .sm-sw, .sm-qty__b, .sm-pc__go) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
:is(.sm-kc__stage, .sm-mc__stage, .sm-studio__3d) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body { margin: 0; background: var(--frost); color: var(--ink); font: 400 16px/1.55 var(--f); font-variation-settings: 'wdth' 100; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2 { margin: 0 0 .45em; line-height: 1.02; font-weight: 800; font-variation-settings: 'wdth' 125; letter-spacing: -.02em; }
h3, h4 { margin: 0 0 .45em; line-height: 1.2; font-weight: 750; font-variation-settings: 'wdth' 108; letter-spacing: -.01em; }
h1, h2, h3, .sm-display, .sm-h1, .sm-h2 { text-wrap: balance; }
p, li, figcaption, .sm-lead { text-wrap: pretty; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--laser); color: var(--ink); }
.screen-reader-text, .sm-skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sm-skip:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.sm-bg { display: none; }

/* ---------- type scale (1.25 minor third on mobile, 1.333 desktop) ---------- */
.sm-display { font-size: clamp(2.6rem, 11vw, 6.2rem); font-weight: 900; font-variation-settings: 'wdth' 125; line-height: .92; letter-spacing: -.035em; }
.sm-h1 { font-size: clamp(2.1rem, 8vw, 4rem); font-weight: 850; line-height: 1; letter-spacing: -.03em; }
.sm-h2 { font-size: clamp(1.55rem, 5vw, 2.4rem); letter-spacing: -.02em; }
.sm-h3 { font-size: 1.2rem; font-variation-settings: 'wdth' 108; font-weight: 750; }
.sm-lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--ink-2); max-width: 36em; }
.sm-muted { color: var(--ink-3); }
.sm-spec { font-variation-settings: 'wdth' 75; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.woocommerce-Price-amount, .sm-kc__price, .sm-buybar__price, .sm-bcost__tiers b, .sm-bulk__tiers b, .sm-cart-count, .quantity .qty { font-variant-numeric: tabular-nums; }
/* Signature: printed layer lines through display type */
.sm-layers { color: inherit; }
@supports (color: color-mix(in srgb, red 50%, transparent)) { /* older iOS/Samsung: plain coloured text instead of invisible text */
  .sm-layers { background: repeating-linear-gradient(180deg, currentColor 0 3px, color-mix(in srgb, currentColor 72%, transparent) 3px 4px); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
}
.sm-hot { color: var(--laser-deep); }

/* ---------- layout ---------- */
.sm-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 max(16px, var(--safe-r)) 0 max(16px, var(--safe-l)); }
@media (min-width: 768px) { .sm-container { padding: 0 max(32px, var(--safe-r)) 0 max(32px, var(--safe-l)); } }
.sm-section { padding: var(--sec) 0; }
.sm-section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.sm-section__head .sm-h2 { margin: 0; }
.sm-section__head p { margin: 0; max-width: 32em; }
.sm-section__head:has(> p) { flex-direction: column; align-items: flex-start; gap: 8px; }
.sm-section__head:has(> p) p { max-width: 60ch; }
/* the "See our work" style head action: a text link, not a third pill */
.sm-section__head > .sm-btn--line.sm-btn--sm { min-height: 44px; padding: 0; background: none; box-shadow: none; font-size: var(--fs-md); font-weight: 700; text-decoration: underline; text-decoration-color: var(--laser); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (hover: hover) and (pointer: fine) { .sm-section__head > .sm-btn--line.sm-btn--sm:hover { background: none; box-shadow: none; text-decoration-color: var(--ink); } }
.sm-hide-m { display: none !important; }
@media (min-width: 960px) { .sm-hide-m { display: inline-flex !important; } .sm-hide-d { display: none !important; } }

/* ---------- surfaces ---------- */
.sm-card { background: var(--paper); border-radius: var(--r); box-shadow: var(--lift); }
.sm-sheet { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--lift); }

/* ---------- controls ---------- */
.sm-btn, .button, button.button, a.button, input.button, #place_order, .single_add_to_cart_button, .checkout-button, .woocommerce-button, #review_form #submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px;
  border: 0; border-radius: var(--pill); background: var(--laser); color: var(--ink) !important;
  font: 700 16px/1 var(--f); font-variation-settings: 'wdth' 108; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 1px 2px rgba(194,65,12,.28), 0 6px 14px -8px rgba(194,65,12,.45);
  transition: scale var(--dur-press) var(--ease-out), background-color var(--dur-1) ease, box-shadow var(--dur-1) ease; }
@media (hover: hover) and (pointer: fine) { .sm-btn:hover, .button:hover, #place_order:hover, .single_add_to_cart_button:hover, #review_form #submit:hover { background: var(--laser-2); } }
.sm-btn:active, .button:active, .single_add_to_cart_button:active { scale: .97; box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 1px 2px rgba(194,65,12,.3); }
.sm-btn--line:active { box-shadow: inset 0 0 0 1.5px var(--edge-2); } .sm-btn--ink:active { box-shadow: 0 1px 2px rgba(12,31,61,.25); } /* press keeps the variant's own ring/shadow, never the orange one */
.sm-btn--ink { background: var(--ink); color: #fff !important; box-shadow: 0 1px 2px rgba(12,31,61,.25), 0 6px 14px -8px rgba(12,31,61,.45); }
@media (hover: hover) and (pointer: fine) { .sm-btn--ink:hover { background: #172f58; } }
.sm-btn--line { background: transparent; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--edge-2); }
@media (hover: hover) and (pointer: fine) { .sm-btn--line:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line-on); } }
.sm-btn--sm { min-height: 44px; padding: 8px 16px; font-size: var(--fs-ui); }
.sm-btn--block { width: 100%; }
.button.loading { opacity: .65; pointer-events: none; }
.added_to_cart { display: none !important; }
.button:disabled, .button.disabled { opacity: .45; cursor: not-allowed; }

.sm-ic { display: inline-grid; place-items: center; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; position: relative; color: var(--ink); transition: background-color var(--dur-1) ease, scale var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sm-ic:hover { background: rgba(12,31,61,.06); } }
.sm-chip { border: 0; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: var(--pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--edge); font-weight: 600; font-size: var(--fs-ui); white-space: nowrap; transition: background-color var(--dur-1) ease, color var(--dur-1) ease, box-shadow var(--dur-1) ease, scale var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sm-chip:hover { box-shadow: inset 0 0 0 1.5px var(--line-on); } }
.sm-chip.is-on, .sm-chip[aria-pressed="true"], .sm-chip[aria-current] { background: var(--ink); color: #fff; box-shadow: none; }
.sm-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--laser)); flex: none; }
.sm-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: var(--r-xs); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .01em; background: var(--c, var(--butter)); color: var(--ink); }
/* press feedback on every tap target (controls .97, cards .98, tab icon and swatch .92) */
:is(.sm-chip, .sm-ic, .sm-qty__b, .sm-pc__go, .sm-seasonbar__x, .sm-ctroute__a, .sm-bcost__tiers button):active { scale: .97; }
:is(.sm-tile, .sm-pc, .sm-work__btn, .sm-mach__card, a.sm-crafts__a, .sm-about-mach a, .sm-bdoor__tile, .sm-pd__craft):active { scale: .98; }
.sm-tab:active .sm-tab__ic, .sm-sw:active span { scale: .92; }
:where(.sm-qty__b, .sm-pc__go, .sm-seasonbar__x, .sm-tile, .sm-pc, .sm-work__btn, .sm-tab__ic) { transition: scale var(--dur-press) var(--ease-out), translate var(--dur-1) var(--ease-out), background-color var(--dur-1) ease, color var(--dur-1) ease, box-shadow var(--dur-1) ease; }

/* forms */
.input-text, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url], input[type=date], input[type=search], input:not([type]), select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font-size: 16px;
  box-shadow: inset 0 0 0 1.5px var(--edge); transition: box-shadow var(--dur-1) ease; }
.input-text:focus, input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--focus), 0 0 0 4px rgba(255,122,47,.18); }
label { font-weight: 600; font-size: var(--fs-ui); }

/* ---------- header ---------- */
.sm-top { position: sticky; top: 0; z-index: 50; height: var(--top-h); background: rgba(238,241,244,.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--edge); }
.sm-top__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }
.sm-logo { display: inline-flex; align-items: center; color: var(--ink); }
.sm-logo svg { height: 38px; width: auto; }
@media (min-width: 960px) { .sm-logo svg { height: 42px; } }
.sm-logo--full svg { height: auto; width: 200px; }
.sm-nav { display: none; gap: 2px; }
.sm-nav a { padding: 9px 14px; border-radius: var(--pill); font-weight: 600; font-size: var(--fs-md); color: var(--ink-2); }
.sm-nav a[aria-current] { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .sm-nav a:hover { background: var(--paper); color: var(--ink); } }
@media (min-width: 960px) { .sm-nav { display: flex; } }
@media (max-width: 1099px) { .sm-nav__long { display: none; } .sm-nav a { padding: 9px 10px; } } /* "Souvenirs" alone until the row fits the full label */
.sm-nav a, .sm-top__act .sm-btn { white-space: nowrap; }
.sm-top__act { display: flex; align-items: center; gap: 2px; }
@media (min-width: 960px) and (max-width: 1199px) { .sm-top__act .sm-ic { width: 40px; height: 40px; } } /* chat icon on desktop too: 5 icons + button still fit the 960px row */
.sm-cart-count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--laser); color: var(--ink); font: 800 11px/18px var(--f); text-align: center; transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out); }
.sm-cart-count[data-n="0"] { transform: scale(.5); opacity: 0; }
.sm-cart-count.is-bump { animation: sm-bump 300ms var(--ease-out); }
@keyframes sm-bump { 45% { transform: scale(1.2); } }
@keyframes sm-rise { from { opacity: 0; transform: translateY(var(--rise)); } }

/* search */
.sm-search { position: fixed; inset: 0; z-index: 100; background: rgba(238,241,244,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 16px; }
.sm-search[hidden] { display: none; }
.sm-search__box { display: flex; align-items: center; gap: 8px; max-width: 720px; margin: 6vh auto 0; padding: 4px 4px 4px 18px; border-radius: var(--pill); background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink), var(--lift); }
.sm-search__box input { flex: 1; min-width: 0; min-height: 52px; padding: 0; border: 0; box-shadow: none !important; background: transparent; font-size: 18px; }
.sm-search__hint { max-width: 720px; margin: 20px auto; display: flex; flex-wrap: wrap; gap: 8px; }
.sm-search__hint > span { width: 100%; font-weight: 700; color: var(--ink-3); font-size: var(--fs-ui); }

/* ---------- main ---------- */
.sm-main { min-height: 60vh; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 16px); }
@media (min-width: 960px) { .sm-main { padding-bottom: 0; } }
.sm-main:has(> :is(.sm-next:not(.sm-next--help), .sm-bnext):last-child) { padding-bottom: 0; } /* a page ending on the navy end block runs straight into the navy footer (spec: 48px gap; owner to sign off) */
.sm-main:has(> :is(.sm-next:not(.sm-next--help), .sm-bnext):last-child) + .sm-foot { margin-top: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.sm-page { padding-top: 24px; padding-bottom: 64px; }
.sm-page__head { padding: 24px 0 16px; }
.sm-prose { max-width: 70ch; color: var(--ink-2); font-size: 17px; }
.sm-prose h2 { font-size: 1.55rem; margin-top: 1.8em; color: var(--ink); }
.sm-prose h3 { font-size: 1.15rem; margin-top: 1.5em; color: var(--ink); font-variation-settings: 'wdth' 110; }
.sm-prose a { color: var(--laser-deep); text-decoration: underline; text-underline-offset: 3px; }
.sm-prose ul, .sm-prose ol { padding-left: 1.2em; }
.sm-prose li { margin: .35em 0; }
.sm-prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: var(--fs-md); background: var(--paper); border-radius: var(--r-sm); overflow: hidden; }
.sm-prose th, .sm-prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--edge); }

/* horizontal snap rail (mobile carousels) */
.sm-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; margin: 0 -16px; scrollbar-width: none; }
.sm-rail::-webkit-scrollbar { display: none; }
.sm-rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .sm-rail { grid-auto-columns: calc(25% - 9px); margin: 0; padding: 4px 0 16px; scroll-padding-inline: 0; } }
/* rails snap to the 16px gutter, and a swipe at the end never drags the page sideways */
:is(.sm-rail, .sm-mach__list, .sm-occasions, .sm-pg-work .sm-work, .related .sm-grid, .upsells .sm-grid, .sm-famstrip) { scroll-padding-inline: 16px; overscroll-behavior-x: contain; }
:is(.sm-shop__cats, .sm-work__filters, .sm-helppg__topics, .sm-ideas-chips .sm-container, .woocommerce-MyAccount-navigation ul, .sm-kc__row .sm-swatches, .sm-mc .sm-swatches) { overscroll-behavior-x: contain; }

/* ---------- footer ---------- */
.sm-foot { background: var(--ink); color: #c9d4e6; padding: 56px 0 calc(var(--tab-h) + var(--safe-b) + 24px); margin-top: 48px; }
@media (min-width: 960px) { .sm-foot { padding-bottom: 40px; } }
.sm-foot .sm-logo { color: #e6e7ec; margin-left: -4px; }
.sm-foot__grid { display: grid; }
.sm-foot__brand { padding-bottom: 24px; }
.sm-foot__brand p { margin: 14px 0 18px; font-size: var(--fs-md); max-width: 34ch; color: #9fb0ca; }
.sm-foot__follow { display: block; margin-bottom: 2px; font-size: var(--fs-sm); font-weight: 700; color: #7f91ad; }
/* link columns: folded rows on phones, plain columns from 768px */
.sm-foot__acc { border-top: 1px solid rgba(255,255,255,.1); }
.sm-foot__acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: #fff; font-weight: 700; font-size: var(--fs-md); font-variation-settings: 'wdth' 110; cursor: pointer; }
.sm-foot__acc > summary::-webkit-details-marker { display: none; }
.sm-foot__acc > summary h3 { margin: 0; font: inherit; font-variation-settings: inherit; letter-spacing: inherit; color: inherit; }
.sm-foot__acc > summary::after { content: "+"; font-size: 22px; font-weight: 400; }
.sm-foot__acc[open] > summary::after { content: '\2212'; }
.sm-foot__acc nav { display: flex; flex-direction: column; padding-bottom: 10px; font-size: var(--fs-md); }
.sm-foot__acc nav a { padding: 11px 0; } /* 44px tap rows */
.sm-foot__acc nav a:hover { color: #fff; }
@media (min-width: 768px) {
  .sm-foot__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; }
  .sm-foot__brand { grid-column: 1 / -1; }
  .sm-foot__acc { border: 0; }
  .sm-foot__acc > summary { min-height: 0; margin-bottom: 6px; cursor: default; pointer-events: none; }
  .sm-foot__acc > summary::after { display: none; }
  .sm-foot__acc nav a { padding: 7px 0; }
}
@media (min-width: 960px) { .sm-foot__grid { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); } .sm-foot__brand { grid-column: auto; } }
.sm-foot__soc { display: flex; gap: 4px; margin-left: -10px; }
.sm-foot__soc .sm-ic { color: #c9d4e6; }
@media (hover: hover) and (pointer: fine) { .sm-foot__soc .sm-ic:hover { background: rgba(255,255,255,.08); color: #fff; } }
.sm-foot__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: var(--fs-sm); color: #9fb0ca; }
.sm-paychip { padding: 5px 10px; border-radius: var(--r-xs); background: rgba(255,255,255,.07); font-weight: 700; font-size: var(--fs-xs); color: #dfe7f3; }
.sm-foot__legal { font-size: var(--fs-sm); margin-top: 16px; color: #7f91ad; }
/* BIR Registration Seal: on white so the QR scans, big enough to read from a screen */
.sm-foot__bir { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.sm-foot__seal { display: block; width: min(100%, 420px); padding: 8px; border-radius: var(--r); background: #fff; transition: scale var(--dur-press) var(--ease-out); }
.sm-foot__seal:active { scale: .98; }
.sm-foot__seal img { display: block; width: 100%; height: auto; aspect-ratio: 961 / 309; }
.sm-foot__bir p { flex: 1 1 220px; max-width: 46ch; margin: 0; font-size: var(--fs-sm); color: #9fb0ca; }
.sm-foot__bir strong { color: #fff; font-weight: 600; }

/* ---------- mobile tab bar ---------- */
.sm-tabbar { position: fixed; left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)); bottom: calc(8px + var(--safe-b)); z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr); height: var(--tab-h);
  background: rgba(12,31,61,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--r-lg); box-shadow: 0 12px 32px -8px rgba(12,31,61,.5); transition: transform var(--dur-3) var(--ease-drawer); }
@media (min-width: 960px) { .sm-tabbar { display: none; } }
.sm-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; border: 0; background: none; color: #8fa2c2; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .01em; }
.sm-tab__ic { position: relative; display: grid; place-items: center; }
.sm-tab.is-on { color: #fff; }
.sm-tab.is-on .sm-tab__ic { color: var(--laser); }
.sm-tab--fab .sm-tab__ic { width: 46px; height: 46px; margin-top: -4px; border-radius: var(--r); background: var(--laser); color: var(--ink) !important; }
.sm-tab--fab { color: #fff; }
.sm-tab .sm-cart-count { top: -6px; right: -10px; }
/* phone on its side: a slimmer bar, icon beside the label */
@media (max-width: 959px) and (max-height: 500px) { :root { --tab-h: 52px; } .sm-tab { flex-direction: row; gap: 6px; } .sm-tab--fab .sm-tab__ic { width: 38px; height: 38px; margin-top: 0; } }
/* keyboard open on a phone: fixed bars step aside so they don't ride up over the field */
@media (max-width: 959px) { body:has(:is(input:not([type=checkbox], [type=radio], [type=range], [type=file], [type=button], [type=submit], [type=hidden]), textarea):focus) :is(.sm-tabbar, .sm-buybar, .sm-cobar, .lab-bar) { visibility: hidden; } }

/* toast */
.sm-toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 20px); z-index: 120; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 600; font-size: var(--fs-ui); box-shadow: 0 16px 40px -10px rgba(12,31,61,.6); transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease-out); max-width: calc(100vw - 32px); }
.sm-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.sm-toast:not(.is-on) { transition-duration: var(--dur-1); }
.sm-toast a { color: var(--laser-2); text-decoration: underline; }
@media (min-width: 960px) { .sm-toast { bottom: 28px; } }

/* ---------- LAB (dark machine workspace) — scope with .sm-lab ---------- */
.sm-lab, .sm-foot, .sm-tabbar, .sm-seasonbar, .sm-xmasbar, .sm-next:not(.sm-next--help), .sm-bnext, .sm-souv, .sm-ty__next, .sm-shop__promo, .sm-login__side, .sm-pg-bulk { --focus: var(--laser-2); --line-on: #fff; }
.sm-lab { color-scheme: dark; background: var(--lab); color: #dfe8f5; --edge: var(--lab-line); --edge-2: rgba(160,190,230,.26); --paper: var(--lab-2); --ink-2: #b3c2d8; --ink-3: #7d8fab; }
.sm-lab h1, .sm-lab h2, .sm-lab h3 { color: #fff; }
.sm-lab .sm-chip { color: #dfe8f5; }
.sm-lab .sm-chip.is-on, .sm-lab .sm-chip[aria-pressed="true"] { background: #fff; color: var(--lab); }
.sm-lab input, .sm-lab select, .sm-lab textarea { color: #fff; }

@media (prefers-reduced-motion: reduce) { :root { --rise: 0px; } *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; scroll-behavior: auto !important; transition-property: opacity, color, background-color, border-color, box-shadow, visibility !important; } }

/* ---------- Bulk page ---------- */
.sm-bulkpg__grid { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .sm-bulkpg__grid { grid-template-columns: minmax(0, 1fr) 500px; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .sm-bulkpg__info { position: sticky; top: calc(var(--top-h) + 32px); padding-top: 8px; max-width: 30rem; } /* short panel sticks; tall form scrolls */
}
.sm-bulkpg__info .sm-bulk__tiers { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sm-bulkpg__info .sm-bulk__tiers li { display: flex; flex-direction: column; padding: 12px 14px; border-radius: var(--r-sm); background: var(--butter); }
.sm-bulkpg__info .sm-bulk__tiers span { font-size: var(--fs-sm); }
.sm-bulkpg__info .sm-bulk__tiers b { font-size: 26px; font-weight: 800; }
.sm-bulkpg__form { display: grid; gap: 14px; padding: 20px; }
@media (min-width: 768px) { .sm-bulkpg__form { padding: 28px; } }
.sm-bulkpg__two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-bulkpg__err { margin: 0; padding: 12px 14px; border-radius: var(--r-sm); background: #fdecec; color: var(--err); font-weight: 600; }
.sm-bulkpg__ok h2 { color: var(--ok); }
.sm-field { display: grid; gap: 6px; }
.sm-field input[type=file] { padding: 12px; min-height: 0; background: var(--frost); box-shadow: inset 0 0 0 1.5px var(--edge); border-radius: var(--r-sm); font-size: var(--fs-ui); width: 100%; }
.sm-field input[type=file]::file-selector-button { margin-right: 10px; padding: 8px 14px; border: 0; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.sm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.woocommerce-form__label-for-checkbox { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.woocommerce-form__label-for-checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.woocommerce-form__label-for-checkbox a { color: var(--laser-deep); text-decoration: underline; }

/* ---------- Track order ---------- */
.woocommerce-form-track-order { max-width: 520px; padding: 24px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); }
.woocommerce-form-track-order p:first-child { color: var(--ink-2); }

/* ---------- Our work gallery ---------- */
.sm-work__filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 16px; padding: 4px 16px 8px; scrollbar-width: none; }
@media (min-width: 768px) { .sm-work__filters { flex-wrap: wrap; margin: 0 0 20px; padding: 4px 0 8px; } }
.sm-work { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 10px; }
@media (min-width: 768px) { .sm-work { columns: 3; column-gap: 16px; } }
@media (min-width: 1100px) { .sm-work { columns: 4; } }
.sm-work__item { break-inside: avoid; margin-bottom: 10px; }
@media (min-width: 768px) { .sm-work__item { margin-bottom: 16px; } }
.sm-work__item[hidden] { display: none; }
.sm-work__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--lift); text-align: left; cursor: zoom-in; }
.sm-work__btn img { width: 100%; height: auto; transition: scale var(--dur-3) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sm-work__btn:hover img { scale: 1.03; } }
.sm-work__cap { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; font-weight: 650; font-size: var(--fs-ui); line-height: 1.3; }
.sm-work__cap .sm-dot { margin-top: 4px; }
.sm-lightbox { width: min(92vw, 720px); max-height: 92vh; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); overflow: auto; }
.sm-lightbox::backdrop { background: rgba(12,31,61,.75); backdrop-filter: blur(4px); }
.sm-lightbox img { width: 100%; max-height: 60vh; object-fit: contain; background: var(--frost-2); }
.sm-lightbox__x { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.9); z-index: 1; }
.sm-lightbox__body { padding: 16px 20px 20px; }
.sm-lightbox__body .sm-badge { --c: var(--butter); }
.sm-lightbox__body .sm-h3 { margin: 10px 0 6px; }
.sm-lightbox__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sm-lightbox__cta .sm-btn { flex: 1 1 180px; }
/* lightbox: a quick fade-and-settle in, a faster fade out (modal: stays centred) */
.sm-lightbox { opacity: 0; transform: scale(.96); transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), overlay var(--dur-1) allow-discrete, display var(--dur-1) allow-discrete; }
.sm-lightbox[open] { opacity: 1; transform: none; transition-duration: var(--dur-2); }
@starting-style { .sm-lightbox[open] { opacity: 0; transform: scale(.96); } }
.sm-lightbox::backdrop { opacity: 0; transition: opacity var(--dur-2) var(--ease-out), overlay var(--dur-2) allow-discrete, display var(--dur-2) allow-discrete; }
.sm-lightbox[open]::backdrop { opacity: 1; }
@starting-style { .sm-lightbox[open]::backdrop { opacity: 0; } }

/* ---------- Partner page ---------- */
#bulkForm { scroll-margin-top: calc(var(--top-h) + 16px); }

/* ---------- footer: slim cart/checkout variant ---------- */
.sm-foot .sm-btn--line { color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
@media (hover: hover) and (pointer: fine) { .sm-foot .sm-btn--line:hover { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px #fff; } }
.sm-foot--slim { padding-top: 24px; margin-top: 32px; }
.sm-foot--slim .sm-foot__pay { margin-top: 12px; }
.sm-foot__mini { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: var(--fs-ui); }
.sm-foot__mini a { padding: 11px 0; }
.sm-foot__mini a:hover { color: #fff; }
.sm-foot--notabs { padding-bottom: calc(var(--safe-b) + 24px); }
@media (max-width: 959px) { body:has(.sm-foot--notabs) .sm-main { padding-bottom: 24px; } }

/* ---------- Business page v2: scan, don't read ---------- */
.sm-biz__hero { padding: 12px 0 8px; }
.sm-biz__hero .sm-h1 { font-size: var(--fs-hero); }

/* ---------- Contact v2: chat first ---------- */
.sm-ct__head { padding: 8px 0 16px; }
.sm-ct__head .sm-h1 { margin-bottom: 6px; }
.sm-ct__head .sm-lead { margin: 0; }
.sm-chat { padding: 18px; }
.sm-chat__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sm-chat__top .sm-h3 { margin: 0; }
.sm-chat__dots { display: flex; gap: 5px; }
.sm-chat__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--frost-2); transition: background-color var(--dur-1) ease; }
.sm-chat__dots i.is-on { background: var(--laser-deep); }
.sm-chat fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.sm-chat__q { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 0; font-weight: 700; font-size: 17px; outline: none; }
.sm-chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-chat__chips .sm-chip { min-height: 46px; font-size: var(--fs-md); }
.sm-chat__step:not([hidden]) { animation: sm-chat-in .25s var(--ease); }
@keyframes sm-chat-in { from { opacity: 0; transform: translateY(6px); } }
.sm-chat__lb { display: block; margin: 10px 0 6px; }
.sm-chat textarea { min-height: 0; }
.sm-chat [data-send] { margin-top: 14px; }
.sm-chat__err { margin: 8px 0 0; font-size: var(--fs-ui); font-weight: 600; color: var(--err); }
.sm-chat__done .sm-i { color: var(--ok); }
.sm-chat__done .sm-btn { margin-top: 8px; }
.sm-chat__back { margin: 12px 0 0; }
.sm-chat__back button { border: 0; background: none; padding: 8px 0; min-height: 44px; font-weight: 600; color: var(--ink-3); text-decoration: underline; }

/* ---------- Scannable content blocks (used in page/product content) ---------- */
.sm-prose .sm-short { margin: 0 0 24px; padding: 16px 18px; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift); }
.sm-prose .sm-short h2 { margin: 0 0 8px; font-size: 1.05rem; }
.sm-prose .sm-short ul { margin: 0; padding-left: 1.1em; }
.sm-prose .sm-short li { margin: .25em 0; }
.sm-prose .sm-facts-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.sm-prose .sm-facts-row li { margin: 0; padding: 6px 12px; border-radius: var(--pill); background: var(--paper); box-shadow: inset 0 0 0 1px var(--edge); font-size: var(--fs-ui); font-weight: 650; color: var(--ink); }
.sm-prose details { margin: 8px 0; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift); }
.sm-prose details > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; font-weight: 700; color: var(--ink); cursor: pointer; }
.sm-prose details > summary::-webkit-details-marker { display: none; }
.sm-prose details > summary::after { content: "+"; font-size: 22px; font-weight: 400; flex: none; }
.sm-prose details[open] > summary::after { content: '\2212'; }
.sm-prose details > :not(summary) { padding: 0 16px; }
.sm-prose details > :last-child { padding-bottom: 14px; }
.sm-prose .sm-grid-3 { display: grid; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
@media (min-width: 768px) { .sm-prose .sm-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.sm-prose .sm-grid-3 li { margin: 0; padding: 14px 16px; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift); }
.sm-prose .sm-grid-3 strong { display: block; color: var(--ink); }
.sm-prose .sm-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.sm-prose .sm-cta-row a { text-decoration: none; }

/* ==========================================================================
   Visuals: "the bench and the beam" (photos + shapes). Components shared by every page.
   ========================================================================== */
:root { --frame: #ff904d; /* logo orange: logo/frame device only */ --bleed: 16px; }
@media (min-width: 768px) { :root { --bleed: 32px; } }
@media (min-width: 1240px) { :root { --bleed: calc((100vw - 1240px) / 2 + 32px); } }

/* photo box: fixed ratio, layer-line accent placeholder (never white) */
.sm-ph { position: relative; margin: 0; aspect-ratio: var(--ar, 1); border-radius: var(--r-ph, var(--r)); overflow: hidden; isolation: isolate;
  background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--c, var(--ink)) 12%, var(--frost)) 0 3px, color-mix(in srgb, var(--c, var(--ink)) 7%, var(--frost)) 3px 4px); }
.sm-ph > img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
.sm-ph--dark { background: repeating-linear-gradient(0deg, #0e1a2e 0 3px, var(--lab) 3px 4px); }
.sm-ph--dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(10,19,34,.88)); pointer-events: none; }
/* honesty pill: one quiet navy tag, same corner everywhere, never hidden (compact variants: craft strip, phone menu) */
:is(.sm-ph--styled, .sm-ph--sample, .sm-ph--illus)::before { position: absolute; top: 8px; right: 8px; bottom: auto; left: auto; z-index: 3; padding: 3px 7px; border-radius: var(--r-xs); background: rgba(12,31,61,.64); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: 600 11px/1.2 var(--f); letter-spacing: .01em; pointer-events: none; }
.sm-ph--styled::before { content: 'Styled scene'; }
.sm-ph--sample::before { content: 'Sample idea'; }
.sm-ph--illus::before { content: 'Illustration'; }
/* sprite cell: a 2x2 specimen board, one quarter centred in a square */
.sm-ph--q > img { position: absolute; max-width: none; width: 300%; height: 200%; object-fit: fill; left: -25%; top: 0; }
.sm-ph--tr > img, .sm-ph--br > img { left: -175%; }
.sm-ph--bl > img, .sm-ph--br > img { top: -100%; }
@supports (width: 1cqw) { /* any box shape: scale so the quarter covers the box, centre it */
  .sm-ph--q { container-type: size; --qx: .25; --qy: .25; --qw: max(200cqw, 300cqh); }
  .sm-ph--tr, .sm-ph--br { --qx: .75; } .sm-ph--bl, .sm-ph--br { --qy: .75; }
  .sm-ph--q > img { width: var(--qw); height: auto; left: calc(50cqw - var(--qx) * var(--qw)); top: calc(50cqh - var(--qy) * var(--qw) / 1.5); object-fit: cover; }
}

/* the frame device (logo orange open corners) around ONE object per page */
.sm-frame { position: absolute; z-index: 2; left: var(--fx); top: var(--fy); width: var(--fw); height: var(--fh); pointer-events: none; }
.sm-frame::before, .sm-frame::after { content: ""; position: absolute; width: 28px; height: 28px; border: 3px solid var(--frame); }
.sm-frame::before { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.sm-frame::after { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.sm-framed { position: relative; }
.sm-framed > .sm-frame { --fx: -12px; --fy: -12px; --fw: calc(100% + 24px); --fh: calc(100% + 24px); }

/* fan: overlapping 4:5 cards in one grid cell */
.sm-fan { display: grid; justify-items: center; align-items: center; padding: 5% 0; }
.sm-fan > * { grid-area: 1 / 1; width: min(52%, 320px); box-shadow: var(--lift-3); border-radius: var(--r); }
.sm-fan > :nth-child(1) { transform: rotate(-6deg) translate(-52%, 5%); }
.sm-fan > :nth-child(2) { transform: rotate(6deg) translate(52%, 5%); }
.sm-fan > :nth-child(3) { z-index: 2; }
@media (max-width: 767px) { .sm-fan > * { width: 64%; } .sm-fan > :nth-child(1) { transform: rotate(-6deg) translate(-24%, 3%); } .sm-fan > :nth-child(2) { transform: rotate(6deg) translate(24%, 3%); } .sm-fan > :not(:nth-child(3)) .sm-fan__lbl { display: none; } }
.sm-fan__card { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--paper); }
.sm-fan__card .sm-ph, .sm-ph.sm-fan__card { --ar: 4/5; }
.sm-fan__card .sm-ph { border-radius: 0; }
.sm-fan__lbl { position: absolute; left: 10px; bottom: 10px; z-index: 3; padding: 6px 10px; border-radius: var(--r-xs); background: var(--paper); color: var(--ink); font-weight: 750; font-size: var(--fs-ui); font-variation-settings: 'wdth' 108; box-shadow: var(--lift); }
/* side cards: labels pinned to the corner the front card never covers */
.sm-fan > :nth-child(1) .sm-fan__lbl { max-width: 52%; }
.sm-fan > :nth-child(2) .sm-fan__lbl { left: auto; right: 10px; max-width: 52%; text-align: right; }
.sm-fan > :not(:nth-child(3)) .sm-ph--styled::before { display: none; } /* one badge per fan: the front card */
/* a side card that is itself the photo (personalize) keeps its tag in sight: the left card's top-right sits under the front card */
.sm-fan > :nth-child(1).sm-ph::before { right: auto; left: 8px; }
/* phone: only a ~70px strip of each side card shows, narrower than the tag, so the tag runs down the outer edge */
@media (max-width: 767px) { .sm-fan > .sm-ph:not(:nth-child(3))::before { writing-mode: vertical-rl; padding: 7px 3px; } }

/* print: a real photo with a white border, tilted like a print on the bench */
.sm-print { display: block; margin: 0; padding: 8px 8px 28px; background: var(--paper); border-radius: 4px; box-shadow: var(--lift-3); transform: rotate(var(--rot, 0deg)); }
.sm-print .sm-ph { border-radius: 2px; }

/* photo chips */
.sm-chipph { padding-left: 6px; }
.sm-chipph__img { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; background: var(--c, var(--frost-2)); }
.sm-chipph__img img { width: 100%; height: 100%; object-fit: cover; }
.sm-pchip { --ar: 1; flex: none; width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), var(--lift); }
@media (max-width: 767px) { .sm-pchip { width: 48px; height: 48px; } }
.sm-pchip.sm-ph { border-radius: 50%; }
.sm-pchip--icon { display: grid; place-items: center; background: var(--ink); color: #fff; }
.sm-pchip--kc { display: grid; place-items: center; overflow: hidden; background: radial-gradient(80% 80% at 50% 35%, #fff, var(--frost-2)); }
.sm-pchip--kc { position: relative; }
.sm-pchip--kc img { position: static; width: 86%; max-width: none; height: auto; } /* the whole keychain, centred in the round chip */

/* bleed: the media column runs to the viewport edge from 960px */
.sm-bleed { display: grid; gap: 24px; }
@media (min-width: 960px) {
  .sm-bleed { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
  .sm-bleed__copy { grid-column: 1 / span 5; }
  .sm-bleed__media { grid-column: 6 / -1; margin-right: calc(-1 * var(--bleed)); position: relative; }
  .sm-bleed--6 .sm-bleed__copy { grid-column: 1 / span 6; }
  .sm-bleed--6 .sm-bleed__media { grid-column: 7 / -1; }
  .sm-bleed__media > .sm-ph { --r-ph: var(--r-lg) 0 0 var(--r-lg); }
}

/* phone: a card that overlaps the photo band before it */
@media (max-width: 959px) { .sm-overlap { position: relative; z-index: 4; margin-top: -32px; border-radius: var(--r-lg) var(--r-lg) var(--r) var(--r); } }

/* spec strip (§6.9) */
.sm-specstrip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-radius: 0; background: none; box-shadow: none; border-block: 1px solid var(--edge-2); overflow: hidden; }
@media (min-width: 768px) { .sm-specstrip { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); grid-template-columns: none; } }
.sm-specstrip > div { padding: 12px 16px 13px; box-shadow: -1px 0 0 var(--edge), 0 -1px 0 var(--edge); }
.sm-specstrip > div:nth-child(odd) { padding-left: 0; }
@media (min-width: 768px) { .sm-specstrip > div:nth-child(odd) { padding-left: 16px; } .sm-specstrip > div:first-child { padding-left: 0; } }
.sm-specstrip dt { font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
.sm-specstrip dd { margin: 4px 0 0; font-size: clamp(16px, 1.4vw, 19px); font-weight: 800; line-height: 1.15; color: var(--ink); text-wrap: balance; } /* .sm-spec: condensed, tabular */

/* live size readout: a CAD dimension line, ticked at both ends */
:is(.sm-kc__size, .sm-mc__size, .sm-studio__size) { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
:is(.sm-kc__size, .sm-mc__size, .sm-studio__size)::before, :is(.sm-kc__size, .sm-mc__size, .sm-studio__size)::after { content: ''; flex: 1; height: 7px; background: linear-gradient(currentColor 0 0) 50% / 100% 1px no-repeat; opacity: .6; }
:is(.sm-kc__size, .sm-mc__size, .sm-studio__size)::before { border-left: 1px solid; }
:is(.sm-kc__size, .sm-mc__size, .sm-studio__size)::after { border-right: 1px solid; }

/* poster under every live keychain stage */
.sm-kc-poster { position: absolute; left: 50%; top: 50%; width: 84%; max-width: 620px; height: auto; transform: translate(-50%, -50%); pointer-events: none; }
[data-keychain].is-ready > .sm-kc-poster { display: none; }
[data-keychain]:not(.is-ready):has(> .sm-kc-poster)::before, [data-keychain]:not(.is-ready):has(> .sm-kc-poster)::after { display: none; }

/* photo tiles with a label plate (made-for, occasions, related) */
.sm-tile { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--lift); }
.sm-tile .sm-ph { border-radius: 0; }
.sm-tile .sm-ph img { transition: scale var(--dur-3) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .sm-tile:hover .sm-ph img { scale: 1.03; } }
.sm-tile__t { position: absolute; left: 10px; bottom: 10px; z-index: 3; max-width: calc(100% - 20px); padding: 6px 10px; border-radius: var(--r-xs); background: var(--paper); color: var(--ink); font-weight: 750; font-size: var(--fs-ui); line-height: 1.2; font-variation-settings: 'wdth' 108; }
@media (min-width: 768px) { .sm-tile__t { font-size: 16px; left: 14px; bottom: 14px; } }

/* ---------- Visuals: For business (/bulk-orders/) ---------- */
.sm-bulkhero { position: relative; }
.sm-bulkhero .sm-bleed { gap: 0; }
.sm-bulkhero__media { position: relative; margin: 0 -16px; }
.sm-bulkhero__media > .sm-ph { border-radius: 0; }
.sm-bulkhero__frame { --fx: 51%; --fy: 38%; --fw: 16%; --fh: 21%; }
.sm-bulkhero__copy.sm-overlap { padding: 20px 16px 8px; background: var(--frost); }
@media (min-width: 960px) {
  .sm-bulkhero { padding: 24px 0 8px; }
  .sm-bulkhero .sm-bleed__copy, .sm-bulkhero .sm-bleed__media { grid-row: 1; }
  .sm-bulkhero .sm-bleed { gap: 24px; }
  .sm-bulkhero__copy.sm-overlap { padding: 0 24px 0 0; background: none; }
  .sm-bulkhero__media { margin: 0 calc(-1 * var(--bleed)) 0 0; }
  .sm-bulkhero__media > .sm-ph { aspect-ratio: 1; max-height: calc(100vh - var(--top-h) - 48px); width: 100%; border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .sm-bulkhero__frame { --fx: 60%; --fy: 38%; --fw: 14%; --fh: 21%; }
}

.sm-cases { display: grid; gap: 16px; }
.sm-case { display: grid; background: var(--paper); border-radius: var(--r); box-shadow: var(--lift); overflow: hidden; }
.sm-case .sm-ph { border-radius: 0; }
.sm-case__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 18px 20px; }
.sm-case__body .sm-h3 { margin: 0; font-size: 1.3rem; }
.sm-case__body .sm-specstrip { align-self: stretch; border: 0; box-shadow: inset 0 0 0 1px var(--edge); }
.sm-case__body .sm-specstrip > div { padding-left: 16px; }
@media (min-width: 960px) {
  .sm-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } /* 3-up cards: a half-width text panel sat mostly empty */
  .sm-case { grid-template-rows: auto 1fr; }
  .sm-case .sm-ph { aspect-ratio: 4 / 3; }
  .sm-case__body { padding: 20px 22px 24px; }
}
.sm-case__body p { margin: 0; }

span.sm-ph { display: block; }

/* ---------- Visuals: service pages (3D printing / laser / vinyl) ---------- */
.sm-svchero { position: relative; overflow: hidden; }
.sm-svchero__ph { aspect-ratio: 4 / 5; border-radius: 0; --pos: 78% 50% !important; }
.sm-svchero__ph::after { background: linear-gradient(transparent 40%, var(--lab) 96%); }
.sm-svchero__in { position: relative; z-index: 2; margin-top: -120px; padding-bottom: 28px; }
.sm-svchero__h { position: relative; margin: 0 0 20px; padding-bottom: 0; color: #fff; font-size: clamp(2rem, 8.4vw, 3.6rem); }
.sm-svchero__cta { display: flex; flex-direction: column; gap: 10px; }
.sm-svchero .sm-btn--line { color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
@media (min-width: 768px) { .sm-svchero__cta { flex-direction: row; } .sm-svchero__cta .sm-btn { flex: 0 0 220px; } }
@media (min-width: 960px) {
  .sm-svchero__ph { position: absolute; inset: 0; aspect-ratio: auto; --pos: 70% 50% !important; }
  .sm-svchero__ph::after { background: linear-gradient(90deg, var(--lab) 8%, rgba(10,19,34,.6) 42%, transparent 70%); }
  .sm-svchero__in { margin: 0 auto; min-height: min(calc(100vw * 9 / 21), calc(100vh - var(--top-h) - 40px)); display: flex; flex-direction: column; justify-content: center; padding: 64px 32px; }
  .sm-svchero__h { max-width: 11em; }
}
.sm-svcpage__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 960px) {
  .sm-svcpage__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: start; }
  .sm-svcpage__aside { position: sticky; top: calc(var(--top-h) + 24px); }
}
.sm-svcpage__aside > .sm-h3 { margin: 28px 0 12px; }
.sm-mats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sm-mats li { position: relative; }
.sm-mats .sm-ph { border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--lab-line); background: var(--lab); }
.sm-mats span { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 4px 8px; border-radius: var(--r-xs); background: rgba(10,19,34,.78); color: #fff; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .01em; }

/* ---------- Visuals: personalized gifts SEO page ---------- */
.sm-giftshero__media { position: relative; margin: 0 -16px; }
.sm-giftshero__ph { border-radius: 0; }
.sm-giftshero__copy { padding: 20px 16px 4px; background: var(--frost); }
.sm-giftshero__copy .sm-h1 { font-size: var(--fs-hero); }
.sm-giftshero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sm-giftshero__cta .sm-btn { flex: 1 1 150px; }
@media (min-width: 960px) {
  .sm-giftshero { padding: 24px 0 0; }
  .sm-giftshero .sm-bleed__copy, .sm-giftshero .sm-bleed__media { grid-row: 1; }
  .sm-giftshero__copy { background: none; padding: 0; }
  .sm-giftshero__cta .sm-btn { flex: 0 0 auto; }
  .sm-giftshero__media { margin: 0 calc(-1 * var(--bleed)) 0 0; }
  .sm-giftshero__ph { aspect-ratio: 1; max-height: calc(100vh - var(--top-h) - 48px); border-radius: var(--r-lg) 0 0 var(--r-lg); --pos: 50% 70%; }
}
.sm-occasions { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 28px; padding: 4px 16px 8px; scrollbar-width: none; }
.sm-occasions::-webkit-scrollbar { display: none; }
.sm-occasions > * { scroll-snap-align: start; }
@media (min-width: 960px) { .sm-occasions { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin: 8px 0 48px; padding: 0; gap: 16px; } }

/* ---------- Visuals: FAQ + shipping (picture card beside the text) ---------- */
.sm-helppg__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.sm-helppg__card { border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); overflow: hidden; }
.sm-helppg__card > .sm-ph { border-radius: 0; }
.sm-helppg__topics { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 16px; scrollbar-width: none; }
.sm-helppg__topics::-webkit-scrollbar { display: none; }
.sm-helppg__topics .sm-chip { min-height: 44px; font-size: var(--fs-ui); }
@media (min-width: 960px) {
  .sm-helppg__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
  .sm-helppg__side { position: sticky; top: calc(var(--top-h) + 24px); }
  .sm-helppg__topics { flex-wrap: wrap; }
}
.sm-faqh { display: flex; align-items: center; gap: 14px; scroll-margin-top: calc(var(--top-h) + 16px); }
.sm-prose .sm-faqh { margin-top: 1.6em; }
.sm-faqh .sm-pchip { width: 48px; height: 48px; }
@media (min-width: 960px) { .sm-faqh .sm-pchip { width: 64px; height: 64px; } }
.sm-phmap { display: block; width: 100%; max-width: 340px; margin: 12px auto 16px; fill: var(--ink); }
.sm-phmap circle { opacity: .85; }
.sm-phmap__here { fill: var(--laser); opacity: 1 !important; stroke: var(--paper); stroke-width: 2; }
.sm-phmap text { font-size: var(--fs-xs); fill: var(--ink-3); }
.sm-phmap__n { font-weight: 700; }
.sm-phmap__f { font-weight: 800; font-size: var(--fs-ui); fill: var(--ink); }
@media (max-width: 959px) { .sm-helppg--shipping-policy .sm-phmap { display: none; } }

/* ---------- Visuals: contact ---------- */
.sm-ctpg { padding-top: 0; }
.sm-chat__stepn { font-size: var(--fs-sm); color: var(--ink-3); }
@media (min-width: 960px) {
  .sm-ctpg { padding-top: 32px; }
}

/* ---------- Visuals: our work (real prints on the studio bench) ---------- */
.sm-workhero { position: relative; }
.sm-workhero__bench { aspect-ratio: 16 / 9; border-radius: 0; background: radial-gradient(120% 90% at 72% 42%, var(--paper), var(--frost-2) 70%); }
.sm-workhero__in { display: flex; flex-direction: column; }
.sm-workhero__prints { order: -1; display: grid; justify-items: center; align-items: end; height: 200px; margin-top: -150px; }
.sm-workhero__prints .sm-print { grid-area: 1 / 1; width: 36%; padding: 5px 5px 18px; }
.sm-workhero__prints .sm-print:nth-child(1) { transform: translateX(-62%) rotate(var(--rot)); }
.sm-workhero__prints .sm-print:nth-child(2) { z-index: 2; }
.sm-workhero__prints .sm-print:nth-child(3) { transform: translateX(62%) rotate(var(--rot)); }
.sm-workhero__copy { padding: 20px 0 4px; }
.sm-workhero__copy .sm-h1 { font-size: var(--fs-hero); }
.sm-workpg { padding-top: 16px; }
@media (min-width: 960px) {
  .sm-workhero { min-height: clamp(480px, 40vw, 600px); display: grid; }
  .sm-workhero__bench { position: absolute; inset: 0; aspect-ratio: auto; }
  .sm-workhero__in { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; }
  .sm-workhero__copy { grid-column: 1 / span 6; padding: 0; }
  .sm-workhero__prints { grid-column: 7 / -1; grid-row: 1; order: 0; height: auto; margin: 0; align-items: center; padding: 48px 0; }
  .sm-workhero__prints .sm-print { width: 40%; padding: 8px 8px 28px; }
  .sm-workhero__prints .sm-print:nth-child(1) { transform: translate(-72%, 6%) rotate(var(--rot)); }
  .sm-workhero__prints .sm-print:nth-child(2) { transform: translateY(-6%) rotate(var(--rot)); }
  .sm-workhero__prints .sm-print:nth-child(3) { transform: translate(72%, 10%) rotate(var(--rot)); }
  .sm-workpg { padding-top: 40px; }
}
.sm-work__btn img { background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--c, var(--ink)) 12%, var(--frost)) 0 3px, color-mix(in srgb, var(--c, var(--ink)) 7%, var(--frost)) 3px 4px); }

/* ---------- Visuals: personalize ---------- */
.sm-pzhero { display: grid; gap: 8px; }
.sm-pzhero__lb { display: block; margin: 4px 0 6px; }
.sm-pzhero__name { max-width: 360px; }
.sm-pzhero__fan { margin: 4px -16px 0; overflow: hidden; padding: 16px 0 24px; }
.sm-pzhero__live { background: radial-gradient(80% 80% at 50% 35%, #fff, var(--frost-2)); }
.sm-pzhero__stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: grab; }
.sm-pzhero__stage > canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.sm-pzhero__stage .sm-kc-poster { width: 92%; }
.sm-pzhero__live > .sm-frame { --fx: -10px; --fy: -10px; --fw: calc(100% + 20px); --fh: calc(100% + 20px); }
.sm-pzhero__time { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: var(--fs-ui); font-weight: 600; color: var(--ink-3); }
.sm-pzhero__time .sm-i { color: var(--laser-deep); }
.sm-pz__craft { margin-top: 20px; }
.sm-pz__lab { list-style: none; }
.sm-pz__lab .sm-tile { height: 100%; min-height: 260px; background: var(--lab); }
.sm-pz__lab .sm-ph { width: 100%; height: 100%; } /* both set: the 4/5 ratio no longer widens the photo past the tile (it clipped the tag) */
.sm-pz__labb .sm-btn { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); } /* card-level action: white outline, as on /shop/ */
@media (hover: hover) and (pointer: fine) { .sm-pz__lab .sm-tile:hover .sm-btn { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1.5px #fff; } }
.sm-pz__labb { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: grid; justify-items: start; gap: 10px; padding: 56px 14px 14px; background: linear-gradient(transparent, rgba(10,19,34,.92) 45%); color: #fff; }
.sm-pz__labb strong { font-size: 17px; line-height: 1.2; font-variation-settings: 'wdth' 110; }
@media (min-width: 960px) {
  .sm-pzhero { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; align-items: center; padding-top: 32px; padding-bottom: 8px; }
  .sm-pzhero__copy { grid-column: 1 / span 5; }
  .sm-pz__craft { margin-top: 28px; }
  .sm-pzhero__fan { grid-column: 6 / -1; margin: 0; padding: 24px 0 32px; overflow: visible; }
  .sm-pzhero__fan > * { width: min(42%, 280px); }
  .sm-pzhero__fan > :nth-child(1) { transform: rotate(-6deg) translate(-66%, 6%); }
  .sm-pzhero__fan > :nth-child(2) { transform: rotate(6deg) translate(66%, 6%); }
}

/* ---------- Visuals: 404 ---------- */
.sm-404__grid { display: grid; gap: 20px; }
.sm-404__art { margin: 0 -16px; }
.sm-404__art .sm-ph { border-radius: 0; }
.sm-404__art > .sm-frame { display: none; }
.sm-404__cta { margin: 20px 0 0; }
.sm-404__cta .sm-btn { width: 100%; }
.sm-404__search { display: flex; align-items: center; gap: 6px; max-width: 520px; margin: 14px 0 16px; padding: 0 2px 0 14px; border-radius: var(--pill); box-shadow: inset 0 0 0 1.5px var(--edge-2); color: var(--ink-3); }
.sm-404__search:focus-within { box-shadow: inset 0 0 0 2px var(--ink); }
.sm-404__search input { flex: 1; min-width: 0; min-height: 48px; padding: 0; border: 0; background: transparent; box-shadow: none !important; }
.sm-404__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-404__msg { margin: 16px 0 0; }
.sm-404__end { margin-top: 48px; }
.sm-404__end .sm-h2 { margin-bottom: 16px; }
@media (min-width: 960px) {
  .sm-404 { padding-top: 48px; }
  .sm-404__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
  .sm-404__art { order: 2; margin: 0; }
  .sm-404__art .sm-ph { border-radius: var(--r-lg); }
  .sm-404__art > .sm-frame { display: block; }
  .sm-404__cta .sm-btn { width: auto; }
  .sm-404__end { margin-top: 64px; } /* heading above the card, one column: no empty left half */
  .sm-404__end .sm-minikc { max-width: 820px; }
}

/* Make Lab: real micro-photos instead of flat squares */
.lab-kinds li:has(.sm-pchip) { grid-template-columns: 48px 1fr; align-items: center; }
.lab-kinds .sm-pchip { width: 48px; height: 48px; box-shadow: 0 0 0 1px var(--laser); }
@media (min-width: 768px) { .lab-kinds li:has(.sm-pchip) { grid-template-columns: 72px 1fr; } .lab-kinds .sm-pchip { width: 72px; height: 72px; } }
.lab-kinds .sm-pchip > img { object-position: 76% 50%; }

/* ---------- empty cart: the mini configurator, the group door, back to the shop ---------- */
.sm-cartempty { display: grid; gap: 20px; margin: 8px 0 32px; }
.sm-cartempty__h { margin: 0; }
.sm-cartempty__more { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.sm-cartempty__event { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-weight: 650; }
@media (min-width: 960px) {
  .sm-cartempty { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px 56px; align-items: center; margin: 24px 0 64px; }
  .sm-cartempty__h, .sm-cartempty__more { grid-column: 1; }
  .sm-cartempty__kc { grid-column: 2; grid-row: 1 / span 2; justify-self: end; width: 100%; }
}

/* ---------- Visuals: my account (logged out, inc/art.php): forms beside a navy picture panel. Own class: the
   logged-in account home is .sm-acct (shop.css); sharing it put the dashboard in these two columns. ---------- */
.sm-login { display: grid; gap: 20px; }
.sm-login__side { order: -1; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; }
.sm-login:has(.sm-login__forms :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)) .sm-login__side { order: 0; } /* phones: a notice (check your email, wrong password) comes first */
.sm-login__side .sm-ph { aspect-ratio: 21 / 9; border-radius: 0; }
.sm-login__side ul { list-style: none; margin: 0; padding: 8px 12px 12px; }
.sm-login__side a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 8px; border-radius: var(--r-sm); font-weight: 650; }
@media (hover: hover) and (pointer: fine) { .sm-login__side a:hover { background: rgba(255,255,255,.06); } }
.sm-login__side .sm-i { color: var(--laser); flex: none; }
@media (min-width: 960px) {
  .sm-login { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .sm-login__side { order: 0; position: sticky; top: calc(var(--top-h) + 24px); margin-right: calc(-1 * var(--bleed)); border-radius: var(--r-lg) 0 0 var(--r-lg); }
  .sm-login__side .sm-ph { aspect-ratio: 16 / 11; }
  .sm-login__side ul { padding: 16px 24px 24px; }
}
.sm-login #customer_login { grid-template-columns: minmax(0, 1fr) !important; }
.sm-login #customer_login .woocommerce-form-login { margin: 0; padding: 0; background: none; box-shadow: none; } /* the checkout toggle's card (shop.css), not a card in a card */
.sm-login .woocommerce-form-register__submit { background: var(--ink); color: #fff !important; box-shadow: 0 1px 2px rgba(12,31,61,.25), 0 6px 14px -8px rgba(12,31,61,.45); } /* one orange button: Log in */
@media (hover: hover) and (pointer: fine) { .sm-login .woocommerce-form-register__submit:hover { background: #172f58; } }
@media (max-width: 959px) { .sm-svcpage__aside { order: -1; } } /* phones: materials right under the hero, not after the FAQ */

/* ==========================================================================
   Shared components 2026-09-28 (journey map): collapsibles, craft strip, mini configurator, phone menu, order received
   ========================================================================== */
/* collapsible: <details class="sm-more"> (heavy text) and <details class="sm-acc"> (FAQ). Opens smoothly in Chrome/Edge,
   instantly elsewhere; low specificity so page CSS (e.g. pages.css .sm-pg--lab .sm-acc) still wins where it differs. */
:root { interpolate-size: allow-keywords; }
:where(.sm-more, .sm-acc) { margin: 8px 0; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift); transition: box-shadow var(--dur-1) ease; }
:where(.sm-more, .sm-acc) > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px 12px 18px; border-radius: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
:where(.sm-more, .sm-acc) > summary::-webkit-details-marker { display: none; }
:where(.sm-more, .sm-acc) > summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-left: auto; border-radius: 50%; background: var(--frost); color: var(--ink); font: 400 22px/1 var(--f); transition: background-color var(--dur-1) ease, color var(--dur-1) ease; }
@media (hover: hover) and (pointer: fine) { :where(.sm-more, .sm-acc) > summary:hover::after { background: var(--frost-2); } }
:where(.sm-more, .sm-acc)[open] > summary::after { content: "\2212"; background: var(--frost-2); color: var(--ink); } /* minus, not an orange x (read as remove) */
:where(.sm-more) > :not(summary), :where(.sm-acc) > .sm-acc__b { padding: 0 18px 16px; color: var(--ink-2); }
:where(.sm-more) > :not(summary) > :first-child, :where(.sm-acc__b) > :first-child { margin-top: 0; }
:where(.sm-more) > :not(summary) > :last-child, :where(.sm-acc__b) > :last-child { margin-bottom: 0; }
:where(.sm-more, .sm-acc, .sm-foot__acc, .sm-prose details, .sm-co__coupon, .sm-ideas-occ__d)::details-content { block-size: 0; overflow: clip; transition: block-size var(--dur-2) var(--ease-out), content-visibility var(--dur-2) allow-discrete; }
:where(.sm-more, .sm-acc, .sm-foot__acc, .sm-prose details, .sm-co__coupon, .sm-ideas-occ__d)[open]::details-content { block-size: auto; }
:where(.sm-foot__acc, .sm-co__coupon, .sm-prose details, .sm-ideas-occ__d)::details-content { overflow-clip-margin: 6px; } /* edge-to-edge links/buttons: keep the 3px-offset focus ring outside the clip (sm-more/sm-acc pad their body) */
/* a run of FAQ rows reads as one card, hairlines between */
:where(.sm-acc):has(+ .sm-acc), .sm-prose details:has(+ details) { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
:where(.sm-acc + .sm-acc), .sm-prose details + details { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; box-shadow: inset 0 1px 0 var(--edge), var(--lift); } /* hairline first: it paints over the lift's white top bevel */
.sm-lab :where(.sm-more, .sm-acc) > summary::after { background: var(--lab); color: #fff; }

/* craft strip (sm_crosslinks): three photo buttons, one per machine */
.sm-crafts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sm-crafts__a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 5px 5px 10px; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift); transition: translate var(--dur-1) var(--ease-out), box-shadow var(--dur-1) ease, scale var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { a.sm-crafts__a:hover { translate: 0 -2px; box-shadow: var(--lift-2); } }
.sm-crafts__a[aria-current] { opacity: .55; }
.sm-crafts .sm-ph { border-radius: var(--r-sm); }
.sm-crafts :is(.sm-ph--sample, .sm-ph--styled, .sm-ph--illus)::before { top: 5px; right: 5px; bottom: auto; padding: 2px 6px; border-radius: var(--r-xs); font-size: 10px; }
.sm-crafts__t { padding: 0 4px; font-weight: 750; font-size: var(--fs-sm); line-height: 1.2; font-variation-settings: 'wdth' 106; }
.sm-crafts__m { padding: 0 4px; margin-top: -4px; font-size: var(--fs-xs); color: var(--ink-3); }
@media (min-width: 768px) { .sm-crafts { gap: 12px; } .sm-crafts__t { font-size: var(--fs-md); } }

/* mini configurator (empty cart, 404): the JAM render, the price, a name field and "Type a name" */
.sm-minikc { display: grid; gap: 12px; max-width: 480px; padding: 12px; }
.sm-minikc__render { position: relative; display: block; aspect-ratio: 2.2; border-radius: var(--r); overflow: hidden; background: radial-gradient(80% 90% at 50% 30%, #fff, var(--frost-2)); }
.sm-minikc__render .sm-kc-poster { width: 76%; }
.sm-minikc__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; padding: 0 4px; }
.sm-minikc__row > span { display: flex; align-items: baseline; gap: 10px; }
.sm-minikc__price { font-weight: 850; font-size: 20px; font-variation-settings: 'wdth' 90; }
.sm-minikc__row small { font-size: var(--fs-sm); }
.sm-minikc__go { display: flex; gap: 8px; }
.sm-minikc__go input { flex: 1; min-width: 0; font-weight: 700; text-align: center; }
.sm-minikc__go .sm-btn { flex: none; }

/* phone menu sheet (#smMenu, opened by the tab bar's Menu): door tiles, text rows, Message us pinned at the bottom */
html.sm-sheet-open { overflow: hidden; }
.sm-menu { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; padding: 0 16px calc(12px + var(--safe-b)); background: rgba(238,241,244,.97); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), display var(--dur-2) allow-discrete; }
.sm-menu[hidden] { display: none; opacity: 0; transform: translateY(var(--rise)); pointer-events: none; transition-duration: var(--dur-1); }
@starting-style { .sm-menu:not([hidden]) { opacity: 0; transform: translateY(var(--rise)); } }
.sm-menu__top { display: flex; flex: none; align-items: center; justify-content: space-between; height: var(--top-h); }
.sm-menu__body { flex: 1; display: grid; align-content: start; gap: 8px; overflow-y: auto; overscroll-behavior: contain; margin: 0 -16px; padding: 2px 16px 12px; }
.sm-menu__doors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sm-menu__doors--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sm-menu__digital { display: flex; align-items: center; gap: 13px; padding: 13px 15px; margin: 9px 0 15px; min-height: 68px; border-radius: var(--r); background: var(--ink); color: #fff; text-decoration: none; }
.sm-menu__digital > span:first-child { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.35); border-radius: 12px; color: var(--laser); }
.sm-menu__digital > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.sm-menu__digital strong { font-size: var(--fs-md); line-height: 1.2; }
.sm-menu__digital small { color: #d7e1ee; font-size: .79rem; line-height: 1.25; }
.sm-menu__digital > .sm-i { margin-left: auto; flex: none; color: var(--laser); }
.sm-menu__digital:hover, .sm-menu__digital:focus-visible { background: #172e53; color: #fff; }
.sm-menu .sm-tile__t { left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 4px 7px; border-radius: var(--r-xs); font-size: var(--fs-xs); }
.sm-menu__doors--2 .sm-tile__t { left: 8px; bottom: 8px; padding: 5px 9px; font-size: var(--fs-md); }
.sm-menu :is(.sm-ph--sample, .sm-ph--styled, .sm-ph--illus)::before { top: 5px; right: 5px; bottom: auto; padding: 2px 6px; border-radius: var(--r-xs); font-size: 10px; }
.sm-menu .sm-next__kc { background: radial-gradient(120% 100% at 50% 35%, #fff, var(--frost-2)); }
.sm-menu .sm-next__kc > img.sm-kc-poster { width: 80%; height: auto; top: 46%; object-fit: contain; }
.sm-menu__h { margin: 6px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-3); }
.sm-menu__rows { display: grid; grid-template-columns: 1fr 1fr; margin-top: 4px; border-radius: var(--r); background: var(--paper); box-shadow: var(--lift); overflow: hidden; }
.sm-menu__rows a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; font-weight: 650; font-size: var(--fs-md); box-shadow: 0 1px 0 var(--edge), 1px 0 0 var(--edge); }
@media (hover: hover) and (pointer: fine) { .sm-menu__rows a:hover { background: var(--frost); } }
.sm-menu__rows .sm-i { flex: none; color: var(--laser-deep); }
.sm-menu__msg { flex: none; margin-top: 4px; }
@media (min-width: 960px) { .sm-menu { display: none !important; } }

/* order received: the two next steps, the social row, then one card for event buyers */
.sm-ty { display: grid; gap: 14px; margin: 20px 0 28px; padding: 18px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--lift); }
.sm-ty__cta { display: flex; flex-direction: column; gap: 10px; }
.sm-ty__soc { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: var(--fs-ui); font-weight: 700; color: var(--ink-3); }
.sm-ty .sm-foot__soc { margin-left: 0; }
.sm-ty .sm-foot__soc .sm-ic { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .sm-ty .sm-foot__soc .sm-ic:hover { background: var(--frost); color: var(--ink); } }
.sm-ty__next { display: grid; margin: 32px 0 8px; border-radius: var(--r-lg); background: var(--ink); color: #c3cfe0; }
.sm-ty__nextb { display: grid; justify-items: start; gap: 8px; padding: 18px 20px 22px; }
.sm-ty__nextb .sm-h3 { margin: 0; color: #fff; font-size: 1.35rem; }
@media (min-width: 768px) {
  .sm-ty__cta { flex-direction: row; }
  .sm-ty__next { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
  .sm-ty__nextb { padding: 28px 36px; }
}
