/* ==========================================================================
   Quantum Optx ΓÇö Design System
   Precision Optics for the Quantum Age
   ========================================================================== */

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }
table { border-collapse: collapse; }

/* --- Tokens ----------------------------------------------------------------
   Light is the default. Dark is opt-in via [data-theme="dark"] on <html>,
   set by the toggle in the header and remembered in localStorage.
   Every colour below is a token: no component rule hard-codes a hex, so both
   themes stay in sync. Inline SVGs reference these same tokens.
   -------------------------------------------------------------------------- */
:root {
  /* Base ΓÇö cool near-white, biased very slightly toward the accent */
  --bg:            #f6f8fb;
  --bg-raised:     #ffffff;
  --panel:         #ffffff;
  --panel-2:       #f1f5fa;
  --line:          #d5deeb;
  --line-soft:     #e6ecf4;

  /* Ink */
  --ink:           #0c1524;
  --ink-2:         #334155;
  --ink-3:         #475569;
  --ink-4:         #64748b;

  /* Spectrum accents ΓÇö text-safe on a light ground */
  --cyan:          #0e7490;
  --blue:          #2563eb;
  --violet:        #7c3aed;
  --ir:            #e11d48;   /* long-wave IR marker */
  --amber:         #b45309;
  --green:         #047857;

  /* Vivid variants for graphics, where contrast rules do not apply */
  --cyan-vivid:    #06b6d4;
  --violet-vivid:  #a855f7;
  --blue-vivid:    #3b82f6;
  --green-vivid:   #10b981;
  --amber-vivid:   #f59e0b;
  --ir-vivid:      #fb7185;

  /* Surface tints, ambient glow and chrome */
  --tint:          rgba(12, 21, 36, .028);
  --tint-2:        rgba(12, 21, 36, .05);
  --tint-3:        rgba(12, 21, 36, .075);
  --accent-tint:   rgba(14, 116, 144, .07);
  --accent-line:   rgba(14, 116, 144, .3);
  --btn-sheen:     rgba(255, 255, 255, .45);
  --grid-line:     rgba(70, 100, 145, .085);
  --header-bg:     rgba(246, 248, 251, .78);
  --header-bg-on:  rgba(246, 248, 251, .94);
  --beam:          #64748b;
  --bar-stripe:    rgba(255, 255, 255, .16);
  --marker:        #0c1524;

  --aurora-1:      rgba(37, 99, 235, .10);
  --aurora-2:      rgba(124, 58, 237, .07);
  --aurora-3:      rgba(6, 182, 212, .08);

  /* Display-gradient stops and primary-button ramp */
  --grad-1: #0c1524; --grad-2: #0e7490; --grad-3: #2563eb; --grad-4: #7c3aed;
  --btn-1: #35dcf2; --btn-2: #0bb4d4; --btn-3: #0891b2;
  --footer-wash: rgba(226, 234, 245, .55);

  --accent:        var(--cyan);
  --accent-ink:    #04121a;

  /* Type */
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono",
          "Roboto Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(2.25rem, 4.5vw, 4rem);
  --radius: 14px;
  --radius-lg: 22px;

  --max: 1240px;
  --max-narrow: 780px;

  --ring: 0 0 0 1px var(--line);
  --shadow: 0 18px 44px -22px rgba(12, 30, 60, .30);
  --glow: 0 6px 18px -6px rgba(6, 182, 212, .45);
}

/* --- Dark theme ------------------------------------------------------------
   Only the colour tokens are redefined; every layout and type token above is
   shared. Opt-in, so a visitor who has not asked for dark never gets it.
   -------------------------------------------------------------------------- */
:root[data-theme="dark"] {
  --bg:            #05070d;
  --bg-raised:     #090d17;
  --panel:         #0b1120;
  --panel-2:       #0e1526;
  --line:          #1a2338;
  --line-soft:     #141c2e;

  --ink:           #f4f7ff;
  --ink-2:         #d4dced;
  --ink-3:         #a8b4cc;
  --ink-4:         #8b98b0;

  --cyan:          #22d3ee;
  --blue:          #3b82f6;
  --violet:        #a855f7;
  --ir:            #fb7185;
  --amber:         #f59e0b;
  --green:         #34d399;

  --cyan-vivid:    #22d3ee;
  --violet-vivid:  #a855f7;
  --blue-vivid:    #3b82f6;
  --green-vivid:   #34d399;
  --amber-vivid:   #f59e0b;
  --ir-vivid:      #fb7185;

  --tint:          rgba(255, 255, 255, .022);
  --tint-2:        rgba(255, 255, 255, .05);
  --tint-3:        rgba(255, 255, 255, .075);
  --accent-tint:   rgba(34, 211, 238, .08);
  --accent-line:   rgba(34, 211, 238, .34);
  --btn-sheen:     rgba(255, 255, 255, .32);
  --grid-line:     rgba(148, 173, 214, .055);
  --header-bg:     rgba(5, 7, 13, .72);
  --header-bg-on:  rgba(5, 7, 13, .9);
  --beam:          #ffffff;
  --bar-stripe:    rgba(0, 0, 0, .24);
  --marker:        #ffffff;

  --aurora-1:      rgba(59, 130, 246, .17);
  --aurora-2:      rgba(168, 85, 247, .13);
  --aurora-3:      rgba(34, 211, 238, .10);

  --grad-1: #ffffff; --grad-2: #a5e8f7; --grad-3: #9db4ff; --grad-4: #cba6ff;
  --btn-1: #4ee2f5; --btn-2: #22d3ee; --btn-3: #12b6d6;
  --footer-wash: rgba(9, 13, 23, .85);

  --shadow: 0 24px 70px -28px rgba(0, 0, 0, .9);
  --glow: 0 0 44px -8px rgba(34, 211, 238, .38);
}

/* --- Base ----------------------------------------------------------------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.075rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Ambient field ΓÇö fixed, cheap, non-interactive */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 620px at 12% -8%,  var(--aurora-1), transparent 68%),
    radial-gradient(760px 540px at 92% 4%,   var(--aurora-2), transparent 66%),
    radial-gradient(680px 620px at 50% 108%, var(--aurora-3), transparent 70%);
}
body > * { position: relative; z-index: 1; }

/* Fine engineering grid */
.grid-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at 50% 32%, #000 8%, transparent 74%);
  -webkit-mask-image: radial-gradient(circle at 50% 32%, #000 8%, transparent 74%);
}

/* --- Typography ----------------------------------------------------------- */
h1, h2, h3, h4 {
  line-height: 1.08;
  letter-spacing: -.028em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.15rem); letter-spacing: -.032em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.1vw, 1.45rem); letter-spacing: -.02em; }
h4 { font-size: 1.03rem; letter-spacing: -.012em; }
/* Semantic h3 that should *look* like an h4 ΓÇö keeps the heading outline
   unbroken for screen readers without changing the visual hierarchy. */
h3.h4 { font-size: 1.03rem; letter-spacing: -.012em; }
p  { text-wrap: pretty; }

.lede { font-size: clamp(1.18rem, 2vw, 1.4rem); color: var(--ink-2); line-height: 1.65; max-width: 42rem; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.grad {
  background: linear-gradient(103deg, var(--grad-1) 4%, var(--grad-2) 42%, var(--grad-3) 68%, var(--grad-4) 96%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: var(--max-narrow); }
.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 820px; margin-bottom: clamp(1.25rem, 2.6vw, 2rem); }
.section-head p { margin-top: 1.1rem; }

.rule {
  height: 1px; border: 0;
  background: linear-gradient(90deg, transparent, var(--line) 18%, var(--line) 82%, transparent);
}

.cols { display: grid; gap: clamp(1rem, 2.2vw, 1.6rem); }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr)); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); background: var(--header-bg-on); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .68rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-logo {
  height: 58px; width: auto; max-width: min(300px, 62vw);
  object-fit: contain; display: block;
  background: #fff; border-radius: 12px; padding: 7px 14px;
  box-shadow: 0 2px 14px rgba(12,30,60,.14);
}
@media (min-width: 1000px) {
  .brand-logo { height: 72px; max-width: 340px; padding: 8px 16px; }
  .nav { height: 92px; }
}
/* brand logo pack v3 */
.brand-name { font-weight: 700; letter-spacing: -.03em; font-size: 1.22rem; }
.brand-name span { color: var(--cyan); }

.nav-links { display: none; align-items: center; gap: .35rem; margin-left: auto; }
@media (min-width: 1000px) { .nav-links { display: flex; } }
.nav-links a {
  text-decoration: none;
  font-size: .9rem;
  color: var(--ink-2);
  padding: .5rem .78rem;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--tint-2); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { margin-left: .55rem; }

/* Theme toggle ΓÇö sun and moon swap on [aria-pressed] */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-3);
  margin-left: .4rem;
  transition: color .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-4); background: var(--tint); }
.theme-toggle .i-moon { display: none; }
.theme-toggle[aria-pressed="true"] .i-moon { display: block; }
.theme-toggle[aria-pressed="true"] .i-sun { display: none; }
.nav-links .theme-toggle { margin-left: .55rem; }
/* On mobile it sits next to the hamburger rather than inside the drawer */
.nav > .theme-toggle { margin-left: auto; }
@media (min-width: 1000px) { .nav > .theme-toggle { display: none; } }
@media (max-width: 999px)  { .nav-links .theme-toggle { display: none; } }

.nav-toggle {
  margin-left: .4rem;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink-2);
}
@media (min-width: 1000px) { .nav-toggle { display: none; } }

.drawer {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-raised);
  padding: .75rem var(--pad) 1.5rem;
}
.drawer.is-open { display: block; }
@media (min-width: 1000px) { .drawer, .drawer.is-open { display: none; } }
.drawer a {
  display: block;
  padding: .8rem .25rem;
  text-decoration: none;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line-soft);
  font-size: 1rem;
}
.drawer a:last-of-type { border-bottom: 0; }
.drawer .btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .78rem 1.42rem;
  border-radius: 10px;
  font-size: .925rem; font-weight: 550;
  text-decoration: none;
  letter-spacing: -.005em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .25s, border-color .25s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--btn-1), var(--btn-2) 55%, var(--btn-3));
  color: var(--accent-ink);
  font-weight: 650;
  box-shadow: 0 1px 0 var(--btn-sheen) inset, var(--glow);
}
.btn-primary:hover { box-shadow: 0 1px 0 var(--btn-sheen) inset, 0 0 56px -6px var(--accent-line); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--tint); }
.btn-ghost:hover { border-color: var(--line); background: var(--tint-3); transform: translateY(-1px); }
.btn-sm { padding: .55rem 1.02rem; font-size: .865rem; }
.btn .arw { transition: transform .22s; }
.btn:hover .arw { transform: translateX(3px); }

/* --- Hero ----------------------------------------------------------------- */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 9vw, 7.5rem); overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { max-width: 63ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.35rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-top: clamp(3.25rem, 7vw, 5rem);
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats div { background: var(--bg); padding: 1.35rem 1.4rem; }
.hero-stats b {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--ink);
  margin-bottom: .3rem;
}
.hero-stats span { font-size: .78rem; color: var(--ink-3); letter-spacing: .015em; }

/* --- Cards ---------------------------------------------------------------- */
.card {
  position: relative;
  background: linear-gradient(168deg, var(--panel), var(--bg-raised));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 1.85rem);
  transition: border-color .3s, transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
}
.card:hover { border-color: var(--line); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .7rem; }
.card p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; }

a.card { text-decoration: none; display: block; }
a.card::after {
  content: "ΓåÆ";
  position: absolute; top: 1.35rem; right: 1.45rem;
  color: var(--ink-4);
  transition: color .25s, transform .25s;
}
a.card:hover::after { color: var(--cyan); transform: translateX(3px); }

.card-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--accent-tint), var(--accent-tint));
  border: 1px solid var(--accent-line);
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.card-num {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .17em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-bottom: .85rem;
  display: block;
}

/* Material card accent stripe */
.card[data-accent]::before {
  content: "";
  position: absolute; inset: 0 0 auto 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--stripe, var(--cyan)), transparent 72%);
  opacity: .85;
}

/* --- Spec list / table ---------------------------------------------------- */
.specs { list-style: none; padding: 0; display: grid; gap: 0; }
.specs li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.25rem;
  padding: .72rem 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: .9rem;
}
.specs li:last-child { border-bottom: 0; }
.specs dt, .specs .k { color: var(--ink-3); }
.specs dd, .specs .v { font-family: var(--mono); color: var(--ink); text-align: right; font-size: .875rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table.data { width: 100%; min-width: 660px; font-size: .885rem; }
table.data th, table.data td { padding: .88rem 1.05rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.data thead th {
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: .705rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--tint); }
table.data td { color: var(--ink-2); }
table.data td:first-child { color: var(--ink); font-weight: 550; white-space: nowrap; }
table.data .num { font-family: var(--mono); color: var(--ink); }

/* --- Chips / badges ------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  /* contrast reinforced below if block continues */
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  padding: .34rem .68rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--tint);
}
.chip.on { border-color: var(--accent-line); color: var(--cyan); background: var(--accent-tint); }

/* --- Steps / process ------------------------------------------------------ */
.steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  position: relative;
  padding: 1.5rem 0 1.5rem 4.25rem;
  border-bottom: 1px solid var(--line-soft);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 1.5rem;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--cyan);
  width: 2.6rem; height: 2.6rem;
  display: grid; place-items: center;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-tint);
}
.steps h4 { margin-bottom: .35rem; }
.steps p { color: var(--ink-3); font-size: .92rem; }

/* --- Panels / callouts ---------------------------------------------------- */
.panel {
  background: linear-gradient(160deg, var(--panel), var(--bg-raised));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
}
.panel-accent {
  border-color: var(--accent-line);
  background:
    radial-gradient(700px 300px at 10% 0%, var(--accent-tint), transparent 62%),
    linear-gradient(160deg, var(--panel), var(--bg-raised));
}

.note {
  border-left: 2px solid var(--cyan);
  padding: .3rem 0 .3rem 1.15rem;
  color: var(--ink-2);
  font-size: .93rem;
}

/* --- Certifications --------------------------------------------------------
   Two states. The finished state is the default and is what ships once a
   certificate is in hand. Adding .is-pending to a .cert marks it as not yet
   held: dashed frame, muted, and a PENDING chip ΓÇö so an unverified claim can
   never be mistaken for a real one while the section is being filled in.
   To publish one: replace the placeholder values and delete `is-pending`.
   -------------------------------------------------------------------------- */
.cert {
  position: relative;
  display: grid;
  gap: .85rem;
  padding: clamp(1.35rem, 2.6vw, 1.75rem);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(168deg, var(--panel), var(--bg-raised));
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.cert:hover { border-color: var(--line); transform: translateY(-2px); box-shadow: var(--shadow); }

.cert-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.cert-standard {
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
}
.cert-scope { font-size: .855rem; color: var(--ink-3); margin-top: .2rem; }

.cert-seal {
  width: 42px; height: 42px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
  color: var(--cyan);
}

.cert-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: .75rem 1.1rem;
  padding-top: .85rem;
  border-top: 1px dashed var(--line-soft);
}
.cert-meta > div { display: grid; gap: .15rem; }
.cert-meta span {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cert-meta b {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.cert-doc {
  font-size: .82rem;
  text-decoration: none;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: .4rem;
}
.cert-doc:hover { text-decoration: underline; }

/* --- Pending state --- */
.cert.is-pending {
  border-style: dashed;
  border-color: var(--line);
  background: none;
}
.cert.is-pending:hover { transform: none; box-shadow: none; }
.cert.is-pending .cert-standard,
.cert.is-pending .cert-meta b { color: var(--ink-3); }
.cert.is-pending .cert-seal { border-color: var(--line); background: none; color: var(--ink-4); }
.cert.is-pending .cert-meta b { font-style: italic; }
.cert.is-pending .cert-doc { display: none; }
.cert-pending-chip {
  position: absolute; top: 1rem; right: 1.1rem;
  font-family: var(--mono);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: .18rem .5rem;
}
.cert:not(.is-pending) .cert-pending-chip { display: none; }
.cert:not(.is-pending) .cert-head { padding-right: 0; }
.cert.is-pending .cert-head { padding-right: 5.5rem; }

/* --- Photography ----------------------------------------------------------
   Photos sit in a fixed-ratio frame so a replacement image of any size drops
   in without shifting the layout. Swap the file, keep the markup.
   -------------------------------------------------------------------------- */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line-soft);
  background: var(--panel-2);
  aspect-ratio: 3 / 2;
}
.photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.photo-zoom:hover img { transform: scale(1.035); }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 16 / 9; }

/* Caption bar over the bottom of a photo */
.photo-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.15rem .85rem;
  font-family: var(--mono);
  font-size: .69rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #f2f6fd;
  background: linear-gradient(to top, rgba(6, 12, 24, .82), transparent);
}

/* Photo + copy side by side */
.media {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.25rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .media { grid-template-columns: 1fr 1fr; }
  .media-flip > .photo { order: 2; }
}

/* --- Figures -------------------------------------------------------------- */
figure { margin: 0; }
figcaption {
  margin-top: .95rem;
  font-size: .805rem;
  color: var(--ink-4);
  font-family: var(--mono);
  letter-spacing: .015em;
}
.figure-frame {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--panel), var(--bg));
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  overflow-x: auto;
}

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .855rem; color: var(--ink-2); }
.field .req { color: var(--cyan); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .78rem .95rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.form-row { display: grid; gap: 1.15rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, transparent, var(--footer-wash));
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  margin-top: clamp(3rem, 8vw, 6rem);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
/* Footer column labels are navigation labels, not document headings ΓÇö plain
   text keeps them out of the heading outline. */
.footer-grid .footer-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 1.05rem;
  font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-grid a { text-decoration: none; color: var(--ink-2); font-size: .9rem; transition: color .2s; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
  padding-top: 1.85rem;
  border-top: 1px solid var(--line-soft);
  font-size: .82rem;
  color: var(--ink-4);
}
.footer-bottom a { color: var(--ink-3); text-decoration: none; }
.footer-bottom a:hover { color: var(--cyan); }

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  text-align: center;
  background:
    radial-gradient(760px 320px at 50% -20%, var(--accent-tint), transparent 66%),
    linear-gradient(160deg, var(--panel), var(--bg-raised));
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--ink-2); max-width: 56ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* --- Accessibility -------------------------------------------------------- */
.skip {
  position: absolute; left: -9999px;
  top: .5rem;
  background: var(--cyan); color: var(--accent-ink);
  padding: .7rem 1.15rem; border-radius: 8px; z-index: 999;
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: .5rem; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.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;
}

/* --- Reveal on scroll ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* --- Beam animation (hero SVG) -------------------------------------------- */
@keyframes beam-sweep { 0% { transform: translateX(-14%); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(14%); opacity: 0; } }
@keyframes pulse-soft { 0%, 100% { opacity: .38; } 50% { opacity: .95; } }
@keyframes orbit { to { transform: rotate(360deg); } }
.anim-beam  { animation: beam-sweep 7s ease-in-out infinite; }
.anim-pulse { animation: pulse-soft 3.6s ease-in-out infinite; }
.anim-orbit { animation: orbit 44s linear infinite; transform-origin: 50% 50%; }

/* ==========================================================================
   SPECTRAL EXPLORER ΓÇö interactive wavelength / material selector
   ========================================================================== */
.explorer { padding: clamp(1.5rem, 3.5vw, 2.75rem); }

/* --- Readout -------------------------------------------------------------- */
.ex-readout {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  grid-template-columns: 1fr;
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 780px) { .ex-readout { grid-template-columns: auto 1fr; } }

.ex-lambda { display: flex; align-items: baseline; gap: .4rem; }
.ex-val {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 500;
  letter-spacing: -.05em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: color .35s;
}
.ex-unit { font-family: var(--mono); font-size: 1.15rem; color: var(--ink-3); }

.ex-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 1rem 1.25rem;
}
.ex-meta > div { display: grid; gap: .18rem; }
.ex-meta span {
  font-family: var(--mono);
  font-size: .655rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.ex-meta b {
  font-family: var(--mono);
  font-size: .965rem;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ex-meta b.hl { color: var(--cyan); }

/* --- Spectrum bar --------------------------------------------------------- */
.ex-spectrum { position: relative; }

.ex-bandrow {
  display: flex;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: .5rem;
}
.ex-bandrow i { font-style: normal; text-align: center; overflow: hidden; white-space: nowrap; border-left: 1px solid var(--line-soft); }
.ex-bandrow i:first-child { border-left: 0; }

.ex-bar {
  position: relative;
  height: 62px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  /* UV ΓåÆ visible rainbow ΓåÆ NIR ΓåÆ SWIR ΓåÆ MWIR ΓåÆ LWIR ΓåÆ FIR */
  background: linear-gradient(90deg,
    #12061f   0%,
    #2c0a52  12%,
    #4c1d95 21.6%,
    #7c3aed 21.6%,
    #2563eb 24.8%,
    #06b6d4 26.4%,
    #22c55e 27.8%,
    #eab308 29.5%,
    #f97316 30.5%,
    #ef4444 31.6%,
    #b91c1c 33.0%,
    #7f1d1d 35.1%,
    #641b18 46.0%,
    #4a1a1f 60.3%,
    #351a2c 78.7%,
    #241a3a 90.4%,
    #14142b 100%);
}
/* fine vertical striations for a "sensor" feel */
.ex-bar::after {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--bar-stripe) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
/* Bracket marking the visible band ΓÇö deliberately dimmer than the marker
   so the bright white line always reads as "you are here". */
.ex-visible-tag {
  position: absolute;
  left: 21.6%; width: 13.5%;
  top: 0; bottom: 0;
  border-left: 1px dashed var(--marker);
  border-right: 1px dashed var(--marker);
  pointer-events: none;
}

.ex-marker {
  position: absolute;
  top: -9px; bottom: -9px;
  left: 82.8%;              /* COΓéé line ΓÇö JS moves it from here */
  width: 2px;
  background: var(--marker);
  box-shadow: 0 0 14px 2px var(--marker), 0 0 30px 6px var(--accent-line);
  transform: translateX(-1px);
  transition: left .12s linear;
  pointer-events: none;
  z-index: 3;
}
.ex-marker::before {
  content: "";
  position: absolute; top: -6px; left: 50%;
  width: 11px; height: 11px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--marker);
  border-radius: 2px;
}

.ex-range {
  -webkit-appearance: none; appearance: none;
  position: absolute;
  left: 0; right: 0;
  top: 0; height: 62px;
  width: 100%;
  background: transparent;
  cursor: ew-resize;
  margin: 0;
  z-index: 4;
}
.ex-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 62px;
  background: transparent;
  border: 0;
  cursor: ew-resize;
}
.ex-range::-moz-range-thumb {
  width: 30px; height: 62px;
  background: transparent; border: 0;
  cursor: ew-resize;
}
.ex-range:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 10px; }

.ex-ticks {
  position: relative;
  height: 20px;
  margin-top: .45rem;
  font-family: var(--mono);
  font-size: .655rem;
  color: var(--ink-4);
}
.ex-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }

.ex-hint {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.ex-hint svg { flex-shrink: 0; }

/* --- Laser presets -------------------------------------------------------- */
.ex-presets { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.ex-presets button {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .04em;
  padding: .42rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-2);
  background: var(--tint);
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.ex-presets button:hover { color: var(--ink); border-color: var(--line); transform: translateY(-1px); }
.ex-presets button[aria-pressed="true"] {
  border-color: var(--accent-line);
  color: var(--cyan);
  background: var(--accent-tint);
}

/* --- Material result grid ------------------------------------------------- */
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 218px), 1fr));
  gap: .7rem;
  margin-top: 1.9rem;
}
.ex-mat {
  position: relative;
  display: grid;
  gap: .3rem;
  padding: .95rem 1.05rem;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: var(--tint);
  opacity: .3;
  filter: saturate(.25);
  transition: opacity .38s, filter .38s, border-color .38s, background .38s, transform .3s;
}
.ex-mat.on {
  opacity: 1;
  filter: none;
  border-color: var(--accent-line);
  background: linear-gradient(160deg, var(--accent-tint), var(--tint));
  transform: translateY(-2px);
}
.ex-mat.on.reflect { border-color: var(--amber-vivid); background: linear-gradient(160deg, var(--accent-tint), var(--tint)); }
.ex-mat-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.ex-mat-sym { font-family: var(--mono); font-size: .95rem; color: var(--ink); font-weight: 500; }
.ex-mat-name { font-size: .755rem; color: var(--ink-3); }
.ex-mat-range { font-family: var(--mono); font-size: .705rem; color: var(--ink-4); }
.ex-mat .tagr {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber);
}
.ex-mat.on .ex-mat-range { color: var(--cyan); }
.ex-mat.on.reflect .ex-mat-range { color: var(--amber); }

/* Per-material transmission mini-bar */
.ex-mat-bar {
  position: relative;
  height: 3px;
  border-radius: 2px;
  background: var(--line-soft);
  margin-top: .3rem;
  overflow: hidden;
}
.ex-mat-bar i {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  opacity: .55;
  border-radius: 2px;
}
.ex-mat.on .ex-mat-bar i { opacity: 1; }

.ex-empty {
  grid-column: 1 / -1;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 11px;
  color: var(--ink-3);
  font-size: .9rem;
  text-align: center;
}

/* --- Prism hero animation ------------------------------------------------- */
@keyframes ray-flow { to { stroke-dashoffset: -220; } }
@keyframes fan-shimmer { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
@keyframes prism-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.ray-ir { stroke-dasharray: 7 9; animation: ray-flow 3.4s linear infinite; }
.fan { animation: fan-shimmer 5s ease-in-out infinite; }
.prism-body { animation: prism-float 8s ease-in-out infinite; transform-origin: 50% 50%; }

/* ==========================================================================
   LAYOUT UTILITIES
   These exist so the markup carries zero inline style attributes, which lets
   the production CSP stay at `style-src 'self'` with no 'unsafe-inline'.
   Declared last so they win over the component rules above.
   ========================================================================== */
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.pt-sm { padding-top: 2rem; }
.pt-md { padding-top: clamp(2rem, 5vw, 4rem); }
.jc-center { justify-content: center; }
.ai-start { align-items: start; }
.ta-left { text-align: left; }
.mb-1r { margin-bottom: 1rem; }
.mw-34 { max-width: 34ch; }
.mw-66 { max-width: 66ch; }
.mw-68 { max-width: 68ch; }
.mw-48c { max-width: 48ch; margin-inline: auto; }
.mw-52c { max-width: 52ch; margin-inline: auto; }
.divider-top { border-top: 1px solid var(--line-soft); padding-top: 1.15rem; }
.fig-hero { max-width: 640px; margin-inline: auto; }
.fig-404 { max-width: 300px; margin: 0 auto 2rem; }
.icon-center { margin: 0 auto 1.5rem; }
.orbit-hero { transform-origin: 300px 240px; }

/* Card accent stripes (consumed by .card[data-accent]::before) */
.st-green  { --stripe: var(--green-vivid); }
.st-cyan   { --stripe: var(--cyan-vivid); }
.st-blue   { --stripe: var(--blue-vivid); }
.st-amber  { --stripe: var(--amber-vivid); }
.st-violet { --stripe: var(--violet-vivid); }
.st-rose   { --stripe: var(--ir-vivid); }

/* Spectral band label widths ΓÇö must match the log scale in spectrum.js */
.bw-uv   { width: 21.59%; }
.bw-vis  { width: 13.47%; }
.bw-nir  { width: 10.95%; }
.bw-swir { width: 14.28%; }
.bw-mwir { width: 18.37%; }
.bw-lwir { width: 11.77%; }
.bw-fir  { width: 9.57%; }

/* Axis tick positions on the spectrum bar */
.tk-02 { left: 9.57%; }
.tk-05 { left: 26.73%; }
.tk-1  { left: 39.71%; }
.tk-2  { left: 52.69%; }
.tk-5  { left: 69.86%; }
.tk-10 { left: 82.84%; }
.tk-20 { left: 95.82%; }

/* --- Utilities ------------------------------------------------------------ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.center { text-align: center; }
.mono { font-family: var(--mono); }

/* Footer email ΓÇö the one contact detail that should never be hunted for */
.footer-email {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-line);
  padding-bottom: 1px;
}
.footer-email:hover { border-bottom-color: var(--cyan); }

/* --- Cookie consent banner ------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  padding: .9rem 0 calc(.9rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px -20px rgba(12, 30, 60, .35);
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.cookie-banner p {
  margin: 0;
  color: var(--ink-2);
  font-size: .9rem;
  line-height: 1.5;
  max-width: 62ch;
}
.cookie-banner a { color: var(--cyan); font-weight: 600; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .55rem; }

/* --- Breadcrumbs ---------------------------------------------------------- */
.crumbs {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink-3);
  margin-bottom: 1.25rem;
  display: flex; flex-wrap: wrap; gap: .35rem .55rem; align-items: center;
}
.crumbs a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--cyan); border-bottom-color: var(--accent-line); }
.crumbs .sep { color: var(--ink-4); }

/* --- FAQ (details/summary) ------------------------------------------------ */
.faq-list { display: grid; gap: .7rem; max-width: var(--max-narrow); }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "ΓÇô"; }
.faq-list details[open] summary { border-bottom: 1px solid var(--line-soft); }
.faq-list details p {
  padding: .85rem 1.15rem 1.15rem;
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.65;
}
.faq-list details a { color: var(--cyan); font-weight: 600; }

/* --- Engineering notes / blog --------------------------------------------- */
.blog-list { display: grid; gap: 1rem; }
@media (min-width: 800px) {
  .blog-list { grid-template-columns: 1fr 1fr; }
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  height: 100%;
}
.blog-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.blog-card .blog-meta {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: .55rem;
}
.blog-card h2, .blog-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 .55rem;
  color: var(--ink);
}
.blog-card p { color: var(--ink-2); font-size: .92rem; flex: 1; margin: 0; }
.blog-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.blog-tags span {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--accent-line);
  padding: .28rem .55rem;
  border-radius: 999px;
  background: var(--accent-tint);
}

.article { max-width: var(--max-narrow); margin-inline: auto; }
.article .blog-meta {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--ink-4);
  letter-spacing: .04em;
  margin-bottom: .75rem;
}
.article .lede { margin-top: .75rem; }
.article-body { margin-top: 1.75rem; }
.article-body p {
  color: var(--ink-2);
  line-height: 1.72;
  margin: 0 0 1.05rem;
}
.article-body h2 {
  font-size: 1.2rem;
  margin: 2rem 0 .7rem;
  color: var(--ink);
}
.article-body ul {
  color: var(--ink-2);
  margin: 0 0 1.05rem 1.2rem;
  line-height: 1.65;
}
.article-body li { margin: .35rem 0; }
.article-body a { color: var(--cyan); font-weight: 600; }
.article-body strong { color: var(--ink); font-weight: 600; }

.article-cta {
  margin: 2.25rem 0 0;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--accent-line);
  background: var(--accent-tint);
}
.article-cta p { color: var(--ink-2); margin: .4rem 0 1rem; font-size: .95rem; }
.article-cta .hero-actions { margin-top: 0; }

/* Illustrative transmission band chart (token-based; not a datasheet) */
.band-chart {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}
.band-chart-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .65rem;
}
.band-chart-track {
  position: relative;
  height: 2rem;
  border-radius: 8px;
  background: var(--tint-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.band-chart-win {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 6px;
  opacity: .85;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--accent-ink);
  padding: 0 .35rem;
  white-space: nowrap;
  overflow: hidden;
}
/* Wavelength-coded fills (deliberate literals ΓÇö same exception as prism/IR rays) */
.band-win-uv   { background: #8b5cf6; color: #fff; }
.band-win-vis  { background: #22c55e; color: #052e16; }
.band-win-nir  { background: #f59e0b; color: #1c1003; }
.band-win-mwir { background: #f97316; color: #1c0a02; }
.band-win-lwir { background: #ef4444; color: #fff; }
.band-win-broad { background: linear-gradient(90deg, #06b6d4, #a855f7, #f59e0b); color: #04121a; }
.band-chart-axis {
  display: flex; justify-content: space-between;
  margin-top: .45rem;
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--ink-4);
}
.band-chart-note {
  margin-top: .55rem;
  font-size: .78rem;
  color: var(--ink-3);
}

/* Position helpers for band windows (log-ish visual, illustrative only) */
.bw-pos-uv   { left: 4%;  width: 18%; }
.bw-pos-vis  { left: 20%; width: 14%; }
.bw-pos-nir  { left: 32%; width: 16%; }
.bw-pos-si   { left: 38%; width: 28%; }
.bw-pos-ge   { left: 48%; width: 32%; }
.bw-pos-znse { left: 28%; width: 58%; }
.bw-pos-zns  { left: 24%; width: 52%; }
.bw-pos-chal { left: 30%; width: 48%; }
.bw-pos-caf2 { left: 6%;  width: 55%; }
.bw-pos-sio2 { left: 8%;  width: 36%; }
.bw-pos-sys  { left: 6%;  width: 80%; }

.ml-btn { margin-left: .55rem; }
.gap-hero { gap: .65rem; }

.site-footer .brand-logo { height: 48px; max-width: 240px; }
.file-drop {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; background: var(--panel-2);
}
.file-drop input[type=file] { width: 100%; margin-top: .45rem; }
.quote-checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.quote-checklist li {
  display: flex; gap: .55rem; align-items: flex-start;
  font-size: .92rem; color: var(--ink-2);
}
.quote-checklist li::before { content: "Γ£ô"; color: var(--cyan); font-weight: 700; flex-shrink: 0; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: .75rem 1.25rem;
  align-items: center; margin-top: 1.25rem;
}
.trust-pill {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .75rem; background: var(--panel);
}
.media-stack { display: grid; gap: 1rem; }
@media (min-width: 800px) {
  .media-stack { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Polish layer — cleaner corporate layout (Claude base + refinements)
   ========================================================================== */

/* Calmer ambient — less color noise */
body::before {
  opacity: .72;
}

/* Type hierarchy */
h1 {
  letter-spacing: -.035em;
  line-height: 1.08;
}
h2 {
  letter-spacing: -.025em;
  line-height: 1.15;
}
.lede {
  max-width: 36rem;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  line-height: 1.7;
  color: var(--ink-2);
}
.eyebrow {
  letter-spacing: .12em;
  font-weight: 600;
}

/* Header cleaner */
.site-header {
  border-bottom: 1px solid var(--line-soft);
}
.nav-links a {
  font-weight: 500;
  letter-spacing: -.01em;
}

/* Classic logo — prominent header, modest footer (strategic, not repeated name) */
.brand-logo {
  height: 62px !important;
  max-width: min(320px, 68vw) !important;
  padding: 8px 16px !important;
  background: #fff !important;
  border-radius: 12px !important;
  border: 1px solid rgba(12,30,60,.08);
  box-shadow: 0 3px 16px rgba(12,30,60,.12) !important;
}
@media (min-width: 1000px) {
  .brand-logo {
    height: 76px !important;
    max-width: 380px !important;
    padding: 9px 18px !important;
  }
  .nav { height: 96px !important; }
}
@media (max-width: 480px) {
  .brand-logo {
    height: 48px !important;
    max-width: min(210px, 58vw) !important;
    padding: 5px 10px !important;
  }
}
/* Footer: one smaller logo only — strategic, not competing with header */
.site-footer .brand-logo {
  height: 48px !important;
  max-width: 240px !important;
  padding: 6px 12px !important;
}
.site-footer .brand-name { display: none !important; }

/* Cards: calmer, more premium */
.card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Soften harsh rose/pink accents on light theme */
:root {
  --ir: #be123c;
  --ir-vivid: #e11d48;
}

/* Sections more breathing room */
.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

/* Buttons more solid/professional */
.btn-primary {
  font-weight: 600;
  letter-spacing: -.01em;
  box-shadow: 0 8px 22px -10px rgba(8, 145, 178, .55);
}
.btn-ghost {
  font-weight: 550;
}

/* Forms cleaner */
.form input,
.form textarea,
.form select {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

/* Table readability */
table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
}
table td {
  vertical-align: top;
}

/* Footer less noisy */
.site-footer {
  border-top: 1px solid var(--line-soft);
}

/* Reduce rainbow ray intensity in hero a bit via opacity on labels */
.fig-hero text { opacity: .92; }

/* Densify layout v1 */
body { font-size: 1.075rem !important; }
.brand-name { display: none !important; }
.section.pt-0 { padding-top: 0.65rem !important; }
.page-intro { padding-block: clamp(1.6rem, 3.2vw, 2.5rem) clamp(1.35rem, 2.8vw, 2rem) !important; }
.page-intro .section-head { margin-bottom: 1rem !important; }
.page-intro-grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); align-items: start; }
@media (min-width: 900px) {
  .page-intro-grid { grid-template-columns: 1.05fr 0.95fr; gap: 2.25rem; align-items: center; }
  .page-intro-grid .section-head { margin-bottom: 0 !important; }
}
.hero { padding-block: clamp(2.4rem, 5.5vw, 4.25rem) clamp(2.6rem, 5.5vw, 4.75rem) !important; }
.hero-actions { margin-top: 1.5rem !important; }

/* ==========================================================================
   Contrast + type boost v2 (dark & light readability)
   ========================================================================== */
:root {
  --ink-2: #334155;
  --ink-3: #475569;
  --ink-4: #64748b;
}
:root[data-theme="dark"] {
  --ink:   #f4f7ff;
  --ink-2: #dce4f5;
  --ink-3: #b4c0d8;
  --ink-4: #94a3b8;
}

body { font-size: 1.075rem !important; color: var(--ink) !important; }
.lede { font-size: clamp(1.18rem, 2vw, 1.4rem) !important; color: var(--ink-2) !important; }
.muted { color: var(--ink-3) !important; }
.eyebrow { font-size: .78rem !important; color: var(--cyan) !important; opacity: 1 !important; }

.nav-links a {
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--ink-2) !important;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink) !important; }

.card p, .steps p { font-size: 1.05rem !important; color: var(--ink-2) !important; }
.card h3 { color: var(--ink) !important; }

.chip {
  font-size: .84rem !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  background: var(--tint-2) !important;
  border: 1px solid var(--line) !important;
}
:root[data-theme="dark"] .chip {
  background: rgba(255,255,255,.07) !important;
  border-color: rgba(148,173,214,.28) !important;
  color: #e8eefb !important;
}
.chip.on {
  color: var(--cyan) !important;
  border-color: var(--accent-line) !important;
  background: var(--accent-tint) !important;
}

/* Spectral explorer contrast + clearer motion */
.ex-meta span,
.ex-bandrow,
.ex-hint {
  color: var(--ink-3) !important;
  font-size: .72rem !important;
  opacity: 1 !important;
}
.ex-meta b { font-size: 1.05rem !important; color: var(--ink) !important; }
.ex-unit { color: var(--ink-2) !important; }
.ex-mat {
  opacity: .78 !important;
  filter: saturate(.75) !important;
  transition: opacity .4s, filter .4s, border-color .35s, background .35s,
              transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s !important;
}
.ex-mat-name { color: var(--ink-2) !important; font-size: .82rem !important; }
.ex-mat-range { color: var(--ink-3) !important; }
.ex-mat-sym { color: var(--ink) !important; }
.ex-mat.on {
  opacity: 1 !important;
  filter: none !important;
  transform: translateY(-3px) scale(1.015) !important;
  box-shadow: 0 12px 30px -14px rgba(14,116,144,.4) !important;
}
.ex-mat.on .ex-mat-range { color: var(--cyan) !important; }
.ex-mat-bar i { transition: left .35s ease, width .35s ease, background .35s !important; }
.ex-marker { transition: left .12s linear, box-shadow .25s, background .25s !important; }
.ex-presets button {
  color: var(--ink-2) !important;
  font-size: .78rem !important;
}
.ex-presets button[aria-pressed="true"] { color: var(--cyan) !important; }

.photo-cap, .cert-scope, .field label { color: var(--ink-3) !important; }
table.data th { color: var(--ink-3) !important; }
table.data td { color: var(--ink-2) !important; }
.specs dt, .specs .k { color: var(--ink-3) !important; }
.specs dd, .specs .v { color: var(--ink) !important; }

/* Don't kill explorer/card motion when OS reduced-motion is on */
@media (prefers-reduced-motion: reduce) {
  .ex-mat, .ex-mat-bar i, .ex-marker, .ex-val, .ex-presets button {
    transition-duration: .2s !important;
    animation-duration: .2s !important;
  }
}
/* Photos: no caption text */
.photo-cap { display: none !important; }
