/* =========================================================
   SIAMTECH SURIN — Machine Catalog 2026
   ========================================================= */
:root {
  --bg: #06080b;
  --bg-2: #0a0e13;
  --panel: #0d1218;
  --panel-2: #121921;
  --panel-3: #18212b;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --text: #eef1f4;
  --text-2: #b7bfca;
  --muted: #7d8896;
  --gold: #d8ad66;
  --gold-hi: #f5d9a2;
  --gold-lo: #9c7436;
  --gold-rgb: 216, 173, 102;
  --glass: rgba(10, 14, 19, .62);
  --glass-2: rgba(255, 255, 255, .045);
  --white-media: #f3f1ec;
  --shadow: 0 40px 90px -30px rgba(0, 0, 0, .75);
  --shadow-sm: 0 12px 30px -12px rgba(0, 0, 0, .6);
  --line-green: #06c755;
  --r-xl: 28px;
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --f-body: "Anuphan", "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --wrap: 1320px;
  --nav-h: 76px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f2ed;
  --bg-2: #ece9e2;
  --panel: #ffffff;
  --panel-2: #f8f6f2;
  --panel-3: #efebe4;
  --line: rgba(17, 25, 35, .09);
  --line-2: rgba(17, 25, 35, .18);
  --text: #111923;
  --text-2: #3a4553;
  --muted: #6b7582;
  --gold: #8a6327;
  --gold-hi: #b8893f;
  --gold-lo: #6e4e1c;
  --gold-rgb: 138, 99, 39;
  --glass: rgba(255, 255, 255, .72);
  --glass-2: rgba(17, 25, 35, .035);
  --white-media: #ffffff;
  --shadow: 0 40px 90px -35px rgba(17, 25, 35, .35);
  --shadow-sm: 0 12px 30px -14px rgba(17, 25, 35, .3);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input { font: inherit; color: inherit; }
kbd {
  font-family: var(--f-mono); font-size: 11px; line-height: 1;
  padding: 4px 6px; border-radius: 6px;
  background: var(--glass-2); border: 1px solid var(--line-2); color: var(--muted);
}
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: rgba(var(--gold-rgb), .35); color: var(--text); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.skip { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--gold); color: #111; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }

.grad {
  background: linear-gradient(100deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-lo) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-inline-start: .18em;
}

/* ---------- progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 200;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi));
  box-shadow: 0 0 12px rgba(var(--gold-rgb), .7);
}

/* ---------- buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .4s var(--ease), color .3s;
  position: relative; isolation: isolate;
}
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-gold {
  color: #17120a;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 30px -10px rgba(var(--gold-rgb), .8);
}
:root[data-theme="light"] .btn-gold { color: #fff; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 18px 40px -12px rgba(var(--gold-rgb), .95); }
.btn-gold .arrow { transition: transform .4s var(--ease); }
.btn-gold:hover .arrow { transform: translate(3px, -3px); }
.btn-glass {
  background: var(--glass-2); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn-glass:hover { border-color: rgba(var(--gold-rgb), .6); color: var(--gold-hi); transform: translateY(-2px); }
:root[data-theme="light"] .btn-glass:hover { color: var(--gold-lo); }
.btn-line { background: var(--line-green); color: #fff; box-shadow: 0 12px 30px -12px rgba(6,199,85,.7); }
.btn-line svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.btn-line:hover { transform: translateY(-2px); filter: brightness(1.08); }
.icon-btn {
  width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--glass-2);
  transition: border-color .3s, background .3s, transform .3s var(--ease), color .3s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: rgba(var(--gold-rgb), .55); color: var(--gold); }
.icon-btn:active { transform: scale(.94); }

.chip-mono {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.chip-mono b { color: var(--gold); font-weight: 500; }
.diamond { color: var(--gold); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; color: var(--gold);
}
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* ---------- NAV ---------- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  width: min(1240px, calc(100% - 28px)); margin: 0 auto;
  height: 62px; padding: 0 10px 0 14px; border-radius: 999px;
  display: flex; align-items: center; gap: 18px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--shadow-sm);
  transition: height .4s var(--ease), width .5s var(--ease), background .3s;
}
.nav.scrolled .nav-pill { height: 56px; width: min(1120px, calc(100% - 28px)); }
.nav.hide .nav-pill { transform: translateY(-120%); }
.nav-pill { transition: transform .5s var(--ease), height .4s var(--ease), width .5s var(--ease), background .3s; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 10px; background: #fff; padding: 3px; }
.brand-text { display: grid; line-height: 1.15; min-width: 0; }
.brand-text strong { font-family: var(--f-mono); font-weight: 600; font-size: 13.5px; letter-spacing: .14em; }
.brand-text strong i { font-style: normal; color: var(--gold); }
.brand-text small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a {
  font-size: 14px; color: var(--text-2); padding: 8px 14px; border-radius: 999px;
  transition: color .25s, background .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--glass-2); }
.nav-links a.active { box-shadow: inset 0 0 0 1px var(--line); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-actions { margin-left: 0; }
.kbd-btn { width: auto; padding: 0 10px 0 12px; gap: 8px; display: inline-flex; }
.kbd-hint { display: inline-flex; gap: 3px; }
.i-moon { display: none; }
:root[data-theme="light"] .i-sun { display: none; }
:root[data-theme="light"] .i-moon { display: block; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #17120a; position: relative; }
:root[data-theme="light"] .live-dot { background: #fff; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .5; animation: ping 2s var(--ease) infinite; }
.menu-btn { display: none; }
.mobile-menu {
  pointer-events: auto;
  width: calc(100% - 28px); margin: 10px auto 0; padding: 12px; border-radius: 24px;
  display: grid; gap: 4px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: dropIn .4s var(--ease);
}
.mobile-menu a { padding: 12px 14px; border-radius: 14px; font-size: 16px; }
.mobile-menu a:not(.btn):hover { background: var(--glass-2); }
.mobile-menu .btn { margin-top: 6px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 130px 0 40px; overflow: hidden; isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 18% 45%, color-mix(in srgb, var(--bg) 80%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; padding: 7px 14px 7px 10px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--text-2);
  background: var(--glass-2); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.eyebrow b { color: var(--gold); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--line-2); }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero-title {
  margin: 26px 0 20px; font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(40px, 5.3vw, 84px); line-height: 1.12;
}
.ht-line { display: block; overflow: hidden; padding: .06em 0 .1em; white-space: nowrap; }
.ht-inner { display: inline-block; transform: translateY(110%); animation: rise 1.1s var(--ease) forwards; }
.ht-line:nth-child(2) .ht-inner { animation-delay: .12s; }
.shine {
  background: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold) 25%, var(--gold-hi) 45%, #fff6e2 50%, var(--gold-hi) 55%, var(--gold) 75%, var(--gold-lo) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1.1s var(--ease) .12s forwards, shine 6s linear 1.4s infinite;
}
:root[data-theme="light"] .shine { background-image: linear-gradient(100deg, var(--gold-lo) 0%, var(--gold) 30%, #d9a95a 48%, #f0c77e 50%, #d9a95a 52%, var(--gold) 70%, var(--gold-lo) 100%); }
.hero-sub { max-width: 560px; font-size: clamp(16px, 1.35vw, 19px); color: var(--text-2); margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0;
}
.hero-stats div { padding: 0 28px; border-left: 1px solid var(--line-2); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-size: 13px; color: var(--muted); order: 2; }
.hero-stats dd { margin: 0; font-family: var(--f-mono); font-size: clamp(28px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.reveal-up { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) forwards; }
.hero-copy > .reveal-up:nth-child(1) { animation-delay: .05s; }
.hero-copy > .reveal-up:nth-child(3) { animation-delay: .35s; }
.hero-copy > .reveal-up:nth-child(4) { animation-delay: .45s; }
.hero-copy > .reveal-up:nth-child(5) { animation-delay: .55s; }

/* feature card with border beam */
.feature {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 14px; border-radius: var(--r-xl);
  background: color-mix(in srgb, var(--panel) 90%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  animation: featureIn 1.2s var(--ease) .3s backwards;
  transition: transform .6s var(--ease), border-color .4s;
}
.feature:hover { border-color: rgba(var(--gold-rgb), .4); }
.beam {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1px;
  background: conic-gradient(from var(--beam-a, 0deg), transparent 0 78%, rgba(var(--gold-rgb), .0) 80%, var(--gold-hi) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 5s linear infinite;
}
@property --beam-a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.feature-top { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 0; }
.feature-dots { display: flex; gap: 5px; }
.feature-dots i { width: 16px; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; position: relative; }
.feature-dots i.on::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; animation: fill 5s linear forwards; }
.feature-stage {
  position: relative; aspect-ratio: 4 / 3.3; border-radius: 18px; overflow: hidden;
  background: var(--panel-2);
}
.feature-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); transition: opacity 1.1s var(--ease), transform 6s linear;
}
.feature-stage img.white { object-fit: contain; background: var(--white-media); padding: 6%; }
.feature-stage img.on { opacity: 1; transform: scale(1); }
.feature-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.45));
}
.feature-stage::after { transition: opacity .8s var(--ease); }
.feature-stage:has(img.on.white)::after { opacity: 0; }
:root[data-theme="light"] .feature-stage::after { background: linear-gradient(180deg, transparent 75%, rgba(0,0,0,.12)); }
.feature-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 6px 4px; }
.feature-bottom small { display: block; color: var(--muted); font-size: 12.5px; }
.feature-bottom strong { display: block; font-size: 22px; font-weight: 600; line-height: 1.3; }
.feature-cat { font-size: 12.5px; color: var(--gold); }
.round-arrow {
  flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  background: var(--gold); color: #17120a; transition: transform .5s var(--ease);
}
.feature:hover .round-arrow { transform: rotate(45deg); }

.hero-foot { display: flex; align-items: center; gap: 20px; margin-top: 56px; }
.hero-foot-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }
.scroll-cue { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.mouse { width: 22px; height: 34px; border-radius: 12px; border: 1.5px solid var(--line-2); position: relative; }
.mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s var(--ease) infinite; }

/* ---------- MARQUEE ---------- */
.marquee-sec { padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; display: grid; gap: 12px; }
.marquee {
  display: flex; width: max-content; gap: 12px;
  animation: marquee 90s linear infinite;
}
.marquee.reverse { animation-direction: reverse; animation-duration: 110s; }
.marquee-sec:hover .marquee { animation-play-state: paused; }
.mq-item {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; color: var(--text-2);
}
.mq-item b { font-family: var(--f-mono); font-weight: 500; font-size: 11px; color: var(--gold); letter-spacing: .08em; }
.mq-item.alt { background: var(--glass-2); }

/* ---------- REEL (scroll expanding video) ---------- */
.reel { position: relative; height: 230vh; }
.reel-sticky {
  position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden;
}
.reel-frame {
  --p: 0;
  position: relative; z-index: 2;
  width: calc(56vw + 44vw * var(--p)); height: calc(52vh + 48vh * var(--p));
  max-width: 100vw;
  border-radius: calc(32px * (1 - var(--p)));
  overflow: hidden; background: #000;
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.8);
  will-change: width, height;
}
.reel-frame video { width: 100%; height: 100%; object-fit: cover; }
.reel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.2), transparent 30%, transparent 55%, rgba(0,0,0,.75)); }
.reel-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 3vw, 40px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #fff;
  opacity: calc(var(--p) * 1.6 - .4);
}
.reel-caption .chip-mono { color: rgba(255,255,255,.8); width: 100%; }
.reel-caption strong { font-size: clamp(22px, 3vw, 40px); font-weight: 600; line-height: 1.15; }
.reel-caption .btn-glass { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; animation: blink 1.4s steps(2) infinite; }
.reel-title {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: max(9vh, 84px) 5vw 7vh;
  font-size: clamp(34px, 7.4vw, 124px); font-weight: 600; letter-spacing: -.03em; line-height: 1; white-space: nowrap;
  color: var(--text);
}
.reel-word { will-change: transform; }
.reel-word.left { align-self: flex-start; }
.reel-word.right { align-self: flex-end; color: transparent; -webkit-text-stroke: 1.5px rgba(var(--gold-rgb), .85); }

/* ---------- SECTIONS ---------- */
section.wrap, .motion { padding-block: clamp(80px, 11vw, 150px) 0; }
.sec-head { margin-bottom: 44px; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sec-head h2, .cta h2 {
  margin: 14px 0 0; font-size: clamp(34px, 4.6vw, 64px); font-weight: 600; line-height: 1.12; letter-spacing: -.02em;
}
.sec-note { margin: 0; max-width: 320px; color: var(--muted); font-size: 14.5px; }
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* spotlight hover */
.spot { position: relative; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--gold-rgb), .12), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--gold-rgb), .7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s;
}
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* ---------- ABOUT / BENTO ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); gap: 14px; }
.b-card {
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel);
  padding: 26px; overflow: hidden;
}
.b-card > * { position: relative; z-index: 1; }
.b-intro { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  background: radial-gradient(120% 90% at 0% 0%, rgba(var(--gold-rgb), .1), transparent 55%), var(--panel);
}
.b-quote { font-size: 90px; line-height: .6; color: var(--gold); font-family: Georgia, serif; height: 36px; }
.about-text { margin: 0; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.85; color: var(--text-2); white-space: pre-line; }
.about-text strong { color: var(--text); font-weight: 600; }
.b-sign { display: flex; align-items: center; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.b-sign img { width: 44px; height: 44px; border-radius: 12px; background: #fff; padding: 4px; object-fit: contain; }
.b-sign strong { display: block; font-weight: 600; }
.b-sign small { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.b-mosaic { grid-column: span 2; padding: 0; min-height: 300px; }
.mosaic { position: absolute !important; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 3px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform 1.2s var(--ease), filter .6s; }
.mosaic img.white { object-fit: contain; background: var(--white-media); padding: 8%; }
.b-mosaic:hover .mosaic img { transform: scale(1.05); }
.mosaic img:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.b-pt { display: flex; flex-direction: column; gap: 6px; }
.b-pt svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; color: var(--gold); background: rgba(var(--gold-rgb), .1); border: 1px solid rgba(var(--gold-rgb), .25); margin-bottom: auto; }
.b-pt h3 { margin: 18px 0 0; font-size: 18px; font-weight: 600; line-height: 1.35; }
.b-pt p { margin: 0; color: var(--muted); font-size: 14px; }
.b-loc {
  grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 26px 26px,
    radial-gradient(80% 120% at 85% 40%, rgba(var(--gold-rgb), .16), transparent 60%), var(--panel);
}
.b-loc-addr { margin: 12px 0 0; font-size: 18px; font-weight: 500; line-height: 1.55; max-width: 380px; }
.b-loc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.b-loc-pin { position: absolute !important; right: 18%; top: 44%; }

/* ---------- CATEGORIES ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 14px; }
.cat {
  position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--panel-2); text-align: left; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
  transition: transform .6s var(--ease), border-color .4s;
}
.cat:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.cat:nth-child(6) { grid-column: span 2; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.cat img.white { object-fit: contain; background: #fff; padding: 6% 8% 30%; }
.cat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, transparent 22%, transparent 42%, rgba(4,6,9,.9) 76%); }
.cat .cat-n { text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.cat:hover { border-color: rgba(var(--gold-rgb), .55); }
.cat:hover img { transform: scale(1.07); }
.cat-n { position: absolute; top: 16px; left: 18px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: rgba(255,255,255,.75); }
.cat-count {
  position: absolute; top: 14px; right: 14px; min-width: 38px; height: 30px; padding: 0 10px; border-radius: 999px;
  display: grid; place-items: center; font-family: var(--f-mono); font-size: 12px;
  background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(8px);
}
.cat strong { color: #fff; font-size: 19px; font-weight: 600; line-height: 1.3; }
.cat:nth-child(1) strong { font-size: clamp(24px, 2.4vw, 34px); }
.cat small { color: rgba(255,255,255,.7); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.cat small::after { content: "→"; transition: transform .4s var(--ease); }
.cat:hover small::after { transform: translateX(5px); }

/* ---------- CATALOG ---------- */
.total { display: flex; align-items: baseline; gap: 10px; }
.total b { font-family: var(--f-mono); font-size: clamp(40px, 4.5vw, 64px); font-weight: 500; line-height: 1; color: var(--gold); }
.total span { color: var(--muted); font-size: 14px; }
.toolbar {
  position: sticky; top: 84px; z-index: 20;
  display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transition: top .5s var(--ease);
}
.nav-hidden .toolbar { top: 12px !important; }
.search {
  flex: 0 0 340px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px 0 16px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s;
}
.search:focus-within { border-color: rgba(var(--gold-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--gold-rgb), .12); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search.small { flex: 0 1 320px; height: 46px; }
.filters-wrap { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); }
.filters-wrap::-webkit-scrollbar { display: none; }
.filters { position: relative; display: flex; gap: 4px; width: max-content; padding-right: 30px; }
.filter {
  position: relative; z-index: 1; height: 48px; padding: 0 16px; border-radius: 14px;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 14.5px; color: var(--text-2); transition: color .3s;
}
.filter small { font-family: var(--f-mono); font-size: 11px; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); color: var(--muted); transition: all .3s; }
.filter:hover { color: var(--text); }
.filter.active { color: #17120a; }
:root[data-theme="light"] .filter.active { color: #fff; }
.filter.active small { background: rgba(0,0,0,.14); border-color: transparent; color: inherit; }
.filter-pill {
  position: absolute; z-index: 0; top: 0; height: 48px; border-radius: 14px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 8px 24px -10px rgba(var(--gold-rgb), .9);
  transition: transform .55s var(--ease), width .55s var(--ease);
}
.result-line { margin: 22px 4px 18px; font-size: 14px; color: var(--muted); min-height: 1.6em; }
.result-line b { color: var(--text); font-weight: 500; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line);
  overflow: hidden; transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
  animation: cardIn .8s var(--ease) backwards;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card > a { display: flex; flex-direction: column; height: 100%; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel-2); z-index: 1; }
.card-media img, .card-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), opacity .7s var(--ease);
}
.card-media .white { object-fit: contain; background: var(--white-media); padding: 7%; }
.card-media .alt { opacity: 0; }
.card:hover .card-media .alt { opacity: 1; }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 30%, transparent 70%, rgba(0,0,0,.25)); pointer-events: none; }
.tag {
  position: absolute; z-index: 2; top: 12px; height: 28px; padding: 0 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em;
  background: rgba(6,8,11,.6); color: #fff; border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tag.code { left: 12px; }
.tag.vid { right: 12px; }
.tag.vid i { width: 0; height: 0; border-left: 7px solid var(--gold-hi); border-block: 4.5px solid transparent; }
.card-body { position: relative; z-index: 1; padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 12.5px; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.card-cat::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }
.card h3 { margin: 0; font-size: 19.5px; font-weight: 600; line-height: 1.35; }
.card-meta { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.card-meta .pills { display: flex; gap: 6px; flex-wrap: wrap; }
.card-meta .pill { padding: 3px 9px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--line); }
.go {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--text); transition: all .5s var(--ease);
}
.card:hover .go { background: var(--gold); color: #17120a; border-color: var(--gold); transform: rotate(45deg); }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--muted); }
.empty-ico { font-size: 40px; color: var(--gold); }

/* ---------- MOTION (video wall) ---------- */
.motion-ctrl { display: flex; align-items: center; gap: 10px; }
.motion-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 26vw, 360px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(24px, calc((100vw - var(--wrap)) / 2)) 10px;
  scroll-padding-inline: max(24px, calc((100vw - var(--wrap)) / 2));
}
.motion-track::-webkit-scrollbar { display: none; }
.vcard {
  scroll-snap-align: start; position: relative; aspect-ratio: 9 / 12; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel-2); text-align: left; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; color: #fff;
  transition: transform .6s var(--ease), border-color .4s;
}
.vcard:hover { transform: translateY(-6px); border-color: rgba(var(--gold-rgb), .5); }
.vcard img, .vcard video.poster-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.vcard img.white { object-fit: contain; background: var(--white-media); padding: 10% 10% 45%; }
.vcard:hover img { transform: scale(1.06); }
.hover-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.hover-vid.on { opacity: 1; }
.vcard:has(.hover-vid.on) .play { opacity: 0; transform: scale(.7); }
.video-launch .hover-vid { opacity: 0; }
.video-launch .hover-vid.on { opacity: 1; }
.vcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%, rgba(3,5,8,.92) 88%); }
.vcard .vc-top { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: rgba(255,255,255,.8); }
.play {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; margin-bottom: auto; align-self: center; margin-top: 30%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px);
  transition: transform .5s var(--ease), background .3s;
}
.play i { width: 0; height: 0; margin-left: 4px; border-left: 16px solid #fff; border-block: 10px solid transparent; }
.vcard:hover .play { transform: scale(1.12); background: var(--gold); border-color: var(--gold); }
.vcard:hover .play i { border-left-color: #17120a; }
.vcard .vc-cat { font-size: 12px; color: var(--gold-hi); }
.vcard strong { font-size: 17px; font-weight: 600; line-height: 1.35; }
.vcard small { font-size: 12.5px; color: rgba(255,255,255,.7); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- PRODUCTS ---------- */
.products-lead { margin: -20px 0 26px; color: var(--text-2); font-size: 17px; }
.product-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px;
  counter-reset: p;
}
.product-list li {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start;
  padding: 15px 4px; border-bottom: 1px solid var(--line);
  transition: background .3s, padding .4s var(--ease);
  animation: fadeUp .7s var(--ease) both;
}
.product-list li:hover { background: var(--glass-2); padding-left: 10px; }
.product-list .pn { font-family: var(--f-mono); font-size: 12px; color: var(--gold); padding-top: 3px; }
.product-list .th { display: block; font-weight: 500; line-height: 1.45; }
.product-list .en { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .03em; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.product-list mark { background: rgba(var(--gold-rgb), .3); color: inherit; border-radius: 3px; }
.products-note {
  margin-top: 34px; padding: 22px 26px; border-radius: var(--r-lg);
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), .12), transparent 70%); border: 1px solid rgba(var(--gold-rgb), .3);
}
.products-note p { margin: 0; flex: 1; min-width: 240px; font-size: 16px; }
.products-note .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gold); color: #17120a; font-size: 20px; flex: none; }

/* ---------- CTA ---------- */
.cta { padding-bottom: clamp(80px, 10vw, 140px); }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 32px; padding: clamp(32px, 5vw, 70px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
  border: 1px solid rgba(var(--gold-rgb), .3);
  background: radial-gradient(90% 140% at 100% 0%, rgba(var(--gold-rgb), .22), transparent 55%), var(--panel);
}
.cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .7; }
.cta-copy p { color: var(--text-2); margin: 14px 0 0; max-width: 520px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.footer { position: relative; border-top: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; }
.f-brand img { width: 64px; height: 64px; object-fit: contain; border-radius: 16px; background: #fff; padding: 6px; }
.f-brand h2 { margin: 18px 0 4px; font-size: 20px; font-weight: 600; }
.f-brand p { margin: 0; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .1em; color: var(--muted); }
.f-col h3 { margin: 0 0 16px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }
.f-link { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); transition: color .3s, padding .4s var(--ease); }
.f-link span { color: var(--muted); font-size: 14px; }
.f-link b { font-weight: 500; font-family: var(--f-mono); font-size: 14px; }
.f-link:hover { color: var(--gold); padding-left: 6px; }
.f-addr { margin: 0 0 18px; color: var(--text-2); line-height: 1.75; }
.f-map { position: relative; min-height: 220px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background:
  linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px, var(--panel); }
.f-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
:root:not([data-theme="light"]) .f-map iframe { filter: invert(.92) hue-rotate(180deg) saturate(.6) contrast(.9); }
.map-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.map-load:hover { color: var(--gold); }
.pin { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--gold); box-shadow: 0 0 0 8px rgba(var(--gold-rgb), .18), 0 0 0 18px rgba(var(--gold-rgb), .08); animation: bob 2.4s var(--ease) infinite; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 60px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.wordmark {
  font-family: var(--f-mono); font-weight: 600; letter-spacing: -.04em; line-height: .78;
  font-size: clamp(80px, 20.5vw, 330px); text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), .22), transparent 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-top: 10px; user-select: none; transform: translateY(8%);
}

/* ---------- DOCK ---------- */
.dock {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px;
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: all .5s var(--ease);
}
.dock.show { transform: none; opacity: 1; pointer-events: auto; }
.dock-btn {
  position: relative; width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), background .3s, color .3s;
}
.dock-btn svg { width: 22px; height: 22px; }
.dock-btn.line { background: var(--line-green); color: #fff; border-color: transparent; }
.dock-btn.line svg { fill: currentColor; stroke: none; }
.dock-btn:hover { transform: translateX(-4px) scale(1.06); color: var(--gold); }
.dock-btn.line:hover { color: #fff; }
.tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(6px, -50%); opacity: 0; pointer-events: none;
  padding: 5px 10px; border-radius: 8px; white-space: nowrap; font-size: 13px;
  background: var(--panel-3); color: var(--text); border: 1px solid var(--line); transition: all .3s var(--ease);
}
.dock-btn:hover .tip { opacity: 1; transform: translate(0, -50%); }

/* ---------- DETAIL ---------- */
.detail {
  position: fixed; inset: 0; z-index: 150; background: var(--bg);
}
.detail.closing { animation: sheetOut .4s var(--ease-in) forwards; }
.detail-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.d-bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px;
  padding: 12px max(24px, calc((100vw - var(--wrap)) / 2)); min-height: 66px;
  background: var(--glass); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
.d-crumb { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-crumb span { color: var(--line-2); margin: 0 6px; }
.d-crumb b { color: var(--gold); font-weight: 500; }
.d-nav { display: flex; gap: 8px; }
.d-body { padding: 40px 0 100px; }
.d-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 30px; }
.d-head .card-cat { font-size: 14px; }
.d-head h1 { margin: 10px 0 12px; font-size: clamp(34px, 5vw, 68px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; }
.d-head p { margin: 0; max-width: 820px; color: var(--text-2); font-size: 17px; white-space: pre-line; }
.d-index { font-family: var(--f-mono); font-size: clamp(70px, 10vw, 150px); line-height: .8; font-weight: 500; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(var(--gold-rgb), .6); }
.d-index small { display: block; font-size: 12px; letter-spacing: .16em; -webkit-text-stroke: 0; color: var(--muted); text-align: right; margin-top: 12px; }

.variant-bar {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 14px; margin-bottom: 26px;
  border-radius: 22px; background: var(--panel); border: 1px solid var(--line);
}
.variant-bar .vb-label { padding: 0 8px; }
.variant-bar .vb-label strong { display: block; font-size: 16px; font-weight: 600; }
.variant-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.variant {
  display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 8px 16px 8px 10px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--glass-2); text-align: left; font-size: 14.5px; line-height: 1.35;
  transition: all .35s var(--ease);
}

.variant:hover { border-color: rgba(var(--gold-rgb), .5); }
.variant.active { background: rgba(var(--gold-rgb), .14); border-color: var(--gold); color: var(--text); }


.d-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.gallery { min-width: 0; }
.g-label { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 10px; }
.g-label .mono { font-size: 11px; }
.stage {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden;
  background: var(--panel-2); border: 1px solid var(--line); cursor: zoom-in;
}
.stage.white { background: var(--white-media); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: imgIn .6s var(--ease); }
.stage.white img { object-fit: contain; padding: 4%; }
.stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.stage.is-video { cursor: default; }
.stage-arrow {
  position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(6,8,11,.55); color: #fff; border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s, transform .3s var(--ease);
}
.stage-arrow svg { width: 20px; height: 20px; }
.stage-arrow.prev { left: 14px; } .stage-arrow.next { right: 14px; }
.stage:hover .stage-arrow { opacity: 1; }
.stage-arrow:hover { transform: scale(1.08); background: var(--gold); color: #17120a; }
.stage-count { position: absolute; left: 14px; bottom: 14px; z-index: 2; }
.stage-zoom { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
.stage .tag { position: absolute; top: auto; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.thumb {
  flex: none; width: 92px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; border: 2px solid transparent;
  background: var(--panel-2); opacity: .55; transition: all .3s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.white { background: var(--white-media); }
.thumb.white img { object-fit: contain; padding: 6%; }
.thumb:hover { opacity: 1; }
.thumb.active { opacity: 1; border-color: var(--gold); }

.side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.spec {
  border-radius: var(--r-xl); padding: 26px; background: var(--panel); border: 1px solid var(--line);
  background: radial-gradient(100% 60% at 100% 0%, rgba(var(--gold-rgb), .1), transparent 60%), var(--panel);
}
.spec h2 { margin: 12px 0 10px; font-size: 24px; font-weight: 600; line-height: 1.3; }
.spec p { margin: 0 0 20px; color: var(--text-2); white-space: pre-line; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.stat { padding: 12px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--line); }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat b { display: block; font-weight: 600; font-size: 15px; line-height: 1.35; margin-top: 2px; }
.stat.wide { grid-column: 1 / -1; }
.cta-stack { display: grid; gap: 8px; }
.cta-stack .btn { width: 100%; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phones .btn { font-family: var(--f-mono); font-size: 13.5px; padding: 0 10px; }

.d-section { margin-top: 70px; }
.d-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.d-section-head h2 { margin: 10px 0 0; font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.2; }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.video-card {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--line);
}
.video-card video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.video-launch { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; text-align: left; color: #fff; isolation: isolate; }
.video-launch img, .video-launch video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); opacity: .85; }
.video-launch img.white { object-fit: contain; background: var(--white-media); padding: 6% 6% 26%; opacity: 1; }
.video-launch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.2) 40%, rgba(0,0,0,.85)); }
.video-launch:hover img { transform: scale(1.05); }
.video-launch .play { position: absolute; left: 50%; top: 42%; margin: -29px 0 0 -29px; }
.video-launch:hover .play { transform: scale(1.12); background: var(--gold); border-color: var(--gold); }
.video-launch:hover .play i { border-left-color: #17120a; }
.video-launch .mono { color: rgba(255,255,255,.75); }
.video-launch .vdur { top: 12px; right: 12px; }
.video-launch strong { font-size: 16px; font-weight: 600; line-height: 1.35; }
.video-note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

.related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related .card h3 { font-size: 16.5px; }
.pn-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 70px; }
.pn-link {
  display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel);
  transition: border-color .3s, transform .5s var(--ease);
}
.pn-link:hover { border-color: rgba(var(--gold-rgb), .5); transform: translateY(-3px); }
.pn-link.next { flex-direction: row-reverse; text-align: right; }
.pn-link img { width: 86px; height: 66px; border-radius: 12px; object-fit: cover; flex: none; background: var(--panel-2); }
.pn-link img.white { object-fit: contain; background: var(--white-media); padding: 4px; }
.pn-link small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.pn-link strong { font-weight: 600; line-height: 1.35; }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(3,4,6,.96);
  display: grid; grid-template-rows: auto 1fr auto; animation: fade .3s ease; color: #fff;
}
.lightbox .icon-btn { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.lb-top { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.lb-title { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-count { color: rgba(255,255,255,.6); }
.lb-stage { position: relative; overflow: hidden; display: grid; place-items: center; touch-action: pan-y; cursor: zoom-in; }
.lb-stage img { max-width: calc(100vw - 140px); max-height: 100%; object-fit: contain; transition: transform .4s var(--ease); transform-origin: var(--ox, 50%) var(--oy, 50%); user-select: none; -webkit-user-drag: none; animation: imgIn .45s var(--ease); }
.lb-stage img.white { background: #fff; border-radius: 12px; padding: 2%; }
.lb-stage.zoomed { cursor: zoom-out; }
.lb-stage.zoomed img { transform: scale(2.2); transition: transform .25s ease; }
.lb-arrow {
  position: fixed; top: 50%; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; transition: all .3s var(--ease);
}
.lb-arrow svg { width: 22px; height: 22px; }
.lb-arrow.prev { left: 18px; } .lb-arrow.next { right: 18px; }
.lb-arrow:hover { background: var(--gold); color: #17120a; border-color: var(--gold); }
.lb-thumbs { display: flex; gap: 6px; padding: 12px 18px 18px; overflow-x: auto; justify-content: safe center; scrollbar-width: none; }
.lb-thumbs button { flex: none; width: 64px; height: 48px; border-radius: 8px; overflow: hidden; opacity: .4; border: 2px solid transparent; transition: all .25s; background: #222; }
.lb-thumbs button.white { background: #fff; }
.lb-thumbs button.white img { object-fit: contain; }
.lb-thumbs button.active { opacity: 1; border-color: var(--gold); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- VIDEO MODAL ---------- */
.vmodal { position: fixed; inset: 0; z-index: 280; background: rgba(3,4,6,.9); backdrop-filter: blur(10px); display: grid; place-items: center; padding: 20px; animation: fade .3s ease; }
.vm-card { width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--panel); border: 1px solid var(--line); animation: pop .5s var(--ease); }
.vm-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; }
.vm-top > div { flex: 1; min-width: 0; }
.vm-top .mono { display: block; }
.vm-top strong { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vm-stage { background: #000; aspect-ratio: 16 / 9; max-height: calc(100vh - 140px); }
.vm-stage video { width: 100%; height: 100%; object-fit: contain; }

/* ---------- PALETTE ---------- */
.palette { position: fixed; inset: 0; z-index: 320; background: rgba(3,4,6,.55); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fade .2s ease; }
.pal-card { width: min(680px, 100%); border-radius: 22px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; animation: pop .35s var(--ease); }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 62px; border-bottom: 1px solid var(--line); }
.pal-input svg { width: 20px; height: 20px; color: var(--gold); }
.pal-input input { flex: 1; border: 0; outline: 0; background: none; font-size: 17px; }
.pal-list { max-height: min(460px, 60vh); overflow-y: auto; padding: 8px; }
.pal-group { padding: 10px 10px 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.pal-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; text-align: left; }
.pal-item img { width: 48px; height: 36px; border-radius: 8px; object-fit: cover; background: var(--panel-2); flex: none; }
.pal-item img.white { object-fit: contain; background: var(--white-media); }
.pal-item .pi-ico { width: 48px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line); color: var(--gold); flex: none; font-size: 16px; }
.pal-item .pi-txt { flex: 1; min-width: 0; }
.pal-item strong { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-item small { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-item .mono { font-size: 11px; }
.pal-item.active { background: rgba(var(--gold-rgb), .13); box-shadow: inset 0 0 0 1px rgba(var(--gold-rgb), .4); }
.pal-empty { padding: 30px; text-align: center; color: var(--muted); }
.pal-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; text-transform: none; letter-spacing: .04em; }
.pal-foot kbd { margin-right: 3px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 400; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  padding: 10px 18px; border-radius: 999px; background: var(--panel-3); border: 1px solid var(--line-2); font-size: 14px; transition: all .4s var(--ease); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- KEYFRAMES ---------- */
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes shine { to { background-position: -250% 0; } }
@keyframes beam { to { --beam-a: 360deg; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(40px); } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(40px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes imgIn { from { opacity: 0; transform: scale(1.03); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } }
@keyframes bob { 50% { transform: rotate(-45deg) translate(3px, -3px); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .nav-links a { padding: 8px 10px; font-size: 13.5px; }
  .kbd-hint { display: none; }
  .kbd-btn { width: 40px; padding: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .related { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .hero-inner { grid-template-columns: 1fr; }
  .feature { max-width: 560px; }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 20px; }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .cat:nth-child(6) { grid-column: auto; }
  .d-layout { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .toolbar { flex-wrap: wrap; }
  .search { flex: 1 1 100%; }
  .reel-frame { width: calc(84vw + 16vw * var(--p)); height: calc(46vh + 54vh * var(--p)); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  body { font-size: 15.5px; }
  .nav { top: 10px; }
  .nav-pill { height: 56px; width: calc(100% - 20px); }
  .brand-text small { display: none; }
  .hero { padding-top: 104px; }
  .hero-title { font-size: clamp(28px, 9.2vw, 52px); }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-stats div { padding: 0 18px; }
  .hero-foot .mono { display: none; }
  .bento { grid-template-columns: 1fr; }
  .b-intro, .b-mosaic, .b-loc { grid-column: auto; grid-row: auto; }
  .b-loc-pin { right: 12%; top: 22%; }
  .b-mosaic { min-height: 240px; }
  .cat-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 10px; }
  .cat:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .cat { padding: 14px; }
  .cat strong { font-size: 15.5px; }
  .cat:nth-child(1) strong { font-size: 22px; }
  .cat:not(:nth-child(1)) .cat-n-l, .cat:not(:nth-child(1)) .cat-more { display: none; }
  .eyebrow { font-size: 10px; letter-spacing: .08em; gap: 9px; white-space: nowrap; max-width: 100%; }
  .feature-top .chip-mono { font-size: 10px; letter-spacing: .08em; white-space: nowrap; }
  .feature-dots { display: none; }
  .grid { grid-template-columns: 1fr; }
  .toolbar { top: 74px; padding: 6px; border-radius: 18px; }
  .search { height: 44px; }
  .filter, .filter-pill { height: 42px; }
  .slash { display: none; }
  .product-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr 1fr; gap: 10px; }
  .related .card-body { padding: 12px; }
  .related .card h3 { font-size: 14.5px; }
  .related .card-meta { display: none; }
  .d-head { grid-template-columns: 1fr; }
  .d-index { display: none; }
  .d-bar { padding: 10px 16px; gap: 10px; }
  .d-bar .btn { padding: 0 12px; font-size: 13px; }
  .d-crumb { display: none; }
  .d-nav { margin-left: auto; }
  .stage { border-radius: 20px; }
  .stage-arrow { opacity: 1; width: 40px; height: 40px; margin-top: -20px; }
  .thumb { width: 74px; }
  .stat { padding: 10px; }
  .stat b { font-size: 14px; }
  .pn-nav { grid-template-columns: 1fr; }
  .lb-arrow { display: none; }
  .lb-stage img { max-width: 100vw; }
  .dock { right: 12px; bottom: 12px; }
  .dock-btn { width: 48px; height: 48px; border-radius: 16px; }
  .reel { height: 180vh; }
  .reel-caption .btn { --h: 34px; padding: 0 12px; font-size: 13px; }
  .motion-track { grid-auto-columns: 72vw; }
  .vm-top { flex-wrap: wrap; } .vm-top > div { flex: 1 1 calc(100% - 56px); } .vm-top .btn { order: 2; flex: 1 1 40%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee { animation: none; }
  .reel { height: auto; }
  .reel-sticky { position: relative; height: 80vh; }
  .reel-frame { --p: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   v2 — fixes from the design review
   ========================================================= */
html { scrollbar-gutter: stable; }
body.locked .progress { opacity: 0; }
@keyframes featureIn { from { opacity: 0; transform: translateY(40px) scale(.97); } }
.marquee { gap: 0; }
.mq-item { margin-right: 12px; }
.cat.reveal { transition: opacity 1s var(--ease) var(--d, 0ms), transform 1s var(--ease) var(--d, 0ms), border-color .4s; }
.rec { background: var(--gold); animation: none; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.hero-note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.hero-stats dd { font-variant-numeric: tabular-nums; }
.reel-caption { pointer-events: none; }
.reel-caption a { pointer-events: auto; }
.card > a:focus-visible { outline: none; }
.card:has(> a:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.card:has(> a:focus-visible) { transform: translateY(-6px); box-shadow: var(--shadow); }
.card:has(> a:focus-visible) .go { background: var(--gold); color: #17120a; border-color: var(--gold); transform: rotate(45deg); }
.thumbs { position: relative; }
.card-media .alt:not([src]) { display: none; }
.lb-stage.zoomed { touch-action: none; }
.dock:not(.show) { visibility: hidden; transition: all .5s var(--ease), visibility 0s .5s; }
.dock.show { visibility: visible; }
.is-off *, .is-off *::before, .is-off *::after,
body.locked main *, body.locked main *::before, body.locked main *::after { animation-play-state: paused !important; }
:root[data-theme="light"] { --muted: #5a6370; }
@media (max-width: 980px) { .cat:last-child:nth-child(even) { grid-column: span 2; } }

/* =========================================================
   v2 — Package 4: machined surfaces, studio plates, Card 2.0
   ========================================================= */
:root {
  --edge: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05) 26%, rgba(255,255,255,.03) 70%, rgba(var(--gold-rgb),.16));
  --sheen: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 40%);
  --fill: linear-gradient(var(--panel), var(--panel));
  --hl: inset 0 1px 0 rgba(255,255,255,.06);
  --elev-1: 0 1px 1px rgba(0,0,0,.4), 0 22px 40px -26px rgba(0,0,0,.85);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --studio: radial-gradient(125% 90% at 50% 28%, #f4f1ea 0%, #dfdace 60%, #c6bfb1 100%);
  --floor: rgba(40,30,14,.30);
}
:root[data-theme="light"] {
  --edge: linear-gradient(180deg, rgba(17,25,35,.06), rgba(17,25,35,.11) 70%, rgba(var(--gold-rgb),.3));
  --sheen: linear-gradient(180deg, #fff, rgba(255,255,255,0) 50%);
  --hl: inset 0 1px 0 #fff;
  --elev-1: 0 1px 2px rgba(17,25,35,.06), 0 22px 40px -28px rgba(17,25,35,.3);
  --studio: radial-gradient(125% 90% at 50% 28%, #fff 0%, #f2efe9 58%, #e2ddd3 100%);
  --floor: rgba(40,30,14,.18);
}
.b-card, .card, .spec, .variant-bar, .pn-link, .pal-card, .vm-card {
  border: 1px solid transparent;
  background: var(--sheen) padding-box, var(--fill) padding-box, var(--edge) border-box;
  box-shadow: var(--hl), var(--elev-1);
}
.card:hover { box-shadow: var(--hl), var(--shadow); }
.b-intro { background: radial-gradient(120% 90% at 0% 0%, rgba(var(--gold-rgb),.1), transparent 55%) padding-box, var(--fill) padding-box, var(--edge) border-box; }
.spec { background: radial-gradient(100% 60% at 100% 0%, rgba(var(--gold-rgb),.1), transparent 60%) padding-box, var(--fill) padding-box, var(--edge) border-box; }
.b-loc {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 26px 26px padding-box,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 26px 26px padding-box,
    radial-gradient(80% 120% at 85% 40%, rgba(var(--gold-rgb),.16), transparent 60%) padding-box,
    var(--fill) padding-box, var(--edge) border-box;
}
.nav-pill, .toolbar, .dock-btn { box-shadow: inset 0 1px 0 rgba(255,255,255,.07), var(--shadow-sm); }
.hero::after, .cta-card::after, .footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--grain); opacity: .07; mix-blend-mode: soft-light;
}
.footer { isolation: isolate; }
@media (hover: none) { .hero::after, .cta-card::after, .footer::after { display: none; } }

/* studio plate for white-background product shots */
.card-media:has(> img.white:not(.alt)), .stage.white, .thumb.white, .cat:has(> img.white) { background: var(--studio); }
.card-media > img.white, .stage.white img, .thumb.white img, .cat > img.white { background: none !important; mix-blend-mode: multiply; }
.stage, .thumb { isolation: isolate; }
.card-media:has(> img.white:not(.alt))::before, .stage.white::before {
  content: ""; position: absolute; left: 20%; right: 20%; bottom: 7%; height: 9%; z-index: 0;
  background: radial-gradient(closest-side, var(--floor), transparent); filter: blur(4px); pointer-events: none;
}
.card-media:has(> img.white:not(.alt))::after { background: linear-gradient(180deg, rgba(20,15,6,.14), transparent 28%); }
.card:hover .card-media:has(> .alt[src]) > img:not(.alt) { opacity: 0; }
.cat > img.white { padding: 8% 12% 32%; }
.feature-stage img.white { background: #fff; }

/* Card 2.0 */
.card > a { padding: 6px; }
.card-media { border-radius: calc(var(--r-lg) - 6px); isolation: isolate; }
.card-media::after { border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.card-body { padding: 14px 12px 10px; gap: 4px; }
.card h3 { margin-bottom: 10px; }
.card-meta { border-top: 1px solid var(--line); padding-top: 12px; }
.card-spec { display: flex; margin: 0; }
.card-spec div { display: grid; gap: 3px; padding: 0 14px; border-left: 1px solid var(--line); }
.card-spec div:first-child { padding-left: 0; border-left: 0; }
.card-spec dt { font-size: 11.5px; line-height: 1; color: var(--muted); }
.card-spec dd { margin: 0; font: 500 15px/1.1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--text); }
.crop {
  position: absolute; inset: 8px; z-index: 2; pointer-events: none; opacity: 0; transform: scale(.96);
  transition: opacity .35s var(--ease), transform .6s var(--ease);
  --c: var(--gold-hi); --s: 14px;
  background:
    linear-gradient(var(--c) 0 0) 0 0 / var(--s) 1px, linear-gradient(var(--c) 0 0) 0 0 / 1px var(--s),
    linear-gradient(var(--c) 0 0) 100% 0 / var(--s) 1px, linear-gradient(var(--c) 0 0) 100% 0 / 1px var(--s),
    linear-gradient(var(--c) 0 0) 0 100% / var(--s) 1px, linear-gradient(var(--c) 0 0) 0 100% / 1px var(--s),
    linear-gradient(var(--c) 0 0) 100% 100% / var(--s) 1px, linear-gradient(var(--c) 0 0) 100% 100% / 1px var(--s);
  background-repeat: no-repeat;
}
.card:hover .crop, .card:has(> a:focus-visible) .crop { opacity: 1; transform: none; }
.related .card-spec dd { font-size: 13px; }
.card .tag.code { left: 14px; top: 14px; }
.card .tag.vid { top: 14px; }

/* logo disc */
.brand img, .b-sign img, .f-brand img {
  background: none; padding: 0; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(var(--gold-rgb), .45), 0 8px 24px -8px rgba(var(--gold-rgb), .55);
}
.f-brand img { box-shadow: 0 0 0 1px rgba(var(--gold-rgb), .5), 0 0 0 10px rgba(var(--gold-rgb), .05), 0 24px 60px -20px rgba(var(--gold-rgb), .6); }

/* composited border beam (no per-frame repaint) */
.beam { overflow: hidden; background: none; animation: none; }
.beam::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 250%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(transparent 0 78%, var(--gold-hi) 92%, transparent);
  animation: spin 5s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.cta-card > .beam { inset: 0; z-index: 2; }

/* =========================================================
   v2 — Package 3: prefilled LINE inquiry + sticky bar
   ========================================================= */
.intent { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.intent button {
  height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; color: var(--text-2);
  background: var(--glass-2); border: 1px solid var(--line-2); transition: all .3s var(--ease);
}
.intent button:hover { color: var(--text); border-color: rgba(var(--gold-rgb), .5); }
.intent button[aria-checked="true"] { color: var(--text); border-color: var(--gold); background: rgba(var(--gold-rgb), .14); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .1); }
#d-line { --h: 54px; font-size: 16px; font-weight: 600; }
.d-dock {
  position: sticky; bottom: 0; z-index: 12; pointer-events: none;
  padding: 0 12px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(120%); opacity: 0; visibility: hidden;
  transition: transform .55s var(--ease), opacity .3s, visibility 0s .55s;
}
.d-dock.show { transform: none; opacity: 1; visibility: visible; transition: transform .55s var(--ease), opacity .3s, visibility 0s; }
.d-dock-in {
  pointer-events: auto; max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px;
  border-radius: 22px; background: color-mix(in srgb, var(--panel) 82%, transparent);
  border: 1px solid rgba(var(--gold-rgb), .3);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06);
}
.dd-thumb img { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; display: block; }
.dd-thumb img.white { object-fit: contain; background: var(--studio); padding: 3px; }
.dd-txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.dd-txt small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--gold); }
.dd-txt strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-line { --h: 44px; font-weight: 600; }
.dd-line svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
@media (max-width: 640px) { .dd-thumb, .dd-txt { display: none; } .dd-line { flex: 1; } .dd-call { flex: none; } }
.detail:not([hidden]) ~ .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
#vm-line { flex: none; }

/* =========================================================
   v2 — Package 7: view transitions
   ========================================================= */
.detail.anim-in { animation: sheetIn .6s var(--ease); }
.stage img.still { animation: none; }
html::view-transition { pointer-events: none; }
::view-transition-group(machine-media) { animation-duration: .62s; animation-timing-function: cubic-bezier(.22,1,.36,1); }
::view-transition-old(machine-media), ::view-transition-new(machine-media) { height: 100%; object-fit: cover; }
html.vt-detail::view-transition-old(root) { animation: vtFadeOut .3s ease both; }
html.vt-detail::view-transition-new(root) { animation: vtRise .55s cubic-bezier(.22,1,.36,1) both; }
html.vt-detail-out::view-transition-old(root) { z-index: 1; animation: vtSink .4s cubic-bezier(.7,0,.84,0) both; }
html.vt-detail-out::view-transition-new(root) { animation: none; }
html.vt-swap::view-transition-new(root) { animation: vtRise .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes vtFadeOut { to { opacity: 0; } }
@keyframes vtRise { from { opacity: 0; transform: translateY(28px); } }
@keyframes vtSink { to { opacity: 0; transform: translateY(28px); } }
html.vt-grid #grid .card { view-transition-name: var(--vt); }
html.vt-grid .toolbar { view-transition-name: toolbar; }
html.vt-grid .nav-pill { view-transition-name: navpill; }
html.vt-grid::view-transition-old(root), html.vt-grid::view-transition-new(root) { animation: none; }
html.vt-grid::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.22,1,.36,1); }
html.vt-grid::view-transition-group(toolbar), html.vt-grid::view-transition-group(navpill) { z-index: 10; animation: none; }
html.vt-grid::view-transition-new(*):only-child { animation: vtCardIn .45s cubic-bezier(.22,1,.36,1) both; }
html.vt-grid::view-transition-old(*):only-child { animation: vtCardOut .22s ease both; }
@keyframes vtCardIn { from { opacity: 0; transform: scale(.9) translateY(12px); } }
@keyframes vtCardOut { to { opacity: 0; transform: scale(.92); } }
.js .grid:not(.in) .card { animation-play-state: paused; }
.grid.settled .card { animation: none; }
html.vt-theme::view-transition-old(root), html.vt-theme::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* =========================================================
   v2 — Package 10: mobile ergonomics
   ========================================================= */
.tabbar { display: none; }
.d-back-short { display: none; }
.mm-theme { text-align: left; padding: 12px 14px; border-radius: 14px; font-size: 16px; color: var(--text-2); }
.nav { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
.toast { bottom: calc(24px + env(safe-area-inset-bottom)); }
.dock { bottom: calc(18px + env(safe-area-inset-bottom)); }
.lb-top { padding-top: max(14px, env(safe-area-inset-top)); }
.lb-thumbs { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

@media (max-width: 640px) {
  .dock { display: none; }
  .tabbar {
    position: fixed; z-index: 95; left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); height: 62px; padding: 0 4px; border-radius: 22px;
    background: var(--glass); border: 1px solid var(--line-2);
    backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
    box-shadow: 0 18px 40px -18px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,255,255,.06);
    transform: translateY(calc(100% + 30px)); transition: transform .45s var(--ease);
  }
  .tabbar.show { transform: none; }
  body.locked .tabbar, body:has(input:focus) .tabbar { transform: translateY(calc(100% + 30px)); }
  .tb-item { display: grid; place-items: center; align-content: center; gap: 2px; min-width: 0; font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--muted); -webkit-tap-highlight-color: transparent; }
  .tb-item svg { width: 22px; height: 22px; transition: transform .2s var(--ease); }
  .tb-item:active svg { transform: scale(.86); }
  .tb-item.active { color: var(--gold); }
  .tb-line { color: var(--text); }
  .tb-line svg { width: 50px; height: 50px; margin-top: -22px; padding: 13px; border-radius: 18px; background: var(--line-green); color: #fff; fill: currentColor; stroke: none; box-shadow: 0 0 0 5px var(--bg), 0 14px 26px -10px rgba(6,199,85,.85); }
  .footer { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }

  /* one-row toolbar, search expands on focus */
  .search input, .search.small input { font-size: 16px; }
  .toolbar { flex-wrap: nowrap; gap: 6px; top: 72px; padding: 5px; }
  .toolbar .search { flex: 0 0 42px; min-width: 0; overflow: hidden; height: 42px; padding: 0 0 0 11px; transition: flex-basis .35s var(--ease); cursor: text; }
  .toolbar .search svg { flex: none; }
  .toolbar .search input { width: 0; }
  .toolbar .search kbd { display: none; }
  .toolbar.has-q .search { flex-basis: 44%; }
  .toolbar.searching .search { flex-basis: 100%; padding-right: 6px; }
  .toolbar.searching .filters-wrap { display: none; }
  .filters-wrap { overscroll-behavior-x: contain; }
  .filter { padding: 0 13px; font-size: 14px; }

  /* 2-column compact grid */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 16px; }
  .card > a { padding: 4px; }
  .card-media { border-radius: 12px; }
  .card-body { padding: 10px 8px 10px; }
  .card h3 { font-size: 15px; line-height: 1.42; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .card .card-cat { display: none; }
  .card-spec div + div + div, .card .go { display: none; }
  .card-spec div { padding: 0 10px; }
  .card-spec dd { font-size: 13.5px; }
  .card .tag { top: 8px; height: 24px; padding: 0 8px; font-size: 10.5px; }
  .card .tag.code { left: 8px; top: 8px; }
  .card .tag.vid { right: 8px; top: 8px; }
  .tag .tv { display: none; }
  .crop { display: none; }
  .palette { padding: calc(env(safe-area-inset-top) + 10px) 10px 0; }
  .pal-list { max-height: calc(100dvh - 150px); }
  .pal-foot, .pal-input kbd { display: none; }
}
@media (max-width: 350px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 400px) {
  .nav-pill { padding: 0 8px 0 10px; gap: 10px; }
  .brand img { width: 32px; height: 32px; }
  .brand-text strong { font-size: 12.5px; letter-spacing: .08em; }
  .nav-actions { gap: 6px; }
  #theme-toggle { display: none; }
  .d-back-long { display: none; }
  .d-back-short { display: inline; }
}
@media (pointer: coarse) {
  .icon-btn, .kbd-btn { width: 44px; height: 44px; }
  .btn-sm { --h: 44px; }
  .stage-arrow { width: 44px; height: 44px; margin-top: -22px; }
  .thumb { width: 80px; }
}
/* touch: press feedback instead of sticky hover */
@media (hover: none) {
  a, button { -webkit-tap-highlight-color: transparent; }
  .card:hover, .cat:hover, .vcard:hover, .feature:hover, .pn-link:hover { transform: none; }
  .card:hover .card-media img, .cat:hover img, .vcard:hover img, .b-mosaic:hover .mosaic img { transform: none; }
  .card:hover .go { background: none; color: var(--text); border-color: var(--line-2); transform: none; }
  .card:hover .card-media:has(> .alt[src]) > img:not(.alt) { opacity: 1; }
  .card, .cat, .vcard, .feature, .video-launch, .pn-link { transition: transform .18s var(--ease); }
  .card:active, .cat:active, .vcard:active, .feature:active, .pn-link:active { transform: scale(.97); }
  .btn:active, .filter:active, .variant:active { transform: scale(.96); }
  .spot::before, .spot::after { content: none; }
}

/* =========================================================
   v2 — Packages 5 + 9 (condensed): Thai typography & scroll motion
   ========================================================= */
.hero-title, .sec-head h2, .cta h2, .d-head h1, .d-section-head h2 { letter-spacing: -.005em; text-wrap: balance; }
.sec-head h2, .cta h2 { line-height: 1.22; }
.d-head h1 { line-height: 1.18; }
.hero-sub, .about-text, .d-head p, .spec p, .products-lead { text-wrap: pretty; }
/* two-tone section titles; gold stays for the hero and the CTA */
.sec-head h2 .grad {
  background: linear-gradient(100deg, var(--text-2) 0%, var(--muted) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* word-by-word reveal */
.w { display: inline-block; transition: opacity .8s var(--ease) calc(var(--i, 0) * 55ms), filter .8s var(--ease) calc(var(--i, 0) * 55ms), transform .8s var(--ease) calc(var(--i, 0) * 55ms); }
.js .reveal:not(.in) .w { opacity: 0; filter: blur(10px); transform: translateY(.35em); }
.sec-head h2 .w.grad, .cta h2 .w.grad { padding-inline-start: 0; }

/* scroll-driven motion (compositor-only; browsers without support keep the JS reveals) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-inner { animation: heroExit linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes heroExit { to { transform: translateY(-6vh) scale(.965); opacity: .15; } }
    .hero-canvas { animation: heroCanvas linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    @keyframes heroCanvas { to { transform: translateY(18vh); } }
    .js .bento > .reveal, .js .cat-grid > .reveal { opacity: 1; transform: none; transition: border-color .4s; }
    .bento > .b-card, .cat-grid > .cat { animation: assemble linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes assemble { from { opacity: 0; transform: translateY(70px) scale(.94); } }
    .footer { overflow: clip; }
    .wordmark { animation: markRise linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; }
    @keyframes markRise { from { transform: translateY(60%); opacity: 0; } to { transform: translateY(8%); opacity: 1; } }
    .vcard { animation: vcFocus linear both; animation-timeline: view(inline); animation-range: entry 0% exit 100%; }
    @keyframes vcFocus { 0%, 100% { scale: .9; opacity: .55; } 30%, 70% { scale: 1; opacity: 1; } }
  }
}

/* =========================================================
   v2 — Package 8: flagship gallery, model cards, next teaser
   ========================================================= */
.stage { isolation: isolate; background: #07090c; cursor: default; }
.stage::before {
  content: ""; position: absolute; inset: -12%; z-index: 0; pointer-events: none;
  background: var(--amb, none) center / cover no-repeat; filter: blur(36px) saturate(1.35) brightness(.42);
}
:root[data-theme="light"] .stage:not(.white) { background: var(--panel-3); }
:root[data-theme="light"] .stage:not(.white)::before { filter: blur(36px) saturate(1.2) brightness(1.05); opacity: .6; }
.stage.white { background: var(--studio); }
.stage-track {
  position: absolute; inset: 0; z-index: 1; display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; cursor: zoom-in; outline-offset: -3px;
}
.stage-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.slide.white { background: var(--studio); }
.stage .slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: none; user-select: none; -webkit-user-drag: none; }
.stage .slide.white img { padding: 4%; mix-blend-mode: multiply; }
.stage.white::before { inset: auto 20% 7%; height: 9%; background: radial-gradient(closest-side, var(--floor), transparent); filter: blur(4px); z-index: 2; }
.stage-arrow, .stage .tag, .stage-segs, .stage-bar { z-index: 3; }
.stage-zoom { cursor: zoom-in; }
.stage-segs { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; gap: 4px; pointer-events: none; }
.stage-segs i { position: relative; flex: 1; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.28); }
.stage-segs i::after { content: ""; position: absolute; inset: 0; background: var(--gold-hi); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.stage-segs i.done::after, .stage-segs i.on::after { transform: scaleX(1); }
.stage.white .stage-segs i, .stage.white .stage-bar { background: rgba(0,0,0,.14); }
.stage-bar { position: absolute; top: 14px; left: 16px; right: 16px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.stage-bar i { display: block; height: 100%; background: var(--gold-hi); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.thumb.active { border-color: transparent; box-shadow: 0 0 0 1.5px var(--gold), 0 8px 20px -8px rgba(var(--gold-rgb), .6); }
@media (hover: none) { .stage-arrow { display: none; } }
@media (pointer: coarse) { .stage::before { filter: blur(22px) saturate(1.3) brightness(.42); } }

/* model cards */
.variant-bar { flex-direction: column; align-items: stretch; }
.variant-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.variant { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 16px; min-height: 0; }
.vx-media { flex: none; width: 68px; height: 52px; border-radius: 11px; overflow: hidden; background: var(--panel-3); display: grid; place-items: center; color: var(--gold); }
.vx-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vx-media.white { background: var(--studio); }
.vx-media.white img { object-fit: contain; padding: 4px; mix-blend-mode: multiply; }
.vx-txt { min-width: 0; display: grid; gap: 1px; }
.vx-txt small { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--muted); }
.vx-txt b { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vx-txt em { font-style: normal; font-size: 12px; color: var(--muted); }
.variant.active { background: rgba(var(--gold-rgb), .12); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(var(--gold-rgb), .12); }
.variant.active .vx-txt small { color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .variant:hover .vx-media img { transform: scale(1.08); } }
@media (max-width: 640px) {
  .variant-opts { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -14px; padding: 2px 14px 6px; scroll-padding-inline: 14px; }
  .variant { flex: 0 0 80%; scroll-snap-align: start; }
}

/* next-machine teaser */
.pn-nav { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 80px; }
.pn-next {
  position: relative; isolation: isolate; overflow: hidden; min-height: clamp(260px, 34vw, 420px);
  border-radius: var(--r-xl); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: clamp(22px, 4vw, 48px); color: #fff;
}
.pn-next img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.05); transition: transform 1.4s var(--ease); }
.pn-next img.white { object-fit: contain; background: var(--studio); padding: 4% 4% 32%; mix-blend-mode: normal; }
.pn-next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(4,6,9,.9)); }
.pn-next strong { font-size: clamp(28px, 4.4vw, 60px); font-weight: 600; line-height: 1.15; max-width: 80%; text-wrap: balance; }
.pn-next .pn-k { color: rgba(255,255,255,.75); }
.pn-next .pn-cat { color: var(--gold-hi); font-size: 14px; }
.pn-next .round-arrow { position: absolute; right: clamp(22px, 4vw, 48px); bottom: clamp(22px, 4vw, 48px); transition: transform .5s var(--ease); }
@media (hover: hover) and (pointer: fine) { .pn-next:hover img { transform: scale(1); } .pn-next:hover .round-arrow { transform: translateX(6px); } }
.pn-prev { justify-self: start; display: grid; gap: 2px; padding: 10px 4px; color: var(--text-2); }
.pn-prev:hover { color: var(--gold); }
@media (max-width: 640px) {
  .related { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 10px; scroll-padding-inline: 16px; }
  .related .card { scroll-snap-align: start; }
}

/* v2 — video modal follows the clip's real shape */
.vm-card.portrait { width: min(440px, 100%); }
.vm-card.portrait .vm-stage { max-height: calc(100dvh - 150px); }
.vm-stage { position: relative; width: 100%; margin-inline: auto; max-width: 100%; }
@media (max-width: 640px) {
  .vmodal { padding: 0; place-items: end stretch; }
  .vm-card { width: 100%; border-radius: 26px 26px 0 0; animation: sheetIn .45s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
  .vm-card.portrait { width: 100%; }
}

/* v2 — shortlist entry in the phone tab bar */
@media (max-width: 640px) {
  .tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  .tb-sl { position: relative; }
  .tb-badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center; font: 600 10.5px/1 var(--f-mono); background: var(--gold); color: #17120a; box-shadow: 0 0 0 2px var(--bg); }
}
.tb-sl[hidden] { display: none !important; }

/* v2 — near the top, a non-empty shortlist shows only its own dock button */
#dock.sl-has:not(.show) .dock-btn:not(.sl-btn) { display: none; }

/* v2 — video wall rail + drag, detail compact title + reading line */
.motion-rail { position: relative; height: 3px; margin-top: 18px; border-radius: 3px; background: var(--line); overflow: hidden; }
.motion-rail i { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; border-radius: 3px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); will-change: transform; }
@media (hover: hover) and (pointer: fine) { .motion-track { cursor: grab; } }
.motion-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.motion-track.dragging .vcard { pointer-events: none; }
.d-bar { position: sticky; }
.d-mini {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; max-width: min(52vw, 560px);
  font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none;
}
.d-bar.mini .d-mini { opacity: 1; transform: none; }
.d-bar.mini .d-crumb { opacity: 0; }
.d-crumb { transition: opacity .3s; }
.d-read { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold-lo), var(--gold-hi)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@media (max-width: 640px) { .d-mini { max-width: 44vw; font-size: 14px; } }

/* v2 — reel: fixed full-size frame revealed with clip-path (no per-frame layout) */
.reel-frame {
  width: 100%; height: 100%; max-width: none;
  border-radius: 0; box-shadow: none;
  clip-path: inset(calc((1 - var(--p)) * 24vh) calc((1 - var(--p)) * 22vw) round calc((1 - var(--p)) * 32px));
  will-change: clip-path;
}
@media (max-width: 980px) {
  .reel-frame { width: 100%; height: 100%; clip-path: inset(calc((1 - var(--p)) * 27vh) calc((1 - var(--p)) * 8vw) round calc((1 - var(--p)) * 24px)); }
}
.reel-caption { padding-bottom: max(clamp(18px, 3vw, 40px), calc(env(safe-area-inset-bottom) + 18px)); }

/* v2 — Thai inside mono labels: Thai font, no Latin tracking */
.mono .th, .kicker .th, .chip-mono .th, .d-crumb .th { font-family: var(--f-body); font-style: normal; letter-spacing: 0; text-transform: none; font-size: 1.08em; }

/* v2 — review fixes */
/* white hover photo keeps the studio plate while it is showing (no black silhouette on the dark panel) */
.card:hover .card-media:has(> img.white.alt[src]) { background: var(--studio); }
/* white-slide padding/blend only on white slides, not on photo slides next to them */
.stage.white .slide:not(.white) img { padding: 0; mix-blend-mode: normal; }
.stage.white img { padding: 0; }
.stage .slide.white img { padding: 4%; }
/* keyboard-focus lift only; touch keeps no sticky lift */
@media (hover: none) { .card:focus-within { transform: none; } }
