/* ============================================================
   APTO INSTRUMENTS — design system v2
   Dark cinema · surgical teal · steel · paper
   ============================================================ */

:root {
  --ink: #05070D;
  --ink-2: #080B14;
  --navy: #0A0F1C;
  --navy-2: #0E1524;
  --surface: #111A2C;
  --surface-2: #16223A;

  --teal: #12D9BE;
  --teal-deep: #0C9E8C;
  --cyan: #38F2E2;
  --cyan-deep: #0E7E96;

  --steel: #9FB2CC;
  --steel-dim: #6E82A0;
  --cloud: #EAF1F9;
  --white: #FFFFFF;

  --paper: #F3F6FB;
  --paper-2: #E8EEF7;
  --paper-line: rgba(10, 20, 40, 0.10);
  --paper-ink: #16223A;
  --paper-muted: #55657A;

  --line: rgba(214, 228, 244, 0.10);
  --line-strong: rgba(214, 228, 244, 0.20);

  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --shadow-sm: 0 1px 2px rgba(5, 7, 13, 0.4), 0 6px 18px rgba(5, 7, 13, 0.25);
  --shadow-md: 0 12px 34px rgba(5, 7, 13, 0.4);
  --shadow-lg: 0 34px 80px -20px rgba(5, 7, 13, 0.7);
  --shadow-glow: 0 12px 44px -10px rgba(18, 217, 190, 0.5);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --header-h: 78px;
  --section-pad: clamp(5rem, 10vw, 9rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--steel);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--cloud); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(56, 242, 226, 0.32); color: #fff; }

.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

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

.skip-link { position: fixed; top: -70px; left: 16px; z-index: 400; background: var(--cyan); color: var(--ink); font-weight: 700; padding: 12px 20px; border-radius: 0 0 12px 12px; transition: top 0.2s; }
.skip-link:focus { top: 0; }

.micro { font-size: 0.78rem; }
.meta { color: var(--steel-dim); }
.opt { color: var(--steel-dim); font-weight: 400; }

.container { width: min(1240px, 100% - clamp(2rem, 6vw, 5rem)); margin-inline: auto; }
.container-wide { width: min(1520px, 100% - clamp(1.25rem, 3vw, 3rem)); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; flex: none; background: linear-gradient(90deg, currentColor, transparent); transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--ease-out) 0.15s; }
html.js [data-reveal].is-in .eyebrow::before,
html.js .hero.is-in .eyebrow::before { transform: scaleX(1); }

.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(56, 242, 226, 0.6); animation: pulse 2.4s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56,242,226,.55); } 70% { box-shadow: 0 0 0 11px rgba(56,242,226,0); } 100% { box-shadow: 0 0 0 0 rgba(56,242,226,0); } }

.grad { background: linear-gradient(100deg, var(--cyan), var(--teal) 60%, #7ef7e9); -webkit-background-clip: text; background-clip: text; color: transparent; }

.section-title { font-size: clamp(2.1rem, 5vw, 3.7rem); }
.section-head { max-width: 62ch; }
.section-head > p:last-child { color: var(--steel); font-size: 1.05rem; margin-top: 1rem; }
.section-head.light > p:last-child { color: var(--steel-dim); }

/* reveal */
[data-reveal] { will-change: opacity, transform; }
html.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out); }
html.reveal-ready [data-reveal="left"] { transform: translateX(-32px); }
html.reveal-ready [data-reveal="right"] { transform: translateX(32px); }
html.reveal-ready [data-reveal="scale"] { transform: scale(0.965) translateY(18px); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 500; background: var(--ink); display: grid; place-items: center; transition: opacity 0.7s ease, visibility 0s 0.7s; }
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { display: grid; justify-items: center; gap: 1.1rem; }
.preloader-mark { animation: markFloat 2.4s ease-in-out infinite; }
@keyframes markFloat { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
.preloader-word { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--cloud); letter-spacing: 0.01em; }
.preloader-word em { font-style: normal; font-weight: 400; color: var(--steel-dim); }
.preloader-bar { width: min(240px, 60vw); height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--cyan)); transition: width 0.3s var(--ease-out); }
.preloader-pct { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.24em; color: var(--steel-dim); }

/* fail-safe: if the module never boots, never leave the page hidden */
html.apto-fallback .preloader { display: none !important; }
html.apto-fallback [data-reveal],
html.apto-fallback [data-hero-item] { opacity: 1 !important; transform: none !important; }
html.apto-fallback .hero-line-in { transform: none !important; }
html.apto-fallback .hero-poster { opacity: 0.9 !important; }
html.apto-fallback .hero-canvas,
html.apto-fallback .hero-loading { display: none !important; }

/* ---------- Overlays ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 260; background: linear-gradient(90deg, var(--teal), var(--cyan)); transform-origin: left; transform: scaleX(0); pointer-events: none; }

.grain { position: fixed; inset: -150%; z-index: 300; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grainShift 0.7s steps(3) infinite; }
@keyframes grainShift { 0% { transform: translate(0,0); } 33% { transform: translate(-4%, 3%); } 66% { transform: translate(3%, -3%); } 100% { transform: translate(0,0); } }

.cursor { position: fixed; top: 0; left: 0; z-index: 350; pointer-events: none; display: none; }
.cursor-dot, .cursor-ring { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor-dot { width: 6px; height: 6px; background: var(--cyan); }
.cursor-ring { width: 38px; height: 38px; border: 1px solid rgba(56, 242, 226, 0.6); transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s; }
.cursor.is-hover .cursor-ring { width: 64px; height: 64px; background: rgba(56, 242, 226, 0.1); border-color: rgba(56, 242, 226, 0.9); }
@media (pointer: fine) { .cursor { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-head); font-weight: 600; font-size: 0.94rem; letter-spacing: 0.005em;
  padding: 0.92em 1.7em; border-radius: var(--radius-pill); overflow: hidden; isolation: isolate;
  transition: transform 180ms var(--ease-out), box-shadow 240ms var(--ease-out), background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  will-change: transform;
}
.btn svg { transition: transform 240ms var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 0.62em 1.15em; font-size: 0.84rem; }
.btn-block { width: 100%; }

.btn-primary { background: linear-gradient(120deg, var(--cyan) 0%, var(--teal) 100%); color: var(--ink); box-shadow: var(--shadow-glow); }
.btn-primary:hover { box-shadow: 0 18px 52px -10px rgba(56, 242, 226, 0.6); }

.btn-ghost { border: 1px solid var(--line-strong); color: var(--cloud); background: rgba(234, 241, 249, 0.03); }
.btn-ghost:hover { border-color: rgba(56, 242, 226, 0.6); color: var(--cyan); background: rgba(56, 242, 226, 0.06); }

.light .btn-ghost, .rfq .btn-ghost { border-color: var(--paper-line); color: var(--paper-ink); background: rgba(10, 20, 40, 0.03); }
.light .btn-ghost:hover, .rfq .btn-ghost:hover { color: var(--cyan-deep); border-color: var(--cyan-deep); }

.btn-magic { transform: translate3d(var(--mmx, 0px), var(--mmy, 0px), 0); }
.btn-magic:active { transform: translate3d(var(--mmx, 0px), var(--mmy, 0px), 0) scale(0.97); }
.btn-primary::after { content: ""; position: absolute; top: -30%; bottom: -30%; left: -40%; width: 34%; z-index: 1; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg); }
.btn-primary:hover::after { animation: sweep 720ms var(--ease-out); }
@keyframes sweep { from { transform: skewX(-20deg) translateX(0); } to { transform: skewX(-20deg) translateX(440%); } }
.btn-magic::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(130px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.32), transparent 55%); opacity: 0; transition: opacity 240ms ease; }
.btn-magic:hover::before { opacity: 1; }

.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--cloud); font-size: 1rem; transition: background-color 180ms ease, border-color 180ms ease, transform 160ms ease; }
.icon-btn:hover { background: rgba(234, 241, 249, 0.08); border-color: rgba(56, 242, 226, 0.5); }
.icon-btn:active { transform: scale(0.94); }

.link { color: var(--cyan); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 120; transition: background-color 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease; border-bottom: 1px solid transparent; }
.site-header.is-compact { background: rgba(5, 7, 13, 0.72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--header-h); transition: height 300ms var(--ease-out); }
.site-header.is-compact .header-inner { height: 64px; }

.site-logo { display: inline-flex; align-items: center; gap: 0.65rem; }
.site-logo img { transition: transform 300ms var(--ease-spring); }
.site-logo:hover img { transform: rotate(-7deg) scale(1.06); }
.site-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; color: var(--cloud); }
.site-logo-text em { font-style: normal; color: var(--steel-dim); font-weight: 400; }

.nav-desktop { margin-left: auto; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-link { position: relative; display: inline-block; padding: 0.55rem 0.95rem; font-size: 0.9rem; font-weight: 500; color: var(--steel); border-radius: 8px; transition: color 180ms ease; }
.nav-link::after { content: ""; position: absolute; left: 0.95rem; right: 0.95rem; bottom: 0.3rem; height: 1.5px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-out); }
.nav-link:hover { color: var(--cloud); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--cloud); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.nav-toggle { display: none; width: 46px; height: 46px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1px solid var(--line-strong); }
.nav-toggle-bar { width: 20px; height: 1.5px; background: var(--cloud); border-radius: 2px; transition: transform 260ms var(--ease-out), opacity 200ms ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-nav { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-nav::before { content: ""; position: absolute; inset: 0; background: rgba(5, 7, 13, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 300ms ease; }
.mobile-nav-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 400px); background: var(--navy-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; padding: 1.5rem; transform: translateX(100%); transition: transform 360ms var(--ease-out); }
.mobile-nav.is-open { visibility: visible; }
.mobile-nav.is-open::before { opacity: 1; }
.mobile-nav.is-open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.mobile-links li { border-bottom: 1px solid var(--line); }
.mobile-links a { display: flex; justify-content: space-between; align-items: center; padding: 1.15rem 0; font-family: var(--font-head); font-size: 1.3rem; color: var(--cloud); transition: color 180ms ease, padding-left 220ms ease; }
.mobile-links a em { font-style: normal; font-size: 0.7rem; letter-spacing: 0.2em; color: var(--steel-dim); }
.mobile-links a:hover { color: var(--cyan); padding-left: 8px; }
.mobile-nav-foot { margin-top: auto; display: grid; gap: 1rem; }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 2.5rem) 0 clamp(4rem, 8vh, 6rem); overflow: hidden; }
.hero-aurora { position: absolute; inset: -20%; pointer-events: none; filter: blur(20px); }
.aurora { position: absolute; border-radius: 50%; opacity: 0.55; will-change: transform; }
.aurora-a { width: 46vw; height: 46vw; right: -6vw; top: -6vw; background: radial-gradient(circle, rgba(18, 217, 190, 0.5), transparent 66%); animation: drift 22s ease-in-out infinite; }
.aurora-b { width: 40vw; height: 40vw; left: -10vw; bottom: -10vw; background: radial-gradient(circle, rgba(14, 126, 150, 0.55), transparent 66%); animation: drift 28s ease-in-out infinite reverse; }
.aurora-c { width: 30vw; height: 30vw; left: 40%; top: 30%; background: radial-gradient(circle, rgba(56, 242, 226, 0.22), transparent 68%); animation: drift 34s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translate3d(0,0,0) scale(1); } 33% { transform: translate3d(4%, -5%, 0) scale(1.12); } 66% { transform: translate3d(-5%, 4%, 0) scale(0.94); } }

.hero-grid-lines { position: absolute; inset: 0; pointer-events: none; opacity: 0.5; background-image: linear-gradient(rgba(214,228,244,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(214,228,244,0.05) 1px, transparent 1px); background-size: 84px 84px; mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 80%); -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 80%); }

.hero-grid { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); }
.hero-stage { position: relative; width: 100%; aspect-ratio: 6 / 5; max-height: 60svh; pointer-events: none; }
.hero-poster, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster { object-fit: contain; opacity: 0; transition: opacity 800ms ease; animation: posterBreathe 10s ease-in-out infinite; }
.hero-poster.is-visible { opacity: 0.9; }
.hero-poster.fade-away { opacity: 0; }
@keyframes posterBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.hero-canvas { pointer-events: none; opacity: 0; transition: opacity 900ms ease; }
.hero-canvas.is-live { opacity: 1; pointer-events: auto; cursor: grab; }
.hero-canvas.is-live:active { cursor: grabbing; }

.hero-loading { position: absolute; bottom: 16%; right: 8%; display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); background: rgba(5, 7, 13, 0.55); border: 1px solid var(--line); padding: 0.5rem 0.9rem; border-radius: var(--radius-pill); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.spinner { width: 13px; height: 13px; border: 2px solid rgba(56, 242, 226, 0.22); border-top-color: var(--cyan); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-hint { position: absolute; bottom: 17%; right: 8%; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 500; color: var(--steel); border: 1px solid var(--line); background: rgba(5, 7, 13, 0.5); padding: 0.55rem 0.95rem; border-radius: var(--radius-pill); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: hintPulse 3s ease-in-out infinite; }
.hero-hint span { color: var(--cyan); font-weight: 700; }
@keyframes hintPulse { 0%,100% { opacity: 0.8; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.hero-hud { position: absolute; inset: 9% 7%; opacity: 0; transition: opacity 1s ease 0.4s; }
.hero-hud.is-visible { opacity: 1; }
.hud-corner { position: absolute; width: 22px; height: 22px; border: 1px solid rgba(56, 242, 226, 0.45); }
.hud-tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud-tag { position: absolute; font-family: var(--font-head); font-size: 0.64rem; letter-spacing: 0.24em; color: rgba(159, 178, 204, 0.75); text-transform: uppercase; }
.hud-tag-a { top: -18px; left: 0; }
.hud-tag-b { bottom: -18px; right: 0; }

.hero-content { position: relative; z-index: 3; max-width: 580px; }
.hero-title { font-size: clamp(2.35rem, 4.7vw, 4.2rem); font-weight: 600; letter-spacing: -0.035em; margin: 0.5rem 0 1.4rem; }
.hero-line { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero-line-in { display: inline-block; transition: transform 1.05s var(--ease-out); will-change: transform; }
html.reveal-ready .hero-line-in { transform: translateY(115%); }
html.js .hero.is-in .hero-line:nth-child(1) .hero-line-in { transform: none; transition-delay: 0.15s; }
html.js .hero.is-in .hero-line:nth-child(2) .hero-line-in { transform: none; transition-delay: 0.3s; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--steel); max-width: 54ch; margin-bottom: 2.2rem; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }

.hero-trust { display: flex; flex-wrap: wrap; row-gap: 0.6rem; }
.hero-trust li { display: flex; flex-direction: column; padding-right: 1.8rem; margin-right: 1.8rem; border-right: 1px solid var(--line); }
.hero-trust li:last-child { border-right: 0; }
.hero-trust strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--cloud); line-height: 1.1; }
.hero-trust span { font-size: 0.74rem; color: var(--steel-dim); letter-spacing: 0.04em; }

html.reveal-ready [data-hero-item] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
html.js .hero.is-in [data-hero-item] { opacity: 1; transform: none; }
html.js .hero [data-hero-item]:nth-child(1) { transition-delay: 0.1s; }
html.js .hero [data-hero-item]:nth-child(3) { transition-delay: 0.34s; }
html.js .hero [data-hero-item]:nth-child(4) { transition-delay: 0.5s; }
html.js .hero [data-hero-item]:nth-child(5) { transition-delay: 0.64s; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.scroll-cue-line { width: 1px; height: 52px; background: linear-gradient(var(--cyan), transparent); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--cyan); animation: cueDrop 1.9s var(--ease-out) infinite; }
@keyframes cueDrop { 0% { top: -50%; opacity: 0; } 30% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.scroll-cue-text { font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--steel-dim); }
@media (max-height: 820px) { .scroll-cue { display: none; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); background: var(--ink-2); padding: 1.5rem 0; overflow: hidden; }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 14vw; z-index: 2; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--ink-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--ink-2), transparent); }
.marquee-track { display: flex; gap: 3.2rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.m-item { display: inline-flex; align-items: center; gap: 0.8rem; font-family: var(--font-head); font-size: 0.86rem; letter-spacing: 0.2em; color: var(--steel); white-space: nowrap; }
.m-item i { color: var(--teal); font-style: normal; font-size: 0.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Intro ---------- */
.intro { padding: var(--section-pad) 0; }
.intro-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.intro-title { font-size: clamp(2rem, 4.4vw, 3.4rem); margin-bottom: 1.4rem; }
.intro-title .serif { color: var(--cyan); }
.intro-lead { color: var(--steel); font-size: 1.06rem; margin-bottom: 2rem; max-width: 52ch; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.stat { background: var(--navy); padding: 1.8rem 1.6rem; position: relative; transition: background-color 300ms ease; }
.stat::after { content: ""; position: absolute; left: 1.6rem; bottom: 1.4rem; width: 26px; height: 2px; background: linear-gradient(90deg, var(--teal), transparent); }
.stat:hover { background: var(--navy-2); }
.stat-label { font-size: 0.8rem; color: var(--steel-dim); margin-top: 0.35rem; }
.stat-num { font-family: var(--font-head); font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600; color: var(--white); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num .unit { font-size: 0.5em; color: var(--cyan); margin-left: 0.12em; }

.intro-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow-lg); }
.intro-band img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.08); transition: transform 1.4s var(--ease-out), filter 0.8s ease; }
.intro-band:hover img { transform: scale(1.04); filter: grayscale(0) contrast(1.1); }
.intro-band-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,13,0.92) 0%, rgba(5,7,13,0.4) 50%, rgba(5,7,13,0.15) 100%); }
.intro-band-cap { position: absolute; left: clamp(1.5rem, 4vw, 3.5rem); bottom: clamp(1.5rem, 4vw, 3rem); right: clamp(1.5rem, 4vw, 3.5rem); max-width: 46ch; }
.intro-band-quote { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2.1rem); line-height: 1.25; color: var(--cloud); }

/* ---------- Divisions (horizontal scroll) ---------- */
.divisions { position: relative; background: linear-gradient(var(--ink), var(--navy)); }
.divisions-sticky { position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(1.6rem, 3vw, 2.8rem); padding: clamp(4rem, 8vh, 7rem) 0 clamp(3rem, 6vh, 5rem); overflow: hidden; }
.divisions-head { display: grid; gap: 0.6rem; }
.hscroll-progress { height: 2px; background: var(--line); border-radius: 2px; margin-top: 1rem; max-width: 260px; overflow: hidden; }
.hscroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--cyan)); }

.hscroll-viewport { overflow: visible; }
.hscroll-track { display: flex; gap: clamp(1rem, 2vw, 1.75rem); padding-inline: max(calc((100vw - 1240px) / 2), clamp(1rem, 3vw, 2.5rem)); will-change: transform; }
.division-panel { position: relative; flex: 0 0 min(76vw, 560px); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: border-color 300ms ease; }
.division-panel:hover { border-color: rgba(56, 242, 226, 0.35); }
.division-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.division-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5,7,13,0.75)); }
.division-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) contrast(1.05); transition: transform 800ms var(--ease-out), filter 500ms ease; }
.division-panel:hover .division-media img { transform: scale(1.06); filter: saturate(1.05) contrast(1.08); }
.division-body { position: relative; padding: 1.6rem 1.8rem 1.9rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.division-index { position: absolute; top: -3.6rem; right: 1.8rem; font-family: var(--font-serif); font-style: italic; font-size: 3rem; color: rgba(56, 242, 226, 0.85); }
.division-body h3 { font-size: 1.6rem; color: var(--cloud); }
.division-body p { font-size: 0.94rem; color: var(--steel-dim); max-width: 42ch; }
.division-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.3rem; }
.division-tags li { font-size: 0.74rem; letter-spacing: 0.04em; color: var(--steel); border: 1px solid var(--line); padding: 0.3em 0.8em; border-radius: var(--radius-pill); }
.division-link { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-head); font-weight: 600; font-size: 0.9rem; color: var(--cyan); align-self: flex-start; }
.division-link svg { transition: transform 240ms var(--ease-out); }
.division-link:hover svg { transform: translateX(5px); }

/* ---------- Products ---------- */
.products { background: var(--paper); color: var(--paper-muted); padding: var(--section-pad) 0; }
.products .section-title { color: var(--paper-ink); }
.products .eyebrow { color: var(--cyan-deep); }
.products .section-head > p:last-child { color: var(--paper-muted); }
.products-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { font-family: var(--font-head); font-weight: 500; font-size: 0.85rem; padding: 0.6em 1.2em; border-radius: var(--radius-pill); border: 1px solid var(--paper-line); color: var(--paper-muted); background: #fff; transition: transform 180ms var(--ease-out), background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.chip:hover { transform: translateY(-2px); border-color: var(--teal-deep); color: var(--cyan-deep); }
.chip:active { transform: scale(0.96); }
.chip.is-active { background: var(--paper-ink); color: var(--cyan); border-color: var(--paper-ink); box-shadow: var(--shadow-sm); }

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.product-card { position: relative; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform 320ms var(--ease-out), box-shadow 320ms ease, border-color 320ms ease; }
.product-card:hover { transform: translateY(-7px); border-color: rgba(12, 158, 140, 0.4); box-shadow: var(--shadow-lg); }

.media { position: relative; aspect-ratio: 4 / 3.2; background: var(--paper-2); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms ease, transform 900ms var(--ease-out); }
.media.is-loaded img { opacity: 1; }
.product-card:hover .media img { transform: scale(1.05); }
.media-badge { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cloud); background: rgba(5, 7, 13, 0.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 0.35em 0.8em; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.14); }
.skel { position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.8) 50%, transparent 70%), linear-gradient(var(--paper-2), var(--paper-2)); background-size: 220% 100%, 100% 100%; background-repeat: no-repeat; animation: shine 1.5s linear infinite; pointer-events: none; }
@keyframes shine { 0% { background-position: 130% 0, 0 0; } 100% { background-position: -90% 0, 0 0; } }
.media.is-loaded .skel { opacity: 0; transition: opacity 300ms ease; }

.product-body { padding: 1.2rem 1.3rem 1.35rem; display: flex; flex-direction: column; gap: 0.42rem; flex: 1; }
.product-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8A99AD; }
.product-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); flex: none; }
.product-body h3 { font-family: var(--font-head); font-size: 1.06rem; color: var(--paper-ink); }
.product-body .sku { font-size: 0.74rem; color: #8A99AD; font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.product-actions { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.85rem; }
.btn-quote { flex: none; padding: 0.6em 1.05em; font-size: 0.8rem; }
.btn-text { display: inline-flex; align-items: center; gap: 0.35em; font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; color: var(--cyan-deep); padding: 0.34em 0.2em; transition: color 160ms ease, gap 160ms ease; }
.btn-text:hover { color: var(--paper-ink); gap: 0.6em; }

.product-card.is-hiding { opacity: 0; transform: scale(0.92); visibility: hidden; transition: opacity 240ms ease, transform 240ms var(--ease-out), visibility 0s 240ms; }
.product-card.is-showing { animation: cardIn 420ms var(--ease-out) backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(0.97); } to { opacity: 1; transform: none; } }

/* ---------- Manufacturing ---------- */
.manufacturing { position: relative; background: var(--ink-2); padding: var(--section-pad) 0; overflow: hidden; }
.manufacturing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 85% 5%, rgba(14, 126, 150, 0.22), transparent 70%); pointer-events: none; }
.manufacturing .section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }

.proc-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.proc-sticky { position: sticky; top: calc(var(--header-h) + 28px); }
.proc-visual { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.proc-stage-media { position: relative; aspect-ratio: 4 / 3.1; background: var(--ink); }
.proc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 700ms ease, transform 1.4s var(--ease-out); filter: saturate(0.8) contrast(1.05) brightness(0.82); }
.proc-img.is-active { opacity: 1; transform: scale(1); }
.proc-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(56, 242, 226, 0.14), transparent); height: 34%; animation: scan 4.5s linear infinite; mix-blend-mode: screen; }
@keyframes scan { 0% { transform: translateY(-40%); } 100% { transform: translateY(340%); } }
.proc-readout { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.6rem; background: linear-gradient(180deg, transparent, rgba(5, 7, 13, 0.9)); }
.proc-stage { font-family: var(--font-head); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.24em; color: var(--cyan); text-transform: uppercase; margin-bottom: 0.4rem; }
.proc-metric { font-size: 0.86rem; color: var(--steel); font-variant-numeric: tabular-nums; }

.proc-steps-wrap { position: relative; padding-left: 2.4rem; }
.proc-rail { position: absolute; left: 0; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.proc-rail-fill { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(var(--cyan), var(--teal)); border-radius: 2px; transform: scaleY(0); transform-origin: top; }
.proc-steps { display: grid; }
.proc-step { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.9rem 0; border-bottom: 1px solid var(--line); transition: opacity 300ms ease; }
.proc-step:first-child { padding-top: 0; }
.proc-step:last-child { border-bottom: 0; }
.proc-step .step-no { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--steel-dim); transition: color 300ms ease, transform 300ms var(--ease-spring); }
.proc-step h3 { font-size: 1.25rem; color: var(--cloud); margin-bottom: 0.45rem; transition: color 300ms ease; }
.proc-step p { font-size: 0.94rem; color: var(--steel-dim); max-width: 46ch; }
.proc-step.is-active .step-no { color: var(--cyan); transform: scale(1.2); }
.proc-step.is-active h3 { color: var(--white); }
.proc-step.is-dim { opacity: 0.38; }

/* ---------- Quality ---------- */
.quality { background: linear-gradient(var(--navy), var(--ink)); padding: var(--section-pad) 0; }
.quality-top { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.quality-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.quality-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(0.9); }
.quality-figure figcaption { position: absolute; left: 1.2rem; bottom: 1.2rem; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cloud); background: rgba(5,7,13,0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 0.4em 0.9em; border-radius: var(--radius-pill); }

.cert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cert-card { background: rgba(234, 241, 249, 0.03); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem 1.5rem; transition: transform 320ms var(--ease-out), border-color 320ms ease, background-color 320ms ease; }
.cert-card:hover { transform: translateY(-6px); border-color: rgba(56, 242, 226, 0.4); background: rgba(234, 241, 249, 0.055); }
.cert-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, rgba(56, 242, 226, 0.18), rgba(14, 126, 150, 0.12)); border: 1px solid rgba(56, 242, 226, 0.35); font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; color: var(--cyan); margin-bottom: 1rem; }
.cert-card h3 { font-size: 1.1rem; margin-bottom: 0.45rem; }
.cert-card p { font-size: 0.88rem; color: var(--steel-dim); }

.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.qa-panel { background: rgba(234, 241, 249, 0.03); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.9rem; display: flex; flex-direction: column; }
.qa-panel h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.qa-list { display: grid; gap: 0.95rem; }
.qa-list li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.94rem; color: var(--steel); }
.qa-list svg { color: var(--cyan); flex: none; margin-top: 0.25rem; }
.qa-strip { margin-top: auto; padding-top: 1.6rem; }
.qa-strip img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); filter: grayscale(0.4); }

.faq { display: grid; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; text-align: left; font-family: var(--font-head); font-size: 1rem; font-weight: 500; color: var(--cloud); transition: color 180ms ease; }
.faq-btn:hover { color: var(--cyan); }
.faq-btn[aria-expanded="true"] { color: var(--cyan); }
.faq-icon { color: var(--cyan); flex: none; transition: transform 300ms var(--ease-spring); }
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 340ms var(--ease-out); }
.faq-btn[aria-expanded="true"] + .faq-body { grid-template-rows: 1fr; }
.faq-inner { overflow: hidden; }
.faq-inner p { padding: 0 0 1.15rem; font-size: 0.9rem; color: var(--steel-dim); max-width: 62ch; }

/* ---------- RFQ ---------- */
.rfq { background: var(--paper); color: var(--paper-muted); padding: var(--section-pad) 0; }
.rfq-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.rfq .section-title { color: var(--paper-ink); margin-bottom: 1.1rem; }
.rfq .eyebrow { color: var(--cyan-deep); }
.rfq-copy > p { max-width: 46ch; margin-bottom: 2rem; }
.rfq-points { display: grid; gap: 0.8rem; margin-bottom: 2.5rem; }
.rfq-points li { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.97rem; }
.rfq-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; transform: translateY(-0.1em); }
.rfq-points strong { font-family: var(--font-head); color: var(--paper-ink); }
.rfq-contact { border-top: 1px solid var(--paper-line); padding-top: 1.5rem; }
.rfq-mail { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--paper-ink); transition: color 180ms ease; }
.rfq-mail:hover { color: var(--cyan-deep); }

.rfq-card { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 2.3rem 2.2rem; }
.wizard-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.8rem; }
.wizard-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.wizard-bar span { display: block; height: 100%; width: 12%; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--cyan)); transition: width 560ms var(--ease-out); }
.wizard-count { font-family: var(--font-head); font-size: 0.75rem; letter-spacing: 0.14em; color: var(--paper-muted); }

.wizard-head { font-family: var(--font-head); font-weight: 600; font-size: 1.3rem; color: var(--paper-ink); margin-bottom: 1.5rem; }
.wizard-step { animation: stepIn 460ms var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.field { display: grid; gap: 0.45rem; margin-bottom: 1.1rem; }
.field-label, .field label { font-size: 0.84rem; font-weight: 600; color: var(--paper-ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

input[type="text"], input[type="email"], input[type="number"], select, textarea { width: 100%; font: inherit; font-size: 0.95rem; color: var(--paper-ink); background: var(--paper); border: 1px solid #D7E0EC; border-radius: var(--radius-sm); padding: 0.78em 0.95em; transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease; appearance: none; }
select { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A5A72' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.95em center; padding-right: 2.5em; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(18, 217, 190, 0.2); background: #fff; }
input.has-error, select.has-error { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14); }

.checkbox { display: flex; align-items: center; gap: 0.6rem; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--teal-deep); }
.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.field-error { font-size: 0.78rem; color: #C53030; min-height: 0.9rem; }
.wizard-actions { display: flex; justify-content: space-between; gap: 0.8rem; margin-top: 1.6rem; }

.wizard-step.success { text-align: center; padding: 1.5rem 0.5rem 0.5rem; }
.success-mark { width: 76px; height: 76px; margin: 0 auto 1.3rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: linear-gradient(135deg, var(--cyan), var(--teal)); box-shadow: var(--shadow-glow); animation: pop 560ms var(--ease-spring); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wizard-step.success h3 { color: var(--paper-ink); font-size: 1.6rem; margin-bottom: 0.7rem; }
.wizard-step.success p { max-width: 44ch; margin: 0 auto 1.5rem; color: var(--paper-muted); }
.wizard-step.success p strong { color: var(--cyan-deep); font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding: clamp(3.5rem, 7vw, 6rem) 0 2rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.footer-kicker { font-family: var(--font-head); font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 600; color: var(--cloud); letter-spacing: -0.03em; max-width: 20ch; }
.footer-cta { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-head); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--cyan); }
.footer-cta svg { transition: transform 260ms var(--ease-out); }
.footer-cta:hover svg { transform: translate(5px, -5px); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.9rem; color: var(--steel-dim); max-width: 34ch; margin: 1rem 0; }
.footer-col h4 { font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin-bottom: 1.2rem; }
.footer-col ul { display: grid; gap: 0.65rem; }
.footer-col a { font-size: 0.9rem; color: var(--steel-dim); transition: color 170ms ease, padding-left 170ms ease; }
.footer-col a:hover { color: var(--cyan); padding-left: 4px; }
.footer-contact li { font-size: 0.9rem; color: var(--steel-dim); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.footer-bottom .micro { color: var(--steel-dim); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.8rem; color: var(--steel-dim); }
.footer-legal a:hover { color: var(--cyan); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 1.25rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 7, 13, 0.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: fadeIn 260ms ease; }
.modal-card { position: relative; width: min(980px, 100%); max-height: min(88vh, 900px); overflow: auto; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; grid-template-columns: 1.15fr 1fr; box-shadow: var(--shadow-lg); animation: fadeIn 260ms ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 5; background: rgba(5, 7, 13, 0.6); }

.modal-media { position: relative; background: var(--ink); overflow: hidden; min-height: 320px; }
.modal-poster { position: absolute; inset: 0; }
.modal-poster img { width: 100%; height: 100%; object-fit: cover; }
.modal-media.is-teal .modal-poster img { filter: hue-rotate(16deg) saturate(1.15); }
.modal-media.is-charcoal .modal-poster img { filter: brightness(0.6) saturate(0.85); }
.modal-canvas { position: absolute; inset: 0; opacity: 0; transition: opacity 450ms ease; pointer-events: none; }
.modal-canvas.is-live { opacity: 1; pointer-events: auto; cursor: grab; }
.modal-canvas.is-live:active { cursor: grabbing; }
.modal-media.is-3d .modal-poster { opacity: 0; }

.gallery-views { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 0.45rem; z-index: 3; }
.gv { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--steel); background: rgba(5, 7, 13, 0.66); border: 1px solid var(--line); transition: color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.gv:hover { color: var(--cyan); transform: translateY(-2px); }
.gv.is-active { color: var(--cyan); border-color: var(--cyan); }
.view3d-toggle { position: absolute; right: 14px; bottom: 14px; z-index: 3; background: rgba(5, 7, 13, 0.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.view3d-toggle.is-active { background: linear-gradient(135deg, var(--cyan), var(--teal)); color: var(--ink); border-color: transparent; }

.modal-body { padding: 2.4rem 2.2rem; display: flex; flex-direction: column; }
.modal-body .eyebrow { margin-bottom: 0.5rem; }
.modal-body h3 { font-size: 2rem; color: var(--cloud); margin-bottom: 0.6rem; }
.modal-desc { font-size: 0.94rem; color: var(--steel); margin-bottom: 0.5rem; }
.modal-body .meta { margin-bottom: 1.4rem; }

.finish-pick { padding: 1.1rem 0; border-block: 1px solid var(--line); margin-bottom: 1.5rem; display: grid; gap: 0.8rem; }
.finish-swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatch { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.84rem; color: var(--steel); padding: 0.45em 0.95em 0.45em 0.55em; border-radius: var(--radius-pill); border: 1px solid var(--line); transition: border-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.swatch:hover { border-color: rgba(56, 242, 226, 0.5); color: var(--cloud); transform: translateY(-2px); }
.swatch.is-active { border-color: var(--cyan); color: var(--cyan); }
.swatch-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--sw, #D9E2EE); border: 2px solid rgba(255, 255, 255, 0.35); }

.modal-actions { margin-top: auto; display: grid; gap: 0.7rem; }
#quoteDirect { font-size: 0.85rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 320; background: var(--navy-2); color: var(--cloud); border: 1px solid rgba(56, 242, 226, 0.4); padding: 0.9rem 1.4rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-lg); font-size: 0.92rem; opacity: 0; transition: opacity 280ms ease, transform 280ms var(--ease-out); }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .proc-sticky { position: static; max-width: 620px; }
  .rfq-grid { grid-template-columns: 1fr; }
  .quality-top { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 2.5rem; }
  .hero-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }
}

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }

  .intro-grid { grid-template-columns: 1fr; }
  .products-head { grid-template-columns: 1fr; align-items: start; }
  .qa-grid { grid-template-columns: 1fr; }

  /* divisions become a native swipe rail */
  .divisions { background: var(--navy); }
  .divisions-sticky { position: static; min-height: 0; padding: 4rem 0 4.5rem; }
  .hscroll-progress { display: none; }
  .hscroll-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .hscroll-viewport::-webkit-scrollbar { display: none; }
  .hscroll-track { transform: none !important; padding-inline: clamp(1rem, 5vw, 2rem); }
  .division-panel { scroll-snap-align: center; flex-basis: min(84vw, 420px); }

  .hero { padding-top: calc(var(--header-h) + 1.75rem); padding-bottom: 3rem; min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .hero-content { max-width: none; }
  .hero-stage { aspect-ratio: auto; height: min(46svh, 360px); max-height: none; }
  .hero-hud { display: none; }
  .scroll-cue { display: none; }
  .hero-canvas { pointer-events: none !important; }
  .modal-card { grid-template-columns: 1fr; max-height: 92vh; }
  .modal-media { min-height: 42vh; }
}

@media (max-width: 720px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-title .serif { display: block; }
  .hero-trust { gap: 0.9rem 1.4rem; }
  .hero-trust li { padding-right: 0; margin-right: 0; border-right: 0; }
  .intro-band { aspect-ratio: 4 / 5; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  html.reveal-ready [data-reveal], html.reveal-ready [data-hero-item] { opacity: 1 !important; transform: none !important; }
  html.reveal-ready .hero-line-in { transform: none !important; }
  .hero-canvas, .proc-scan, .grain, .cursor { display: none; }
  .marquee-track { animation: none; }
  .scroll-cue { display: none; }
  .aurora { animation: none; }
  .hero-poster { opacity: 0.9; }
  .btn-magic { transform: none !important; }
  .btn-primary::after { display: none; }
  .product-card:hover, .cert-card:hover, .division-panel:hover { transform: none; }
}
/* Fix: prevent WP admin bar from overlapping our fixed site header */
body.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
/* ============================================
   QUOTE CART PANEL
   ============================================ */

.quote-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.quote-cart-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.quote-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 90vw;
  background: #0f172a;
  color: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
}

.quote-cart-panel.is-open {
  transform: translateX(0);
}

.quote-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-cart-head h3 {
  margin: 0;
  font-size: 18px;
}

.quote-cart-head .icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
}

.quote-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.quote-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-cart-item-info {
  flex: 1;
  min-width: 0;
}

.quote-cart-item-info .name {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quote-cart-item-info .sku {
  font-size: 12px;
  opacity: 0.6;
  margin: 0;
}

.quote-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.quote-cart-item-controls input {
  width: 50px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: inherit;
  font-size: 13px;
}

.quote-cart-item-remove {
  background: none;
  border: none;
  color: #f87171;
  cursor: pointer;
  font-size: 18px;
  padding: 2px 6px;
  line-height: 1;
}

.quote-cart-empty {
  opacity: 0.6;
  font-size: 14px;
  padding: 20px 0;
  text-align: center;
}

.quote-cart-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-cart-summary {
  font-size: 13px;
  opacity: 0.8;
  margin: 0 0 12px 0;
  text-align: center;
}

.quote-cart-item-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}

/* ============================================
   RFQ WIZARD — CART ITEMS LIST (Step 1)
   ============================================ */
.rfq-cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.rfq-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
}

.rfq-cart-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: #fff;
}

.rfq-cart-item-info {
  flex: 1;
  min-width: 0;
}

.rfq-cart-item-info .name {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rfq-cart-item-info .sku {
  font-size: 11px;
  opacity: 0.6;
  margin: 0;
}

.rfq-cart-item-qty {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.rfq-cart-list-empty {
  font-size: 13px;
  opacity: 0.7;
  padding: 10px 0;
}
/* Fix logo text color on light-background pages */
body:not(.home) .site-logo-text {
  color: var(--ink) !important;
}
body:not(.home) .site-logo-text em {
  color: var(--teal) !important;
}
/* RFQ wizard cart item controls */
.rfq-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(5,7,13,0.08);
}
.rfq-cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.rfq-remove-btn {
  background: none;
  border: none;
  color: #e05;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.15s;
}
.rfq-remove-btn:hover {
  background: rgba(238,0,85,0.08);
}