/* TH27 "Charoen Krung at blue hour" (10 Nov 2026). Loaded after th26.css + th26-calm.css; kill switch private/th27.off.
   Restyles every storefront page through tokens and adds the motion home page (views/th26/home_page.php).
   Craft rules follow unslop by Damir Sokolovsky (@heydamir, CC BY 4.0): one tinted neutral ramp, one accent, weights up to 600,
   4px spacing, one easing curve, no gradient text / glows / grain / looping motion. The 3D parallax is kept on purpose (client brief).
   Performance: the hero is one preserve-3d scene; th27.js writes one transform per frame on .hx-scene plus a few opacities.
   No inherited custom properties change per frame, no blend modes, no runtime blur. */

:root, html[data-pal="light"] {
  /* ink ramp tinted toward the blue-hour street */
  --night: #0b1c3d; --night-2: #08152e; --night-3: #13264d;
  --on-night: #eef0f5; --on-night-2: #b4bccc; --on-night-3: #8d97ab;
  --page: #f5f7fa; --paper: #ffffff; --raised: #eceff4;
  --ink: #111827; --ink-2: #4b5565; --mute: #5f6879;
  --rule: rgba(17, 24, 39, .1); --rule-strong: rgba(17, 24, 39, .18); --rule-night: rgba(238, 240, 245, .12);
  /* brand + one accent */
  --cobalt: #1646a0; --cobalt-ink: #10357c; --sodium: #e9b44c; --sodium-hover: #f0c468; --emerald: #0e7a52; --live: #3ddc97;
  /* th26 aliases */
  --bg: var(--page); --bg-2: var(--raised); --line: var(--rule); --muted: var(--mute);
  --accent: var(--cobalt); --accent-ink: var(--cobalt-ink); --cta: var(--cobalt); --cta-ink: var(--cobalt-ink); --amber: var(--sodium); --ok: var(--emerald);
  --r-sm: 8px; --r: 10px; --r-card: 16px; --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05); --shadow: 0 8px 24px rgba(0, 0, 0, .06); --shadow-lg: 0 16px 40px rgba(11, 28, 61, .18);
  --ease: cubic-bezier(.22, 1, .36, 1); --ease-spring: var(--ease);
  --font-h: "Bai Jamjuree", "Noto Sans Thai", system-ui, sans-serif;
  --font-b: "IBM Plex Sans Thai Looped", "Noto Sans Thai Looped", "Sarabun", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-0: .9375rem; --fs-1: 1.0625rem; --fs-2: clamp(1.125rem, 1.07rem + .3vw, 1.3125rem);
  --fs-3: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); --fs-4: clamp(1.75rem, 1.4rem + 1.6vw, 2.625rem);
  --fs-hero: clamp(2.375rem, 1.3rem + 3vw, 4.25rem);
}
body.th26 { background: var(--page); color: var(--ink); line-height: 1.7; }
:where(.th26) :is(h1, h2, h3, h4) { font-family: var(--font-h); font-weight: 600; letter-spacing: 0; line-height: 1.25; }
:where(.th26) :focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.muted, .sec-head p { color: var(--mute); }

/* ---------------------------------------------------------------- chrome */
.topbar { background: var(--night); color: var(--on-night); }
.topbar.is-offer, .topbar.is-fest { background: var(--night); color: var(--on-night); box-shadow: inset 0 -2px 0 var(--sodium); }
.topbar .dot { background: var(--live); animation: none; box-shadow: none; }
.hdr { background: rgba(245, 247, 250, .96); border-bottom: 1px solid var(--rule); transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.nav a { font-weight: 500; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a::after { background: var(--sodium); height: 2px; }
.hdr-search input { border-radius: var(--r); background: var(--paper); border: 1px solid var(--rule-strong); }
.hdr-search input::placeholder { color: var(--mute); }
.hdr-search input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(22, 70, 160, .15); }
.badge-count { background: var(--sodium); color: var(--ink); animation: none; }
.lang-sw { border: 1px solid var(--rule-strong); }
.lang-sw a { color: var(--ink-2); }
.lang-sw a[aria-current="true"] { background: var(--ink); color: #fff; }

/* header floats over the home hero (white on a darkened top band), then settles on the page colour */
body.th27-home .hdr { background: transparent; border-color: transparent; box-shadow: none; }
body.th27-home .hx { margin-top: calc(var(--head-h) * -1); }
body.th27-home .hdr:not(.is-solid) :is(.nav a, .icon-btn) { color: #fff; }
body.th27-home .hdr:not(.is-solid) .nav a:hover { background: rgba(255, 255, 255, .1); }
body.th27-home .hdr:not(.is-solid) .logo img { filter: brightness(0) invert(1); }
body.th27-home .hdr:not(.is-solid) .hdr-search input { background: rgba(8, 21, 46, .55); border-color: rgba(255, 255, 255, .35); color: #fff; }
body.th27-home .hdr:not(.is-solid) .hdr-search input::placeholder { color: rgba(255, 255, 255, .8); }
body.th27-home .hdr:not(.is-solid) .hdr-search > .ico { color: rgba(255, 255, 255, .85); }
body.th27-home .hdr:not(.is-solid) .hdr-search kbd { background: transparent; color: rgba(255, 255, 255, .8); border-color: rgba(255, 255, 255, .35); }
body.th27-home .hdr:not(.is-solid) .lang-sw { background: rgba(8, 21, 46, .55); border-color: rgba(255, 255, 255, .35); }
body.th27-home .hdr:not(.is-solid) .lang-sw a { color: rgba(255, 255, 255, .88); }
body.th27-home .hdr:not(.is-solid) .lang-sw a[aria-current="true"] { background: #fff; color: var(--ink); }
body.th27-home .hdr.is-solid { background: rgba(245, 247, 250, .97); border-color: var(--rule); }

/* ---------------------------------------------------------------- buttons, chips, cards */
.btn { border-radius: var(--r); font-weight: 600; transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease); }
.btn:hover { transform: none; box-shadow: none; }
.btn:active { transform: scale(.98); }
.btn .ripple { display: none; }
.btn-accent, .btn:not([class*="btn-"]) { --b: var(--cobalt); }
.btn-accent:hover, .btn:not([class*="btn-"]):hover { --b: var(--cobalt-ink); }
.btn-sodium { --b: var(--sodium); --c: var(--ink); }
.btn-sodium:hover { --b: var(--sodium-hover); }
.btn-ghost-light { --b: rgba(8, 21, 46, .35); --c: #fff; border: 1px solid rgba(255, 255, 255, .6); backdrop-filter: none; }
.btn-ghost-light:hover { --b: #fff; --c: var(--ink); border-color: #fff; }
.btn-soft { --b: var(--paper); --c: var(--ink); border: 1px solid var(--rule-strong); }
.btn-soft:hover { --b: var(--raised); }
.chip-btn { border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink-2); font-weight: 500; }
.chip-btn small { color: var(--mute); }
.chip-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-btn.is-on small { color: rgba(255, 255, 255, .75); }

.card { border-radius: var(--r-card); border: 1px solid var(--rule); background: var(--paper); color: var(--ink); box-shadow: none; overflow: hidden; }
.card:hover { border-color: var(--rule-strong); box-shadow: none; }
.card .media { background: #f3f5f8; border-radius: 0; }
.card .brand { color: var(--mute); font-size: 13px; }
.card h3 { font-family: var(--font-b); font-weight: 500; font-size: var(--fs-1); line-height: 1.45; color: var(--ink); }
.card .price b { font-family: var(--font-h); font-weight: 600; font-size: 1.375rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.card .price s { color: var(--mute); }
.flag { border-radius: 6px; font-weight: 500; font-size: 13px; border: 0; box-shadow: none; }
.flag.new { background: var(--cobalt); color: #fff; }
.flag.sale { background: var(--sodium); color: var(--ink); }
.flag.one { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.flag.sold { background: var(--raised); color: var(--ink-2); }
.card .add-btn { --b: var(--cobalt); }
.card .icon-btn { color: var(--emerald); }

.sec-head h2 { font-size: var(--fs-4); }
.eyebrow { text-transform: none; letter-spacing: 0; font: 500 var(--fs-0)/1.3 var(--font-b); color: var(--cobalt); }

/* footer on night */
.ftr { background: var(--night); color: var(--on-night-2); border-top: 0; }
.ftr h3, .ftr b { color: var(--on-night); font-family: var(--font-h); font-weight: 600; }
.ftr a { color: var(--on-night); }
.ftr a:hover { color: var(--sodium); }
/* links inside running text are underlined, not told apart by colour alone */
.ftr p a, .prose a, .qa-a a, .visit .row a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ftr .logo img { filter: brightness(0) invert(1); }
.ftr .soc a { background: transparent; border: 1px solid var(--rule-night); color: var(--on-night); }
.ftr .base { border-top-color: var(--rule-night); color: var(--on-night-2); }
.ftr .pp-badge { background: var(--night-3); color: var(--on-night); }
.ftr .lang-sw { background: transparent; border-color: var(--rule-night); }
.ftr .lang-sw a { color: var(--on-night-2); }
.ftr .lang-sw a[aria-current="true"] { background: var(--on-night); color: var(--ink); }
.fab .main { box-shadow: var(--shadow-lg); }
/* no motion that loops forever: it forces a repaint every frame (and redraws the hero scene with it) */
.fab .bubble, .fab .main::before, .fab .ring { animation: none !important; }
.fab .main::before { display: none; }
.skel { animation: none; background: var(--raised); }
.drawer.is-open .skel { animation: shimmer 1.2s infinite; background: linear-gradient(90deg, var(--raised), #f8f9fb, var(--raised)); background-size: 200% 100%; }

/* ================================================================ HOME */
/* ---- hero: the blue-hour street as a soft backdrop (CSS 3D parallax) + a real-time WebGL lens (th27-lens.js) in front.
   The immersion starts on arrival: an inline script adds .hx-pre before first paint, th27.js plays a 1.8s intro
   (the lens assembles and spins in, focus racks from the street to the lens, AF lock + flash). Scroll turns the lens to
   face you and pushes the camera through the glass. No JS / no WebGL = the street photo and the copy, in place. */
.hx { position: relative; height: 210svh; background: var(--night); color: var(--on-night); }
.hx-stage { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; perspective: 1000px; perspective-origin: 62% 55%; }
.hx-scene { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; pointer-events: none; }
.hx-l { position: absolute; inset: -6%; transform: translateZ(var(--z)) scale(var(--s)); transform-style: preserve-3d; will-change: transform; backface-visibility: hidden; }
.hx-in { position: absolute; inset: 0; will-change: transform; }
.hx-l img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hx-street .soft { opacity: 0; }
.hx :is(.sharp, .soft) { will-change: opacity; }
.hx-dot { position: absolute; aspect-ratio: 1; border-radius: 50%; transform: translateZ(var(--z)); will-change: transform; }
.hx-dot.bokeh { background: radial-gradient(circle, rgba(233, 180, 76, .38), rgba(233, 180, 76, 0) 68%); }
.hx-dot.mote { background: rgba(246, 215, 154, .75); }
.hx-veil { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 28, 61, .92) 0%, rgba(11, 28, 61, .74) 34%, rgba(11, 28, 61, .2) 56%, rgba(11, 28, 61, .1) 100%),
              linear-gradient(180deg, rgba(8, 21, 46, .8) 0, rgba(8, 21, 46, 0) 180px, rgba(8, 21, 46, 0) 62%, rgba(8, 21, 46, .7) 100%); }
.hx-flash { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; }
.hx.flash .hx-flash { animation: hx-flash .36s ease-out; }
@keyframes hx-flash { 0% { opacity: .55; } 100% { opacity: 0; } }
/* viewfinder corners: wide and dim while the camera hunts, snap in and turn green when focus locks */
.hx-vf { position: absolute; inset: calc(var(--head-h) + 24px) 5vw 32px; pointer-events: none; transition: inset .5s var(--ease), opacity .3s var(--ease); }
.hx-pre .hx-vf { inset: calc(var(--head-h) + 4px) 2vw 8px; opacity: .55; }
.hx-vf i { position: absolute; width: 32px; height: 32px; border: 0 solid rgba(255, 255, 255, .75); transition: border-color .2s var(--ease); }
.hx-vf i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.hx-vf i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.hx-vf i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.hx-vf i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.hx-af { position: absolute; top: 12px; right: 16px; display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 6px; background: rgba(8, 21, 46, .6); font: 500 13px/1.3 var(--font-b); color: var(--on-night); }
.hx-af b { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.hx-af .on, .hx.is-locked .hx-af .off { display: none; }
.hx.is-locked .hx-af .on { display: inline; }
.hx.is-locked .hx-vf i { border-color: var(--live); }
.hx.is-locked .hx-af b { background: var(--live); border-color: var(--live); }

/* the WebGL lens sits above the veil (so it is never darkened) and below the copy; it fades in once its first frame is drawn */
.hx-gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity .6s var(--ease); touch-action: pan-y; }
.hx-gl.is-ready { opacity: 1; }
.hx-exit { position: absolute; inset: 0; z-index: 4; background: var(--night-2); opacity: 0; pointer-events: none; will-change: opacity; }
/* sound toggle (off by default; visitors switch camera sounds on) */
.hx-sound { position: absolute; right: calc(5vw + 12px); bottom: 44px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(8, 21, 46, .55); color: var(--on-night); transition: background-color .15s var(--ease), border-color .15s var(--ease); }
.hx-sound:hover { background: rgba(8, 21, 46, .85); border-color: rgba(255, 255, 255, .6); }
.hx-sound .ico { width: 18px; height: 18px; }
.hx-sound .w, .hx-sound[aria-pressed="true"] .x { display: none; }
.hx-sound[aria-pressed="true"] .w { display: inline; }

.hx-copy { position: absolute; left: 0; right: 0; bottom: 40px; z-index: 2; }
.hx-copy .in { max-width: 620px; will-change: transform; }
.hx-open { display: inline-flex; align-items: center; gap: 8px; font: 500 var(--fs-0)/1.4 var(--font-b); color: var(--on-night); margin-bottom: 16px; }
.hx-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--live); flex: none; }
.hx-open.closed::before { background: var(--sodium); }
.hx h1 { font-size: var(--fs-hero); font-weight: 600; line-height: 1.14; letter-spacing: -.01em; margin: 0 0 20px; color: #fff; text-wrap: balance; }
.hx h1 .ln { display: block; }
.hx h1 .ln:nth-child(2) { color: var(--sodium); }
.hx .lede { max-width: 46ch; font-size: var(--fs-2); line-height: 1.6; color: var(--on-night); margin: 0 0 28px; }
.hx .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hx-head > *, .hx .ctas { opacity: 0; transform: translateY(12px); animation: hx-in .55s var(--ease) forwards; animation-delay: .25s; }
.hx-head > :nth-child(2) { animation-delay: .32s; } .hx-head > :nth-child(3) { animation-delay: .39s; } .hx .ctas { animation-delay: .46s; }
@keyframes hx-in { to { opacity: 1; transform: none; } }
@media (min-width: 900px) {
  .hx-copy { top: calc(var(--head-h) + clamp(32px, 7vh, 72px)); bottom: clamp(32px, 6vh, 64px); }
  .hx-copy .wrap, .hx-copy .in { height: 100%; }
  .hx-copy .in { display: flex; flex-direction: column; justify-content: space-between; }
  .hx .lede { font-size: var(--fs-1); }
}
@media (max-width: 899px) {
  .hx { height: auto; }
  .hx-stage { position: relative; height: 94svh; min-height: 620px; perspective-origin: 70% 60%; }
  .hx-l img { object-position: 50% 34%; }
  .hx-veil { background: linear-gradient(180deg, rgba(8, 21, 46, .75) 0%, rgba(8, 21, 46, .3) 26%, rgba(8, 21, 46, .55) 46%, rgba(8, 21, 46, .96) 72%); }
  .hx-vf { inset: calc(var(--head-h) + 12px) 12px 12px; }
  .hx-vf i { width: 20px; height: 20px; }
  .hx-af, .hx-dot.mote { display: none; }
  .hx { height: 160svh; }
  .hx-stage { position: sticky; }
  .hx-sound { right: 20px; bottom: auto; top: calc(var(--head-h) + 28px); width: 36px; height: 36px; }
  .hx-copy { bottom: 28px; }
  .hx .ctas .btn { flex: 1 1 100%; }
}

/* ---- trust row: four checkable facts, static (.trustrow; .trust is the product page's own list) */
.trustrow { background: var(--night-2); color: var(--on-night); border-top: 1px solid var(--rule-night); }
.trustrow .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; padding-block: 24px; }
@media (min-width: 900px) { .trustrow .wrap { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 28px; } }
.trustrow .wrap > div { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.trustrow .ico { width: 20px; height: 20px; color: var(--sodium); margin-top: 3px; }
.trustrow b { display: block; font: 600 var(--fs-1)/1.35 var(--font-h); color: var(--on-night); }
.trustrow span { font-size: var(--fs-0); color: var(--on-night-2); line-height: 1.45; }

/* ---- generic home section */
.hs { padding-block: clamp(64px, 8vw, 112px); }
.hs-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.hs-head h2 { font-size: var(--fs-4); margin: 0; max-width: 22ch; }
.hs-head p { margin: 8px 0 0; color: var(--mute); max-width: 56ch; }
:where(.hs-head h2, .lineband h2, .visit h2, .qa h2) { text-wrap: balance; }

/* ---- categories */
.ct { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ct { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.ct a { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--night); color: #fff; isolation: isolate; }
@media (max-width: 699px) { .ct a { aspect-ratio: 16 / 10; } }
.ct img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; z-index: -1; will-change: transform; transition: translate .5s var(--ease); }
.ct a.is-tilting img { transition: translate .1s linear; }
.ct a::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(8, 21, 46, .92)); z-index: -1; }
.ct .t { position: absolute; left: 24px; right: 24px; bottom: 20px; display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.ct b { display: block; font: 600 var(--fs-3)/1.2 var(--font-h); }
.ct small { color: var(--on-night); font-size: var(--fs-0); }
.ct .go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sodium); color: var(--ink); flex: none; transition: transform .18s var(--ease); }
.ct a:hover .go { transform: translateX(3px); }

/* ---- shop by budget */
.budget { padding-top: 0; }
.bands { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .bands { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.band { position: relative; display: grid; gap: 4px; padding: 20px 48px 20px 20px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--rule); color: var(--ink); transition: border-color .15s var(--ease), background-color .15s var(--ease); }
.band:hover { border-color: var(--cobalt); }
.band b { font: 600 var(--fs-2)/1.25 var(--font-h); font-variant-numeric: tabular-nums; }
.band span { font-size: var(--fs-0); color: var(--mute); }
.band .ico { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--cobalt); transition: transform .15s var(--ease); }
.band:hover .ico { transform: translateX(3px); }
.band-on { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -8px 0 20px; padding: 10px 12px 10px 16px; border-radius: var(--r); background: #e8eefa; color: var(--ink); }
.band-on[hidden] { display: none; }
.band-on b { font-variant-numeric: tabular-nums; }
.band-on .chip-btn { margin-left: auto; }
.card.is-out-band { display: none !important; }

/* ---- new arrivals (real items).
   Desktop: a sticky film strip the scroll slides sideways. Phones: a 3D ring that drag or the arrows turn. th27.js places each card (--a, --r) and turns the track; no JS = a plain scroller. */
.fs { background: var(--night); color: var(--on-night); position: relative; overflow-x: clip; }
.fs-stage { padding-block: clamp(56px, 7vw, 96px); }
.fs .hs-head p { color: var(--on-night-2); }
.fs-film { position: relative; }
.fs-film::before, .fs-film::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(238, 240, 245, .14) 12px 28px, transparent 28px 40px); }
.fs-film::before { top: 8px; } .fs-film::after { bottom: 8px; }
.fs-track { display: flex; gap: 20px; padding: 32px var(--gut); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fs-track::-webkit-scrollbar { display: none; }
.fs-track .card { width: clamp(220px, 22vw, 280px); flex: none; scroll-snap-align: start; }
.fs-track .card .media { aspect-ratio: 1; }
.fs-nav { display: flex; gap: 8px; }
.fs-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(238, 240, 245, .35); background: transparent; color: var(--on-night); display: grid; place-items: center; transition: background-color .15s var(--ease), color .15s var(--ease); }
.fs-nav button:hover { background: var(--on-night); color: var(--ink); }
.fs-meter { height: 2px; background: var(--rule-night); margin: 24px var(--gut) 0; overflow: hidden; }
.fs-meter i { display: block; height: 100%; width: 100%; background: var(--sodium); transform-origin: left; transform: scaleX(0); will-change: transform; }
/* ring mode */
.fs.is-ring .fs-film { height: clamp(500px, 62vh, 600px); perspective: 1700px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; }
.fs.is-ring .fs-film.is-drag { cursor: grabbing; }
.fs.is-ring .fs-track { position: absolute; left: 50%; top: 50%; width: 0; height: 0; padding: 0; overflow: visible; display: block; transform-style: preserve-3d; will-change: transform; }
/* !important: th26-calm.css forces transform:none on every .rv element (the cards carry .rv) */
.fs.is-ring .fs-track .card { position: absolute; left: calc(var(--cw) / -2); top: -230px; width: var(--cw); transform: rotateY(var(--a)) translateZ(var(--r)) !important; backface-visibility: hidden;
  filter: brightness(.55); transition: filter .35s var(--ease), border-color .15s var(--ease); }
.fs.is-ring .fs-track .card.is-front { filter: none; }
.fs.is-ring .fs-track .card:not(.is-front) .acts { pointer-events: none; }
/* desktop strip mode: the section pins and the page scroll slides the strip sideways (th27.js sets the height = travel) */
@media (min-width: 900px) {
  .fs.is-pinned .fs-stage { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  .fs.is-strip .fs-track { overflow: visible; scroll-snap-type: none; width: max-content; will-change: transform; }
}
@media (max-width: 899px) {
  .fs.is-ring .fs-film { height: 470px; }
  .fs.is-ring .fs-track .card { top: -210px; }
  .fs-meter { display: none; }
}

/* ---- in-stock grid */
.stock-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .stock-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .stock-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stock-grid .card .media { aspect-ratio: 1; }
.band-empty { padding: 24px; border-radius: var(--r-card); background: var(--paper); border: 1px dashed var(--rule-strong); color: var(--ink-2); }

/* ---- payment + delivery */
.paydel { padding-top: 0; }
.pd { display: grid; gap: 16px; }
@media (min-width: 900px) { .pd { grid-template-columns: 1fr 1fr 1fr; gap: 20px; } }
.pd-col { padding: 24px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--rule); }
.pd-col h3 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-2); margin: 0 0 16px; }
.pd-col h3 .ico { width: 20px; height: 20px; color: var(--cobalt); }
.pd-col ul { list-style: none; margin: 0; padding: 0; }
.pd-col li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); }
.pd-col li:first-child { border-top: 0; padding-top: 0; }
.pd-col li b { font-weight: 500; color: var(--ink); }
.pd-col li span { color: var(--ink-2); font-size: var(--fs-0); text-align: right; }
.pd-col ul.stack li { display: grid; gap: 2px; }
.pd-col ul.stack li span { text-align: left; }
.pd-col li .fig { font: 600 var(--fs-1)/1.3 var(--font-h); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-note { background: var(--night); border-color: var(--night); color: var(--on-night); display: flex; flex-direction: column; }
.pd-note h3 .ico { color: var(--sodium); }
.pd-note p { color: var(--on-night-2); margin: 0 0 20px; }
.pd-note .btn { margin-top: auto; align-self: flex-start; }

/* ---- inspection: a real camera (shop photo, background removed). The step in view sets data-active; the AF box glides
   to that part and the camera eases in on it with CSS transitions (time-based, never scrubbed by the scroll) */
.ins { position: relative; background: var(--night-2); color: var(--on-night); padding-block: clamp(64px, 8vw, 112px); }
.ins-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .ins-grid { grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; } }
.ins-stage { position: sticky; top: calc(var(--head-h) + 24px); }
.ins-cam { position: relative; width: 100%; max-width: 720px; margin-inline: auto; aspect-ratio: 1232 / 1066; overflow: hidden; border-radius: var(--r-lg);
  background: radial-gradient(70% 60% at 50% 58%, #1d3260 0%, #0f2147 55%, var(--night-2) 100%); }
.ins-zoom { position: absolute; inset: 6%; container-type: size; transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(var(--zs, 1)); transition: transform .9s var(--ease); }
.ins-zoom picture, .ins-zoom img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.ins-af { position: absolute; inset: 0; pointer-events: none; }
.ins-af i { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border: 0 solid var(--live); transition: transform .7s var(--ease), border-color .2s var(--ease); }
.ins-af i:nth-child(1) { border-top-width: 2px; border-left-width: 2px; transform: translate(calc(var(--ax) * 1cqw), calc(var(--ay) * 1cqh)); }
.ins-af i:nth-child(2) { border-top-width: 2px; border-right-width: 2px; transform: translate(calc((var(--ax) + var(--aw)) * 1cqw - 16px), calc(var(--ay) * 1cqh)); }
.ins-af i:nth-child(3) { border-bottom-width: 2px; border-left-width: 2px; transform: translate(calc(var(--ax) * 1cqw), calc((var(--ay) + var(--ah)) * 1cqh - 16px)); }
.ins-af i:nth-child(4) { border-bottom-width: 2px; border-right-width: 2px; transform: translate(calc((var(--ax) + var(--aw)) * 1cqw - 16px), calc((var(--ay) + var(--ah)) * 1cqh - 16px)); }
/* framing per step, as % of the photo (whole camera before any step) */
.ins { --ax: 2; --ay: 2; --aw: 96; --ah: 96; --ox: 50%; --oy: 50%; --zs: 1; }
.ins[data-active="0"] { --ax: 47; --ay: 29; --aw: 24; --ah: 34; --ox: 59%; --oy: 46%; --zs: 1.28; }
.ins[data-active="1"] { --ax: 69; --ay: 12; --aw: 21; --ah: 17; --ox: 79%; --oy: 21%; --zs: 1.5; }
.ins[data-active="2"] { --ax: 1; --ay: 45; --aw: 41; --ah: 53; --ox: 21%; --oy: 72%; --zs: 1.22; }
.ins[data-active="3"] { --ax: 21; --ay: 4; --aw: 24; --ah: 17; --ox: 33%; --oy: 22%; --zs: 1.38; }
.ins-tag { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: rgba(8, 21, 46, .8); color: var(--on-night); font-size: var(--fs-0); font-weight: 500; opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.ins-tag .ico { width: 16px; height: 16px; color: var(--live); }
.ins.is-ok .ins-tag { opacity: 1; transform: none; transition-delay: .55s; }
.ins-cap { margin: 16px 0 0; text-align: center; color: var(--on-night-2); font-size: var(--fs-0); }
.ins-cap a { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.ins-copy h2 { font-size: var(--fs-4); margin: 0 0 12px; color: var(--on-night); text-wrap: balance; }
.ins-lede { color: var(--on-night-2); margin: 0 0 24px; }
.ins-steps { list-style: none; margin: 0; padding: 0; }
.ins-steps li { border-top: 1px solid var(--rule-night); }
.ins-steps button { width: 100%; display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 20px 0; border: 0; background: none; color: inherit; text-align: left; font: inherit; }
.ins-steps button:hover b { color: var(--on-night); }
.ins-steps .n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid rgba(238, 240, 245, .45); display: grid; place-items: center; font: 600 13px/1 var(--font-h); transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.ins-steps b { display: block; font: 600 var(--fs-2)/1.3 var(--font-h); color: var(--on-night-2); margin-bottom: 4px; transition: color .3s var(--ease); }
.ins-steps button > span:last-child { color: var(--on-night-3); font-size: var(--fs-0); transition: color .3s var(--ease); }
.ins-steps li.is-on b { color: var(--on-night); }
.ins-steps li.is-on button > span:last-child { color: var(--on-night-2); }
.ins-steps li.is-on .n { background: var(--live); border-color: var(--live); color: var(--night); }
.ins-guarantee { margin-top: 24px; display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: var(--r); background: var(--night-3); color: var(--on-night); }
.ins-guarantee .ico { color: var(--sodium); flex: none; width: 24px; height: 24px; }
@media (min-width: 900px) {
  /* each step gets room to be read while the camera stays in view */
  .ins-steps li { min-height: 34vh; display: flex; align-items: center; }
  .ins-steps li:last-child { min-height: 26vh; }
}
@media (max-width: 899px) {
  .ins-stage { top: var(--head-h); z-index: 2; background: var(--night-2); padding-bottom: 12px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .ins-cam { max-height: 42svh; aspect-ratio: auto; height: 42svh; }
  .ins-cap { display: none; }
  .ins-steps li { min-height: 30svh; display: flex; align-items: center; }
}

/* ---- how to order (a real sequence, so numbered) */
.steps3 { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 800px) { .steps3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps3 > div { position: relative; padding: 24px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--rule); counter-increment: s; }
.steps3 > div::before { content: counter(s); display: block; font: 600 2.25rem/1 var(--font-h); color: var(--cobalt); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.steps3 h3 { font-size: var(--fs-2); margin: 0 0 8px; }
.steps3 p { margin: 0; color: var(--ink-2); font-size: var(--fs-0); }

/* ---- quick answers */
.qa-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .qa-grid { grid-template-columns: 4fr 7fr; gap: 48px; align-items: start; } .qa-grid > :first-child { position: sticky; top: calc(var(--head-h) + 24px); } }
.qa h2 { font-size: var(--fs-4); margin: 0 0 12px; }
.qa-grid > :first-child p { color: var(--ink-2); margin: 0 0 24px; }
.qa-acts { display: flex; flex-wrap: wrap; gap: 12px; }
.qa-list { border-top: 1px solid var(--rule); }
.qa-list details { border-bottom: 1px solid var(--rule); }
.qa-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font: 600 var(--fs-1)/1.45 var(--font-h); color: var(--ink); }
.qa-list summary::-webkit-details-marker { display: none; }
.qa-list summary .ico { flex: none; width: 18px; height: 18px; color: var(--mute); transition: transform .18s var(--ease); }
.qa-list details[open] summary .ico { transform: rotate(90deg); }
.qa-a { padding: 0 0 20px; color: var(--ink-2); max-width: 64ch; }
.qa-a a { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }

/* ---- visit the shop */
.visit { display: grid; gap: 20px; }
@media (min-width: 900px) { .visit { grid-template-columns: 5fr 7fr; align-items: stretch; } }
.visit .info { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--rule); display: flex; flex-direction: column; gap: 16px; }
.visit .info h2 { font-size: var(--fs-4); margin: 0 0 8px; }
.visit .row { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--ink-2); }
.visit .row .ico { color: var(--cobalt); margin-top: 4px; width: 20px; height: 20px; }
.visit .row b { display: block; font-family: var(--font-h); font-weight: 600; color: var(--ink); }
.visit .map { border-radius: var(--r-lg); overflow: hidden; min-height: 340px; border: 1px solid var(--rule); background: var(--raised); }
.visit .map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.open-pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: var(--fs-0); color: var(--emerald); }
.open-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-pill.closed { color: #8a5a00; }

/* ---- LINE band + guides */
.lineband { border-radius: var(--r-lg); background: var(--night); color: var(--on-night); padding: clamp(28px, 4vw, 48px); display: grid; gap: 20px; align-items: center; }
@media (min-width: 800px) { .lineband { grid-template-columns: 1fr auto; } }
.lineband h2 { font-size: var(--fs-4); margin: 0 0 8px; color: var(--on-night); }
.lineband p { margin: 0; color: var(--on-night-2); }
.guides3 { display: grid; gap: 12px; }
@media (min-width: 800px) { .guides3 { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.guides3 a { display: flex; gap: 12px; align-items: flex-start; padding: 20px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--rule); font-weight: 500; color: var(--ink); transition: border-color .15s var(--ease); }
.guides3 a:hover { border-color: var(--cobalt); }
.guides3 .ico { color: var(--cobalt); flex: none; margin-top: 4px; width: 18px; height: 18px; }

/* ---- depth reveals: section heads and groups rise out of the page once, as they come into view (th27.js adds .rv3) */
.rv3 { opacity: 0; transform: perspective(1000px) translate3d(0, 28px, -60px) rotateX(9deg); transform-origin: 50% 100%;
  transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--rv, 0) * 70ms); }
.rv3.in { opacity: 1; transform: none; }
/* ---- inspection camera follows the pointer in 3D, with a moving sheen */
.ins-cam { transform: perspective(1100px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s var(--ease); }
.ins-cam::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 40%), rgba(255, 255, 255, .1), transparent 60%); }
.ins-cam.is-hover::after { opacity: 1; }
.ins-cam.is-hover { transition: transform .12s linear; }

/* ================================================================ pointer: viewfinder cursor + 3D tilt */
/* corners are ink with a white edge on light surfaces and white with an ink edge on dark ones, so they read on any background */
.af-cur { position: fixed; left: 0; top: 0; z-index: 120; pointer-events: none; width: 30px; height: 30px; opacity: 0; transition: opacity .15s var(--ease); will-change: transform; }
.af-cur.is-on { opacity: 1; }
.af-cur i { position: absolute; width: 10px; height: 10px; border: 0 solid var(--ink);
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); transition: border-color .15s var(--ease), width .15s var(--ease), height .15s var(--ease); }
.af-cur i:nth-child(1) { left: 0; top: 0; border-top-width: 2px; border-left-width: 2px; }
.af-cur i:nth-child(2) { right: 0; top: 0; border-top-width: 2px; border-right-width: 2px; }
.af-cur i:nth-child(3) { left: 0; bottom: 0; border-bottom-width: 2px; border-left-width: 2px; }
.af-cur i:nth-child(4) { right: 0; bottom: 0; border-bottom-width: 2px; border-right-width: 2px; }
.af-cur b { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px #fff; transition: opacity .15s var(--ease); }
.af-cur.on-dark i { border-color: #fff; filter: drop-shadow(0 0 1px rgba(8, 21, 46, .9)) drop-shadow(0 0 1px rgba(8, 21, 46, .9)); }
.af-cur.on-dark b { background: #fff; box-shadow: 0 0 0 1px var(--night); }
.af-cur.is-lock i { width: 16px; height: 16px; border-color: var(--cobalt); }
.af-cur.on-dark.is-lock i { border-color: var(--live); }
.af-cur.is-lock b { opacity: 0; }

.tilt, .card.tilt { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) !important; transition: transform .4s var(--ease), border-color .15s var(--ease) !important; }
.tilt.is-tilting, .card.tilt.is-tilting { transition: transform .08s linear, border-color .15s var(--ease) !important; will-change: transform; }
.card.tilt.is-tilting { border-color: var(--rule-strong); box-shadow: 0 16px 32px -20px rgba(11, 28, 61, .35); }
.fs .card.tilt.is-tilting { box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .5); }

/* ================================================================ reduced motion: everything static and visible */
@media (prefers-reduced-motion: reduce) {
  .hx { height: auto; }
  .hx-stage { position: relative; height: 100svh; }
  .hx-scene, .hx-in, .ct img, .fs-track, .fs-track .card { transform: none !important; }
  .hx-street .sharp { opacity: 1 !important; } .hx-street .soft { opacity: 0 !important; }
  .hx-head > *, .hx .ctas { animation: none; opacity: 1; transform: none; }
  .hx-gl { display: none; }
  .rv3 { opacity: 1 !important; transform: none !important; }
  .hx-flash, .af-cur, .hx-dot { display: none !important; }
  .fs.is-pinned { height: auto; }
  .fs.is-pinned .fs-stage { position: static; height: auto; }
  .fs-film { overflow-x: auto; }
  .ins-zoom, .ins-af i { transition: none !important; }
  .tilt { transform: none !important; }
}

/* legacy pages (lb108 landings) hard-code brand greens that fail with white text: use the AA-safe shades */
main.legacy a[style*="06C755" i] { background: var(--line-green) !important; }
main.legacy a[style*="25d366" i] { background: #0f7a43 !important; }
