/* SAARSflow 2026 — Precision premium system
   Research synthesis: SAARSflow strategy report + modern machinery presentation.
   Loaded last so the visual language can evolve without changing functional CSS. */

:root {
  --deep: #031118;
  --navy: #071e29;
  --card: #0b2a37;
  --line: #235365;
  --ivory: #f7f1e5;
  --ivory-dim: #c2d0d5;
  --ivory-faint: #91a7b0;
  --brass: #d3a64e;
  --brass-lit: #efd08a;
  --cyan: #32d2df;
  --paper: #ecebe5;
  --paper-card: #f8f7f2;
  --ink: #071b22;
  --container: 1240px;
  --radius-card: 18px;
}

html { background: var(--deep); }
body {
  background: var(--deep);
  color: var(--ivory);
  font-size: 17px;
  line-height: 1.66;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.035em; }
p { color: var(--ivory-dim); }
.container { max-width: var(--container); }
.eyebrow { color: var(--brass-lit); font-size: 11px; letter-spacing: .15em; }
.eyebrow::before { width: 28px; background: currentColor; opacity: .85; }

/* Floating control bar — precise, quiet and always readable. */
.site-nav {
  top: 14px;
  right: 16px;
  left: 16px;
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
  border: 1px solid rgba(247,241,229,.14);
  border-radius: 18px;
  background: rgba(3,17,24,.72);
  box-shadow: 0 20px 60px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.045);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}
.site-nav.is-compact {
  top: 10px;
  background: rgba(3,17,24,.9);
  border-color: rgba(50,210,223,.18);
  box-shadow: 0 18px 50px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}
.site-nav .container { max-width: none; padding: 13px 16px 13px 18px; }
.site-nav.is-compact .container { padding-block: 10px; }
.logo { font-size: 19px; letter-spacing: -.035em; }
.logo svg { width: 27px; height: 27px; }
.nav-links.nav-pill { padding: 8px 22px; gap: clamp(20px,2.8vw,42px); background: rgba(255,255,255,.025); border-color: rgba(194,208,213,.14); }
.nav-links a { position: relative; color: #bdccd1; font-size: 12px; letter-spacing: .025em; }
.nav-links a::after { content:""; position:absolute; right:0; bottom:-5px; left:0; height:1px; background:var(--cyan); transform:scaleX(0); transition:transform .25s var(--ease); }
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { gap: 14px; }
.site-nav .btn--primary { padding: 11px 19px; font-size: 13px; box-shadow: 0 10px 28px rgba(211,166,78,.2); }

/* Hero: large promise, readable supporting information, useful proof. */
.hero-construx { min-height: 760px; }
.hero-bg, .hero-fg { background-position: center 42%; filter: saturate(.64) contrast(1.12) brightness(.92); }
.hero-grade { background: linear-gradient(132deg, rgba(239,208,138,.29), rgba(211,166,78,.055) 36%, rgba(3,17,24,.18) 68%, rgba(3,17,24,.72)); }
.hero-image-overlay {
  background:
    linear-gradient(90deg, rgba(3,17,24,.86) 0%, rgba(3,17,24,.62) 35%, rgba(3,17,24,.13) 68%, rgba(3,17,24,.3) 100%),
    linear-gradient(180deg, rgba(3,17,24,.26) 0%, rgba(3,17,24,.02) 28%, rgba(3,17,24,.42) 72%, rgba(3,17,24,.96) 100%);
}
.hero-wordmark-layer { top: 20%; text-align: right; }
.hero-wordmark { padding-right: 3vw; font-size: clamp(6rem,15vw,13rem); letter-spacing: -.07em; color: #fff9ed; mix-blend-mode: soft-light; }
.hero-loaded .hero-wordmark { opacity: .7; }
.hero-headline-parallax {
  right: auto;
  bottom: clamp(34px,6vh,68px);
  left: max(36px, calc((100vw - var(--container))/2 + 64px));
  width: min(790px, calc(100% - 120px));
  margin: 0;
}
.hero-headline { text-align: left; }
.hero-kicker { display:flex; align-items:center; gap:11px; margin-bottom:18px; color:#cfe4e8; font-size:10px; letter-spacing:.15em; text-transform:uppercase; }
.hero-kicker span { width:7px; height:7px; border-radius:50%; background:var(--cyan); box-shadow:0 0 0 6px rgba(50,210,223,.09),0 0 22px rgba(50,210,223,.6); }
.hero-headline-text { max-width: 760px; font-size: clamp(3.25rem,5.7vw,5.35rem); line-height: .96; letter-spacing: -.065em; text-shadow: 0 6px 28px rgba(0,0,0,.5); }
.hero-headline-text span,.hero-headline-text em { display:block; }
.hero-headline-text em { margin-top:8px; font-size: .92em; line-height:1.02; }
.hero-summary { max-width: 650px; margin-top: 20px; color: #d5e0e3; font-size: clamp(.98rem,1.35vw,1.12rem); line-height:1.65; text-shadow:0 3px 18px rgba(0,0,0,.65); }
.hero-headline-ctas { justify-content:flex-start; margin-top:26px; }
.hero-headline-ctas .btn { min-height:51px; padding-inline:25px; }
.hero-headline-cta--quiet { border-color:rgba(194,208,213,.36); background:rgba(3,17,24,.18); color:var(--ivory); backdrop-filter:blur(8px); }
.hero-proof { display:flex; width:min(650px,100%); margin-top:25px; padding-top:18px; border-top:1px solid rgba(194,208,213,.25); }
.hero-proof > div { min-width:0; padding-right:clamp(20px,4vw,48px); }
.hero-proof > div + div { padding-left:clamp(20px,4vw,48px); border-left:1px solid rgba(194,208,213,.22); }
.hero-proof dt { color:var(--ivory); font-family:var(--font-display); font-size:clamp(1.25rem,2vw,1.65rem); font-weight:600; line-height:1; }
.hero-proof dd { margin-top:7px; color:#b8c9ce; font-family:var(--font-mono); font-size:9px; letter-spacing:.1em; text-transform:uppercase; white-space:nowrap; }
.hero-meta { display:none; }

/* Common section hierarchy. */
.facilities-section,.process-section,#why,#reference,#faq,.rfqa-inline-section { padding-block: clamp(92px,10vw,148px); }
.source-section { padding-block: clamp(105px,11vw,160px); }
.facilities-intro h2,
.source-section .section-head h2,
.process-section .section-head h2,
#why .section-head h2,
#reference .section-head h2,
#faq .section-head h2 { font-size:clamp(3.2rem,6.6vw,6.3rem); line-height:.93; letter-spacing:-.075em; }
.facilities-intro > p,.section-head > p { color:var(--ivory-dim); font-size:clamp(1rem,1.25vw,1.12rem); line-height:1.75; }

/* Client facilities: stronger cards, less haze. */
.facilities-section { background-color:#061b25; background-image:linear-gradient(rgba(50,210,223,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(50,210,223,.055) 1px,transparent 1px),radial-gradient(circle at 84% 7%,rgba(50,210,223,.085),transparent 29%); background-size:72px 72px,72px 72px,auto; }
.facilities-section::before { color:rgba(247,241,229,.035); font-size:clamp(5rem,11.5vw,11.5rem); }
.facilities-intro { margin-bottom:clamp(52px,7vw,88px); }
.facilities-intro h2 { color:#fbf5ea; }
.facilities-intro h2 em { color:var(--brass-lit); }
.facilities-grid { border-color:rgba(194,208,213,.24); }
.facility-card { min-height:245px; padding:32px; border-color:rgba(194,208,213,.2); background:linear-gradient(145deg,rgba(14,52,67,.76),rgba(5,24,33,.82)); }
.facility-card:hover { transform:translateY(-6px); background:linear-gradient(145deg,rgba(19,69,84,.82),rgba(6,29,39,.9)); }
.facility-card h3 { color:#fff9ed; font-size:clamp(1.25rem,1.7vw,1.6rem); }
.facility-card p { color:#bed0d5; font-size:.95rem; line-height:1.68; }
.facilities-action { margin-top:34px; padding:22px 24px; border:1px solid rgba(194,208,213,.17); background:rgba(4,18,26,.34); }

/* Product systems: a deliberate light interruption for maximum visibility. */
.source-section { color:var(--ink); background-color:var(--paper); background-image:linear-gradient(rgba(7,27,34,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(7,27,34,.055) 1px,transparent 1px),radial-gradient(circle at 50% 48%,rgba(50,210,223,.12),transparent 34%); background-size:72px 72px,72px 72px,auto; }
.source-section::before { color:rgba(7,27,34,.035); }
.source-section .section-head h2 { color:var(--ink); max-width:780px; }
.source-section .section-head p { color:#40565d; }
.source-section .eyebrow { color:#8b641d; }
.source-glow { opacity:.3!important; filter:saturate(.55); }
#source-arc-path { stroke:#8b641d; opacity:.5; }
.source-arc { gap:clamp(18px,3.4vw,56px); }
.showcase-card { border-color:rgba(7,27,34,.16); border-radius:14px; background:var(--paper-card); box-shadow:0 20px 45px rgba(12,35,42,.12),inset 0 1px 0 #fff; }
.showcase-card::before { border-top-color:rgba(7,27,34,.12); border-left-color:rgba(7,27,34,.08); }
.source-card--centre .showcase-card { border-color:rgba(139,100,29,.42); box-shadow:0 28px 70px rgba(7,27,34,.18),0 0 0 5px rgba(211,166,78,.07); }
.showcase-media { background:#f4f3ed; }
.showcase-media::before { background:linear-gradient(to bottom,rgba(255,255,255,.25),transparent 32%); }
.showcase-media img { filter:saturate(.76) contrast(1.08); }
.showcase-body { min-height:112px; padding:19px 20px 20px; background:var(--ink); }
.showcase-label { color:#82d6dc; }
.showcase-name { color:#fff9ed; font-size:clamp(1.2rem,1.7vw,1.55rem); }
.showcase-standards { color:var(--brass-lit); border-top-color:rgba(194,208,213,.18); }
.showcase-card:hover,.showcase-card:focus-visible { border-color:#7b591b; box-shadow:0 35px 72px -20px rgba(7,27,34,.5); }

/* Sourcing process: high-contrast command centre. */
.process-section { background-color:#031118; background-image:radial-gradient(circle at 50% 52%,rgba(50,210,223,.075),transparent 30%),linear-gradient(rgba(35,83,101,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(35,83,101,.055) 1px,transparent 1px); background-size:auto,72px 72px,72px 72px; }
.process-centre { background:radial-gradient(circle at 35% 28%,#13495c,#031118 74%); }
.process-node:not(.is-active) { opacity:.72; filter:saturate(.75); }
.process-panel { border-color:rgba(194,208,213,.25); background:rgba(7,30,41,.96); }

/* Trust and engineering data: distinct raised surfaces. */
#why { background-color:#061b25; }
#why .why-col { min-height:330px; padding:34px; border-color:rgba(194,208,213,.22); background:linear-gradient(145deg,rgba(14,52,67,.76),rgba(5,23,32,.78)); }
#why .why-col::before { width:36px; background:linear-gradient(90deg,var(--brass),var(--cyan)); }
#why .why-col h3 { color:#fff9ed; font-size:1.45rem; }
#why .why-col p { color:#bfd0d5; font-size:.96rem; }
#reference { background-color:#04151e; }
#reference .table-scroll { border:1px solid rgba(194,208,213,.25); box-shadow:0 28px 80px rgba(0,0,0,.18); }
.pressure-table caption { background:#092a37; color:var(--brass-lit); }
.pressure-table thead th { background:#0b3140; color:#f1d18c; }
.pressure-table th,.pressure-table td { border-color:rgba(194,208,213,.13); }
.pressure-table td { color:#c1d0d5; }

/* FAQ and RFQ: utility must be as polished as the marketing layer. */
#faq { background-color:#061923; }
#faq .accordion-item { border-color:rgba(194,208,213,.22); background:linear-gradient(145deg,rgba(13,48,62,.78),rgba(5,24,33,.86)); }
#faq .accordion-trigger { color:#f7f1e5; font-size:1.04rem; }
#faq .accordion-panel p { color:#bfd0d5; }
.rfqa-inline-section { background-color:#031118; background-image:linear-gradient(rgba(50,210,223,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(50,210,223,.06) 1px,transparent 1px),radial-gradient(circle at 80% 6%,rgba(50,210,223,.1),transparent 30%); background-size:64px 64px,64px 64px,auto; }
#rfqa-inline-mount .rfqa-title-group h2 { color:#fff9ed; font-size:clamp(3rem,6.5vw,6rem); }
#rfqa-inline-mount .rfqa-title-group p { color:#c2d0d5; font-size:1.05rem; }
#rfqa-inline-mount .rfqa-sector-section,
#rfqa-inline-mount .rfqa-upload-section,
#rfqa-inline-mount .rfqa-manual-section,
#rfqa-inline-mount .rfqa-table-preview,
#rfqa-inline-mount .rfqa-contact-row,
#rfqa-inline-mount .rfqa-send-row { border-color:rgba(194,208,213,.22); background:linear-gradient(145deg,rgba(13,48,62,.88),rgba(5,23,32,.94)); box-shadow:0 24px 70px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.035); }
#rfqa-inline-mount .rfqa-sector-tab { color:#d1dfe2; border-color:rgba(194,208,213,.25); background:#061d27; }
#rfqa-inline-mount .rfqa-sector-tab.is-active { background:var(--brass); border-color:var(--brass-lit); color:var(--deep); }
#rfqa-inline-mount .rfqa-file-label,
#rfqa-inline-mount .rfqa-btn--add { background:var(--cyan); border-color:var(--cyan); color:var(--deep); }
#rfqa-inline-mount .rfqa-btn--send { background:var(--brass); border-color:var(--brass-lit); color:var(--deep); }

.site-footer { border-top:1px solid rgba(194,208,213,.15); background-color:#020b10; }
.wa-float { background:var(--brass); color:var(--deep); box-shadow:0 16px 40px rgba(211,166,78,.28); }

/* The video becomes a deliberate HUD capsule on both dark and light sections. */
.robot-assistant::before {
  inset: 4% -8% 1%;
  border: 1px solid rgba(50,210,223,.24);
  border-radius: 34px;
  background: radial-gradient(circle at 50% 45%, #123b48 0%, #061923 62%, #031118 100%);
  box-shadow: 0 18px 42px rgba(0,0,0,.28), 0 0 25px rgba(50,210,223,.14), inset 0 1px 0 rgba(255,255,255,.05);
  filter: none;
  opacity: .98;
}
.robot-video { mix-blend-mode:normal; opacity:.95; filter:saturate(.78) hue-rotate(158deg) contrast(1.14) brightness(1.02) drop-shadow(0 0 7px rgba(50,210,223,.3)); }
.robot-assistant.is-rfq-obscured { opacity:0; visibility:hidden; pointer-events:none; transform:translate3d(140px,8px,0); }

@media (max-width: 1100px) {
  .site-nav .container { grid-template-columns:auto 1fr auto; }
  .nav-links.nav-pill { gap:20px; padding-inline:18px; }
  .nav-right { gap:8px; }
  .lang-switch { display:none; }
}

@media (max-width: 900px) {
  body { font-size:16px; }
  .site-nav { top:8px; width:calc(100% - 16px); border-radius:15px; }
  .site-nav .container { padding:10px 12px; }
  .site-nav .btn--primary { display:none; }
  .hero-construx { min-height:720px; }
  .hero-wordmark-layer { top:17%; }
  .hero-headline-parallax { left:24px; bottom:34px; width:calc(100% - 48px); }
  .hero-headline-text { font-size:clamp(2.8rem,9.5vw,4.6rem); }
  .hero-summary { max-width:560px; }
  .hero-proof { width:100%; }
  .facilities-intro h2,.source-section .section-head h2,.process-section .section-head h2,#why .section-head h2,#reference .section-head h2,#faq .section-head h2 { font-size:clamp(2.75rem,10vw,4.8rem); }
}

@media (max-width: 640px) {
  .container { padding-inline:20px; }
  .logo { font-size:17px; }
  .hero-construx { min-height:760px; }
  .hero-bg,.hero-fg { background-position:58% 42%; }
  .hero-image-overlay { background:linear-gradient(90deg,rgba(3,17,24,.78),rgba(3,17,24,.2)),linear-gradient(180deg,rgba(3,17,24,.25),rgba(3,17,24,.12) 36%,rgba(3,17,24,.96) 82%); }
  .hero-wordmark { padding-right:0; font-size:clamp(4rem,22vw,7.5rem); }
  .hero-headline-parallax { right:20px; bottom:24px; left:20px; width:auto; }
  .hero-kicker { margin-bottom:13px; font-size:8px; letter-spacing:.12em; }
  .hero-headline-text { font-size:clamp(2.55rem,13vw,4rem); line-height:.98; }
  .hero-headline-text em { margin-top:4px; }
  .hero-summary { margin-top:15px; font-size:.96rem; line-height:1.55; }
  .hero-headline-ctas { display:grid; grid-template-columns:1fr; gap:10px; margin-top:18px; }
  .hero-headline-ctas .btn { min-height:48px; justify-content:center; }
  .hero-proof { margin-top:18px; padding-top:15px; }
  .hero-proof > div { flex:1; padding-right:10px; }
  .hero-proof > div + div { padding-left:10px; }
  .hero-proof dt { font-size:1.15rem; }
  .hero-proof dd { font-size:7px; white-space:normal; line-height:1.35; }
  .facilities-section,.source-section,.process-section,#why,#reference,#faq,.rfqa-inline-section { padding-block:78px; }
  .facility-card { min-height:208px; padding:26px; }
  .facilities-action { padding:18px; }
  .source-section .section-head { margin-bottom:48px; }
  .showcase-card { display:grid; grid-template-columns:120px 1fr; min-height:150px; }
  .showcase-media { aspect-ratio:auto; height:100%; }
  .showcase-body { min-height:150px; justify-content:center; }
  #why .why-col { min-height:auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-headline,.hero-bg,.hero-fg,.hero-wordmark { opacity:1; transform:none; }
  .facility-signal { animation:none; }
}

/* ================================================================
   DAY / DARK MODE
   Light is the welcoming default. The cinematic hero, process and RFQ
   remain dark in both modes so the industrial identity never disappears.
   ================================================================ */

body,
.site-nav,
.nav-drawer,
.facilities-section,
.source-section,
#why,
#reference,
#faq,
.facility-card,
#why .why-col,
#faq .accordion-item,
.facilities-action,
.table-scroll { transition:background-color .38s var(--ease),background .38s var(--ease),border-color .38s var(--ease),color .25s var(--ease),box-shadow .38s var(--ease); }

/* Compact mechanical toggle: text confirms the current state. */
.theme-toggle {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:34px;
  padding:4px 7px 4px 6px;
  border:1px solid rgba(194,208,213,.2);
  border-radius:999px;
  background:rgba(255,255,255,.025);
  color:var(--ivory-dim);
  cursor:pointer;
  transition:border-color .25s var(--ease),background .25s var(--ease),color .25s var(--ease);
}
.theme-toggle:hover { border-color:rgba(239,208,138,.55); color:var(--ivory); }
.theme-toggle-track { position:relative; display:block; width:37px; height:20px; border-radius:20px; background:#d8d7d0; box-shadow:inset 0 1px 3px rgba(0,0,0,.22); }
.theme-toggle-track::before,.theme-toggle-track::after { position:absolute; top:50%; z-index:1; transform:translateY(-53%); font-size:10px; line-height:1; }
.theme-toggle-track::before { content:"☼"; left:4px; color:#8c6216; }
.theme-toggle-track::after { content:"◐"; right:4px; color:#b9d8df; }
.theme-toggle-track i { position:absolute; top:2px; left:2px; z-index:2; width:16px; height:16px; border-radius:50%; background:#fffaf0; box-shadow:0 2px 5px rgba(0,0,0,.28); transition:transform .3s var(--ease),background .3s var(--ease); }
html[data-theme="dark"] .theme-toggle-track { background:#0a303d; }
html[data-theme="dark"] .theme-toggle-track i { transform:translateX(17px); background:#34d6e1; }
.theme-toggle-label { min-width:29px; color:inherit; font-size:8px; letter-spacing:.1em; }
.theme-toggle--drawer { align-self:flex-start; padding-right:12px; }

/* Custom SAARSflow industrial wordmark. */
.logo { gap:11px; min-width:max-content; line-height:1; }
.logo-mark { flex:0 0 38px; overflow:visible; filter:drop-shadow(0 8px 16px rgba(0,0,0,.18)); }
.logo-mark-shell { fill:rgba(255,255,255,.035); stroke:currentColor; stroke-width:1; opacity:.9; }
.logo-mark-left { fill:rgba(50,210,223,.14); stroke:var(--cyan); stroke-width:1.25; stroke-linejoin:round; }
.logo-mark-right { fill:rgba(211,166,78,.16); stroke:var(--brass-lit); stroke-width:1.25; stroke-linejoin:round; }
.logo-mark-core { fill:var(--ivory); stroke:var(--deep); stroke-width:1.2; }
.logo-mark-flow { fill:none; stroke:currentColor; stroke-width:1.25; stroke-linecap:round; opacity:.78; }
.logo-wordmark { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.logo-wordmark > span { display:flex; align-items:baseline; letter-spacing:-.055em; }
.logo-wordmark strong { color:var(--ivory); font-family:var(--font-display); font-size:18px; font-weight:700; }
.logo-wordmark i { color:var(--brass-lit); font-family:var(--font-display); font-size:18px; font-style:normal; font-weight:400; }
.logo-wordmark small { color:var(--ivory-faint); font-family:var(--font-mono); font-size:6.7px; font-weight:400; line-height:1; letter-spacing:.16em; text-transform:uppercase; }
.logo:hover .logo-mark-left { fill:rgba(50,210,223,.28); }
.logo:hover .logo-mark-right { fill:rgba(211,166,78,.3); }
.logo:hover .logo-wordmark i { color:#f5d99e; }
.logo-mark-left,.logo-mark-right,.logo-wordmark i { transition:fill .25s var(--ease),color .25s var(--ease); }
.site-footer .logo-mark { width:42px; height:42px; }

/* The brand watermark stays atmospheric and never competes with the H1. */
.hero-wordmark-layer { top:11%; text-align:center; }
.hero-wordmark {
  padding-right:0;
  font-size:clamp(5.5rem,13.5vw,11.5rem);
  letter-spacing:-.075em;
  color:transparent;
  background:linear-gradient(90deg,rgba(255,249,237,.72) 0 50%,rgba(239,208,138,.66) 64%,rgba(50,210,223,.34) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-stroke:1px rgba(255,249,237,.18);
  text-shadow:0 18px 55px rgba(3,17,24,.3);
  mix-blend-mode:normal;
}
.hero-loaded .hero-wordmark { opacity:.38; }

html[data-theme="light"] body { background:var(--paper); }

/* A light floating nav appears after leaving the cinematic hero. */
html[data-theme="light"] .site-nav.is-compact {
  --ivory:#071b22;
  --ivory-dim:#52676e;
  --ivory-faint:#6d8187;
  background:rgba(247,246,240,.91);
  border-color:rgba(7,27,34,.15);
  box-shadow:0 18px 50px rgba(7,27,34,.14),inset 0 1px 0 #fff;
}
html[data-theme="light"] .site-nav.is-compact .nav-links.nav-pill { background:rgba(7,27,34,.025); border-color:rgba(7,27,34,.13); }
html[data-theme="light"] .site-nav.is-compact .nav-links a { color:#435960; }
html[data-theme="light"] .site-nav.is-compact .nav-links a:hover { color:#071b22; }
html[data-theme="light"] .site-nav.is-compact .lang-switch button { color:#5f7379; }
html[data-theme="light"] .site-nav.is-compact .lang-switch button[aria-pressed="true"] { color:#7e5918; border-color:rgba(126,89,24,.28); }
html[data-theme="light"] .site-nav.is-compact .theme-toggle { color:#42585f; border-color:rgba(7,27,34,.15); background:rgba(255,255,255,.45); }
html[data-theme="light"] .site-nav.is-compact .logo-mark-shell { fill:rgba(7,27,34,.025); }
html[data-theme="light"] .site-nav.is-compact .logo-mark-core { fill:#071b22; stroke:#f5f3ec; }
html[data-theme="light"] .site-nav.is-compact .logo-wordmark strong { color:#071b22; }
html[data-theme="light"] .site-nav.is-compact .logo-wordmark i { color:#946817; }
html[data-theme="light"] .site-nav.is-compact .logo-wordmark small { color:#687c82; }

/* Day facilities — client benefits read like an engineering workspace. */
html[data-theme="light"] .facilities-section {
  color:var(--ink);
  border-color:rgba(7,27,34,.13);
  background-color:#e8e8e2;
  background-image:linear-gradient(rgba(7,27,34,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(7,27,34,.06) 1px,transparent 1px),radial-gradient(circle at 84% 7%,rgba(50,210,223,.12),transparent 30%);
}
html[data-theme="light"] .facilities-section::before { color:rgba(7,27,34,.035); }
html[data-theme="light"] .facilities-section .eyebrow { color:#805b1b; }
html[data-theme="light"] .facilities-intro h2 { color:var(--ink); }
html[data-theme="light"] .facilities-intro h2 em { color:#9b6b18; background:none; -webkit-text-fill-color:currentColor; }
html[data-theme="light"] .facilities-intro > p { color:#42585f; }
html[data-theme="light"] .facilities-grid { border-color:rgba(7,27,34,.15); }
html[data-theme="light"] .facility-card {
  border-color:rgba(7,27,34,.14);
  background:linear-gradient(145deg,rgba(255,255,255,.74),rgba(239,239,233,.88));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
html[data-theme="light"] .facility-card:hover { background:#f8f7f2; border-color:rgba(8,142,155,.45); box-shadow:0 25px 55px rgba(7,27,34,.12); }
html[data-theme="light"] .facility-card h3 { color:var(--ink); }
html[data-theme="light"] .facility-card p { color:#4a6067; }
html[data-theme="light"] .facility-index { color:#8e651b; }
html[data-theme="light"] .facilities-action { border-color:rgba(7,27,34,.14); background:rgba(255,255,255,.5); }
html[data-theme="light"] .facilities-action > span { color:#53686f; }

/* Product systems is light in both modes; in day mode it connects seamlessly. */
html[data-theme="light"] .source-section { border-top:1px solid rgba(7,27,34,.08); border-bottom:1px solid rgba(7,27,34,.1); }

/* Trust switches to editorial light cards; honest copy gains prominence. */
html[data-theme="light"] #why {
  color:var(--ink);
  background-color:#e8e8e2;
  background-image:linear-gradient(rgba(7,27,34,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(7,27,34,.055) 1px,transparent 1px),radial-gradient(circle at 10% 12%,rgba(211,166,78,.12),transparent 27%);
}
html[data-theme="light"] #why::before { color:rgba(7,27,34,.035); }
html[data-theme="light"] #why .eyebrow { color:#805b1b; }
html[data-theme="light"] #why .section-head h2 { color:var(--ink); }
html[data-theme="light"] #why .why-grid { border-color:rgba(7,27,34,.15); }
html[data-theme="light"] #why .why-col { border-color:rgba(7,27,34,.14); background:rgba(250,249,244,.72); box-shadow:inset 0 1px 0 #fff; }
html[data-theme="light"] #why .why-col h3 { color:var(--ink); }
html[data-theme="light"] #why .why-col p { color:#4a6067; }
html[data-theme="light"] #why .why-col::after { color:rgba(7,27,34,.045); }

/* Reference becomes a bright, printable technical console. */
html[data-theme="light"] #reference {
  color:var(--ink);
  background-color:#f2f1eb;
  background-image:linear-gradient(rgba(7,27,34,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(7,27,34,.045) 1px,transparent 1px);
}
html[data-theme="light"] #reference::before { color:rgba(7,27,34,.03); }
html[data-theme="light"] #reference .eyebrow { color:#805b1b; }
html[data-theme="light"] #reference .section-head h2 { color:var(--ink); }
html[data-theme="light"] #reference .section-head p,html[data-theme="light"] #reference .table-note { color:#465c63; }
html[data-theme="light"] #reference .table-scroll { border-color:rgba(7,27,34,.16); background:#fbfaf6; box-shadow:0 24px 70px rgba(7,27,34,.1); }
html[data-theme="light"] .pressure-table caption { background:#e5e5df; color:#78551a; border-color:rgba(7,27,34,.13); }
html[data-theme="light"] .pressure-table thead th { background:#0b2b36; color:#f0d18e; }
html[data-theme="light"] .pressure-table tbody th { color:#087f8c; }
html[data-theme="light"] .pressure-table td { color:#344a51; }
html[data-theme="light"] .pressure-table th,html[data-theme="light"] .pressure-table td { border-color:rgba(7,27,34,.11); }
html[data-theme="light"] .pressure-table tbody tr:hover { background:rgba(50,210,223,.075); }

/* FAQ resembles a clear service document rather than a dark accordion wall. */
html[data-theme="light"] #faq {
  color:var(--ink);
  background-color:#e8e8e2;
  background-image:linear-gradient(rgba(7,27,34,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(7,27,34,.055) 1px,transparent 1px);
}
html[data-theme="light"] #faq::before { color:rgba(7,27,34,.035); }
html[data-theme="light"] #faq .eyebrow { color:#805b1b; }
html[data-theme="light"] #faq .section-head h2 { color:var(--ink); }
html[data-theme="light"] #faq .accordion-item { border-color:rgba(7,27,34,.14); background:rgba(250,249,244,.78); box-shadow:inset 0 1px 0 #fff; }
html[data-theme="light"] #faq .accordion-trigger { color:var(--ink); }
html[data-theme="light"] #faq .accordion-panel p { color:#4b6067; }
html[data-theme="light"] #faq .accordion-item::before { color:#8b621a; }

/* Mobile day drawer remains completely legible regardless of the section below. */
html[data-theme="light"] .nav-drawer { --ivory:#071b22; --ivory-dim:#52676e; background:#f3f2ec; border-color:rgba(7,27,34,.16); box-shadow:-24px 0 65px rgba(7,27,34,.18); }
html[data-theme="light"] .nav-drawer a { color:#344a51; }
html[data-theme="light"] .nav-drawer a:hover { color:#071b22; }
html[data-theme="light"] .nav-drawer .theme-toggle { color:#42585f; border-color:rgba(7,27,34,.16); background:#fff; }

@media (max-width:640px) {
  .hero-wordmark-layer { top:13%; }
  .hero-wordmark { padding-right:0; font-size:clamp(3.8rem,18vw,6.4rem); }
  .hero-loaded .hero-wordmark { opacity:.17; }
  .theme-toggle { padding-right:6px; }
  .nav-right .theme-toggle-label { display:none; }
  .logo { gap:9px; }
  .logo-mark { width:34px; height:34px; flex-basis:34px; }
  .logo-wordmark strong,.logo-wordmark i { font-size:17px; }
  .logo-wordmark small { display:none; }
}

@media (max-width:1180px) and (min-width:641px) {
  .site-nav .logo-wordmark small { display:none; }
}

/* Mid-sized browser and tablet: dedicate the upper frame to the brand and
   place the value proposition in a separate lower scene. */
@media (min-width:641px) and (max-width:900px) {
  .hero-construx { height:850px; min-height:850px; }
  .hero-wordmark-layer { top:13%; }
  .hero-wordmark { font-size:clamp(6rem,15vw,8.4rem); }
  .hero-loaded .hero-wordmark { opacity:.4; }
  .hero-headline-parallax { right:36px; bottom:48px; left:36px; width:auto; }
  .hero-headline-text { max-width:690px; font-size:clamp(3.3rem,7.6vw,4.5rem); line-height:.97; }
  .hero-summary { max-width:620px; }
  .hero-headline-ctas { display:flex; flex-direction:row; }
  .hero-headline-ctas .btn { min-width:190px; }
}

/* ================================================================
   CINEMATIC HERO OPENING — one short brand moment, then pure usability.
   ================================================================ */
.hero-cinematic-intro {
  position:absolute;
  inset:0;
  z-index:8;
  display:grid;
  place-items:center;
  overflow:hidden;
  pointer-events:none;
  background:
    linear-gradient(90deg,transparent,rgba(50,210,223,.035) 50%,transparent),
    #020c11;
  transform-origin:left center;
  animation:cinematic-curtain 2.75s cubic-bezier(.76,0,.24,1) .12s forwards;
}
.hero-cinematic-intro::before,
.hero-cinematic-intro::after {
  content:"";
  position:absolute;
  right:0;
  left:0;
  height:10vh;
  background:#01070a;
}
.hero-cinematic-intro::before { top:0; }
.hero-cinematic-intro::after { bottom:0; }
.hero-cinematic-brand { position:relative; display:flex; flex-direction:column; align-items:center; width:min(520px,78vw); text-align:center; }
.hero-cinematic-brand > span:first-child { color:#75949e; font-size:8px; letter-spacing:.24em; opacity:0; animation:cinematic-copy-in .55s var(--ease) .28s forwards; }
.hero-cinematic-brand strong { margin-top:12px; color:#f8f1e5; font-family:var(--font-display); font-size:clamp(2.7rem,7vw,5.2rem); font-weight:700; line-height:.9; letter-spacing:-.075em; opacity:0; transform:translateY(12px) scale(.98); animation:cinematic-brand-in .75s cubic-bezier(.16,1,.3,1) .4s forwards; }
.hero-cinematic-brand strong i { color:var(--brass-lit); font-style:normal; font-weight:400; }
.hero-cinematic-line { display:block; width:0; height:1px; margin-top:22px; background:linear-gradient(90deg,transparent,var(--brass),var(--cyan),transparent); box-shadow:0 0 18px rgba(50,210,223,.34); animation:cinematic-line-in .8s cubic-bezier(.16,1,.3,1) .72s forwards; }
.hero-cinematic-brand small { margin-top:13px; color:#a8bec5; font-size:8px; letter-spacing:.2em; opacity:0; animation:cinematic-copy-in .5s var(--ease) .92s forwards; }
.hero-cinematic-beam {
  position:absolute;
  inset:-20% auto -20% -35%;
  z-index:4;
  width:26%;
  pointer-events:none;
  opacity:0;
  transform:skewX(-12deg);
  background:linear-gradient(90deg,transparent,rgba(239,208,138,.14),rgba(50,210,223,.09),transparent);
  filter:blur(12px);
}
.hero-loaded .hero-cinematic-beam { animation:cinematic-beam-pass 2.2s cubic-bezier(.2,.7,.2,1) 2.05s both; }
.hero-loaded .hero-bg,.hero-loaded .hero-fg { animation:cinematic-camera-settle 8s cubic-bezier(.16,1,.3,1) .6s both; }
.hero-loaded .hero-wordmark { animation:cinematic-wordmark-settle 2.1s cubic-bezier(.16,1,.3,1) 1.65s both; }

/* Stagger only the content layers; the H1 remains readable during/after motion. */
.hero-loaded .hero-kicker { animation:cinematic-content-in .7s cubic-bezier(.16,1,.3,1) 1.95s both; }
.hero-loaded .hero-headline-text > span { animation:cinematic-content-in .78s cubic-bezier(.16,1,.3,1) 2.08s both; }
.hero-loaded .hero-headline-text > em { animation:cinematic-content-in .82s cubic-bezier(.16,1,.3,1) 2.2s both; }
.hero-loaded .hero-summary { animation:cinematic-content-in .72s cubic-bezier(.16,1,.3,1) 2.34s both; }
.hero-loaded .hero-headline-ctas { animation:cinematic-content-in .72s cubic-bezier(.16,1,.3,1) 2.46s both; }
.hero-loaded .hero-proof { animation:cinematic-content-in .72s cubic-bezier(.16,1,.3,1) 2.58s both; }

@keyframes cinematic-curtain {
  0%,56% { clip-path:inset(0 0 0 0); opacity:1; }
  100% { clip-path:inset(0 0 0 100%); opacity:.98; visibility:hidden; }
}
@keyframes cinematic-brand-in { to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes cinematic-copy-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
@keyframes cinematic-line-in { to { width:100%; } }
@keyframes cinematic-beam-pass { 0% { left:-35%; opacity:0; } 16% { opacity:.9; } 78% { opacity:.5; } 100% { left:118%; opacity:0; } }
@keyframes cinematic-camera-settle { from { transform:scale(1.055); filter:saturate(.54) contrast(1.2) brightness(.68); } to { transform:scale(1); filter:saturate(.64) contrast(1.12) brightness(.92); } }
@keyframes cinematic-wordmark-settle { from { opacity:0; transform:translateY(-14px); letter-spacing:-.015em; } to { opacity:.38; transform:none; letter-spacing:-.075em; } }
@keyframes cinematic-content-in { from { opacity:0; transform:translateY(22px); } to { opacity:1; transform:none; } }

@media (max-width:640px) {
  .hero-cinematic-brand { width:78vw; }
  .hero-cinematic-brand strong { font-size:3.2rem; }
  .hero-cinematic-intro::before,.hero-cinematic-intro::after { height:7vh; }
}

@media (prefers-reduced-motion:reduce) {
  .hero-cinematic-intro,.hero-cinematic-beam { display:none; }
  .hero-loaded .hero-bg,.hero-loaded .hero-fg,.hero-loaded .hero-wordmark,
  .hero-loaded .hero-kicker,.hero-loaded .hero-headline-text > span,
  .hero-loaded .hero-headline-text > em,.hero-loaded .hero-summary,
  .hero-loaded .hero-headline-ctas,.hero-loaded .hero-proof { animation:none; opacity:1; transform:none; }
}
