/* ==========================================================================
   CRM FLAGSHIP DESIGN SYSTEM — ARCHITECTURAL SHARP RIGHT-ANGLE EDITION
   0px Border Radius · Square Proportions · Frameless Studio Imagery & Atlas
   ========================================================================== */

:root {
  /* Core Surfaces */
  --obsidian: #07080c;
  --obsidian-elevated: #10121a;
  --obsidian-card: #141722;
  --alabaster: #f4f5f7;
  --pure-white: #ffffff;

  /* Typography Ink */
  --ink-on-dark: #f5f5f7;
  --muted-on-dark: #9498a4;
  --ink-on-light: #141619;
  --muted-on-light: #5e6470;

  /* Brand & Spectral Accents */
  --crm-crimson: #d92938;
  --crm-crimson-dark: #b31e2b;
  --line-dark: rgba(255, 255, 255, 0.09);
  --line-light: rgba(20, 22, 25, 0.09);

  /* Typography Stacks */
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  /* Layout */
  --max-w: 1400px;
  --max-w-wide: 1540px;
  --header-h: 58px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--alabaster);
  color: var(--ink-on-light);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, p, dl, dd, figure {
  margin: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.skip {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 9999;
  background: var(--crm-crimson);
  color: #fff;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--max-w), calc(100% - 72px));
  margin-inline: auto;
}

.wrap-wide {
  width: min(var(--max-w-wide), calc(100% - 64px));
  margin-inline: auto;
}

/* ==========================================================================
   1. TRANSLUCENT SHARP GLOBAL HEADER & FULL-WIDTH CURTAIN MENU
   ========================================================================== */
.crm-global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(7, 8, 12, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink-on-dark);
}

.crm-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.crm-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.crm-brand-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.crm-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.crm-brand-text strong {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.crm-brand-text span {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted-on-dark);
  text-transform: uppercase;
  margin-top: 2px;
}

.crm-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 32px);
  height: 100%;
}

.crm-nav > a,
.crm-nav-curtain > summary {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.78);
  height: var(--header-h);
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.crm-nav-curtain > summary::-webkit-details-marker {
  display: none;
}

.crm-nav > a:hover,
.crm-nav > a.current,
.crm-nav-curtain:hover > summary,
.crm-nav-curtain[open] > summary,
.crm-nav-curtain.current > summary {
  color: #ffffff;
}

.crm-nav > a.current::after,
.crm-nav-curtain.current > summary::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--crm-crimson);
}

.crm-nav-chevron {
  font-size: 9px;
  margin-left: 5px;
  opacity: 0.65;
}

/* Full-Width Curtain Panel */
.crm-curtain-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: #0b0d14;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 36px 0 42px;
  box-shadow: 0 36px 72px rgba(0, 0, 0, 0.7);
  z-index: 990;
}

.crm-curtain-grid {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 300px;
  gap: 40px;
  align-items: start;
}

.crm-curtain-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crm-crimson);
  margin-bottom: 16px;
}

.crm-curtain-lead {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.crm-curtain-col p {
  font-size: 13px;
  color: var(--muted-on-dark);
  line-height: 1.65;
  margin-bottom: 20px;
}

.crm-curtain-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crm-curtain-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(245, 245, 247, 0.88);
  border-left: 2px solid transparent;
}

.crm-curtain-links a small {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-on-dark);
}

.crm-curtain-links a:hover {
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--crm-crimson);
  color: #ffffff;
}

.crm-curtain-spotlight {
  background: rgba(255, 255, 255, 0.035);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crm-curtain-spotlight img {
  width: 100%;
  height: 130px;
  object-fit: contain;
}

/* Header Right Actions */
.crm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  height: 34px;
  padding: 0 12px;
  width: clamp(180px, 15vw, 240px);
}

.header-search-form:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--crm-crimson);
}

.header-search-form > svg {
  width: 13px;
  height: 13px;
  stroke: var(--muted-on-dark);
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.header-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 12.5px;
  padding: 0 8px;
  width: 100%;
}

.header-search-input::placeholder {
  color: var(--muted-on-dark);
}

.hs-submit {
  display: none;
}

.header-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 360px;
  max-height: 400px;
  overflow-y: auto;
  background: #0d0f17;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);
  padding: 6px;
  z-index: 1010;
}

.header-search-dropdown a.suggestion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: #f5f5f7;
  font-size: 13px;
}

.header-search-dropdown a.suggestion:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-search-dropdown a.suggestion span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--crm-crimson);
}

.crm-selection-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245, 245, 247, 0.9);
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.crm-selection-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cart-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  background: var(--crm-crimson);
  color: #fff;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crm-inquire-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  background: var(--crm-crimson);
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.crm-inquire-btn:hover {
  background: #ffffff;
  color: #07080c !important;
}

.mobile-menu {
  display: none;
  color: #fff;
  font-size: 22px;
}

/* ==========================================================================
   2. TYPOGRAPHY & BUTTONS (SHARP RIGHT-ANGLE ARCHITECTURAL)
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crm-crimson);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--crm-crimson);
  display: inline-block;
  flex-shrink: 0;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.lead-copy {
  font-size: clamp(15.5px, 1.25vw, 18.5px);
  line-height: 1.65;
  color: var(--muted-on-light);
  max-width: 66ch;
}

.stage-dark .lead-copy {
  color: var(--muted-on-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--crm-crimson);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--crm-crimson);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--crm-crimson-dark);
  border-color: var(--crm-crimson-dark);
  color: #ffffff;
}

.btn.secondary {
  background: transparent;
  color: var(--ink-on-light);
  border: 1px solid rgba(20, 22, 25, 0.24);
}

.btn.secondary:hover {
  background: var(--ink-on-light);
  color: #ffffff;
  border-color: var(--ink-on-light);
}

.btn.outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn.outline-light:hover {
  background: #ffffff;
  color: #07080c;
  border-color: #ffffff;
}

.btn.small {
  padding: 9px 18px;
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--crm-crimson);
}

.stage-dark .text-link {
  color: #ff5867;
}

.text-link:hover {
  opacity: 0.8;
}

/* ==========================================================================
   3. FULL-BLEED OBSIDIAN HERO (.periodic-hero) & SPOTLIGHT SEARCH
   ========================================================================== */
.periodic-hero {
  position: relative;
  background-color: var(--obsidian);
  color: var(--ink-on-dark);
  padding: 56px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.periodic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(92, 64, 255, 0.22), transparent 46%),
    radial-gradient(circle at 18% 22%, rgba(217, 41, 56, 0.18), transparent 45%),
    url("../img/banners/en/banner_1_hero_sputtering.png") center top / cover no-repeat;
  opacity: 0.34;
  pointer-events: none;
}

.periodic-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.55) 0%, rgba(7, 8, 12, 0.92) 65%, #07080c 100%);
  pointer-events: none;
}

.periodic-hero-inner {
  position: relative;
  z-index: 2;
}

.periodic-hero-heading {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 40px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.periodic-hero-heading h1 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.periodic-hero-heading .slogan-material {
  font-family: var(--font-display);
  font-size: clamp(44px, 4.6vw, 68px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.02;
  color: #ffffff;
}

.periodic-hero-heading .slogan-rest {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #b4b9c6;
}

.periodic-hero-heading .slogan-stop {
  color: var(--crm-crimson);
}

.hero-utility {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-supply-lead {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(245, 245, 247, 0.76);
}

.hero-search {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
}

.hero-search > div {
  display: flex;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-search > div:focus-within {
  border-color: var(--crm-crimson);
}

.hero-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13.5px;
  padding: 11px 14px;
  min-width: 0;
}

.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.hero-search button {
  background: var(--crm-crimson);
  color: #ffffff;
  padding: 0 22px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s ease;
}

.hero-search button:hover {
  background: var(--crm-crimson-dark);
}

.hero-search > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-on-dark);
}

.hero-search > span a {
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
}

.hero-search > span a:hover {
  background: var(--crm-crimson);
  border-color: var(--crm-crimson);
  color: #ffffff;
}

/* ==========================================================================
   4. SQUARE BORDERLESS PERIODIC ATLAS (方正无外框元素周期表)
   ========================================================================== */
.periodic-panel {
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.periodic-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.table-tip-center {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.table-tip-center span {
  color: var(--crm-crimson);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.legend-btn {
  font-size: 11.5px;
  font-weight: 500;
  padding: 6px 12px;
  color: rgba(245, 245, 247, 0.68);
  background: rgba(255, 255, 255, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.legend-btn:hover,
.legend-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.legend-btn i {
  width: 7px;
  height: 7px;
  display: inline-block;
}
.legend-btn i.alkali-dot { background: #ff6b6b; }
.legend-btn i.alkaline-earth-dot { background: #ffb84d; }
.legend-btn i.transition-dot { background: #4da6ff; }
.legend-btn i.post-transition-dot { background: #38d9a9; }
.legend-btn i.metalloid-dot { background: #69db7c; }
.legend-btn i.nonmetal-dot { background: #a9e34b; }
.legend-btn i.halogen-dot { background: #ffd43b; }
.legend-btn i.noble-gas-dot { background: #ff922b; }
.legend-btn i.lanthanoid-dot { background: #f783ac; }
.legend-btn i.actinoid-dot { background: #e599f7; }

.periodic-scroll {
  overflow-x: auto;
  padding: 4px 0 16px;
}

.periodic-grid {
  display: grid;
  grid-template-columns: repeat(18, minmax(58px, 1fr));
  grid-template-rows: repeat(7, 58px) 16px repeat(2, 58px);
  gap: 3px;
  position: relative;
  min-width: 1100px;
}

/* Square Architectural Element Tile */
.element-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 7px;
  background: rgba(255, 255, 255, 0.042);
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease, opacity 0.2s ease;
}

.element-tile.cat-alkali { border-top-color: rgba(255, 107, 107, 0.55); }
.element-tile.cat-alkaline-earth { border-top-color: rgba(255, 184, 77, 0.55); }
.element-tile.cat-transition { border-top-color: rgba(77, 166, 255, 0.55); }
.element-tile.cat-post-transition { border-top-color: rgba(56, 217, 169, 0.55); }
.element-tile.cat-metalloid { border-top-color: rgba(105, 219, 124, 0.55); }
.element-tile.cat-nonmetal { border-top-color: rgba(169, 227, 75, 0.55); }
.element-tile.cat-halogen { border-top-color: rgba(255, 212, 59, 0.55); }
.element-tile.cat-noble-gas { border-top-color: rgba(255, 146, 43, 0.55); }
.element-tile.cat-lanthanoid { border-top-color: rgba(247, 131, 172, 0.55); }
.element-tile.cat-actinoid { border-top-color: rgba(229, 153, 247, 0.55); }

.element-tile .atomic-no {
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.45);
}

.element-tile b {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: #ffffff;
}

.element-tile .element-cn {
  font-size: 8px;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.52);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.element-tile:hover,
.element-tile:focus-visible,
.element-tile.featured {
  background: rgba(217, 41, 56, 0.22);
  border-top-color: var(--crm-crimson);
  transform: translateY(-2px);
  z-index: 5;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

.element-tile:hover .atomic-no,
.element-tile.featured .atomic-no {
  color: #ff8792;
}

.element-tile.dimmed {
  opacity: 0.14 !important;
}

.series-label,
.period-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.38);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 6px;
}

/* Center Bridge Telemetry HUD */
.table-caption {
  grid-column: 3 / 8;
  grid-row: 1 / 4;
  align-self: center;
  padding: 12px 20px;
  border-left: 2px solid var(--crm-crimson);
  background: rgba(255, 255, 255, 0.025);
}

.table-caption > span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--crm-crimson);
  text-transform: uppercase;
}

.table-caption .caption-element {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1.05;
  margin-top: 4px;
}

.table-caption .caption-element small {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted-on-dark);
  margin-left: 8px;
}

.table-caption p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.periodic-properties {
  grid-column: 8 / 13;
  grid-row: 1 / 4;
  align-self: center;
  padding: 12px 20px;
}

.periodic-properties dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}

.periodic-properties dt {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 3px;
}

.periodic-properties dd {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.periodic-properties dd small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted-on-dark);
}

.periodic-properties > p {
  display: none;
}

/* Bottom Element Inspector Bar */
.periodic-footer-row {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.home-supply-detail {
  font-size: 12.5px;
  color: var(--muted-on-dark);
}

.element-inspector {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.035);
  padding: 14px 20px;
  border-left: 3px solid var(--crm-crimson);
  width: 100%;
  justify-content: space-between;
}

.inspector-symbol {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--crm-crimson);
  min-width: 42px;
}

.element-inspector > div {
  flex: 1;
  min-width: 240px;
}

.element-inspector strong {
  font-size: 14.5px;
  color: #fff;
}

.element-inspector strong span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-on-dark);
  margin-left: 8px;
}

.element-inspector p {
  font-size: 12px;
  color: var(--muted-on-dark);
  margin-top: 2px;
}

.element-inspector a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.09);
}

.element-inspector a:hover {
  background: var(--crm-crimson);
}

/* ==========================================================================
   5. CHAPTER SECTIONS & FRAMELESS SQUARE STUDIO SHOWCASE
   ========================================================================== */
.chapter-section {
  padding: 88px 0;
}

.chapter-section.stage-pure {
  background: var(--pure-white);
}

.chapter-section.stage-alabaster {
  background: var(--alabaster);
}

.chapter-section.stage-dark {
  background: var(--obsidian);
  color: var(--ink-on-dark);
}

.chapter-header,
.section-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* Frameless Architectural Form Showcase */
.studio-forms-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.studio-form-item {
  display: flex;
  flex-direction: column;
  background: var(--pure-white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.studio-form-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.studio-form-visual {
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 55%, #ffffff 0%, #eaedf2 100%);
  overflow: hidden;
  padding: 28px;
}

.studio-form-visual img {
  max-height: 185px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(15, 20, 30, 0.14));
  transition: transform 0.35s ease;
}

.studio-form-item:hover .studio-form-visual img {
  transform: scale(1.05);
}

.studio-form-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-on-light);
  text-transform: uppercase;
}

.studio-form-count {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--crm-crimson);
}

.studio-form-body {
  padding: 22px 24px 26px;
  border-top: 2px solid transparent;
}

.studio-form-item:hover .studio-form-body {
  border-top-color: var(--crm-crimson);
}

.studio-form-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-on-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.studio-form-body h3 span {
  font-size: 15px;
  color: var(--crm-crimson);
}

.studio-form-body p {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-on-light);
}

/* Square Specimen Gallery (.photo-product-grid) */
.photo-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.photo-product {
  display: flex;
  flex-direction: column;
  background: var(--alabaster);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.photo-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

.product-photo {
  background: #e9ecf0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-product:hover .product-photo img {
  transform: scale(1.04);
}

.photo-product > div:last-child {
  padding: 18px 20px 22px;
  background: var(--alabaster);
  border-top: 2px solid transparent;
}

.photo-product:hover > div:last-child {
  border-top-color: var(--crm-crimson);
}

.photo-product > div:last-child > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--crm-crimson);
  font-weight: 600;
}

.photo-product h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 6px;
  color: var(--ink-on-light);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.photo-product h3 b {
  color: var(--crm-crimson);
}

.photo-product p {
  font-size: 12.5px;
  color: var(--muted-on-light);
  margin-top: 4px;
}

.photo-credit {
  margin-top: 28px;
  font-size: 12.5px;
  color: var(--muted-on-light);
}

/* ==========================================================================
   6. FULL-BLEED OBSIDIAN BENTO STAGE & PEDIGREE STATS
   ========================================================================== */
.bento-methodology-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  background: var(--obsidian-card);
  border-top: 2px solid var(--crm-crimson);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }
.bento-span-12 { grid-column: span 12; }

.bento-card.has-bg-image {
  color: #ffffff;
  background-size: cover;
  background-position: center;
}

.bento-card.has-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.42) 0%, rgba(7, 8, 12, 0.92) 100%);
  z-index: 1;
}

.bento-card > * {
  position: relative;
  z-index: 2;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #ffffff;
  margin-top: 6px;
}

.bento-card p {
  font-size: 14px;
  line-height: 1.68;
  color: rgba(245, 245, 247, 0.78);
  margin-top: 12px;
  max-width: 58ch;
}

.metrology-pill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.metrology-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 2px solid var(--crm-crimson);
  color: #ffffff;
}

.pedigree-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 48px 0 0;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.pedigree-stat {
  border-left: 2px solid var(--crm-crimson);
  padding-left: 20px;
}

.pedigree-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #ffffff;
  line-height: 1;
}

.pedigree-stat span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crm-crimson);
  margin-top: 10px;
}

.pedigree-stat p {
  font-size: 13px;
  color: var(--muted-on-dark);
  margin-top: 6px;
  line-height: 1.55;
}

/* Process Strip (3-Column Square Engineering Cards) */
.process-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.process-strip > a {
  background: var(--pure-white);
  padding: 32px 28px;
  border-top: 3px solid var(--ink-on-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.process-strip > a:hover {
  transform: translateY(-4px);
  border-top-color: var(--crm-crimson);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
}

.process-strip > a > span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--crm-crimson);
}

.process-strip h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  margin: 14px 0 10px;
  color: var(--ink-on-light);
}

.process-strip p {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted-on-light);
  flex: 1;
}

.process-strip b {
  align-self: flex-end;
  margin-top: 16px;
  color: var(--crm-crimson);
  font-size: 16px;
}

/* ==========================================================================
   7. INNER PAGES: SUBNAV, COMPANY TITLE, HERITAGE, CAPABILITIES & SECTORS
   ========================================================================== */
.company-subnav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 12.5px;
  font-weight: 500;
}

.company-subnav strong {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--crm-crimson);
  margin-right: 8px;
}

.company-subnav a {
  color: var(--muted-on-light);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.company-subnav a:hover,
.company-subnav a.active {
  color: var(--ink-on-light);
  border-bottom-color: var(--crm-crimson);
  font-weight: 600;
}

.company-title,
.page-heading {
  padding: 56px 0 40px;
}

.company-title h1,
.page-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 3.8vw, 54px);
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: var(--ink-on-light);
}

.company-heading-stop {
  color: var(--crm-crimson);
}

.company-title p,
.page-heading p {
  margin-top: 18px;
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.65;
  color: var(--muted-on-light);
  max-width: 68ch;
}

.capability-feature,
.contact-location {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  background: var(--pure-white);
  padding: 40px;
  margin-bottom: 64px;
  border-top: 3px solid var(--crm-crimson);
}

.capability-feature img,
.contact-location img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.capability-feature h2,
.contact-location h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 8px 0 16px;
}

.capability-feature p,
.contact-location p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted-on-light);
}

.factory-panorama {
  margin-bottom: 56px;
  background: var(--pure-white);
  padding: 16px;
}

.factory-panorama img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.factory-panorama figcaption {
  padding: 14px 8px 4px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-on-light);
}

.company-story {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 24px 0 64px;
  align-items: start;
}

.company-story h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.company-story p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted-on-light);
  margin-bottom: 16px;
  max-width: 72ch;
}

.heritage-band {
  background: var(--obsidian);
  color: var(--ink-on-dark);
  padding: 80px 0;
  margin: 40px 0 0;
}

.heritage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.heritage-grid > div {
  background: rgba(255, 255, 255, 0.035);
  border-top: 2px solid var(--crm-crimson);
  padding: 28px;
}

.heritage-grid b {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin: 4px 0 8px;
}

.heritage-grid h3 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.heritage-grid p {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted-on-dark);
}

/* Sector & Metrology Grid (.industry-grid) */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 72px;
}

.industry-card {
  background: var(--pure-white);
  border-top: 2px solid var(--ink-on-light);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.industry-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--crm-crimson);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.industry-number {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--crm-crimson);
  letter-spacing: 0.08em;
}

.industry-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 14px 0 10px;
  color: var(--ink-on-light);
}

.industry-card p {
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--muted-on-light);
  flex: 1;
}

.industry-card > span:last-child {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-on-light);
}

.industry-card:hover > span:last-child {
  color: var(--crm-crimson);
}

/* Equipment Fleet Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.equipment-grid article {
  background: var(--pure-white);
  border-bottom: 2px solid transparent;
  padding-bottom: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.equipment-grid article:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--crm-crimson);
}

.equipment-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e9ecf0;
}

.equipment-grid article > span {
  display: flex;
  justify-content: space-between;
  padding: 18px 22px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted-on-light);
}

.equipment-grid article > span b {
  color: var(--crm-crimson);
}

.equipment-grid h3 {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 650;
  padding: 10px 22px 0;
}

.equipment-grid p {
  font-size: 13.5px;
  color: var(--muted-on-light);
  padding: 8px 22px 0;
  line-height: 1.6;
}

/* ==========================================================================
   8. CATALOG DIRECTORY & PRODUCT DETAIL
   ========================================================================== */
.catalog-page {
  padding-bottom: 96px;
}

.catalog-search {
  display: flex;
  align-items: stretch;
  background: var(--pure-white);
  border: 1px solid rgba(20, 22, 25, 0.18);
  max-width: 820px;
  margin-bottom: 40px;
}

.catalog-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14.5px;
  padding: 12px 18px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.filters {
  background: var(--pure-white);
  border-top: 3px solid var(--ink-on-light);
  padding: 26px;
  position: sticky;
  top: 78px;
}

.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.filter-heading h2 {
  font-size: 16px;
  font-weight: 650;
}

.filters label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-on-light);
  margin-bottom: 18px;
}

.filters select,
.filters input[type="text"] {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 22, 25, 0.16);
  background: var(--alabaster);
  font-size: 13px;
  outline: none;
}

.filter-custom {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--crm-crimson);
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-light);
  font-size: 13px;
  color: var(--muted-on-light);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pure-white);
  border: 1px solid rgba(20, 22, 25, 0.14);
  padding: 5px 12px;
  font-size: 12px;
  margin: 0 8px 14px 0;
}

.product-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 170px 110px;
  align-items: center;
  gap: 24px;
  background: var(--pure-white);
  border-left: 3px solid transparent;
  padding: 14px 20px;
  margin-bottom: 10px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-row:hover {
  border-left-color: var(--crm-crimson);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.formula-art {
  width: 76px;
  height: 60px;
  background: var(--alabaster);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.formula-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info h2 {
  font-size: 16px;
  font-weight: 600;
}

.product-info p {
  font-size: 12.5px;
  color: var(--muted-on-light);
  margin-top: 4px;
}

.product-spec {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-on-light);
  line-height: 1.5;
}

.product-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  background: var(--alabaster);
  border: 1px solid rgba(20, 22, 25, 0.12);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-on-light);
}

.product-add:hover {
  background: var(--crm-crimson);
  border-color: var(--crm-crimson);
  color: #ffffff;
}

#pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 36px;
}

#pagination a,
#pagination span {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  background: var(--pure-white);
  border: 1px solid rgba(20, 22, 25, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

#pagination a.active {
  background: var(--ink-on-light);
  border-color: var(--ink-on-light);
  color: #ffffff;
}

.empty-state {
  background: var(--pure-white);
  border-top: 3px solid var(--crm-crimson);
  padding: 48px 32px;
  text-align: center;
}

.empty-state h2,
.empty-state h1 {
  font-size: 22px;
  margin-bottom: 10px;
}

.empty-state p {
  color: var(--muted-on-light);
  margin-bottom: 20px;
}

/* Product Detail Page */
.breadcrumbs {
  padding: 26px 0 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted-on-light);
  display: flex;
  gap: 10px;
  align-items: center;
}

.detail-page {
  padding: 20px 0 96px;
}

.detail-top {
  display: grid;
  grid-template-columns: 45% minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.detail-visual {
  background: var(--pure-white);
  border-top: 3px solid var(--crm-crimson);
  padding: 32px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.detail-visual img {
  max-height: 340px;
  width: auto;
  object-fit: contain;
}

.detail-formula {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--crm-crimson);
  margin-bottom: 16px;
}

.visual-note {
  font-size: 11px;
  color: var(--muted-on-light);
  margin-top: 18px;
}

.detail-content h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.english-name {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-on-light);
  margin: 12px 0 20px;
}

.detail-description {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted-on-light);
}

.supply-basis {
  margin: 22px 0;
  padding: 16px 20px;
  background: var(--pure-white);
  border-left: 3px solid var(--crm-crimson);
  font-size: 13px;
}

.supply-basis summary {
  font-weight: 600;
  cursor: pointer;
}

.supply-basis p {
  margin-top: 8px;
  color: var(--muted-on-light);
  font-size: 12.5px;
}

.selector-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-on-light);
  margin: 22px 0 10px;
}

.selector-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.selector-chip {
  padding: 8px 14px;
  background: var(--pure-white);
  border: 1px solid rgba(20, 22, 25, 0.16);
  font-size: 12.5px;
  font-weight: 500;
}

.selector-chip.active,
.selector-chip:hover {
  background: var(--ink-on-light);
  color: #ffffff;
  border-color: var(--ink-on-light);
}

.detail-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.quantity {
  width: 76px;
  padding: 10px 12px;
  border: 1px solid rgba(20, 22, 25, 0.22);
  background: var(--pure-white);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
}

.detail-note {
  font-size: 12px;
  color: var(--muted-on-light);
  margin-top: 14px;
}

.detail-sections {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
}

.detail-sections > section {
  background: var(--pure-white);
  border-top: 2px solid var(--ink-on-light);
  padding: 32px;
}

.detail-sections h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 650;
  margin-bottom: 18px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.data-table th,
.data-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line-light);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted-on-light);
  font-weight: 600;
  width: 34%;
}

.doc-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 14px;
  font-weight: 500;
}

.doc-link span {
  color: var(--crm-crimson);
  font-family: var(--font-mono);
  font-size: 12px;
}

.related-section {
  margin-top: 56px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.related-card {
  background: var(--pure-white);
  border-top: 2px solid transparent;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--crm-crimson);
}

.related-card .formula {
  height: 150px;
  background: var(--alabaster);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-card .formula img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card h3 {
  font-size: 15.5px;
  font-weight: 600;
}

.related-card > span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--crm-crimson);
  font-weight: 600;
}

/* ==========================================================================
   9. ENGINEERING WORKBENCH, QUOTE & CONTACT
   ========================================================================== */
.workbench-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.calc-card {
  background: var(--pure-white);
  border-top: 3px solid var(--crm-crimson);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-card h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 650;
}

.calc-card p {
  font-size: 13.5px;
  color: var(--muted-on-light);
}

.calc-row {
  display: grid;
  grid-template-columns: 110px 120px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.calc-row input {
  padding: 9px 12px;
  border: 1px solid rgba(20, 22, 25, 0.16);
  background: var(--alabaster);
  font-family: var(--font-mono);
  font-size: 13px;
}

.calc-output {
  background: var(--obsidian);
  color: #ffffff;
  border-left: 3px solid var(--crm-crimson);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.calc-output strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--crm-crimson);
  margin-top: 2px;
}

.quote-contact-summary {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--pure-white);
  border-left: 3px solid var(--crm-crimson);
  padding: 18px 24px;
  margin-bottom: 36px;
  font-size: 13px;
}

.quote-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  padding-bottom: 88px;
}

.quote-item {
  background: var(--pure-white);
  border-left: 3px solid var(--crm-crimson);
  padding: 18px 20px;
  margin-bottom: 12px;
}

.quote-form {
  background: var(--pure-white);
  border-top: 3px solid var(--ink-on-light);
  padding: 36px;
}

.quote-form h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 650;
  margin-bottom: 18px;
}

.quote-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted-on-light);
  margin-top: 16px;
}

.quote-form input,
.quote-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid rgba(20, 22, 25, 0.18);
  background: var(--alabaster);
  font-size: 14px;
  outline: none;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--crm-crimson);
  background: #ffffff;
}

.notice {
  padding: 14px 18px;
  background: var(--alabaster);
  border-left: 3px solid var(--crm-crimson);
  font-size: 13px;
}

.contact-editorial {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  padding: 16px 0 72px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--crm-crimson);
  margin: 10px 0 18px;
}

.contact-editorial p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted-on-light);
  margin-bottom: 24px;
}

.contact-editorial dl > div {
  padding: 16px 0;
  border-top: 1px solid var(--line-light);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
}

.contact-editorial dt {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-on-light);
}

/* Closing Flagship Banner */
.closing-cta {
  background: var(--obsidian);
  color: #ffffff;
  border-top: 3px solid var(--crm-crimson);
  padding: 56px;
  margin-top: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing-cta > span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--crm-crimson);
}

.closing-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 14px 0 24px;
  line-height: 1.18;
}

.closing-cta .cta-sub {
  color: var(--muted-on-dark);
  font-weight: 400;
  margin-left: 10px;
}

.home-custom-note {
  font-size: 14px;
  color: var(--muted-on-dark);
  margin: 10px auto 18px;
}

/* ==========================================================================
   10. GLOBAL FOOTER
   ========================================================================== */
footer {
  background: var(--obsidian);
  color: var(--muted-on-dark);
  padding: 68px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.footer-grid p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
}

.footer-grid .micro {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--crm-crimson);
}

.footer-grid h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-grid > div > a:not(.footer-brand) {
  display: block;
  font-size: 13px;
  color: var(--muted-on-dark);
  padding: 5px 0;
}

.footer-grid > div > a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1150px) {
  .wrap, .wrap-wide { width: calc(100% - 48px); }
  .periodic-hero-heading { grid-template-columns: 1fr; gap: 28px; }
  .studio-forms-showcase, .photo-product-grid, .industry-grid, .heritage-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-span-7, .bento-span-5, .bento-span-6, .bento-span-4 { grid-column: span 12; }
  .pedigree-stat-strip { grid-template-columns: repeat(2, 1fr); }
  .crm-curtain-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .wrap, .wrap-wide { width: calc(100% - 32px); }
  .mobile-menu { display: inline-flex; }
  .crm-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #07080c;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 28px;
    height: auto;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }
  .crm-nav.open { display: flex; }
  .crm-nav > a, .crm-nav-curtain > summary {
    height: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .crm-curtain-panel { position: static; padding: 14px 0; box-shadow: none; }
  .crm-curtain-grid, .studio-forms-showcase, .photo-product-grid, .industry-grid, .equipment-grid,
  .workbench-grid, .catalog-layout, .detail-top, .detail-sections, .quote-layout, .contact-editorial,
  .capability-feature, .contact-location, .company-story, .heritage-grid, .process-strip, .footer-grid {
    grid-template-columns: 1fr;
  }
  .product-row { grid-template-columns: 60px 1fr auto; }
  .product-spec { display: none; }
}
