/* ============================================================
   KOREX LABS — MACHINED NOCTURNE
   Premium public-surface layer. Loaded after style.css.
   ============================================================ */

body.theme-dark-prestige {
  --bg: #070806;
  --bg-section: #0d0f0c;
  --white: #12140f;
  --black: #070806;
  --dark: #070806;
  --gold: #d6b875;
  --gold-hover: #ead093;
  --gold-light: rgba(214, 184, 117, 0.1);
  --gold-border: rgba(214, 184, 117, 0.38);
  --text: #f3f0e8;
  --text-muted: #b3b0a8;
  --text-light: #8b8981;
  --border: #35382f;
  --border-light: rgba(243, 240, 232, 0.12);
  --error: #ef8d82;
  --success: #8bc8a4;
  --nav-h: 92px;
  --max-w: 1480px;
  --font-serif: 'Bodoni Moda', 'Times New Roman', serif;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --radius: 10px;
  --shadow: none;
  --shadow-lg: 0 8px 8px rgba(0, 0, 0, 0.22);
  --transition: 0.46s cubic-bezier(0.16, 1, 0.3, 1);
  background:
    radial-gradient(circle at 78% 2%, rgba(214, 184, 117, 0.095), transparent 28rem),
    radial-gradient(circle at 8% 42%, rgba(93, 105, 82, 0.08), transparent 34rem),
    var(--bg);
}

.theme-dark-prestige h1,
.theme-dark-prestige h2,
.theme-dark-prestige h3,
.theme-dark-prestige h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.theme-dark-prestige p { text-wrap: pretty; }
.theme-dark-prestige .container { max-width: var(--max-w); }
.theme-dark-prestige .section { padding-block: clamp(88px, 9vw, 144px); }
.theme-dark-prestige .label,
.theme-dark-prestige .overline { font-family: var(--font-sans); }
.theme-dark-prestige :focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.theme-dark-prestige .app-main { margin-top: var(--nav-h); }
/* Skip-link removed — stale cached bundles may still inject it, so keep
   it invisible instead of styling it. */
.skip-link { display: none !important; }

/* Floating instrument-panel navigation */
body.theme-dark-prestige:not(.kx-admin-surface) .navbar {
  top: 14px;
  left: clamp(12px, 2.2vw, 34px);
  right: clamp(12px, 2.2vw, 34px);
  height: 64px;
  border: 1px solid rgba(243, 240, 232, 0.13);
  border-radius: 12px;
  background: rgba(9, 10, 8, 0.82);
  box-shadow: none;
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
}

body.theme-dark-prestige:not(.kx-admin-surface) .navbar.scrolled {
  background: rgba(9, 10, 8, 0.96);
  border-color: rgba(214, 184, 117, 0.3);
  box-shadow: 0 8px 8px rgba(0, 0, 0, 0.18);
}

body.theme-dark-prestige:not(.kx-admin-surface) .nav-inner {
  height: 62px;
  padding-inline: clamp(18px, 2.5vw, 38px);
}

.theme-dark-prestige .nav-logo img { width: 28px !important; height: 28px !important; object-fit: contain; }
.theme-dark-prestige .nav-logo-text { font-size: 11px; font-weight: 700; letter-spacing: 0.26em; }
.theme-dark-prestige .nav-logo-tagline { font-size: 8px; letter-spacing: 0.12em; text-transform: none; }
.theme-dark-prestige .nav-links { gap: 2px; }
.theme-dark-prestige .nav-links a {
  padding: 10px 12px;
  color: rgba(243, 240, 232, 0.64);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: none;
}
.theme-dark-prestige .nav-links a.active::after { bottom: 3px; width: 18px; }
.theme-dark-prestige .nav-btn-login { font-size: 10px; letter-spacing: 0.07em; text-transform: none; }
.theme-dark-prestige .nav-cart-btn {
  width: 38px;
  height: 38px;
  border-color: rgba(214, 184, 117, 0.34);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.theme-dark-prestige .nav-cart-btn:hover { transform: rotate(-4deg); border-color: var(--gold); background: var(--gold-light); }

/* Buttons and fields */
.theme-dark-prestige .btn {
  min-height: 48px;
  padding: 13px 25px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}
.theme-dark-prestige .btn:hover { transform: translateY(-2px); }
.theme-dark-prestige .btn:active { transform: translateY(0) scale(0.98); }
.theme-dark-prestige .btn-primary,
.theme-dark-prestige .btn-gold { box-shadow: none; }
.theme-dark-prestige .btn-outline { border-color: rgba(243, 240, 232, 0.28); }
.theme-dark-prestige .form-input,
.theme-dark-prestige .sort-select {
  min-height: 48px;
  border-radius: 10px;
  border-color: rgba(243, 240, 232, 0.16);
  background: #0b0d0a;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.theme-dark-prestige .form-input::placeholder { color: #96938a; }

/* Hero: packaging editorial meets instrument-panel precision */
.theme-dark-prestige .hero {
  min-height: min(860px, calc(100svh - var(--nav-h)));
  background: #080906;
}
.theme-dark-prestige .hero::after { box-shadow: inset 0 -100px 120px rgba(0, 0, 0, 0.42); }
.theme-dark-prestige .hero-content {
  max-width: 68rem;
  padding-block: clamp(86px, 11vh, 132px);
}
.theme-dark-prestige .hero-overline {
  margin-bottom: 30px;
  gap: 13px;
  color: #d8c79f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  animation: kx-rise 0.82s 0.05s both cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .hero-overline::before { width: 32px; background: rgba(214, 184, 117, 0.7); }
.theme-dark-prestige .hero h1 {
  max-width: 66rem;
  font-size: clamp(4.25rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  animation: kx-rise 0.95s 0.12s both cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .hero-title-row { gap: 0 0.17em; }
.theme-dark-prestige .hero-title-accent { padding-left: clamp(30px, 6.5vw, 96px); }
.theme-dark-prestige .hero h1 .gold { color: var(--gold); font-style: normal; }
.theme-dark-prestige .hero-subtitle {
  max-width: 40rem;
  margin-top: 34px;
  color: #c4c0b6;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 400;
  line-height: 1.72;
  animation: kx-rise 0.88s 0.2s both cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .hero-actions { animation: kx-rise 0.88s 0.28s both cubic-bezier(0.16, 1, 0.3, 1); }
.theme-dark-prestige .hero-image { width: 58%; animation: kx-image-in 1.25s both cubic-bezier(0.16, 1, 0.3, 1); }
.theme-dark-prestige .hero-image::before {
  width: 68%;
  background:
    linear-gradient(90deg, #080906 2%, rgba(8, 9, 6, 0.96) 18%, rgba(8, 9, 6, 0.12) 76%),
    linear-gradient(180deg, rgba(8, 9, 6, 0.08), transparent 48%, rgba(8, 9, 6, 0.88));
}
.theme-dark-prestige .hero-image::after {
  inset: 46px 52px 46px 110px;
  border-color: rgba(243, 240, 232, 0.14);
  border-left-color: rgba(214, 184, 117, 0.52);
}
.theme-dark-prestige .hero-image img {
  filter: grayscale(0.82) saturate(0.4) contrast(1.15) brightness(0.55) sepia(0.08);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .hero:hover .hero-image img { filter: grayscale(0.7) saturate(0.5) contrast(1.12) brightness(0.62) sepia(0.08); }
.theme-dark-prestige .hero-assay-card {
  right: clamp(24px, 5vw, 78px);
  bottom: clamp(34px, 6vh, 66px);
  width: min(330px, 27vw);
  padding: 22px 24px;
  border-radius: 10px;
  background: #0d0f0c;
  border-color: rgba(243, 240, 232, 0.16);
  border-top-color: rgba(214, 184, 117, 0.78);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  animation: kx-rise 0.9s 0.42s both cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .hero-assay-value {
  font-family: var(--font-sans);
  font-size: 30px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* Trust rail */
.theme-dark-prestige .features-bar { background: #0b0d0a; }
.theme-dark-prestige .features-bar-inner { grid-template-columns: 1.35fr 1fr 1fr 1.15fr; }
.theme-dark-prestige .feature-item { min-height: 138px; padding: 32px clamp(20px, 2.3vw, 36px); gap: 18px; }
.theme-dark-prestige .feature-item h4 {
  color: #e6e1d7;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
}
.theme-dark-prestige .feature-item p { color: #a19e95; font-size: 12px; line-height: 1.6; }
.theme-dark-prestige .feature-icon { width: 30px !important; height: 30px !important; }

/* Shared section heading rhythm */
.theme-dark-prestige .section-top {
  align-items: end;
  margin-bottom: clamp(32px, 4.5vw, 62px);
  padding-bottom: 0;
  border: 0;
}
.theme-dark-prestige .section-top > div { display: grid; gap: 8px; }
.theme-dark-prestige .section-top .label {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: none;
}
.theme-dark-prestige .section-top h2 {
  color: var(--text);
  font-family: var(--font-serif);
  font-size: clamp(2.75rem, 4.8vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-transform: none;
}
.theme-dark-prestige .section-link {
  color: #d8c79f;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

/* Featured collection: one decisive product, three compact records */
.theme-dark-prestige .kx-product-collection {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.8fr);
  gap: 14px;
  align-items: stretch;
}
.theme-dark-prestige .kx-product-collection.kx-single { grid-template-columns: 1fr; }
.theme-dark-prestige .kx-product-rail { display: grid; gap: 14px; }
.theme-dark-prestige .product-card {
  overflow: hidden;
  border: 1px solid rgba(243, 240, 232, 0.13);
  border-radius: 12px;
  background: #10120e;
  box-shadow: none;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.theme-dark-prestige .product-card:hover { transform: translateY(-4px); border-color: rgba(214, 184, 117, 0.52); box-shadow: none; }
.theme-dark-prestige .kx-product-lead .product-card { height: 100%; display: grid; grid-template-rows: minmax(420px, 1fr) auto auto; }
.theme-dark-prestige .kx-product-lead .product-card-img { min-height: 420px; aspect-ratio: auto; }
.theme-dark-prestige .kx-product-lead .product-card-name { font-size: clamp(24px, 2.5vw, 38px); }
.theme-dark-prestige .kx-product-lead .product-card-body { padding: 26px 28px 22px; }
.theme-dark-prestige .kx-product-lead .product-card-footer { padding: 18px 28px 24px; }
.theme-dark-prestige .kx-product-rail .product-card {
  display: grid;
  grid-template-columns: minmax(128px, 0.78fr) minmax(0, 1.22fr);
  grid-template-rows: 1fr auto;
  min-height: 190px;
}
.theme-dark-prestige .kx-product-rail .product-card-img { grid-row: 1 / -1; min-height: 190px; aspect-ratio: auto; }
.theme-dark-prestige .kx-product-rail .product-card-body { padding: 22px 20px 8px; }
.theme-dark-prestige .kx-product-rail .product-card-footer { padding: 8px 20px 20px; border-top: 0; }
.theme-dark-prestige .product-card-img { background: #171914; }
.theme-dark-prestige .product-card-img img { filter: saturate(0.7) contrast(1.06) brightness(0.82); transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.theme-dark-prestige .product-card:hover .product-card-img img { transform: scale(1.035); filter: saturate(0.82) contrast(1.04) brightness(0.9); }
.theme-dark-prestige .product-card-body { padding: 20px; }
.theme-dark-prestige .product-card-name { font-size: 20px; font-weight: 500; }
.theme-dark-prestige .product-card-dose { border: 0; border-radius: 999px; background: var(--gold-light); font-size: 9px; }
.theme-dark-prestige .product-card-cat { margin-top: 8px; color: #9e9b92; font-size: 10px; letter-spacing: 0.07em; text-transform: none; }
.theme-dark-prestige .product-card-verified { color: var(--success); font-size: 9px; letter-spacing: 0.05em; text-transform: none; }
.theme-dark-prestige .product-card-footer { background: transparent; }
.theme-dark-prestige .product-card-price { font-family: var(--font-sans); font-size: 16px; font-weight: 650; }
.theme-dark-prestige .product-card-hover-overlay { background: rgba(7, 8, 6, 0.7); }
.theme-dark-prestige .product-card-hover-overlay span { border-radius: 999px; letter-spacing: 0.08em; }
.theme-dark-prestige .kx-catalog-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 220px;
  padding: clamp(30px, 5vw, 66px);
  border: 1px solid rgba(214, 184, 117, 0.3);
  border-radius: 12px;
  background: radial-gradient(circle at 82% 20%, rgba(214, 184, 117, 0.09), transparent 20rem), #0d0f0c;
}
.theme-dark-prestige .kx-catalog-gate h3 { max-width: 22ch; font-size: clamp(28px, 3.4vw, 48px); }
.theme-dark-prestige .kx-catalog-gate p { max-width: 56ch; margin-top: 12px; color: var(--text-muted); }
.theme-dark-prestige .kx-catalog-empty { padding: 44px; border-top: 1px solid var(--border-light); color: var(--text-muted); }

/* Standards: substantial, asymmetric, and non-card-like */
.theme-dark-prestige .research-standards {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 2fr);
  background: #0a0c09;
}
.theme-dark-prestige .research-standards > .container { padding-block: clamp(72px, 8vw, 118px); }
.theme-dark-prestige .research-standards .section-header .overline {
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: none;
}
.theme-dark-prestige .research-standards .section-header h2 { max-width: 8ch; font-size: clamp(3.2rem, 5.3vw, 5.6rem); }
.theme-dark-prestige .standards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.theme-dark-prestige .standard-item {
  min-height: 270px;
  padding: clamp(34px, 4vw, 60px);
  text-align: left;
  border-color: rgba(243, 240, 232, 0.11);
}
.theme-dark-prestige .standard-item:nth-child(2),
.theme-dark-prestige .standard-item:nth-child(3) { background: rgba(255, 255, 255, 0.014); }
.theme-dark-prestige .standard-icon { width: 34px; height: 34px; margin: 0 0 36px; }
.theme-dark-prestige .standard-item h3 { color: #e7e2d8; font-family: var(--font-serif); font-size: 25px; font-weight: 500; letter-spacing: -0.025em; text-transform: none; }
.theme-dark-prestige .standard-item p { max-width: 34ch; color: #aaa79f; font-size: 14px; }

/* Research library editorial rhythm without magazine cosplay */
.theme-dark-prestige .research-library-home { background: #080906; }
.theme-dark-prestige .research-library-home .grid-3 { grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.theme-dark-prestige .blog-card {
  border-radius: 12px;
  border-color: rgba(243, 240, 232, 0.13);
  background: #10120e;
  box-shadow: none;
}
.theme-dark-prestige .blog-card:hover { transform: translateY(-4px); border-color: rgba(214, 184, 117, 0.48); box-shadow: none; }
.theme-dark-prestige .blog-card-cat { color: var(--gold); letter-spacing: 0.04em; text-transform: none; }
.theme-dark-prestige .blog-card-title { font-size: clamp(21px, 2vw, 30px); font-weight: 500; }
.theme-dark-prestige .blog-card-link { letter-spacing: 0; text-transform: none; }

/* Product-code lookup becomes a physical record moment */
.theme-dark-prestige .verify-section { margin-inline: clamp(14px, 3vw, 46px); border: 1px solid rgba(243, 240, 232, 0.13); border-radius: 12px; overflow: hidden; }
.theme-dark-prestige .verify-inner { min-height: 520px; grid-template-columns: 1.08fr 0.92fr; }
.theme-dark-prestige .verify-content { padding: clamp(54px, 7vw, 104px); }
.theme-dark-prestige .verify-content .overline { color: #d8c79f !important; font-size: 12px !important; letter-spacing: 0.03em !important; text-transform: none !important; }
.theme-dark-prestige .verify-content h2 { max-width: 11ch; font-size: clamp(3rem, 5vw, 5.2rem) !important; }
.theme-dark-prestige .verify-content p { max-width: 56ch; color: #b8b4aa; }
.theme-dark-prestige .verify-visual {
  position: relative;
  gap: clamp(26px, 4vw, 52px);
  background:
    radial-gradient(circle at 60% 40%, rgba(214, 184, 117, 0.1), transparent 15rem),
    #0a0c09;
}
.theme-dark-prestige .verify-visual::before {
  content: 'KOREX / PRODUCT RECORD';
  position: absolute;
  top: 28px;
  left: 30px;
  color: #7f7d75;
  font-size: 9px;
  letter-spacing: 0.15em;
}
.theme-dark-prestige .verify-qr { border-radius: 10px; box-shadow: none; transform: rotate(-2deg); }
.theme-dark-prestige .verify-product-preview { transform: translateY(20px); }

/* Facility section */
.theme-dark-prestige .home-about-inner { min-height: 660px; grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr); }
.theme-dark-prestige .home-about-img { position: relative; }
.theme-dark-prestige .home-about-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(7, 8, 6, 0.72)); pointer-events: none; }
.theme-dark-prestige .home-about-img img { filter: grayscale(0.62) saturate(0.58) brightness(0.7) sepia(0.08); transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.theme-dark-prestige .home-about:hover .home-about-img img { transform: scale(1.025); }
.theme-dark-prestige .home-about-content { padding: clamp(54px, 6vw, 94px); }
.theme-dark-prestige .home-about-content .overline { font-size: 12px; letter-spacing: 0.03em; text-transform: none; }
.theme-dark-prestige .home-about-content h2 { max-width: 10ch; font-size: clamp(3.1rem, 5vw, 5.25rem); }

/* Research-use explanation: no nested cards, just a clear typographic rail */
.theme-dark-prestige .kx-research-use { background: #080906; }
.theme-dark-prestige .kx-research-use > .container { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.6fr); gap: clamp(58px, 9vw, 150px); }
.theme-dark-prestige .kx-research-use-intro > p { margin-bottom: 18px; color: var(--gold); font-size: 12px; font-weight: 650; }
.theme-dark-prestige .kx-research-use-intro h2 { max-width: 11ch; font-size: clamp(3rem, 5vw, 5rem); }
.theme-dark-prestige .kx-research-use-points { border-top: 1px solid var(--border-light); }
.theme-dark-prestige .kx-research-use-points article { display: grid; grid-template-columns: minmax(180px, 0.65fr) minmax(0, 1fr); gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--border-light); }
.theme-dark-prestige .kx-research-use-points h3 { font-family: var(--font-sans); font-size: 14px; font-weight: 650; letter-spacing: -0.01em; }
.theme-dark-prestige .kx-research-use-points p { color: #aaa79f; font-size: 14px; line-height: 1.72; }
.theme-dark-prestige .kx-research-use-points a { grid-column: 2; display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12px; font-weight: 650; }

/* Storefront and secondary pages */
.theme-dark-prestige .page-header,
.theme-dark-prestige .about-hero {
  background:
    radial-gradient(circle at 82% 14%, rgba(214, 184, 117, 0.11), transparent 25rem),
    #0a0c09;
}
.theme-dark-prestige .page-header { padding-block: clamp(76px, 8vw, 118px); }
.theme-dark-prestige .page-header h1,
.theme-dark-prestige .about-hero h1 { max-width: 15ch; font-size: clamp(3.4rem, 6.5vw, 6rem); letter-spacing: -0.035em; }
.theme-dark-prestige .page-header .overline { font-size: 12px; letter-spacing: 0.03em; text-transform: none; }
.theme-dark-prestige .storefront-filters {
  top: calc(var(--nav-h) - 8px);
  background: rgba(7, 8, 6, 0.9);
  border-color: var(--border-light);
}
.theme-dark-prestige .filter-row { gap: 6px; }
.theme-dark-prestige .filter-btn,
.theme-dark-prestige .cat-btn { border-radius: 999px; padding: 9px 16px; font-size: 10px; letter-spacing: 0.04em; text-transform: none; }
.theme-dark-prestige .products-section .grid-4 { grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 14px; }
.theme-dark-prestige .products-section .product-card { height: 100%; display: flex; flex-direction: column; }
.theme-dark-prestige .products-section .product-card-footer { margin-top: auto; }
.theme-dark-prestige .about-lab-content,
.theme-dark-prestige .about-mission { background: #0a0c09; }

/* Product detail: gallery-led, calm, and decisively transactional */
.theme-dark-prestige .kx-product-page { padding-top: clamp(38px, 5vw, 72px) !important; padding-bottom: clamp(76px, 8vw, 118px) !important; }
.theme-dark-prestige .kx-product-header { padding-block: clamp(58px, 6vw, 84px) !important; }
.theme-dark-prestige .kx-product-layout {
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr) !important;
  gap: clamp(48px, 7vw, 112px) !important;
}
.theme-dark-prestige .kx-product-gallery > div:first-child {
  overflow: hidden;
  border-color: rgba(243, 240, 232, 0.13) !important;
  border-radius: 12px;
  background: #141611 !important;
}
.theme-dark-prestige .kx-product-gallery > div:first-child img {
  filter: saturate(0.76) contrast(1.06) brightness(0.84);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.theme-dark-prestige .kx-product-gallery > div:first-child:hover img { transform: scale(1.025); filter: saturate(0.86) contrast(1.04) brightness(0.9); }
.theme-dark-prestige .kx-product-info { position: sticky; top: calc(var(--nav-h) + 28px); }
.theme-dark-prestige .kx-product-info > h2 { font-size: clamp(2.8rem, 4.5vw, 4.5rem) !important; line-height: 0.98; }
.theme-dark-prestige .kx-product-info .pce-variant-btn { border-radius: 10px; background: #10120e; color: var(--text); }
.theme-dark-prestige .kx-product-info .pce-variant-btn.active { border-color: var(--gold); background: var(--gold-light); }
.theme-dark-prestige .kx-product-info .pce-qty { overflow: hidden; border-radius: 999px; }
.theme-dark-prestige .kx-product-info .pp-faq { overflow: hidden; border-color: var(--border-light) !important; border-radius: 10px; background: #0d0f0c !important; }
.theme-dark-prestige .kx-product-info .pp-faq summary { background: #10120e !important; color: var(--text) !important; }

/* Cleaner utility surfaces */
.theme-dark-prestige .modal-container,
.theme-dark-prestige .cart-drawer,
.theme-dark-prestige .mobile-menu { background: #0c0e0b; }
.theme-dark-prestige .modal-box,
.theme-dark-prestige .auth-box,
.theme-dark-prestige .account-section,
.theme-dark-prestige .checkout-form-box,
.theme-dark-prestige .checkout-summary,
.theme-dark-prestige .verify-result {
  border-radius: 12px;
  border-color: rgba(243, 240, 232, 0.14);
  background: #10120e;
  box-shadow: none;
}
.theme-dark-prestige .auth-box h2,
.theme-dark-prestige .account-section h3 { font-weight: 500; }

/* A restrained four-part footer */
.theme-dark-prestige .footer {
  padding-top: clamp(76px, 8vw, 118px);
  background: #060705;
}
.theme-dark-prestige .footer-grid { grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(130px, 0.55fr)); gap: clamp(34px, 5vw, 84px); }
.theme-dark-prestige .footer-brand p { max-width: 38ch; color: #9f9c93; font-size: 14px; }
.theme-dark-prestige .footer-col h4 { color: #ded4bc; font-size: 11px; letter-spacing: 0.03em; text-transform: none; }
.theme-dark-prestige .footer-col a { padding: 7px 0; color: #939087; font-size: 13px; }
.theme-dark-prestige .footer-col a:hover { color: var(--text); transform: translateX(4px); }
.theme-dark-prestige .footer-social a { font-size: 12px; font-weight: 650; }

@keyframes kx-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes kx-image-in {
  from { opacity: 0; transform: scale(1.035); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1180px) {
  .theme-dark-prestige .kx-product-collection { grid-template-columns: 1fr; }
  .theme-dark-prestige .kx-product-lead .product-card { grid-template-rows: minmax(380px, 56vw) auto auto; }
  .theme-dark-prestige .kx-product-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-dark-prestige .kx-product-rail .product-card { display: flex; min-height: 0; flex-direction: column; }
  .theme-dark-prestige .kx-product-rail .product-card-img { min-height: 0; aspect-ratio: 1; }
  .theme-dark-prestige .kx-product-rail .product-card-footer { margin-top: auto; }
  .theme-dark-prestige .research-standards { grid-template-columns: 1fr; }
  .theme-dark-prestige .research-standards .section-header h2 { max-width: none; }
  .theme-dark-prestige .research-library-home .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .theme-dark-prestige .home-about-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  body.theme-dark-prestige { --nav-h: 84px; }
  body.theme-dark-prestige:not(.kx-admin-surface) .navbar { top: 10px; }
  .theme-dark-prestige .features-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .theme-dark-prestige .feature-item { min-height: 126px; }
  .theme-dark-prestige .kx-research-use > .container { grid-template-columns: 1fr; gap: 48px; }
  .theme-dark-prestige .footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); gap: 30px; }
  .theme-dark-prestige .kx-product-layout { grid-template-columns: 1fr !important; }
  .theme-dark-prestige .kx-product-info { position: static; }
}

@media (max-width: 768px) {
  body.theme-dark-prestige { --nav-h: calc(78px + env(safe-area-inset-top)); }
  body.theme-dark-prestige:not(.kx-admin-surface) .navbar {
    top: calc(8px + env(safe-area-inset-top));
    left: calc(8px + env(safe-area-inset-left));
    right: calc(8px + env(safe-area-inset-right));
    height: 60px;
    padding-top: 0;
  }
  body.theme-dark-prestige:not(.kx-admin-surface) .nav-inner { height: 58px; padding-inline: 12px; }
  .theme-dark-prestige .nav-hamburger,
  .theme-dark-prestige .nav-icon-btn,
  .theme-dark-prestige .nav-cart-btn { width: 44px; min-width: 44px; height: 44px; }
  .theme-dark-prestige .nav-logo-text { font-size: 10px; letter-spacing: 0.2em; }
  .theme-dark-prestige .section { padding-block: 68px; }
  .theme-dark-prestige .hero { min-height: calc(100svh - var(--nav-h)); }
  .theme-dark-prestige .hero .container,
  .theme-dark-prestige .hero-content { width: 100%; min-width: 0; }
  .theme-dark-prestige .hero-content { padding: 76px 0 48px; }
  .theme-dark-prestige .hero-overline,
  .theme-dark-prestige .hero h1,
  .theme-dark-prestige .hero-subtitle,
  .theme-dark-prestige .hero-actions,
  .theme-dark-prestige .hero-image { animation: none !important; opacity: 1 !important; transform: none !important; }
  .theme-dark-prestige .hero h1 { font-size: clamp(3.2rem, 14vw, 4.5rem); line-height: 0.92; }
  .theme-dark-prestige .hero-title-row { display: block; }
  .theme-dark-prestige .hero-title-row > span { display: block; }
  .theme-dark-prestige .hero-title-accent { padding-left: clamp(18px, 7vw, 38px); }
  .theme-dark-prestige .hero-image { width: 100%; }
  .theme-dark-prestige .hero-image::before {
    width: 100%;
    background: linear-gradient(180deg, rgba(7, 8, 6, 0.24), rgba(7, 8, 6, 0.66) 36%, #070806 90%);
  }
  .theme-dark-prestige .hero-image::after { inset: 16px; }
  .theme-dark-prestige .hero-actions { display: grid; grid-template-columns: 1fr; width: 100%; gap: 10px; }
  .theme-dark-prestige .hero-actions .btn { width: 100%; min-width: 0; min-height: 48px; justify-content: center; text-align: center; white-space: normal; }
  .theme-dark-prestige .features-bar-inner { grid-template-columns: 1fr; }
  .theme-dark-prestige .feature-item { min-height: auto; padding: 25px 8px; }
  .theme-dark-prestige .section-top { align-items: flex-start; gap: 22px; }
  .theme-dark-prestige .section-top h2 { font-size: 3.2rem; }
  .theme-dark-prestige .kx-product-lead .product-card { grid-template-rows: minmax(330px, 100vw) auto auto; }
  .theme-dark-prestige .kx-product-lead .product-card-img { min-height: 330px; }
  .theme-dark-prestige .kx-product-rail { grid-template-columns: 1fr; }
  .theme-dark-prestige .kx-product-rail .product-card { display: grid; grid-template-columns: minmax(120px, 0.75fr) minmax(0, 1.25fr); grid-template-rows: 1fr auto; min-height: 170px; }
  .theme-dark-prestige .kx-product-rail .product-card-img { grid-row: 1 / -1; min-height: 170px; aspect-ratio: auto; }
  .theme-dark-prestige .featured-products { overflow: hidden; background: #080906; }
  .theme-dark-prestige .kx-catalog-gate {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 26px;
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
    overflow: hidden;
  }
  .theme-dark-prestige .kx-catalog-gate > div { width: 100%; min-width: 0; }
  .theme-dark-prestige .kx-catalog-gate h3 { max-width: none; font-size: clamp(26px, 8vw, 36px); line-height: 1.03; }
  .theme-dark-prestige .kx-catalog-gate .btn { width: 100%; min-height: 48px; justify-content: center; text-align: center; }
  .theme-dark-prestige .standards-grid { grid-template-columns: 1fr; }
  .theme-dark-prestige .standard-item { min-height: 0; padding: 38px 24px; }
  .theme-dark-prestige .research-library-home .grid-3 { grid-template-columns: 1fr; }
  .theme-dark-prestige .verify-section { margin-inline: 8px; }
  .theme-dark-prestige .verify-inner { min-height: 0; grid-template-columns: 1fr; }
  .theme-dark-prestige .verify-visual { display: flex; min-height: 300px; border-left: 0; border-top: 1px solid var(--border-light); }
  .theme-dark-prestige .home-about-inner { min-height: 0; grid-template-columns: 1fr; }
  .theme-dark-prestige .home-about-img { height: min(72vw, 430px); }
  .theme-dark-prestige .home-about-img::after { background: linear-gradient(180deg, transparent 50%, rgba(7, 8, 6, 0.7)); }
  .theme-dark-prestige .home-about-content { padding: 48px 20px 64px; }
  .theme-dark-prestige .home-about-content .btn { width: 100%; justify-content: center; text-align: center; }
  .theme-dark-prestige .kx-research-use-points article { grid-template-columns: 1fr; gap: 12px; }
  .theme-dark-prestige .kx-research-use-points a { grid-column: 1; min-height: 44px; }
  .theme-dark-prestige .storefront-filters { top: calc(var(--nav-h) - 4px); }
  .theme-dark-prestige .filter-row { align-items: stretch; }
  .theme-dark-prestige .sort-select { width: 100% !important; margin: 10px 0 0; }
  .theme-dark-prestige .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-dark-prestige .footer-brand { grid-column: 1 / -1; }
  .theme-dark-prestige .footer-social a { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--border-light); border-radius: 999px; }
  .theme-dark-prestige .section-link { min-height: 44px; align-items: center; }
  .theme-dark-prestige .mm-close { width: 44px; height: 44px; }
}

@media (max-width: 768px) and (hover: none) {
  .theme-dark-prestige .btn:hover,
  .theme-dark-prestige .product-card:hover,
  .theme-dark-prestige .blog-card:hover,
  .theme-dark-prestige .nav-cart-btn:hover { transform: none; }
}

@media (max-width: 480px) {
  .theme-dark-prestige .hero h1 { font-size: clamp(2.85rem, 13.5vw, 3.7rem); }
  .theme-dark-prestige .hero-overline { font-size: 10px; }
  .theme-dark-prestige .hero-subtitle { font-size: 15px; }
  .theme-dark-prestige .section-top { display: grid; }
  .theme-dark-prestige .section-top h2 { font-size: 2.75rem; }
  .theme-dark-prestige .kx-catalog-gate { padding: 24px 20px; }
  .theme-dark-prestige .kx-product-lead .product-card { grid-template-rows: minmax(300px, 106vw) auto auto; }
  .theme-dark-prestige .kx-product-rail .product-card { grid-template-columns: 112px minmax(0, 1fr); min-height: 154px; }
  .theme-dark-prestige .kx-product-rail .product-card-img { min-height: 154px; }
  .theme-dark-prestige .kx-product-rail .product-card-name { font-size: 17px; }
  .theme-dark-prestige .verify-visual { gap: 20px; padding: 34px 18px; }
  .theme-dark-prestige .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-dark-prestige .hero-overline,
  .theme-dark-prestige .hero h1,
  .theme-dark-prestige .hero-subtitle,
  .theme-dark-prestige .hero-actions,
  .theme-dark-prestige .hero-image,
  .theme-dark-prestige .hero-assay-card { animation: none !important; }
}
