/* ==========================================================================
   R.F. Carlson Co. — site styles
   Design tokens + components. No framework dependency.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/kanit-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Kanit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/kanit-latin-700-normal.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* Brand blue, refreshed from the original #000099 */
  --navy-950: #050f33;
  --navy-900: #0a1f5c;
  --navy-800: #0d2a7a;
  --navy-700: #123399;
  --blue-600: #1f47c7;
  --blue-500: #2f5ce0;
  --blue-100: #dce5ff;
  --blue-50:  #eef3ff;

  --accent-600: #d95f02;
  --accent-500: #f97316;
  --accent-400: #fb923c;

  --ink:      #0e1524;
  --ink-2:    #3d475f;
  --ink-3:    #64708c;
  --line:     #e3e8f3;
  --line-2:   #cfd7e8;
  --surface:  #ffffff;
  --surface-2:#f5f7fc;
  --surface-3:#eef1f9;

  --ok:   #16a34a;
  --warn: #ca8a04;
  --mid:  #ea580c;
  --bad:  #dc2626;
  --unk:  #64708c;

  --radius:   14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-1: 0 1px 2px rgba(10, 31, 92, .06), 0 2px 8px rgba(10, 31, 92, .05);
  --shadow-2: 0 2px 6px rgba(10, 31, 92, .07), 0 12px 28px rgba(10, 31, 92, .09);
  --shadow-3: 0 8px 20px rgba(10, 31, 92, .12), 0 28px 60px rgba(10, 31, 92, .16);

  --wrap: 1240px;
  --gut: clamp(1.15rem, 3.5vw, 2.5rem);

  --header-h: 74px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Kanit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--surface);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.3rem, 1.15rem + 4.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 1.05rem + 2.7vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, .98rem + .82vw, 1.5rem); }
h4 { font-size: 1.08rem; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
a  { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-800); }
ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li + li { margin-top: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 4px;
}
::selection { background: var(--blue-100); color: var(--navy-900); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--wide { max-width: 1460px; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--alt { background: var(--surface-2); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent-500); color: #fff; padding: .7rem 1.1rem;
  font-weight: 600; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }
.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;
}
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-500);
  margin: 0 0 .9rem;
}
.eyebrow--onDark { color: var(--accent-400); }
.lede { font-size: clamp(1.05rem, .98rem + .35vw, 1.22rem); color: var(--ink-2); max-width: 62ch; }
.section-head { max-width: 66ch; margin-bottom: clamp(2rem, 4vw, 3rem); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: .92em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent-500); color: #fff; box-shadow: 0 6px 18px rgba(217, 95, 2, .28); }
.btn--primary:hover { background: var(--accent-600); color: #fff; box-shadow: 0 10px 24px rgba(217, 95, 2, .34); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-900); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.42); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.75); }
.btn--outline { background: transparent; color: var(--navy-800); border-color: var(--line-2); }
.btn--outline:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--navy-900); }
.btn--sm { font-size: .9rem; padding: .7em 1.15em; }
.btn--block { width: 100%; }
.btn > svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--navy-950); color: #b9c6ea;
  font-size: .84rem; line-height: 1;
}
.utility .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem;
  padding-block: .6rem;
}
.utility a { color: #dbe4fb; text-decoration: none; font-weight: 500; }
.utility a:hover { color: #fff; text-decoration: underline; }
.utility .u-item { display: inline-flex; align-items: center; gap: .45rem; }
.utility .u-item svg { width: 15px; height: 15px; opacity: .75; flex: none; }
.utility .u-spacer { margin-left: auto; }
@media (max-width: 720px) { .utility .u-hide-sm { display: none; } .utility .u-spacer { margin-left: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--navy-900);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(5, 15, 51, .35); }
.site-header .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex: none; margin-right: auto; }
.brand img { width: 208px; height: auto; }
@media (max-width: 480px) { .brand img { width: 165px; } }

.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  color: #d7e0f8; text-decoration: none;
  font-size: .95rem; font-weight: 500;
  padding: .55rem .78rem; border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: rgba(255,255,255,.11); color: #fff; }
.nav a[aria-current="page"] { color: #fff; font-weight: 600; background: rgba(255,255,255,.09); }
.header-cta { margin-left: .6rem; }

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm);
  font: 600 .9rem/1 var(--sans); padding: .6rem .8rem; cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,.18); }
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw);
    background: var(--navy-900);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: .2rem; padding: 5.5rem 1.25rem 2rem;
    transform: translateX(100%); transition: transform .28s cubic-bezier(.4,0,.2,1);
    box-shadow: -12px 0 40px rgba(5,15,51,.4);
    overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateX(0); }
  .nav a { font-size: 1.05rem; padding: .8rem .9rem; }
  .nav .btn { margin-top: 1.25rem; }
  .nav .btn:hover { color: #fff; }
  .nav-contact { display: block; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14); }
  .nav-contact a { display: flex; align-items: center; gap: .6rem; font-size: .98rem; padding: .5rem .9rem; color: #b9c6ea; }
  .nav-contact svg { width: 17px; height: 17px; flex: none; opacity: .8; }
  .nav-close {
    position: absolute; top: 1.1rem; right: 1.1rem;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    color: #fff; border-radius: var(--radius-sm); cursor: pointer;
    width: 40px; height: 40px; display: grid; place-items: center;
  }
  .nav-close svg { width: 18px; height: 18px; }
  .scrim {
    position: fixed; inset: 0; background: rgba(5,15,51,.55);
    backdrop-filter: blur(2px); z-index: 55; opacity: 0; pointer-events: none;
    transition: opacity .28s ease;
  }
  .scrim[data-open="true"] { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 1001px) { .nav-close, .scrim, .nav-contact { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(47, 92, 224, .5) 0%, rgba(47, 92, 224, 0) 55%),
    linear-gradient(158deg, var(--navy-800) 0%, var(--navy-900) 48%, var(--navy-950) 100%);
  color: #e7edfd;
  padding-block: clamp(3.25rem, 6.5vw, 6rem) clamp(6rem, 12vw, 9.5rem);
}
.hero::before { /* the slash motif, rebuilt in CSS */
  content: ''; position: absolute; inset: auto 0 -1px 0; height: 12vw; min-height: 70px;
  background: var(--slash-next, var(--surface));
  clip-path: polygon(0 100%, 100% 22%, 100% 100%);
  z-index: 2;
}
/* O-ring motif: concentric rings, pure CSS */
.hero__rings {
  position: absolute; z-index: 0; pointer-events: none;
  right: -12%; top: 50%; transform: translateY(-50%);
  width: min(820px, 76vw); aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
      rgba(255,255,255,.085) 0 2px,
      rgba(255,255,255,0) 2px 46px);
  -webkit-mask-image: radial-gradient(circle at center, #000 38%, transparent 72%);
          mask-image: radial-gradient(circle at center, #000 38%, transparent 72%);
}
@media (max-width: 940px) { .hero__rings { right: -32%; opacity: .7; } }
.hero .wrap { position: relative; z-index: 3; }
.hero__grid {
  display: grid; gap: clamp(2.25rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
}
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; margin-bottom: .45em; text-wrap: balance; }
.hero h1 .accent {
  background: linear-gradient(96deg, var(--accent-400), var(--accent-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { font-size: clamp(1.06rem, .98rem + .45vw, 1.3rem); color: #c3d0f0; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* "New product" card — the modernized starburst */
.newcard {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.5rem;
  backdrop-filter: blur(6px);
  max-width: 420px; margin-left: auto;
}
@media (max-width: 940px) { .newcard { margin-left: 0; } }
.newcard .tag {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--accent-500); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase;
  padding: .4rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.newcard .tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.85); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.newcard h2 { color: #fff; font-size: 1.5rem; margin-bottom: .5rem; }
.newcard p { color: #bfcdef; font-size: .98rem; }
@media (prefers-reduced-motion: reduce) {
  .newcard .tag::before { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Stat strip ---------- */
.stats {
  display: grid; gap: 1px; background: var(--line);
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-2);
  margin-top: clamp(-5.5rem, -7vw, -4rem); position: relative; z-index: 4;
  background-color: var(--surface);
}
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--surface); padding: 1.6rem 1.35rem; text-align: center; }
.stat__n {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.35rem);
  color: var(--navy-800); line-height: 1; letter-spacing: -.02em;
}
.stat__l { font-size: .88rem; color: var(--ink-3); margin-top: .5rem; line-height: 1.4; }

/* ---------- Cards / product grid ---------- */
.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.card__media {
  display: flex; align-items: center; justify-content: center; padding: 1.1rem;
  background: linear-gradient(170deg, var(--surface-2), var(--surface-3));
  border-bottom: 1px solid var(--line);
  height: 196px; overflow: hidden;
}
.card__media img {
  width: auto; max-width: 100%; height: auto; max-height: 100%;
  object-fit: contain; mix-blend-mode: multiply;
}
@media (max-width: 620px) { .card__media { height: 220px; } }
.card__body { padding: 1.25rem 1.35rem 1.35rem; flex: 1 1 auto; }
.card__body h3 { margin-bottom: .45rem; font-size: 1.22rem; }
.card__body p { font-size: .96rem; color: var(--ink-3); margin: 0; }
.card__foot { padding: 0 1.35rem 1.35rem; }
.card__link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .95rem; color: var(--blue-600); text-decoration: none;
}
.card__link svg { width: 1em; height: 1em; transition: transform .16s ease; }
.card:hover .card__link svg { transform: translateX(3px); }
.card--link { position: relative; }
.card--link .stretch::after { content: ''; position: absolute; inset: 0; }

/* ---------- Dark band (services) ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(100% 80% at 15% 0%, rgba(47, 92, 224, .38) 0%, rgba(47, 92, 224, 0) 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
  color: #cbd7f4;
  padding-block: clamp(6rem, 11vw, 9rem) clamp(6rem, 11vw, 9rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.band::before {
  content: ''; position: absolute; inset: -1px 0 auto 0; height: 11vw; min-height: 60px;
  background: var(--slash-prev, var(--surface)); clip-path: polygon(0 0, 100% 0, 100% 0, 0 78%);
}
.band--flip::before { clip-path: polygon(0 0, 100% 0, 100% 78%, 0 0); }
.band::after {
  content: ''; position: absolute; inset: auto 0 -1px 0; height: 8vw; min-height: 44px;
  background: var(--slash-next, var(--surface)); clip-path: polygon(0 100%, 100% 62%, 100% 100%);
}
.band h2, .band h3 { color: #fff; }
.band .lede { color: #b7c6ec; }
.band .wrap { position: relative; z-index: 2; }

.svc {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.svc:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.26); transform: translateY(-3px); }
.svc__ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(249, 115, 22, .16); color: var(--accent-400); margin-bottom: 1rem;
}
.svc__ico svg { width: 21px; height: 21px; }
.svc h3 { font-size: 1.16rem; margin-bottom: .5rem; }
.svc p { font-size: .95rem; color: #b3c2e8; margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: .55rem; padding: 0; margin: 0; list-style: none; }
.chips li {
  margin: 0;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px; padding: .5rem .95rem; font-size: .93rem; color: #d5dff7;
}
.chips li svg { width: 14px; height: 14px; color: var(--accent-400); flex: none; }

/* ---------- Feature / promo split ---------- */
.split {
  display: grid; gap: clamp(1.75rem, 4vw, 3.25rem);
  grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.promo {
  background: linear-gradient(155deg, var(--navy-800), var(--navy-950));
  border-radius: var(--radius-lg); color: #cbd7f4; overflow: hidden;
  padding: clamp(2rem, 4vw, 3.25rem);
  position: relative; isolation: isolate;
}
.promo::after {
  content: ''; position: absolute; z-index: -1; right: -70px; bottom: -90px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,92,224,.55), transparent 62%);
}
.promo h2 { color: #fff; }

/* compatibility swatch preview */
.swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 1.5rem; }
@media (max-width: 480px) { .swatches { grid-template-columns: 1fr; } }
.swatch {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; padding: .6rem .85rem; font-size: .9rem; color: #dbe4fa;
}
.pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
  padding: .28rem .6rem; border-radius: 999px; white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--1 { background: rgba(22,163,74,.16);  color: #4ade80; }
.pill--2 { background: rgba(202,138,4,.18);  color: #fcd34d; }
.pill--3 { background: rgba(234,88,12,.18);  color: #fdba74; }
.pill--4 { background: rgba(220,38,38,.18);  color: #fca5a5; }
.pill--9 { background: rgba(47,92,224,.20);  color: #93b4ff; }
.pill--X { background: rgba(148,163,184,.18);color: #cbd5e1; }

/* ---------- Literature list ---------- */
.lit { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 820px) { .lit { grid-template-columns: 1fr; } }
.lit__item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.15rem;
  text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-1);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.lit__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--blue-500); color: var(--ink); }
.lit__ico {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(220, 38, 38, .09); color: #dc2626;
}
.lit__ico svg { width: 21px; height: 21px; }
.lit__txt { min-width: 0; }
.lit__t { display: block; font-weight: 600; color: var(--navy-900); line-height: 1.3; }
.lit__m { display: block; font-size: .84rem; color: var(--ink-3); margin-top: .2rem; }
.lit__arrow { margin-left: auto; color: var(--ink-3); flex: none; }
.lit__arrow svg { width: 18px; height: 18px; }

/* ---------- Contact ---------- */
.loc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-1);
}
.loc h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; margin-bottom: 1rem; }
.loc h3 .badge {
  font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--blue-600); background: var(--blue-50);
  border-radius: 999px; padding: .3rem .6rem;
}
.dl { display: grid; grid-template-columns: 22px 1fr; gap: .55rem .75rem; margin: 0; }
.dl svg { width: 17px; height: 17px; color: var(--ink-3); margin-top: .3rem; }
.dl div { min-width: 0; }
.dl a { font-weight: 600; text-decoration: none; }
.dl a:hover { text-decoration: underline; }
.dl .muted { color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950); color: #97a7d0;
  padding-block: clamp(3rem, 6vw, 4.5rem) 0; font-size: .95rem;
}
.site-footer h4 {
  font-family: var(--sans); color: #fff; font-size: .8rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.site-footer a { color: #b9c6ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid; gap: 2rem clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__grid ul { list-style: none; padding: 0; margin: 0; }
.footer__grid li + li { margin-top: .55rem; }
.footer__brand img { width: 200px; margin-bottom: 1.1rem; }
.footer__bot {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 1.35rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center;
  font-size: .87rem; color: #7e8fbc;
}
.footer__bot .spacer { margin-left: auto; }
@media (max-width: 620px) { .footer__bot .spacer { margin-left: 0; } }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 50;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy-800); color: #fff; border: 1px solid rgba(255,255,255,.18);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background-color .15s ease;
}
.totop[data-show="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
.totop:hover { background: var(--navy-900); }
.totop svg { width: 20px; height: 20px; }

/* ---------- Misc ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
.text-balance { text-wrap: balance; }

/* ==========================================================================
   Interior pages
   ========================================================================== */

/* ---------- Page header ---------- */
.phead {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(110% 100% at 88% 0%, rgba(47, 92, 224, .42) 0%, rgba(47, 92, 224, 0) 58%),
    linear-gradient(158deg, var(--navy-800) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  color: #c6d3f2;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(4.5rem, 9vw, 7rem);
}
.phead::before {
  content: ''; position: absolute; inset: auto 0 -1px 0; height: 9vw; min-height: 52px;
  background: var(--slash-next, var(--surface));
  clip-path: polygon(0 100%, 100% 34%, 100% 100%); z-index: 2;
}
.phead .wrap { position: relative; z-index: 3; }
.phead h1 { color: #fff; margin-bottom: .35em; font-size: clamp(2rem, 1.25rem + 2.9vw, 3.35rem); }
.phead .lede { color: #b9c8ec; }
.phead__rings {
  position: absolute; z-index: 0; pointer-events: none;
  right: -14%; top: 50%; transform: translateY(-50%);
  width: min(640px, 70vw); aspect-ratio: 1; border-radius: 50%;
  background: repeating-radial-gradient(circle at center,
      rgba(255,255,255,.075) 0 2px, rgba(255,255,255,0) 2px 42px);
  -webkit-mask-image: radial-gradient(circle at center, #000 38%, transparent 72%);
          mask-image: radial-gradient(circle at center, #000 38%, transparent 72%);
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .88rem; margin: 0 0 1.25rem; color: #93a6d6; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem .55rem; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: .55rem; }
.crumbs li + li::before { content: '/'; color: rgba(255,255,255,.3); }
.crumbs a { color: #b9c8ec; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; }

/* ---------- Prose ---------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; margin-bottom: .5em; }
.prose ul { padding-left: 1.3em; }
.prose li::marker { color: var(--accent-500); }
.prose strong { color: var(--navy-900); }

.layout-aside {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr) 340px; align-items: start;
}
@media (max-width: 980px) { .layout-aside { grid-template-columns: 1fr; } }
.aside-card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem;
}
.aside-card h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.aside-card + .aside-card { margin-top: 1.25rem; }
.aside-sticky { position: sticky; top: calc(var(--header-h) + 20px); }

.figure {
  background: linear-gradient(170deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; align-items: center; justify-content: center;
  min-height: 220px;
}
.figure img { width: auto; max-width: 100%; max-height: 260px; mix-blend-mode: multiply; }

/* subitem rows (Other stocked items) */
.subitem {
  display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 1.5rem; align-items: center;
  padding: 1.35rem 0; border-top: 1px solid var(--line);
}
.subitem:first-of-type { border-top: 0; }
@media (max-width: 620px) { .subitem { grid-template-columns: 90px minmax(0, 1fr); gap: 1rem; } }
.subitem__img {
  background: linear-gradient(170deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .6rem; display: flex; align-items: center; justify-content: center; height: 100px;
}
.subitem__img img { width: auto; max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
.subitem h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.subitem p { font-size: .96rem; margin: 0; }

/* ---------- Fluid guide ---------- */
.fg-controls {
  display: grid; gap: 1rem; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem; box-shadow: var(--shadow-2);
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 20;
}
@media (max-width: 760px) { .fg-controls { grid-template-columns: 1fr; position: static; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: .9rem; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.input, .select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  padding: .72rem .9rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input-wrap .input { padding-left: 2.6rem; }
.input:focus, .select:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(47, 92, 224, .16);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364708c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 18px;
  padding-right: 2.4rem;
}
.fg-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
  margin: 1.5rem 0 1rem; font-size: .92rem; color: var(--ink-3);
}
.fg-count strong { color: var(--navy-900); }

.legend { display: flex; flex-wrap: wrap; gap: .5rem; }
.lpill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px;
  border: 1px solid; white-space: nowrap;
}
.lpill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.r1 { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.r2 { color: #a16207; background: #fefce8; border-color: #fde68a; }
.r3 { color: #c2410c; background: #fff7ed; border-color: #fed7aa; }
.r4 { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.r9 { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.rX { color: #52607d; background: #f8fafc; border-color: #dbe2ec; }

.fg-table-wrap {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden;
}
table.fg { width: 100%; border-collapse: collapse; font-size: .94rem; }
table.fg th, table.fg td { padding: .7rem .85rem; text-align: left; }
table.fg thead th {
  background: var(--surface-3); color: var(--navy-900);
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
table.fg tbody tr + tr { border-top: 1px solid var(--line); }
table.fg tbody tr:hover { background: var(--blue-50); }
table.fg td:first-child { font-weight: 600; color: var(--navy-900); }
table.fg mark { background: #fde68a; color: inherit; border-radius: 3px; padding: 0 1px; }
@media (max-width: 900px) {
  table.fg thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.fg, table.fg tbody, table.fg tr, table.fg td { display: block; width: 100%; }
  table.fg tr { padding: 1rem .95rem; border-top: 1px solid var(--line); }
  table.fg td { padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  table.fg td + td { margin-top: .45rem; }
  table.fg td:first-child { font-size: 1.05rem; margin-bottom: .7rem; display: block; }
  table.fg td[data-el]::before {
    content: attr(data-el); font-size: .88rem; color: var(--ink-3); font-weight: 500;
  }
}
.fg-empty { padding: 3rem 1.5rem; text-align: center; color: var(--ink-3); }
.fg-empty strong { display: block; color: var(--navy-900); font-size: 1.15rem; margin-bottom: .4rem; }
.note {
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius-sm); padding: 1.1rem 1.25rem;
  font-size: .95rem; color: var(--ink-2);
}
.note strong { color: var(--navy-900); }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .span-2 { grid-column: 1 / -1; }
.field textarea.input { min-height: 150px; resize: vertical; line-height: 1.6; }
.field .hint { font-size: .85rem; color: var(--ink-3); font-weight: 400; text-transform: none; letter-spacing: 0; }
.req { color: var(--accent-600); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.notfound .big {
  font-family: var(--display); font-weight: 700; font-size: clamp(5rem, 16vw, 11rem);
  line-height: .9; color: var(--blue-100); letter-spacing: -.04em; margin-bottom: .1em;
}

/* ---------- Print ---------- */
@media print {
  .utility, .site-header, .totop, .site-footer, .fg-controls, .hero__rings, .phead__rings { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .band, .phead, .hero, .promo { background: none !important; color: #000 !important; }
  .band h2, .band h3, .phead h1, .hero h1, .promo h2 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* ---------- Form status + honeypot ---------- */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.formstatus {
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: .97rem;
  border: 1px solid;
  border-left-width: 4px;
}
.formstatus strong { display: block; margin-bottom: .2rem; }
.formstatus--ok   { background: #f0fdf4; border-color: #bbf7d0; border-left-color: #16a34a; color: #14532d; }
.formstatus--err  { background: #fef2f2; border-color: #fecaca; border-left-color: #dc2626; color: #7f1d1d; }
.formstatus--warn { background: #fffbeb; border-color: #fde68a; border-left-color: #ca8a04; color: #713f12; }
.formstatus--ok a   { color: #14532d; }
.formstatus--err a  { color: #7f1d1d; }
.formstatus a { text-decoration: underline; }
.linkish {
  background: none; border: 0; padding: 0; font: inherit; color: inherit;
  text-decoration: underline; cursor: pointer;
}
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
