/* Local fonts copied from app/web/shared/fonts */
@font-face{font-family:'IBM Plex Sans Thai';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/ibm-plex-sans-thai-thai-400-normal.woff2') format('woff2');unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:'IBM Plex Sans Thai';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/ibm-plex-sans-thai-latin-400-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans Thai';font-style:normal;font-weight:500;font-display:swap;src:url('./fonts/ibm-plex-sans-thai-thai-500-normal.woff2') format('woff2');unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:'IBM Plex Sans Thai';font-style:normal;font-weight:500;font-display:swap;src:url('./fonts/ibm-plex-sans-thai-latin-500-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans Thai';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/ibm-plex-sans-thai-thai-600-normal.woff2') format('woff2');unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:'IBM Plex Sans Thai';font-style:normal;font-weight:600;font-display:swap;src:url('./fonts/ibm-plex-sans-thai-latin-600-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Sans Thai';font-style:normal;font-weight:700;font-display:swap;src:url('./fonts/ibm-plex-sans-thai-thai-700-normal.woff2') format('woff2');unicode-range:U+0E00-0E7F,U+200C-200D,U+25CC}
@font-face{font-family:'IBM Plex Sans Thai';font-style:normal;font-weight:700;font-display:swap;src:url('./fonts/ibm-plex-sans-thai-latin-700-normal.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:swap;src:url('./fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url('./fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2')}

/* ==========================================================================
   Exhibition Interactive Systems — Sales Catalogue
   Direction G: Dark Liquid Glass (no neon, no outer glow, no blurry blobs)
   ========================================================================== */

:root {
  --bg: #08090C;
  --bg-top: #0D0F14;
  --grid: rgba(255, 255, 255, 0.03);
  --grid-spacing: 56px;
  --overhead-light: radial-gradient(960px 520px at 34% -10%, rgba(205, 218, 240, 0.10), transparent 62%);

  --text: #F5F7FA;
  --text-secondary: #B4BCC9;
  --text-muted: #8C95A6;
  --accent: #6CA8FF;
  --on-primary: #0B0D12;
  --success: #7FE0B0;
  --warning: #FFB86B;
  --danger: #FF7A7A;

  --glass-fill: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.115) 0%,
    rgba(255, 255, 255, 0.035) 45%,
    rgba(255, 255, 255, 0.068) 100%
  );
  --glass-fill-subtle: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.025) 48%,
    rgba(255, 255, 255, 0.05) 100%
  );
  --glass-fill-hover: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.052) 45%,
    rgba(255, 255, 255, 0.095) 100%
  );
  --glass-sheen: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0) 26%,
    rgba(255, 255, 255, 0) 74%,
    rgba(170, 205, 255, 0.06) 100%
  );
  --glass-rim: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.56) 0%,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(255, 255, 255, 0.04) 65%,
    rgba(255, 214, 170, 0.30) 100%
  );
  --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  --glass-shadow: 0 18px 44px rgba(0, 0, 0, 0.50);
  --glass-shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.38);

  --glass-blur-thin: 10px;
  --glass-blur-regular: 18px;
  --glass-blur-thick: 30px;
  --glass-saturate: 160%;

  --radius-chip: 999px;
  --radius-input: 16px;
  --radius-card: 24px;
  --radius-hero: 32px;

  --ease-ios: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-enter: 380ms;
  --dur-tap: 120ms;

  --font-sans: 'IBM Plex Sans Thai', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --container: 1200px;
  --nav-height: 72px;
}

/* Bilingual switching (Thai first, zero flicker) */
[data-lang="th"] .t-en { display: none !important; }
[data-lang="en"] .t-th { display: none !important; }

/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

a,
button {
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  border-radius: var(--radius-chip);
  background: var(--text);
  color: var(--on-primary);
  font-weight: 600;
  transition: top var(--dur-tap) var(--ease-ios);
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   Dark Wall Architectural Backdrop (Direction G)
   ========================================================================== */

.wall-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    var(--overhead-light),
    linear-gradient(180deg, rgba(8, 9, 12, 0.56) 0%, rgba(8, 9, 12, 0.76) 52%, rgba(8, 9, 12, 0.90) 100%),
    url('./g-wall-bg.webp');
  background-size: auto, auto, cover;
  background-position: top left, center, center;
  background-repeat: no-repeat;
}

.wall-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-spacing) var(--grid-spacing);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.12) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.12) 100%);
}

/* ==========================================================================
   Liquid Glass Surfaces (.lg)
   ========================================================================== */

.lg {
  position: relative;
  background: var(--glass-fill);
  backdrop-filter: blur(var(--glass-blur-regular)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur-regular)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  isolation: isolate;
}

.lg::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--glass-sheen);
  opacity: 0.55;
  z-index: -1;
}

.lg::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: 1px;
  background: var(--glass-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  z-index: 10;
}

.lg.thin {
  background: var(--glass-fill-subtle);
  backdrop-filter: blur(var(--glass-blur-thin)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur-thin)) saturate(var(--glass-saturate));
  box-shadow: var(--glass-highlight), var(--glass-shadow-sm);
}

.lg.thick {
  backdrop-filter: blur(var(--glass-blur-thick)) saturate(var(--glass-saturate));
  -webkit-backdrop-filter: blur(var(--glass-blur-thick)) saturate(var(--glass-saturate));
}

.lg.card {
  border-radius: var(--radius-card);
}

.lg.hero-panel {
  border-radius: var(--radius-hero);
}

.lg.capsule {
  border-radius: var(--radius-chip);
}

/* ==========================================================================
   Layout Container & Header
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 18px;
  border-radius: var(--radius-chip);
  background: linear-gradient(160deg, rgba(18, 21, 29, 0.84), rgba(10, 12, 17, 0.78));
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  flex-shrink: 0;
}

.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 960px) {
  .header-nav {
    display: flex;
  }
}

.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-chip);
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--dur-tap) var(--ease-ios), background-color var(--dur-tap) var(--ease-ios);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Segmented TH / EN Switch */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--radius-chip);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.lang-btn {
  min-width: 38px;
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: var(--radius-chip);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: background-color var(--dur-tap) var(--ease-ios), color var(--dur-tap) var(--ease-ios);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn[aria-pressed="true"] {
  background: var(--text);
  color: var(--on-primary);
}

/* ==========================================================================
   Buttons (Direction G: Solid White Primary, Liquid Glass Secondary)
   ========================================================================== */

.btn,
.btn-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-chip);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition:
    transform var(--dur-tap) var(--ease-ios),
    background-color var(--dur-tap) var(--ease-ios),
    opacity var(--dur-tap) var(--ease-ios);
}

.btn {
  background: var(--text);
  color: var(--on-primary);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.btn:hover {
  background: #FFFFFF;
}

.btn:active,
.btn-glass:active {
  transform: scale(0.97);
}

.btn-glass {
  color: var(--text);
}

.btn-glass:hover {
  background: var(--glass-fill-hover);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

.btn-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ==========================================================================
   Badges & Chips
   ========================================================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-chip);
  background: rgba(8, 9, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-ready .status-dot {
  background: var(--success);
}

.status-beta .status-dot {
  background: var(--warning);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: var(--radius-chip);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-chip);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ==========================================================================
   Hero Section (Catalogue Index)
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 36px 0 44px;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 56px 0 64px;
  }
}

.hero-stage {
  position: relative;
  overflow: hidden;
  padding: 32px 22px;
}

@media (min-width: 768px) {
  .hero-stage {
    padding: 56px 52px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-title {
  margin-top: 20px;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero-lead {
  margin-top: 18px;
  max-width: 620px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--text-secondary);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Rendered real glass art objects (subtle optical depth, zero neon/blobs) */
.glass-object {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
}

.hero-orb {
  width: 240px;
  height: 240px;
  object-fit: contain;
  top: -36px;
  right: -40px;
  opacity: 0.42;
  animation: float-orb 14s ease-in-out infinite;
}

.hero-ring {
  width: 290px;
  height: 290px;
  object-fit: contain;
  bottom: -90px;
  right: 90px;
  opacity: 0.34;
  animation: float-ring 18s ease-in-out infinite;
}

.hero-capsule {
  display: none;
}

@media (min-width: 960px) {
  .hero-orb {
    width: 300px;
    height: 300px;
    top: -24px;
    right: 36px;
    opacity: 0.52;
  }

  .hero-ring {
    width: 340px;
    height: 340px;
    bottom: -76px;
    right: 170px;
    opacity: 0.40;
  }

  .hero-capsule {
    display: block;
    width: 190px;
    height: 190px;
    object-fit: contain;
    top: 44%;
    right: -20px;
    opacity: 0.38;
    animation: float-capsule 16s ease-in-out infinite;
  }
}

@keyframes float-orb {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-6px, 10px, 0); }
}

@keyframes float-ring {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(8px, -8px, 0) rotate(6deg); }
}

@keyframes float-capsule {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(-5px, -9px, 0) rotate(2deg); }
}

/* Core Highlights Strip */
.core-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .core-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .core-strip {
    grid-template-columns: repeat(4, 1fr);
  }
}

.core-item {
  padding: 18px 20px;
  border-radius: 20px;
}

.core-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.core-value {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.core-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Catalogue Groups & System Cards
   ========================================================================== */

.catalogue-section {
  padding: 16px 0 40px;
}

.group-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.jump-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: var(--radius-chip);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition:
    color var(--dur-tap) var(--ease-ios),
    background var(--dur-tap) var(--ease-ios),
    transform var(--dur-tap) var(--ease-ios);
}

.jump-pill:hover {
  color: var(--text);
  background: var(--glass-fill-hover);
}

.jump-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.group-block {
  scroll-margin-top: 96px;
}

.group-block + .group-block {
  margin-top: 64px;
}

.group-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.group-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.group-title {
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.group-desc {
  max-width: 520px;
  font-size: 15px;
  color: var(--text-secondary);
}

.system-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

/* Single finale card in Group C spans full width gracefully */
.system-grid.grid-finale {
  grid-template-columns: 1fr;
}

.system-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  transition:
    transform var(--dur-enter) var(--ease-ios),
    background var(--dur-enter) var(--ease-ios);
}

.system-card:hover {
  transform: translateY(-4px);
  background: var(--glass-fill-hover);
}

.system-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

@media (min-width: 900px) {
  .system-card.is-finale .system-card-link {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
  }
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(150deg, #12151E 0%, #090B10 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 900px) {
  .system-card.is-finale .card-media {
    aspect-ratio: auto;
    min-height: 300px;
    border-bottom: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.card-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 320ms var(--ease-ios), transform 520ms var(--ease-ios);
}

.card-media.is-loaded .card-poster {
  opacity: 1;
}

.card-media.is-missing .card-poster {
  display: none;
}

.system-card:hover .card-poster {
  transform: scale(1.025);
}

.media-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 20px;
  background-image:
    radial-gradient(420px 220px at 20% 0%, rgba(205, 218, 240, 0.10), transparent 70%),
    linear-gradient(155deg, #131722 0%, #090B10 100%);
  overflow: hidden;
}

.media-fallback-art {
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 176px;
  height: 176px;
  object-fit: contain;
  opacity: 0.44;
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 60%, transparent 98%);
}

.fallback-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fallback-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.fallback-bottom {
  position: relative;
  z-index: 2;
  max-width: 78%;
}

.fallback-en {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.fallback-title {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.fallback-caption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.card-media-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.sys-num-pill {
  padding: 5px 11px;
  border-radius: var(--radius-chip);
  background: rgba(8, 9, 12, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
  min-width: 0;
}

@media (min-width: 900px) {
  .system-card.is-finale .card-body {
    padding: 32px;
    justify-content: center;
  }
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.card-subname {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

.card-tagline {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.card-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.card-arrow {
  transition: transform var(--dur-tap) var(--ease-ios);
}

.system-card:hover .card-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   System Detail Page
   ========================================================================== */

.breadcrumb-bar {
  padding: 12px 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.breadcrumb-trail {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb-trail a:hover {
  color: var(--text);
}

.breadcrumb-sep {
  color: var(--text-muted);
}

/* Top Video Demo Stage */
.demo-stage-wrap {
  margin-bottom: 24px;
}

.media-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-hero);
  background: linear-gradient(155deg, #131722 0%, #090B10 100%);
}

.demo-video {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.media-stage.video-missing .demo-video {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.stage-poster-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 280ms var(--ease-ios);
}

.media-stage.video-missing.poster-loaded .stage-poster-fallback {
  opacity: 1;
}

.media-stage.poster-missing .stage-poster-fallback {
  display: none;
}

.stage-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background-image:
    radial-gradient(640px 320px at 22% 0%, rgba(205, 218, 240, 0.11), transparent 68%),
    linear-gradient(155deg, #131722 0%, #090B10 100%);
}

@media (min-width: 768px) {
  .stage-placeholder {
    padding: 36px 40px;
  }
}

.stage-placeholder-art {
  position: absolute;
  right: 4%;
  bottom: -10%;
  width: clamp(180px, 34%, 380px);
  height: clamp(180px, 34%, 380px);
  object-fit: contain;
  opacity: 0.48;
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 98%);
}

.stage-placeholder-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stage-placeholder-body {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.stage-placeholder-title {
  font-size: clamp(22px, 3.6vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.stage-placeholder-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.stage-poster-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-chip);
  background: rgba(8, 9, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  color: var(--text-secondary);
}

.media-stage.video-missing.poster-loaded .stage-poster-badge {
  display: inline-flex;
}

/* System Header Card */
.system-hero-card {
  padding: 26px 22px;
}

@media (min-width: 768px) {
  .system-hero-card {
    padding: 36px 40px;
  }
}

.system-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.system-title-row {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
}

.system-h1 {
  font-size: clamp(28px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.system-h1-sub {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-muted);
}

.system-tagline {
  margin-top: 14px;
  max-width: 780px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.65;
  color: var(--text-secondary);
}

.system-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Content Sections */
.detail-section {
  margin-top: 44px;
  scroll-margin-top: 96px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin-top: 4px;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Use Cases Grid */
.usecase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.usecase-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 20px;
}

.usecase-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 3px;
  flex-shrink: 0;
}

.usecase-text {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}

/* How It Works 3 Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  padding: 0;
}

@media (min-width: 860px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.step-card {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(108, 168, 255, 0.12);
  border: 1px solid rgba(108, 168, 255, 0.28);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.step-text {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text);
}

/* Equipment & Space Panel */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 860px) {
  .specs-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }
}

.spec-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spec-heading {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.spec-body {
  font-size: 15px;
  line-height: 1.68;
  color: var(--text-secondary);
}

.duration-box {
  margin-top: auto;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.duration-value {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

/* Customise + Data Back Two-Column Comparison */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 860px) {
  .two-col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.panel-card {
  padding: 26px 24px;
}

.panel-title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.bullet-list {
  margin-top: 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-secondary);
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Packages & Contact CTA
   ========================================================================== */

.packages-section {
  margin-top: 64px;
  scroll-margin-top: 96px;
}

.packages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 860px) {
  .packages-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.package-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
}

.package-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.package-name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.package-price {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.package-summary {
  margin-top: 14px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.package-includes {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Contact CTA Panel */
.contact-section {
  margin-top: 56px;
  scroll-margin-top: 96px;
}

.contact-panel {
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 860px) {
  .contact-panel {
    padding: 40px 44px;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  }
}

.contact-title {
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
}

.contact-note {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.contact-checklist {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-actions .btn,
.contact-actions .btn-glass {
  width: 100%;
}

.contact-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.copy-feedback {
  min-height: 20px;
  font-size: 13px;
  color: var(--success);
  text-align: center;
}

/* ==========================================================================
   Prev / Next System Navigation
   ========================================================================== */

.sys-nav {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .sys-nav {
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
  }
}

.sys-nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 20px;
  transition: background var(--dur-tap) var(--ease-ios), transform var(--dur-tap) var(--ease-ios);
}

.sys-nav-link:hover {
  background: var(--glass-fill-hover);
}

.sys-nav-link.is-next {
  text-align: right;
}

.sys-nav-link.is-center {
  align-items: center;
  text-align: center;
  padding: 18px 24px;
}

.sys-nav-dir {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sys-nav-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 64px;
  padding: 28px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--text);
}

/* ==========================================================================
   Motion: Light iOS-like Rise (12px, 380ms, no bounce)
   ========================================================================== */

html.js-motion .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(12px);
}

html.js-motion .reveal {
  transition:
    opacity var(--dur-enter) var(--ease-ios) var(--stagger, 0ms),
    transform var(--dur-enter) var(--ease-ios) var(--stagger, 0ms);
}

html.js-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html.js-motion .reveal:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .system-card:hover {
    transform: none;
  }

  .system-card:hover .card-poster {
    transform: none;
  }
}
