/* ==========================================================================
   CheMed Scientific — enhancement layer
   Loaded AFTER style.css. Adds: cinematic hero slider, WebGL canvas layer,
   scroll-motion primitives, alignment/rhythm corrections, micro-interactions.
   ========================================================================== */

/* ---------- 1. Motion primitives ------------------------------------------ */
/* Initial states are applied by JS (gsap.set) so that a no-JS visitor
   still sees every element. Nothing here hides content on its own. */

.js-motion [data-reveal] { will-change: transform, opacity; }

@media (prefers-reduced-motion: reduce) {
  .js-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 2. Hero slider ------------------------------------------------- */

/* How far the quote-strip card overlaps the hero. Declared on :root so the
   slider chrome and the overlapping card stay bound to a single number. */
:root { --hs-overlap: clamp(3rem, 6vw, 5.5rem); }

.hero-slider {
  position: relative;
  isolation: isolate;
  min-height: clamp(580px, 88vh, 900px);
  display: grid;
  background: radial-gradient(120% 100% at 20% 0%, #1d2568 0%, #10143c 55%, #0a0d2b 100%);
  overflow: hidden;
  color: #fff;
}

/* -- GLOBAL: constrain inline SVG icons (they have no intrinsic size) -- */
svg { max-width: 100%; }
.topbar__item svg,
.info-tile svg,
.icon-badge svg,
.feature svg { width: 18px; height: 18px; flex: 0 0 auto; }
.icon-badge svg { width: 22px; height: 22px; }
.info-tile .icon-badge svg { width: 20px; height: 20px; }
.social svg { width: 17px; height: 17px; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }

/* -- layer 0: slide backgrounds -- */
.hs__stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.hs__bg {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s ease, visibility .9s;
  overflow: hidden;
}
.hs__bg[data-active="true"] { opacity: 1; visibility: visible; }
.hs__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.hs__bg[data-active="true"] img { animation: kenburns 9s ease-out both; }
@keyframes kenburns {
  from { transform: scale(1.16) translate3d(var(--kb-x, -1.2%), var(--kb-y, 1%), 0); }
  to   { transform: scale(1.02) translate3d(0, 0, 0); }
}

/* -- layer 1: scrim -- */
.hs__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(8,11,36,.95) 0%, rgba(11,15,46,.9) 34%, rgba(14,18,54,.62) 58%, rgba(10,14,44,.34) 100%),
    linear-gradient(to top, rgba(7,9,30,.9) 0%, rgba(7,9,30,0) 45%);
}
.hs__scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90% 75% at 70% 45%, #000 15%, transparent 80%);
  -webkit-mask-image: radial-gradient(90% 75% at 70% 45%, #000 15%, transparent 80%);
}

/* -- layer 2: WebGL molecular field (behind the text, over the photo) -- */
.hs__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease .3s;
  mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.25) 38%, #000 68%);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0,0,0,.25) 38%, #000 68%);
}
.hs__canvas[data-ready="true"] { opacity: 1; }
.hs__canvas canvas { display: block; width: 100% !important; height: 100% !important; }

/* -- layer 3: caption content -- */
.hs__content {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: center;
  padding-block: clamp(4.5rem, 11vh, 8rem) calc(var(--hs-overlap, 0px) + clamp(8rem, 15vh, 11rem));
  width: 100%;
  pointer-events: none;
}
.hs__captions { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
/* all captions share one grid cell so the tallest sets the height — no jump */
.hs__cap {
  grid-area: 1 / 1;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .5s ease, visibility .5s;
}
.hs__cap[data-active="true"] { opacity: 1; visibility: visible; pointer-events: auto; }
.hs__caption { max-width: min(46rem, 100%); }

.hs__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .95rem .4rem .45rem;
  margin-bottom: var(--sp-4);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: var(--radius-pill);
  background: rgba(12,18,52,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: var(--step--1);
  color: #e2e9ff;
  letter-spacing: .02em;
}
.hs__eyebrow b {
  background: var(--cyan-500);
  color: #04203a;
  border-radius: var(--radius-pill);
  padding: .18rem .6rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hs__title {
  /* Cinzel sets ~25% wider than the old Sora at the same px, and its caps
     must not be tracked in. Trim the scale so the headline still lands in
     3 lines instead of 5. */
  font-size: clamp(1.95rem, 1.05rem + 3.1vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: 0;
  margin: 0 0 var(--sp-4);
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(6,9,30,.55);
}
.hs__title em {
  font-style: normal;
  color: var(--cyan-400);
  position: relative;
}
.hs__lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: #cfd9f5;
  max-width: 36rem;
  margin: 0 0 var(--sp-5);
  text-shadow: 0 1px 18px rgba(6,9,30,.6);
}
.hs__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; }

.hs__facts {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: var(--sp-5) 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--sp-4);
  max-width: 40rem;
}
.hs__facts b {
  display: block;
  font-size: clamp(1.35rem, 1.1rem + .7vw, 1.9rem);
  line-height: 1.1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hs__facts span { font-size: var(--step--1); color: #a8b8e2; }

/* word-level split animation targets */
.hs__title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hs__title .word > span { display: inline-block; will-change: transform; }

/* -- layer 4: slider chrome -- */
.hs__ui {
  position: absolute;
  z-index: 4;
  left: 0; right: 0;
  bottom: calc(var(--hs-overlap, 0px) + clamp(1.25rem, 3vh, 2rem));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
  pointer-events: none;
}
.hs__ui > * { pointer-events: auto; }

.hs__thumbs {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.hs__thumb {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.05rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(10,14,40,.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #cdd8f5;
  font: inherit;
  font-size: var(--step--1);
  text-align: left;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.hs__thumb i {
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--cyan-400);
  font-variant-numeric: tabular-nums;
}
.hs__thumb:hover { background: rgba(0,167,230,.2); border-color: rgba(0,167,230,.5); color: #fff; transform: translateY(-2px); }
.hs__thumb[aria-current="true"] {
  background: rgba(0,167,230,.24);
  border-color: var(--cyan-500);
  color: #fff;
}
.hs__thumb[aria-current="true"] i { color: #fff; }

.hs__nav { display: flex; gap: .5rem; align-items: center; }
.hs__arrow {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(10,14,40,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.hs__arrow:hover { background: var(--cyan-500); border-color: var(--cyan-500); color: #04203a; transform: scale(1.07); }
.hs__arrow svg { width: 20px; height: 20px; }

.hs__playstate {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(10,14,40,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.hs__playstate:hover { background: rgba(0,167,230,.3); }
.hs__playstate svg { width: 16px; height: 16px; }
.hs__playstate .ico-play { display: none; }
.hs__playstate[data-paused="true"] .ico-play { display: block; }
.hs__playstate[data-paused="true"] .ico-pause { display: none; }

/* autoplay progress rail */
.hs__progress {
  position: absolute;
  z-index: 4;
  left: 0; right: 0; bottom: var(--hs-overlap, 0px);
  height: 3px;
  background: rgba(255,255,255,.12);
}
.hs__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan-500), #6ee1ff);
  box-shadow: 0 0 14px rgba(0,167,230,.8);
}

/* scroll hint */
.hs__scroll {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(var(--hs-overlap, 0px) + clamp(1.25rem, 3vh, 2rem));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .4rem;
  color: #93a4d4;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}
.hs__scroll span { display: block; width: 1px; height: 34px; background: linear-gradient(to bottom, var(--cyan-400), transparent); }
.hs__scroll:hover { color: #fff; }

@media (max-width: 1100px) { .hs__scroll { display: none; } }
@media (max-width: 860px) {
  .hs__ui { flex-direction: column-reverse; align-items: stretch; }
  .hs__nav { justify-content: center; }
  .hs__thumbs { justify-content: center; }
  .hs__thumb span { display: none; }
  .hs__thumb { padding: .6rem .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hs__bg[data-active="true"] img { animation: none; transform: scale(1.02); }
  .hs__cap[data-active="true"] .hs__title em::after { animation: none; transform: scaleX(1); }
  .hs__canvas { display: none; }
}

/* ---------- 3. Quote strip overlapping the hero ---------------------------- */

.quote-strip { position: relative; z-index: 5; margin-top: calc(-1 * var(--hs-overlap, clamp(3rem, 6vw, 5.5rem))); }
.quote-strip__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px -32px rgba(12,18,58,.55);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
@media (min-width: 980px) { .quote-strip__card { grid-template-columns: .95fr 1.05fr; } }

/* Left panel: navy, so the form side reads as the actionable half */
.quote-strip__aside {
  background: var(--navy-900);
  color: #c3cdec;
  padding: clamp(1.6rem, 3vw, 2.6rem);
  position: relative; overflow: hidden; min-width: 0;
}
.quote-strip__aside::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,167,230,.28), transparent 70%);
  pointer-events: none;
}
.quote-strip__aside .eyebrow { color: var(--cyan-400); }
.quote-strip__aside .eyebrow::before { background: var(--cyan-400); }
.quote-strip__aside h2 { color: #fff; font-size: var(--step-2); margin-bottom: .6rem; }
.quote-strip__aside > p { color: #b7c1e4; margin: 0; font-size: .93rem; line-height: 1.65; }

.quote-steps {
  list-style: none; margin: var(--sp-4) 0 0; padding: 0;
  display: grid; gap: .7rem; position: relative; z-index: 1;
}
.quote-steps li { display: flex; align-items: center; gap: .7rem; font-size: .88rem; color: #d6ddf2; }
.quote-steps b {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .78rem;
  background: rgba(0,167,230,.18); color: var(--cyan-400);
  border: 1px solid rgba(0,167,230,.4); font-variant-numeric: tabular-nums;
}
.quote-strip__call {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  margin: var(--sp-4) 0 0; padding-top: var(--sp-3);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem; color: #b7c1e4; position: relative; z-index: 1;
}
.quote-strip__call svg { width: 16px; height: 16px; color: var(--cyan-400); flex: 0 0 auto; }
.quote-strip__call a { color: #fff; font-weight: 600; }

/* Right panel: the form itself */
.quote-strip .quick-form {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: grid; gap: var(--sp-3); align-content: start; min-width: 0;
}
@media (min-width: 620px) {
  .quote-strip .quick-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-strip .quick-form .field--wide { grid-column: 1 / -1; }
  .quote-strip .quick-form .quick-form__foot,
  .quote-strip .quick-form > .alert { grid-column: 1 / -1; }
}
.quick-form__foot {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: .35rem; padding-top: var(--sp-3); border-top: 1px solid var(--line);
}
.quick-form__foot .hint { margin: 0; }
.quote-strip .quick-form .field { margin: 0; }

/* Larger primary button, used by the quotation strip */
.btn--lg { padding: .95rem 1.7rem; font-size: 1rem; border-radius: 10px; }

/* ---------- 4. Alignment & rhythm corrections ------------------------------ */

/* Equal-height cards with bottom-anchored actions — fixes ragged card feet */
.grid { align-items: stretch; }
.grid > * { min-width: 0; }

.card,
.svc-card,
.feature,
.info-tile { height: 100%; }

.card { display: flex; flex-direction: column; }
.card__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.card__body > .product-actions { margin-top: auto; }
.card__body > .price { margin-top: auto; }
.card__body > .price + .product-actions { margin-top: var(--sp-3); }

.svc-card { display: flex; flex-direction: column; }
.svc-card > .btn { margin-top: auto; align-self: flex-start; }
.svc-card > ul { margin-bottom: var(--sp-4); }

.feature { display: flex; gap: var(--sp-4); align-items: flex-start; }
.feature .icon-badge { flex: 0 0 auto; }

/* Optical alignment: centred section heads share one measure */
.section-head.center { max-width: 46rem; margin-inline: auto; }
.section-head .lede { margin-inline: auto; }

/* consistent media aspect so rows line up regardless of source image */
.card__media { aspect-ratio: 4 / 3; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.card:hover .card__media img { transform: scale(1.06); }

/* Product grid: stop the last row stretching oddly */
#product-grid { align-items: stretch; }

/* baseline-align the toolbar */
.shop-toolbar { align-items: center; }

/* ---------- 5. Micro-interactions ----------------------------------------- */

/* sticky header condense */
.site-header { transition: box-shadow .3s ease, background-color .3s ease, padding .3s ease; }
.site-header[data-stuck="true"] {
  box-shadow: 0 10px 34px -18px rgba(12,18,58,.5);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* animated nav underline */
.nav__link { position: relative; }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 860px) { .nav__link::after { display: none; } }

/* buttons: sheen sweep + lift */
.btn { position: relative; overflow: hidden; will-change: transform; }
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.34), transparent);
  transform: skewX(-18deg);
  transition: left .65s cubic-bezier(.22,1,.36,1);
}
.btn:hover::before { left: 130%; }
.btn > * { position: relative; z-index: 1; }

/* card hover elevation */
.card, .svc-card, .info-tile, .step {
  transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s cubic-bezier(.22,1,.36,1), border-color .3s ease;
  will-change: transform;
}
.card:hover, .svc-card:hover, .info-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px -28px rgba(12,18,58,.45);
  border-color: rgba(0,167,230,.4);
}

/* icon badge pop */
.icon-badge { transition: transform .45s cubic-bezier(.34,1.56,.64,1), background-color .3s ease, color .3s ease; }
.svc-card:hover .icon-badge, .feature:hover .icon-badge, .info-tile:hover .icon-badge {
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
  background: var(--cyan-500);
  color: #04203a;
}

/* parallax frames */
.media-frame { overflow: hidden; }
.media-frame img { will-change: transform; }

/* counters keep width stable while ticking */
[data-count] { font-variant-numeric: tabular-nums; }

/* section entrance for navy bands */
.section--navy { position: relative; overflow: hidden; }
.section--navy::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(closest-side, rgba(0,167,230,.22), transparent 70%),
    radial-gradient(closest-side, rgba(110,225,255,.14), transparent 70%);
  background-size: 46rem 46rem, 34rem 34rem;
  background-position: -8rem -12rem, calc(100% + 6rem) calc(100% + 8rem);
  background-repeat: no-repeat;
  pointer-events: none;
}
.section--navy > .container { position: relative; z-index: 1; }

/* progress bar for page scroll */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan-500), #6ee1ff);
  z-index: 200;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .card:hover, .svc-card:hover, .info-tile:hover { transform: none; }
  .card:hover .card__media img { transform: none; }
  .btn::before { display: none; }
  .scroll-progress { display: none; }
}

/* ---------- 6. Print ------------------------------------------------------- */
@media print {
  .hero-slider, .hs__ui, .hs__progress, .hs__canvas, .scroll-progress { display: none !important; }
  .quote-strip { margin-top: 0; }
  :root { --hs-overlap: 0px; }
}

/* ----------------------------------------------------------------------
   Small-screen hero + topbar refinements
   ---------------------------------------------------------------------- */
@media (max-width: 700px) {
  /* topbar: keep it a single compact strip instead of a 4-line block */
  .topbar { font-size: .78rem; }
  .topbar__inner { justify-content: center; gap: .25rem 1.1rem; padding: .45rem 0; }
  .topbar__item svg { width: 15px; height: 15px; }
  /* the two address/hours items are nice-to-have; phone + email matter most */
  .topbar ul:first-child .topbar__item:nth-child(2) { display: none; }

  .hero-slider { min-height: auto; }
  .hs__content { padding-block: clamp(2.5rem, 8vh, 4rem) clamp(7rem, 14vh, 9rem); }
  .hs__title { font-size: clamp(1.6rem, 6.6vw, 2.15rem); line-height: 1.18; letter-spacing: 0; }
  .hs__lede { font-size: 1rem; }
  .hs__eyebrow { font-size: .72rem; padding: .35rem .75rem .35rem .4rem; margin-bottom: var(--sp-3); }
  .hs__cta { flex-wrap: wrap; }
  .hs__cta .btn { flex: 1 1 auto; justify-content: center; }
  .hs__facts { gap: var(--sp-3) var(--sp-4); }
  .hs__facts b { font-size: 1.05rem; }
}
@media (max-width: 420px) {
  .hs__facts li:nth-child(3) { display: none; }
}

/* Alerts are prose, not icon rows: flex was turning the leading <strong> into
   its own narrow column and stranding the sentence beside it. */
.alert { display: block; }
.alert > strong { font-weight: 700; }

/* Fields are grids inside a stretched row. Without this, a field that has no
   .error-text (optional inputs) spreads its two rows to fill the row height,
   so its label and input grow taller and stop aligning with the field beside
   it. Packing rows to the start keeps every label/input on the same baseline. */
.field { align-content: start; }

/* ----------------------------------------------------------------------
   Typography refinements for the Cinzel/Candal/Inter trio
   ---------------------------------------------------------------------- */
/* Ceremonial display type — Cinzel, large sizes only */
.hs__title, .page-title h1, .section-head h2 { font-family: var(--font-display); }
/* Structural / numeric type — Candal, single weight */
.stat b, .price, .hs__facts b,
.card__title { font-family: var(--font-alt); font-weight: 400; }

/* Numerals should line up in specs, prices and stats */
.price, .stat b, .hs__facts b, .sku, [data-count],
.cart-total, td, .qty input { font-variant-numeric: tabular-nums; }

/* Eyebrows read as engineered labels, not shouty caps */
.eyebrow { font-family: var(--font-alt); font-weight: 400; }

/* Long-form prose gets a comfortable measure */
.prose p, .card__text { text-wrap: pretty; }

/* ======================================================================
   SERVICE INDEX — editorial numbered list replacing the old card grid
   ====================================================================== */
.svc-filter {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 0 0 var(--sp-5); padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.svc-filter__btn {
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  padding: .5rem 1rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-500);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.svc-filter__btn:hover { border-color: var(--cyan-500); color: var(--cyan-600); }
.svc-filter__btn[aria-pressed="true"] {
  background: var(--navy-800); border-color: var(--navy-800); color: #fff;
}
.svc-filter__btn:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 2px; }

.svc-index { border-top: 1px solid var(--line); }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-row[hidden] { display: none; }

.svc-row__hit {
  display: grid; width: 100%; text-align: left; cursor: pointer;
  grid-template-columns: auto minmax(0, 1fr) 220px 44px;
  align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem);
  padding: clamp(1.4rem, 2.6vw, 2.1rem) .25rem;
  background: none; border: 0; font: inherit; color: inherit;
  position: relative; isolation: isolate;
  transition: padding-left .35s cubic-bezier(.22,.61,.36,1);
}
/* Cyan wash that wipes in from the left on hover */
.svc-row__hit::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 -1.25rem; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--cyan-50), rgba(246,248,252,0));
  opacity: 0; transform: scaleX(.96); transform-origin: left center;
  transition: opacity .35s ease, transform .35s cubic-bezier(.22,.61,.36,1);
}
.svc-row__hit:hover::before,
.svc-row__hit:focus-visible::before { opacity: 1; transform: scaleX(1); }
.svc-row__hit:hover { padding-left: 1.1rem; }
.svc-row__hit:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: -3px; border-radius: var(--radius); }

.svc-row__num {
  font-family: var(--font-alt); font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 400; line-height: 1; color: var(--line);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
  transition: color .35s ease;
}
.svc-row__hit:hover .svc-row__num { color: var(--cyan-500); }

.svc-row__main { display: block; min-width: 0; }
.svc-row__cat {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-alt); font-size: .72rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-600);
  margin-bottom: .45rem;
}
.svc-row__cat svg { width: 15px; height: 15px; flex: 0 0 auto; }
.svc-row__title {
  display: block; font-family: var(--font-alt);
  font-size: var(--step-2); font-weight: 400; line-height: 1.2;
  color: var(--navy-800); letter-spacing: -.025em; margin-bottom: .5rem;
  text-wrap: balance;
}
.svc-row__short {
  display: block; color: var(--ink-500); font-size: .95rem;
  line-height: 1.6; max-width: 60ch;
}
.svc-row__chips ul {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; margin: .85rem 0 0; padding: 0;
}
.svc-row__chips li {
  font-size: .72rem; font-weight: 600; color: var(--ink-400);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: .22rem .6rem; background: var(--surface);
}

.svc-row__media {
  display: block; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; background: var(--surface-2);
  clip-path: inset(0 0 0 0 round var(--radius));
}
.svc-row__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.06); filter: saturate(.75);
  transition: transform .6s cubic-bezier(.22,.61,.36,1), filter .45s ease;
}
.svc-row__hit:hover .svc-row__media img { transform: scale(1); filter: saturate(1); }

.svc-row__go {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--navy-800);
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.svc-row__go svg { width: 18px; height: 18px; }
.svc-row__hit:hover .svc-row__go {
  background: var(--cyan-500); border-color: var(--cyan-500);
  color: #04203a; transform: translateX(4px);
}

@media (max-width: 1000px) {
  .svc-row__hit { grid-template-columns: auto minmax(0, 1fr) 150px; }
  .svc-row__go { display: none; }
}
@media (max-width: 700px) {
  .svc-row__hit { grid-template-columns: auto minmax(0, 1fr); gap: .9rem 1rem; }
  .svc-row__media { grid-column: 1 / -1; aspect-ratio: 16 / 7; margin-top: .35rem; }
  .svc-row__num { font-size: 1.35rem; align-self: start; padding-top: .15rem; }
  .svc-row__chips { display: none; }
  .svc-row__hit:hover { padding-left: .25rem; }
}

/* ======================================================================
   SERVICE DETAIL MODAL
   ====================================================================== */
.modal--wide { width: min(1040px, calc(100% - 2rem)); max-height: min(90vh, 780px); }
.svc-modal {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  /* the row MUST be minmax(0,1fr): an auto row takes the min-content height of
     the (long) body column and the media column then overflows the dialog */
  grid-template-rows: minmax(0, 1fr);
  max-height: inherit; position: relative; background: var(--surface);
}
.svc-modal > * { min-height: 0; }
.svc-modal__close {
  position: absolute; top: .85rem; right: .85rem; z-index: 3;
  background: rgba(255,255,255,.92); border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.svc-modal__close:hover { background: #fff; color: var(--cyan-600); }

.svc-modal__media {
  position: relative; background: var(--navy-900); overflow: hidden;
  display: flex; flex-direction: column; min-width: 0;
}
.svc-modal__media > img {
  width: 100%; flex: 1 1 auto; min-height: 0; object-fit: cover; display: block;
  animation: svcFade .5s ease both;
}
@keyframes svcFade { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }

.svc-modal__num {
  position: absolute; top: 1.1rem; left: 1.4rem; margin: 0; z-index: 2;
  font-family: var(--font-alt); font-size: 3.2rem; font-weight: 400;
  line-height: 1; color: rgba(255,255,255,.28); letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}
.svc-modal__thumbs {
  display: flex; gap: .5rem; list-style: none; margin: 0; padding: .6rem;
  background: rgba(16,20,60,.9); flex: 0 0 auto;
}
.svc-modal__thumbs button {
  display: block; width: 68px; height: 48px; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: 6px; overflow: hidden;
  background: none; opacity: .55; transition: opacity .25s ease, border-color .25s ease;
}
.svc-modal__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-modal__thumbs button:hover { opacity: .85; }
.svc-modal__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--cyan-500); }
.svc-modal__thumbs button:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 1px; }

.svc-modal__body {
  padding: clamp(1.5rem, 3vw, 2.5rem); overflow-y: auto; min-width: 0;
  scrollbar-width: thin;
}
.svc-modal__body h2 { font-size: var(--step-2); margin-bottom: var(--sp-3); }
.svc-modal__body p { color: var(--ink-500); }
.svc-modal__body .check-list { margin-top: var(--sp-3); }
.svc-modal__body .check-list li { font-size: .92rem; }

.svc-modal__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: .75rem; margin: var(--sp-4) 0 0; padding: var(--sp-3) 0 0;
  border-top: 1px solid var(--line);
}
.svc-modal__facts div { min-width: 0; }
.svc-modal__facts dt {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-400); margin-bottom: .2rem;
}
.svc-modal__facts dd {
  margin: 0; font-family: var(--font-alt); font-weight: 400;
  font-size: .92rem; color: var(--navy-800);
}
.svc-modal__actions {
  display: flex; flex-wrap: wrap; gap: .7rem; margin-top: var(--sp-4);
}
.svc-modal__body .hint { margin-top: .85rem; }

@media (max-width: 860px) {
  .svc-modal { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .svc-modal__media { max-height: 42vh; }
  .svc-modal__media > img { min-height: 180px; }
  .svc-modal__num { font-size: 2.2rem; }
}

/* ======================================================================
   FAQ PAGE
   ====================================================================== */
.faq-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 940px) { .faq-layout { grid-template-columns: minmax(0, 1fr) 320px; } }

.faq-group + .faq-group { margin-top: clamp(2.25rem, 4vw, 3.25rem); }
.faq-group__head {
  display: flex; align-items: center; gap: .9rem;
  padding-bottom: var(--sp-3); margin-bottom: var(--sp-3);
  border-bottom: 2px solid var(--navy-800);
}
.faq-group__head .icon-badge { margin: 0; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; }
.faq-group__head h2 { margin: 0; font-size: var(--step-2); }

.faq-aside { display: grid; gap: var(--sp-4); }
@media (min-width: 940px) { .faq-aside { position: sticky; top: 96px; } }

.faq-jump {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-4);
}
.faq-jump__title {
  font-family: var(--font-alt); font-size: .72rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-400);
  margin: 0 0 .75rem;
}
.faq-jump ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.faq-jump a {
  display: block; padding: .5rem .65rem; border-radius: 6px;
  color: var(--navy-800); text-decoration: none; font-weight: 600; font-size: .9rem;
  border-left: 2px solid transparent; transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.faq-jump a:hover { background: var(--cyan-50); border-left-color: var(--cyan-500); color: var(--cyan-600); }

.faq-help {
  background: var(--navy-900); color: #d6ddf2; border-radius: var(--radius);
  padding: var(--sp-4); position: relative; overflow: hidden;
}
.faq-help::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,167,230,.35), transparent 70%);
}
.faq-help .icon-badge {
  margin: 0 0 var(--sp-3); background: rgba(255,255,255,.12); color: var(--cyan-400);
  width: 44px; height: 44px; border-radius: 12px;
}
.faq-help h3 { color: #fff; margin-bottom: .5rem; font-size: var(--step-1); }
.faq-help p { color: #b7c1e4; font-size: .9rem; margin-bottom: .75rem; }
.faq-help__contact a { color: var(--cyan-400); font-weight: 600; }
.faq-help .btn { margin-top: .5rem; position: relative; z-index: 1; }

.faq-dl {
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4);
}
.faq-dl h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.dl-list a {
  display: block; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none; color: var(--navy-800);
  font-weight: 600; font-size: .9rem; transition: border-color .2s ease, background .2s ease;
}
.dl-list a span { display: block; font-weight: 500; font-size: .74rem; color: var(--ink-400); margin-top: .15rem; }
.dl-list a:hover { border-color: var(--cyan-500); background: var(--cyan-50); }

/* ======================================================================
   NEWS PAGE
   ====================================================================== */
.news-grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 800px) { .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.news-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1 1 auto; }
.news-card__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin: 0 0 .6rem; font-size: .75rem; color: var(--ink-400);
}
.news-card__cat {
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cyan-600); background: var(--cyan-50);
  padding: .2rem .55rem; border-radius: var(--radius-pill); font-size: .68rem;
}
.news-card__title { font-size: var(--step-1); margin: 0 0 .6rem; line-height: 1.25; }
.news-card__title a { color: var(--navy-800); text-decoration: none; }
.news-card__title a:hover { color: var(--cyan-600); }
.news-card__lede { color: var(--ink-500); font-size: .9rem; line-height: 1.65; margin: 0 0 var(--sp-3); }
.news-card__more {
  display: inline-flex; align-items: center; gap: .4rem; margin-top: auto;
  font-family: var(--font-alt); font-weight: 400; font-size: .82rem; color: var(--cyan-600);
}
.news-card__more svg { width: 15px; height: 15px; transition: transform .3s ease; }
.news-card:hover .news-card__more svg { transform: translateX(4px); }

/* Lead story spans the full row on wide screens */
@media (min-width: 800px) {
  .news-card--featured { grid-column: 1 / -1; flex-direction: row; }
  .news-card--featured .news-card__media { flex: 0 0 52%; aspect-ratio: auto; }
  .news-card--featured .news-card__body { padding: clamp(1.5rem, 3vw, 2.75rem); justify-content: center; }
  .news-card--featured .news-card__title { font-size: var(--step-3); letter-spacing: -.025em; }
  .news-card--featured .news-card__lede { font-size: 1rem; max-width: 52ch; }
}

.news-article { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.news-article + .news-article { border-top: 1px solid var(--line); }
.news-article h2 { font-size: var(--step-3); margin: .5rem 0 var(--sp-4); }
.news-article__media { margin-bottom: var(--sp-4); }
.news-article__media img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 8; object-fit: cover; }
.news-article .prose p { color: var(--ink-500); line-height: 1.75; }
.news-article .prose .lede { color: var(--navy-800); font-size: var(--step-1); line-height: 1.55; font-weight: 500; }
.news-article__back { margin-top: var(--sp-4); }
.news-article:target h2 { color: var(--cyan-600); }

/* Topbar utility links */
.topbar__item--util a { font-weight: 600; }

/* ----------------------------------------------------------------------
   Superseded: the home page's about / client-feedback / news sections have
   been rebuilt twice. The original (.about-home*, .testimonials,
   .quote-card, .avatar--initials, .partner-band*) and the intermediate
   pass (.about-x, .ledger*, .voices, .journal) both lived here. They are
   now §24 .bento, §25 .vx and §26 .jx at the end of this file; no page
   references the older classes, so those rules were deleted.
   ---------------------------------------------------------------------- */

/* ======================================================================
   CONTACT PAGE
   ====================================================================== */
.contact-tiles { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 640px) { .contact-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .contact-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.contact-tile {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex; flex-direction: column; min-width: 0;
  position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.22,.61,.36,1), box-shadow .3s ease, border-color .3s ease;
}
.contact-tile::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan-500), var(--navy-800));
  transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.contact-tile:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(12,18,58,.45); border-color: transparent; }
.contact-tile:hover::before { transform: scaleX(1); }
.contact-tile__icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--cyan-50); color: var(--cyan-600);
  margin-bottom: var(--sp-3);
}
.contact-tile__icon svg { width: 22px; height: 22px; }
.contact-tile h3 { font-size: 1.02rem; margin: 0 0 .6rem; }
.contact-tile address, .contact-tile p { font-style: normal; color: var(--ink-500); font-size: .88rem; line-height: 1.65; margin: 0; }
.contact-tile p a { display: block; font-weight: 600; color: var(--navy-800); text-decoration: none; }
.contact-tile p a:hover { color: var(--cyan-600); }
.contact-tile p span { display: block; font-size: .74rem; color: var(--ink-400); margin-bottom: .55rem; }
.contact-tile p span:last-child { margin-bottom: 0; }
.contact-tile__link {
  margin-top: auto; padding-top: var(--sp-3); font-size: .82rem;
  font-weight: 600; color: var(--cyan-600); text-decoration: none;
}
.contact-tile__link:hover { text-decoration: underline; }
.contact-tile__note { margin-top: .75rem !important; font-size: .76rem !important; color: var(--ink-400) !important; }

.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.hours li {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  font-size: .85rem; color: var(--ink-500);
  padding-bottom: .4rem; border-bottom: 1px dashed var(--line);
}
.hours li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours b { color: var(--navy-800); font-variant-numeric: tabular-nums; white-space: nowrap; }

.contact-layout { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 980px) { .contact-layout { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.contact-aside { display: grid; gap: var(--sp-4); min-width: 0; }

.contact-promise {
  background: var(--navy-900); color: #c3cdec; border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem); position: relative; overflow: hidden;
}
.contact-promise::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0,167,230,.3), transparent 70%);
}
.contact-promise__icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.1); color: var(--cyan-400); margin-bottom: var(--sp-3);
}
.contact-promise__icon svg { width: 20px; height: 20px; }
.contact-promise h3 { color: #fff; font-size: var(--step-1); margin-bottom: var(--sp-4); }
.contact-promise__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; position: relative; z-index: 1; }
.contact-promise__steps > li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-promise__steps > li > b {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .76rem; background: rgba(0,167,230,.18); color: var(--cyan-400);
  border: 1px solid rgba(0,167,230,.4); font-variant-numeric: tabular-nums;
}
.contact-promise__steps b + div b { display: block; color: #fff; font-size: .92rem; margin-bottom: .15rem; font-family: var(--font-alt); font-weight: 400; }
.contact-promise__steps span { display: block; color: #b7c1e4; font-size: .84rem; line-height: 1.6; }

.map-panel { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); align-items: stretch; }
@media (min-width: 900px) { .map-panel { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.map-panel .map-frame { height: 100%; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.map-panel .map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.map-panel__side {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem); align-self: stretch;
  display: flex; flex-direction: column; min-width: 0;
}
.map-panel__side h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.map-panel__side .check-list { margin-bottom: var(--sp-4); }
.map-panel__side .btn { margin-top: auto; align-self: flex-start; }

/* ======================================================================
   ABOUT PAGE
   ====================================================================== */
.about-overview { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 980px) { .about-overview { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.about-overview__main { min-width: 0; }
.about-overview__main .lede { font-size: var(--step-1); line-height: 1.6; color: var(--navy-800); }
.about-overview__main > p { color: var(--ink-500); }

.pullquote {
  margin: var(--sp-5) 0 0; padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.25rem, 3vw, 2rem);
  border-left: 4px solid var(--cyan-500); background: var(--cyan-50);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.pullquote p {
  margin: 0; font-family: var(--font-display); font-size: var(--step-1);
  line-height: 1.45; color: var(--navy-800); font-weight: 500;
}

.about-overview__aside { display: grid; gap: var(--sp-4); min-width: 0; justify-items: start; }
@media (min-width: 980px) { .about-overview__aside { position: sticky; top: 96px; } }
.about-overview__aside .media-frame { width: 100%; }
.about-overview__aside .media-frame img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.fact-list {
  margin: 0; width: 100%;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.fact-list > div {
  display: grid; gap: .15rem; padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 460px) { .fact-list > div { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; } }
.fact-list > div:last-child { border-bottom: 0; }
.fact-list > div:nth-child(odd) { background: var(--surface-2); }
.fact-list dt {
  font-family: var(--font-alt); font-size: .72rem; font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400);
}
.fact-list dd { margin: 0; font-size: .89rem; color: var(--navy-800); line-height: 1.5; }

/* Vision / mission pair */
.vm-pair { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); align-items: stretch; }
@media (min-width: 900px) { .vm-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.vm-card {
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex; flex-direction: column; min-width: 0;
  position: relative; overflow: hidden;
}
.vm-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: var(--sp-3); }
.vm-card__icon svg { width: 22px; height: 22px; }
.vm-card h3 { font-size: var(--step-2); margin-bottom: var(--sp-3); }

.vm-card--vision { background: var(--navy-900); color: #c3cdec; }
.vm-card--vision::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0,167,230,.28), transparent 70%);
}
.vm-card--vision .vm-card__icon { background: rgba(255,255,255,.1); color: var(--cyan-400); }
.vm-card--vision h3 { color: #fff; }
.vm-card__lead {
  font-family: var(--font-display); font-size: var(--step-1); line-height: 1.55;
  color: #dbe2f5; margin: 0; position: relative; z-index: 1; font-weight: 400;
}

.vm-card--mission { background: var(--surface); border: 1px solid var(--line); }
.vm-card--mission .vm-card__icon { background: var(--cyan-50); color: var(--cyan-600); }
.vm-card--mission .check-list { margin: 0; }

/* FAQ teaser band */
.faq-teaser {
  display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
@media (min-width: 860px) { .faq-teaser { grid-template-columns: minmax(0, 1fr) auto; } }
.faq-teaser h2 { font-size: var(--step-2); margin-bottom: .6rem; }
.faq-teaser p { color: var(--ink-500); margin: 0; max-width: 62ch; }
.faq-teaser__actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Confirmation line shown when a service modal hands off to this form. */
.svc-form-note {
  display: flex; align-items: center; gap: .55rem;
  margin: 0 0 var(--sp-4); padding: .7rem .9rem;
  background: var(--cyan-50); border-left: 3px solid var(--cyan-500);
  border-radius: var(--radius-sm);
  font-size: .92rem; font-weight: 600; color: var(--navy-800);
}
.svc-form-note[hidden] { display: none; }

/* ==========================================================================
   §20  FUTURISTIC MEGA MENU
   Replaces the plain link row. Desktop = full-width glass panels opened on
   hover/focus; mobile = the same markup as an off-canvas accordion drawer.
   Overrides style.css §header, so it must stay in enhance.css (loaded 2nd).
   ========================================================================== */

.site-header { --nav-ease: cubic-bezier(.22,.9,.28,1); }

/* --- top-level row ------------------------------------------------------ */
.nav__item { position: static; }
.nav__list { gap: 4px; }

.nav__link,
.nav__link--btn {
  position: relative; display: inline-flex; align-items: center; gap: .34rem;
  padding: .62rem .9rem; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 650; letter-spacing: -.005em;
  color: var(--navy-800); text-decoration: none; white-space: nowrap;
  border-radius: var(--radius-pill);
  transition: color .22s var(--nav-ease), background-color .22s var(--nav-ease);
}
/* the cyan "capsule" that slides in behind the label */
.nav__link::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, var(--cyan-50), #fff);
  box-shadow: inset 0 0 0 1px rgba(0,167,230,.28);
  opacity: 0; transform: scale(.86);
  transition: opacity .24s var(--nav-ease), transform .24s var(--nav-ease);
  pointer-events: none;
}
.nav__link:hover::before,
.nav__link:focus-visible::before,
.nav__item--mega[data-open="true"] > .nav__link::before { opacity: 1; transform: scale(1); }
.nav__link:hover, .nav__link:focus-visible,
.nav__item--mega[data-open="true"] > .nav__link { color: var(--cyan-600); background: none; }

.nav__label { position: relative; z-index: 1; }

/* underline tick for the active page — replaces style.css ::after block */
.nav__link[aria-current="page"]::after,
.nav__link--btn[data-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 4px;
  width: 18px; height: 2px; margin-left: -9px; border-radius: 2px;
  background: var(--cyan-500); display: block;
}
.nav__link[aria-current="page"] { color: var(--cyan-600); }

.nav__chev {
  position: relative; z-index: 1; width: 14px; height: 14px; opacity: .55;
  transition: transform .26s var(--nav-ease), opacity .2s ease;
}
.nav__item--mega[data-open="true"] .nav__chev { transform: rotate(180deg); opacity: 1; }

/* --- the panel ---------------------------------------------------------- */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgb(255,255,255);
  border-top: 1px solid rgba(0,167,230,.22);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 28px 60px -28px rgba(16,20,60,.42);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .26s var(--nav-ease), transform .26s var(--nav-ease), visibility 0s linear .26s;
  z-index: 90;
}
/* scanline accent along the top edge */
.mega::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-500), transparent);
  transform: scaleX(0); transform-origin: 50% 50%;
  transition: transform .5s var(--nav-ease) .06s;
}
.nav__item--mega[data-open="true"] .mega {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition-delay: 0s, 0s, 0s;
}
.nav__item--mega[data-open="true"] .mega::before { transform: scaleX(1); }

.mega__inner {
  display: grid; grid-template-columns: 1.05fr 1.6fr .95fr; gap: var(--sp-6);
  padding-top: var(--sp-6); padding-bottom: var(--sp-6); align-items: start;
}
.mega--narrow .mega__inner { grid-template-columns: 1.9fr 1fr; }

.mega__eyebrow, .mega__kicker {
  font-family: var(--font-alt); font-size: .7rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-600);
  margin: 0 0 .55rem;
}
.mega__kicker { color: var(--ink-400); }
.mega__title { font-size: 1.22rem; line-height: 1.25; margin: 0 0 .5rem; color: var(--navy-900); }
.mega__lede { font-size: .9rem; color: var(--ink-500); margin: 0 0 1rem; }

.mega__col--lead { border-right: 1px solid var(--line); padding-right: var(--sp-5); }
.mega--narrow .mega__col--lead { border: 0; padding-right: 0; }

.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__list--2 { grid-template-columns: 1fr 1fr; gap: 2px var(--sp-4); }

.mega__link {
  display: grid; grid-template-columns: 34px 1fr; gap: .7rem; align-items: center;
  padding: .55rem .6rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--navy-800);
  transform: translateX(0);
  transition: background-color .2s var(--nav-ease), transform .2s var(--nav-ease);
}
.mega__link:hover, .mega__link:focus-visible { background: var(--cyan-50); transform: translateX(3px); }

.mega__ico {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px;
  background: linear-gradient(145deg, var(--navy-800), #2b3486); color: #fff;
  box-shadow: 0 6px 14px -8px rgba(27,33,89,.9);
}
.mega__ico svg { width: 17px; height: 17px; }
.mega__link:hover .mega__ico { background: linear-gradient(145deg, var(--cyan-600), var(--cyan-400)); }

.mega__txt { display: grid; gap: 1px; min-width: 0; }
.mega__txt b { font-size: .875rem; font-weight: 650; line-height: 1.3; }
.mega__txt em {
  font-style: normal; font-size: .74rem; color: var(--ink-400);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mega__link--slim { grid-template-columns: 30px 1fr; }
.mega__link--slim .mega__ico { width: 30px; height: 30px; border-radius: 8px; }

/* promo / feature cards in the last column */
.mega__promo {
  border-radius: var(--radius); padding: var(--sp-5);
  background: linear-gradient(155deg, var(--navy-900), var(--navy-800));
  color: #fff; position: relative; overflow: hidden;
}
.mega__promo::after {
  content: ""; position: absolute; right: -30px; bottom: -40px;
  width: 130px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,167,230,.55), transparent 70%);
}
.mega__promo--quiet { background: linear-gradient(155deg, #eef4fb, #fff); color: var(--navy-900); box-shadow: inset 0 0 0 1px var(--line); }
.mega__promo--quiet::after { background: radial-gradient(circle, rgba(0,167,230,.22), transparent 70%); }
.mega__promo-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(0,167,230,.2); color: var(--cyan-400); margin-bottom: .7rem; }
.mega__promo--quiet .mega__promo-ico { background: var(--cyan-50); color: var(--cyan-600); }
.mega__promo-ico svg { width: 18px; height: 18px; }
.mega__promo b { display: block; font-size: .98rem; margin-bottom: .3rem; position: relative; }
.mega__promo p { font-size: .82rem; opacity: .85; margin: 0 0 .8rem; position: relative; }
.mega__promo-link {
  display: inline-flex; align-items: center; gap: .35rem; position: relative;
  font-size: .82rem; font-weight: 650; color: var(--cyan-400); text-decoration: none;
}
.mega__promo--quiet .mega__promo-link { color: var(--cyan-600); }
.mega__promo-link svg { width: 15px; height: 15px; transition: transform .2s var(--nav-ease); }
.mega__promo-link:hover svg { transform: translateX(4px); }

.mega__feature {
  display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; color: var(--navy-900);
  background: #fff; transition: box-shadow .22s var(--nav-ease), transform .22s var(--nav-ease);
}
.mega__feature:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -20px rgba(16,20,60,.5), inset 0 0 0 1px rgba(0,167,230,.4); }
.mega__feature img { display: block; width: 100%; height: 122px; object-fit: cover; }
.mega__feature-body { display: block; padding: .8rem .9rem 1rem; }
.mega__feature-body em { font-style: normal; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-600); font-weight: 700; }
.mega__feature-body b { display: block; font-size: .88rem; line-height: 1.3; margin: .25rem 0 .2rem; }
.mega__feature-body > span { font-size: .76rem; color: var(--ink-400); }

/* Widget column styles */
.mega__col--widget {
  border-left: 1px solid var(--line);
  padding-left: var(--sp-5);
}

.mega-widget {
  margin-bottom: var(--sp-4);
}

.mega-widget:last-child {
  margin-bottom: 0;
}

.mega-widget__title {
  font-size: .88rem;
  font-weight: 650;
  color: var(--navy-900);
  margin: 0 0 .8rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid var(--line);
}

.mega-widget img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: .6rem;
}

.mega-widget p {
  font-size: .82rem;
  color: var(--ink-500);
  line-height: 1.5;
  margin: 0 0 .6rem;
}

.mega-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mega-widget li {
  padding: .35rem 0;
  border-bottom: 1px solid var(--line);
}

.mega-widget li:last-child {
  border-bottom: none;
}

.mega-widget a {
  color: var(--navy-800);
  text-decoration: none;
  font-size: .82rem;
  transition: color .2s ease;
}

.mega-widget a:hover {
  color: var(--cyan-600);
}

/* full-page scrim behind an open panel */
.nav-scrim {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: -1;
  background: rgba(16,20,60,.28); opacity: 0; pointer-events: none;
  transition: opacity .3s var(--nav-ease);
}
.site-header[data-mega-open="true"] .nav-scrim { opacity: 1; }

/* mobile-only bits stay hidden on desktop */
.nav__mobile-foot { display: none; }

/* --- animated hamburger ------------------------------------------------- */
.nav-toggle__bars { display: grid; gap: 4px; width: 20px; }
.nav-toggle__bars i {
  display: block; height: 2px; width: 100%; border-radius: 2px; background: var(--navy-800);
  transition: transform .26s var(--nav-ease), opacity .18s ease, width .26s var(--nav-ease);
}
.nav-toggle__bars i:nth-child(3) { width: 13px; margin-left: auto; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { width: 100%; margin-left: 0; transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   §20b  MEGA MENU — mobile / off-canvas
   ========================================================================== */
@media (max-width: 1000px) {
  .header-actions__cta { display: none; }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(400px, 88vw);
    display: block; transform: translateX(102%); visibility: hidden;
    background: #fff; border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px -30px rgba(16,20,60,.6);
    padding: var(--sp-5) var(--sp-5) var(--sp-7);
    max-height: none; height: calc(100dvh - var(--header-h)); overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform .36s var(--nav-ease), visibility 0s linear .36s;
    z-index: 95;
  }
  .nav[data-open="true"] { transform: translateX(0); visibility: visible; transition-delay: 0s, 0s; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-2); }

  .nav__link, .nav__link--btn {
    width: 100%; justify-content: space-between; border-radius: 0;
    padding: .95rem .25rem; font-size: 1.02rem;
  }
  .nav__link::before { display: none; }
  .nav__link[aria-current="page"]::after,
  .nav__link--btn[data-current="true"]::after {
    left: auto; right: 2px; bottom: auto; top: 50%; margin: -3px 0 0;
    width: 6px; height: 6px; border-radius: 50%;
  }

  /* panel becomes an accordion body */
  .mega {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    border: 0; box-shadow: none; transition: none;
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .34s var(--nav-ease);
  }
  .mega::before { display: none; }
  .nav__item--mega[data-open="true"] .mega { grid-template-rows: 1fr; }
  .mega__inner {
    grid-template-columns: 1fr !important; gap: var(--sp-4);
    padding: 0 0 var(--sp-4); overflow: hidden; min-height: 0;
    width: auto; max-width: none; padding-left: 0; padding-right: 0;
  }
  .mega__col--lead { display: none; }          /* keep the drawer scannable */
  .mega__col--widget { display: none; }        /* hide widgets on mobile */
  .mega__list--2 { grid-template-columns: 1fr; }
  .mega__kicker { margin-top: .2rem; }
  .mega__link { padding: .6rem .4rem; }
  .mega__feature { display: none; }
  .mega__promo { padding: var(--sp-4); }

  .nav__mobile-foot { display: block; margin-top: var(--sp-5); }
  .nav__mobile-contact { display: grid; gap: .5rem; margin: var(--sp-4) 0 0; }
  .nav__mobile-contact a {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .85rem; color: var(--ink-500); text-decoration: none;
  }
  .nav__mobile-contact svg { width: 15px; height: 15px; color: var(--cyan-600); }

  .nav-scrim { z-index: 90; }
  .site-header[data-nav-open="true"] .nav-scrim { opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__link::before, .nav__chev, .mega, .mega::before,
  .mega__link, .mega__feature, .nav-toggle__bars i, .nav-scrim { transition: none !important; }
}

@media print { .mega, .nav-scrim { display: none !important; } }

/* ==========================================================================
   §21  CAPABILITY BAND  (home, directly under the hero)
   Four lifecycle capabilities. Numbered, hairline-divided columns that lift
   and reveal a cyan glow on hover — deliberately quieter than the specialty
   cards below so the eye still travels down the page.
   ========================================================================== */
.capability-band { position: relative; overflow: hidden; }
.capability-band::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line);
}
.capability-band__head {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6);
  align-items: end; margin-bottom: var(--sp-6);
}
.capability-band__title { font-size: var(--step-2); margin: 0; line-height: 1.15; }
.capability-band__lede { margin: 0; color: var(--ink-500); font-size: .98rem; padding-bottom: .2rem; }

.cap-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.cap {
  position: relative; padding: var(--sp-6) var(--sp-5) var(--sp-5);
  border-right: 1px solid var(--line); overflow: hidden;
  transition: background-color .3s ease, transform .3s cubic-bezier(.22,.9,.28,1);
}
.cap:last-child { border-right: 0; }
.cap::before {                       /* top progress rule that fills on hover */
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--cyan-500), var(--cyan-400));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .45s cubic-bezier(.22,.9,.28,1);
}
.cap::after {                        /* ghosted step number */
  content: attr(data-cap); position: absolute; top: var(--sp-4); right: var(--sp-4);
  font-family: var(--font-alt); font-size: 2.5rem; font-weight: 400; line-height: 1;
  color: var(--navy-900); opacity: .06; transition: opacity .3s ease, transform .3s ease;
}
.cap:hover { background: var(--surface-2); transform: translateY(-4px); }
.cap:hover::before { transform: scaleX(1); }
.cap:hover::after { opacity: .12; transform: translateY(-2px); }
.cap:focus-within::before { transform: scaleX(1); }

.cap__glow {
  position: absolute; top: -60px; left: 50%; width: 200px; height: 160px; margin-left: -100px;
  background: radial-gradient(ellipse at center, rgba(0,167,230,.28), transparent 68%);
  opacity: 0; transition: opacity .4s ease; pointer-events: none;
}
.cap:hover .cap__glow { opacity: 1; }

.cap__ico {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 13px; margin-bottom: var(--sp-4);
  background: linear-gradient(150deg, var(--navy-900), #2b3486); color: #fff;
  box-shadow: 0 10px 20px -12px rgba(27,33,89,.95);
  transition: background .35s ease, transform .35s cubic-bezier(.22,.9,.28,1);
}
.cap__ico svg { width: 22px; height: 22px; }
.cap:hover .cap__ico { background: linear-gradient(150deg, var(--cyan-600), var(--cyan-400)); transform: rotate(-6deg) scale(1.06); }

.cap__title { position: relative; font-size: 1.06rem; line-height: 1.25; margin: 0 0 .45rem; }
.cap__text { position: relative; font-size: .89rem; color: var(--ink-500); margin: 0 0 var(--sp-4); }

.cap__meta { position: relative; list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: grid; gap: .3rem; }
.cap__meta li {
  position: relative; padding-left: 1rem; font-size: .78rem; color: var(--ink-400);
}
.cap__meta li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--cyan-500);
}

.cap__link {
  position: relative; display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 650; color: var(--navy-800); text-decoration: none;
}
.cap__link svg { width: 15px; height: 15px; transition: transform .25s cubic-bezier(.22,.9,.28,1); }
.cap__link::after {
  content: ""; position: absolute; left: 0; right: 18px; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s cubic-bezier(.22,.9,.28,1);
}
.cap:hover .cap__link { color: var(--cyan-600); }
.cap:hover .cap__link svg { transform: translateX(4px); }
.cap__link:hover::after, .cap__link:focus-visible::after { transform: scaleX(1); }

@media (max-width: 1000px) {
  .capability-band__head { grid-template-columns: 1fr; gap: var(--sp-3); align-items: start; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap:nth-child(2n) { border-right: 0; }
  .cap:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap { border-right: 0; border-bottom: 1px solid var(--line); padding: var(--sp-5) 0; }
  .cap:last-child { border-bottom: 0; }
  .cap::after { font-size: 2rem; }
}

/* ==========================================================================
   §22  SPECIALTY CARDS  ("Our specialties", generated from SERVICES)
   Glass card, navy gradient wash on hover, sheen sweep, tag chips and a
   full-card click target via the ::after overlay on the CTA.
   ========================================================================== */
.specialties { position: relative; }

.spec-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}

.spec-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  padding: var(--sp-5); border-radius: var(--radius-lg);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform .38s cubic-bezier(.22,.9,.28,1), box-shadow .38s ease;
}
.spec-card::before {                 /* navy wash that rises from the bottom */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 55%, #232b6b);
  opacity: 0; transition: opacity .38s ease;
}
.spec-card:hover, .spec-card:focus-within {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px -28px rgba(16,20,60,.62), inset 0 0 0 1px rgba(0,167,230,.35);
}
.spec-card:hover::before, .spec-card:focus-within::before { opacity: 1; }

/* diagonal light sweep */
.spec-card__sheen {
  position: absolute; top: -60%; left: -70%; width: 55%; height: 220%; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
  transform: rotate(18deg) translateX(0); opacity: 0;
  transition: transform .9s cubic-bezier(.22,.9,.28,1), opacity .3s ease;
  pointer-events: none;
}
.spec-card:hover .spec-card__sheen { opacity: 1; transform: rotate(18deg) translateX(330%); }

.spec-card__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--sp-4); }
.spec-card__ico {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px;
  background: var(--cyan-50); color: var(--cyan-600);
  box-shadow: inset 0 0 0 1px rgba(0,167,230,.22);
  transition: background .38s ease, color .38s ease, transform .38s cubic-bezier(.22,.9,.28,1), box-shadow .38s ease;
}
.spec-card__ico svg { width: 24px; height: 24px; }
.spec-card:hover .spec-card__ico {
  background: rgba(0,167,230,.16); color: var(--cyan-400);
  box-shadow: inset 0 0 0 1px rgba(0,167,230,.5); transform: translateY(-2px) rotate(-5deg);
}

.spec-card__num {
  font-family: var(--font-alt); font-size: 1.6rem; font-weight: 400; line-height: 1;
  color: var(--navy-900); opacity: .12; transition: color .38s ease, opacity .38s ease;
}
.spec-card:hover .spec-card__num { color: var(--cyan-400); opacity: .5; }

.spec-card__cat {
  font-family: var(--font-alt); font-size: .68rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--cyan-600);
  margin: 0 0 .35rem; transition: color .38s ease;
}
.spec-card:hover .spec-card__cat { color: var(--cyan-400); }

.spec-card__title {
  font-size: 1.08rem; line-height: 1.3; margin: 0 0 .5rem; color: var(--navy-900);
  transition: color .38s ease;
}
.spec-card__text {
  font-size: .88rem; line-height: 1.62; color: var(--ink-500); margin: 0 0 var(--sp-4);
  flex: 1 1 auto; transition: color .38s ease;
}
.spec-card:hover .spec-card__title { color: #fff; }
.spec-card:hover .spec-card__text { color: rgba(255,255,255,.76); }

.spec-card__tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: .35rem;
  margin: 0 0 var(--sp-4); padding: 0;
}
.spec-card__tags li {
  font-size: .71rem; font-weight: 600; letter-spacing: .01em;
  padding: .26rem .55rem; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink-500);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .38s ease, color .38s ease, box-shadow .38s ease;
}
.spec-card:hover .spec-card__tags li {
  background: rgba(255,255,255,.09); color: rgba(255,255,255,.86);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}

.spec-card__cta {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  font-size: .84rem; font-weight: 650; color: var(--cyan-600); text-decoration: none;
  transition: color .38s ease, gap .25s ease;
}
.spec-card__cta::after { content: ""; position: absolute; inset: 0; }  /* whole card clickable */
.spec-card__cta svg { width: 16px; height: 16px; transition: transform .28s cubic-bezier(.22,.9,.28,1); }
.spec-card:hover .spec-card__cta { color: #fff; }
.spec-card:hover .spec-card__cta svg { transform: translateX(5px); }
.spec-card__cta:focus-visible { outline: 2px solid var(--cyan-500); outline-offset: 4px; border-radius: 3px; }

.specialties__foot {
  text-align: center; margin: var(--sp-6) 0 0; font-size: .92rem; color: var(--ink-400);
}
.specialties__foot a { color: var(--cyan-600); font-weight: 650; }

@media (max-width: 1000px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px)  { .spec-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .cap, .cap__ico, .cap__link svg, .spec-card, .spec-card__sheen,
  .spec-card__ico, .spec-card__cta svg { transition: none !important; }
  .spec-card:hover, .cap:hover { transform: none; }
}

/* ==========================================================================
   §23  FORM SYSTEM 2.0  (contact page + enquiry dialog)
   Floating labels, sectioned fieldsets, topic radio cards, a custom consent
   checkbox, a quantity stepper and live character counters.
   ========================================================================== */

/* --- floating label field ---------------------------------------------- */
.field--float { position: relative; padding-top: .55rem; }
.field--float > input,
.field--float > select,
.field--float > textarea {
  padding: 1.35rem .9rem .55rem;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field--float > textarea { min-height: 132px; padding-top: 1.5rem; }
.field--float > label {
  position: absolute; left: .95rem; top: 1.35rem; z-index: 1;
  font-size: .92rem; font-weight: 500; color: var(--ink-400);
  pointer-events: none; transform-origin: 0 0;
  transition: transform .18s cubic-bezier(.22,.9,.28,1), color .18s ease;
}
/* raised state: focused, filled, or a select (always has a value box) */
.field--float > input:focus + label,
.field--float > input:not(:placeholder-shown) + label,
.field--float > textarea:focus + label,
.field--float > textarea:not(:placeholder-shown) + label,
.field--float > select + label {
  transform: translateY(-.82rem) scale(.78);
  color: var(--cyan-600); font-weight: 650;
}
.field--float > input:focus + label,
.field--float > textarea:focus + label { color: var(--cyan-600); }
.field--float > label .hint, .field--float > label .req { font-size: inherit; }
.field--tight { margin-bottom: 0; }
.field__stack-label { font-weight: 600; font-size: var(--step--1); color: var(--navy-800); }

/* character counter */
.field__counter {
  position: absolute; right: .2rem; top: -.15rem; margin: 0;
  font-size: .72rem; font-weight: 600; color: var(--ink-400); font-variant-numeric: tabular-nums;
}
.field__counter[data-full="true"] { color: var(--danger-600); }
/* the counter is absolutely positioned at the top-right of .field; textarea
   fields need headroom so it never sits on the control's border */
.field--area { padding-top: 1.15rem; }
.field--area .field__counter { top: 0; }

/* --- fieldsets ---------------------------------------------------------- */
.fx-fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.fx-legend {
  display: flex; align-items: center; gap: .6rem; padding: 0;
  font-family: var(--font-alt); font-size: .82rem; font-weight: 400;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy-800);
  margin-bottom: var(--sp-4);
}
.fx-legend__step {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(150deg, var(--navy-900), #2b3486); color: #fff;
  font-size: .72rem; letter-spacing: 0;
}

/* --- topic radio cards -------------------------------------------------- */
.topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: var(--sp-4); }
.topic { position: relative; display: block; cursor: pointer; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic__body {
  display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto;
  gap: .1rem .7rem; align-items: center; padding: .75rem .85rem;
  border-radius: var(--radius); background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s ease, background-color .2s ease, transform .2s cubic-bezier(.22,.9,.28,1);
}
.topic__ico {
  grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 10px; background: var(--surface-2); color: var(--ink-400);
  transition: background .2s ease, color .2s ease;
}
.topic__ico svg { width: 17px; height: 17px; }
.topic__body b { font-size: .86rem; font-weight: 650; color: var(--navy-900); line-height: 1.25; }
.topic__body em { font-style: normal; font-size: .74rem; color: var(--ink-400); line-height: 1.3; }
.topic:hover .topic__body { background: var(--surface-2); transform: translateY(-1px); }
.topic input:checked + .topic__body {
  background: var(--cyan-50);
  box-shadow: inset 0 0 0 2px var(--cyan-500), 0 8px 18px -14px rgba(0,167,230,.9);
}
.topic input:checked + .topic__body .topic__ico { background: var(--cyan-500); color: #fff; }
.topic input:focus-visible + .topic__body { outline: 2px solid var(--cyan-500); outline-offset: 3px; }

/* --- consent card ------------------------------------------------------- */
.consent--card {
  align-items: center; gap: .75rem; padding: .8rem .95rem; border-radius: var(--radius);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; transition: box-shadow .2s ease, background-color .2s ease;
}
.consent--card:hover { background: #eef4fb; }
.consent--card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box {
  flex: 0 0 auto; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 2px var(--line);
  color: #fff; transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.consent__box svg { width: 14px; height: 14px; opacity: 0; transform: scale(.5); transition: opacity .18s ease, transform .18s ease; }
.consent--card input:checked ~ .consent__box {
  background: var(--cyan-500); box-shadow: inset 0 0 0 2px var(--cyan-500); transform: scale(1.04);
}
.consent--card input:checked ~ .consent__box svg { opacity: 1; transform: scale(1); }
.consent--card input:focus-visible ~ .consent__box { outline: 2px solid var(--cyan-500); outline-offset: 3px; }
.consent--card input[aria-invalid="true"] ~ .consent__box { box-shadow: inset 0 0 0 2px var(--danger-600); }

/* --- quantity stepper --------------------------------------------------- */
.qty-stepper {
  display: grid; grid-template-columns: 42px 1fr 42px; align-items: stretch;
  border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line); background: #fff;
}
.qty-stepper button {
  border: 0; background: var(--surface-2); color: var(--navy-800);
  font-size: 1.1rem; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.qty-stepper button:hover { background: var(--cyan-500); color: #fff; }
.qty-stepper input {
  border: 0; border-radius: 0; text-align: center; font-weight: 650;
  box-shadow: none; -moz-appearance: textfield; padding: .7rem .3rem;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus { box-shadow: inset 0 0 0 2px var(--cyan-500); }
.form-row--qty { grid-template-columns: 1fr 150px; }

/* --- form chrome -------------------------------------------------------- */
.fx-form__actions {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-top: var(--sp-5);
}
.btn--wide { display: inline-flex; align-items: center; gap: .5rem; padding-inline: 1.6rem; }
.btn--wide svg { width: 17px; height: 17px; transition: transform .25s cubic-bezier(.22,.9,.28,1); }
.btn--wide:hover svg { transform: translateX(4px); }
.fx-form__note { margin: 0; font-size: .8rem; color: var(--ink-400); }
.fx-form__note b { color: var(--navy-800); }

.form-card--fx { position: relative; overflow: hidden; }
.form-card--fx::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan-500), var(--navy-800));
}
.fx-head { display: flex; align-items: center; gap: var(--sp-4); margin-bottom: .4rem; }
.fx-head h2 { margin: 0; font-size: var(--step-2); }
.fx-head .eyebrow { margin: 0 0 .1rem; }
.fx-head__ico {
  flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 15px; background: linear-gradient(150deg, var(--navy-900), #2b3486); color: #fff;
  box-shadow: 0 12px 24px -14px rgba(27,33,89,.95);
}
.fx-head__ico svg { width: 24px; height: 24px; }
.fx-head__note { margin: 0 0 var(--sp-5); }

/* ==========================================================================
   §23b  ENQUIRY DIALOG — split layout
   ========================================================================== */
.modal--form { max-width: 940px; width: min(94vw, 940px); padding: 0; overflow: hidden; }
.modal--form::backdrop { background: rgba(10,14,44,.62); backdrop-filter: blur(4px); }

.fx-modal { display: grid; grid-template-columns: 300px 1fr; min-height: 0; }

.fx-modal__rail {
  position: relative; padding: var(--sp-6) var(--sp-5);
  background: linear-gradient(165deg, var(--navy-900), var(--navy-800) 60%, #262e73);
  color: #fff; overflow: hidden;
}
.fx-modal__rail::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(circle, rgba(0,167,230,.4), transparent 68%);
}
.fx-modal__eyebrow {
  position: relative; font-family: var(--font-alt); font-size: .68rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-400); margin: 0 0 .6rem;
}
.fx-modal__railtitle { position: relative; font-size: 1.24rem; line-height: 1.28; margin: 0 0 var(--sp-5); color: #fff; }
.fx-modal__promise { position: relative; list-style: none; margin: 0 0 var(--sp-5); padding: 0; display: grid; gap: var(--sp-4); }
.fx-modal__promise li { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: start; }
.fx-modal__promise svg { width: 18px; height: 18px; color: var(--cyan-400); margin-top: 2px; }
.fx-modal__promise b { display: block; font-size: .85rem; font-weight: 650; margin-bottom: .12rem; }
.fx-modal__promise span { font-size: .78rem; color: rgba(255,255,255,.7); line-height: 1.45; }
.fx-modal__sig { position: relative; margin: 0; font-size: .82rem; color: rgba(255,255,255,.72); }
.fx-modal__sig a { color: var(--cyan-400); font-weight: 650; }

.fx-modal__main { position: relative; padding: var(--sp-6); overflow-y: auto; max-height: min(86vh, 760px); }
.fx-modal__close {
  position: absolute; top: var(--sp-4); right: var(--sp-4); z-index: 2;
  width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy-800);
  cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease;
}
.fx-modal__close:hover { background: var(--navy-900); color: #fff; transform: rotate(90deg); }

.fx-subject {
  display: grid; grid-template-columns: 42px 1fr; gap: .8rem; align-items: center;
  padding: .75rem .9rem; margin-bottom: var(--sp-5);
  border-radius: var(--radius); background: var(--cyan-50);
  box-shadow: inset 0 0 0 1px rgba(0,167,230,.24);
}
.fx-subject__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--cyan-500); color: #fff; }
.fx-subject__ico svg { width: 20px; height: 20px; }
.fx-subject__body { min-width: 0; }
.fx-subject__label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan-600); margin-bottom: .12rem; }
.fx-subject__name {
  display: block; font-weight: 650; color: var(--navy-900);
  font-size: .92rem; line-height: 1.35; overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .fx-modal { grid-template-columns: 1fr; }
  .fx-modal__rail { padding: var(--sp-5); }
  .fx-modal__promise { display: none; }
  .fx-modal__railtitle { margin-bottom: .5rem; font-size: 1.1rem; }
  .fx-modal__main { padding: var(--sp-5); max-height: none; }
  .topic-grid { grid-template-columns: 1fr; }
  .form-row--qty { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .fx-head { gap: var(--sp-3); } .fx-head__ico { width: 44px; height: 44px; } }

@media (prefers-reduced-motion: reduce) {
  .field--float > label, .topic__body, .consent__box, .consent__box svg,
  .btn--wide svg, .fx-modal__close { transition: none !important; }
}

/* ---------------------------------------------------------------
   §23c  EMPTY ERROR SLOTS
   .error-text reserves min-height:1em so messages don't shift the
   layout, but in the new stacked fieldsets that dead space stacks up
   between every row. Collapse it while empty; the field's own grid
   gap absorbs the reflow when a message appears.
---------------------------------------------------------------- */
.fx-form .error-text:empty,
.form-card--fx .error-text:empty { min-height: 0; margin: 0; display: none; }

/* ---------------------------------------------------------------
   §23d  OFF-CANVAS OVERFLOW GUARD
   The mobile nav parks itself at translateX(102%). Even though it is
   position:fixed, Chrome still counts it in the document scroll width,
   so every page could be dragged ~350px sideways below 1000px.
   `clip` (not `hidden`) suppresses that without turning the root into a
   scroll container, which would break position:sticky on the header.
---------------------------------------------------------------- */
html { overflow-x: clip; }
body { overflow-x: clip; }


/* ==========================================================================
   §24  ABOUT — bento grid
   A 4-column asymmetric mosaic: tall photo, claim cards, oversized numbers,
   a dark ISO panel. Deliberately not another 2-column image/text split.
   ========================================================================== */
.about-b {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  --bento-r: 20px;
}
.about-b__aura {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 90%;
  pointer-events: none;
  background:
    radial-gradient(38% 46% at 78% 22%, rgba(0, 167, 230, .14) 0%, transparent 70%),
    radial-gradient(34% 40% at 14% 8%,  rgba(27, 33, 89, .10) 0%, transparent 72%);
}
.about-b .container { position: relative; z-index: 1; }

/* --- intro ------------------------------------------------------------- */
.about-b__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.about-b__h {
  margin: .4rem 0 0;
  font-size: clamp(1.9rem, 4.2vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--navy-900);
}
/* cyan sweep behind the last phrase */
.wipe {
  position: relative;
  display: inline-block;
  color: var(--cyan-600);
}
.wipe::after {
  content: "";
  position: absolute;
  left: -.08em; right: -.08em; bottom: .04em;
  height: .3em;
  background: linear-gradient(90deg, rgba(0, 167, 230, .28), rgba(0, 167, 230, .07));
  border-radius: 4px;
  z-index: -1;
}
.about-b__intro-r p { margin: 0 0 1.1rem; color: var(--ink-500); font-size: 1rem; line-height: 1.7; }

/* --- the grid ---------------------------------------------------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* minmax lets the chips row grow past the base track instead of clipping */
  grid-auto-rows: minmax(168px, auto);
  gap: 14px;
}
.bento__cell {
  position: relative;
  overflow: hidden;
  border-radius: var(--bento-r);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.4rem 1.45rem;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.bento__cell:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 50px -26px rgba(12, 18, 58, .42);
  border-color: rgba(0, 167, 230, .55);
}
.bento__cell h3 {
  margin: 0 0 .5rem;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -.015em;
  color: var(--navy-900);
}
.bento__cell p { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--ink-400); }

.bento__ico {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  margin-bottom: .9rem;
  border-radius: 12px;
  background: var(--cyan-50);
  color: var(--cyan-600);
  flex: none;
}
.bento__ico svg { width: 20px; height: 20px; }

/* tall photo, spans 2 rows */
.bento__cell--photo {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  border: 0;
}
.bento__cell--photo img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.bento__cell--photo:hover img { transform: scale(1.05); }
.bento__cell--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 14, 46, .82) 0%, rgba(9, 14, 46, .16) 46%, transparent 72%);
}
.bento__photo-tag {
  position: absolute;
  left: 1.25rem; bottom: 1.15rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .9rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #48e0a0;
  box-shadow: 0 0 0 0 rgba(72, 224, 160, .7);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  70%  { box-shadow: 0 0 0 9px rgba(72, 224, 160, 0); }
  100% { box-shadow: 0 0 0 0  rgba(72, 224, 160, 0); }
}

.bento__cell--claim { grid-column: span 2; grid-row: span 2; justify-content: center; }
.bento__cell--claim h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); }
.bento__cell--claim p { font-size: .93rem; }

/* oversized numerals */
.bento__cell--stat { justify-content: center; }
.bento__num {
  font-family: var(--font-alt);
  font-size: clamp(2.4rem, 4.4vw, 3.3rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
}
.bento__cell--stat2 .bento__num { color: var(--cyan-600); }
.bento__lbl {
  display: block;
  margin-top: .55rem;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--ink-400);
}

/* wide row with a link */
.bento__cell--wide {
  grid-column: span 2;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.1rem;
}
.bento__cell--wide .bento__ico { margin-bottom: 0; }
.bento__cell--wide h3 { font-size: 1.02rem; }
.bento__cell--wide p { font-size: .85rem; }
.bento__link {
  position: absolute;
  right: 1.35rem; bottom: 1.1rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--cyan-600);
  text-decoration: none;
}
.bento__link span { display: inline-block; transition: transform .25s ease; }
.bento__cell--wide:hover .bento__link span { transform: translateX(4px); }

/* dark ISO panel */
.bento__cell--iso {
  grid-column: span 1;
  justify-content: center;
  background: linear-gradient(150deg, var(--navy-900), #1d2560);
  border-color: transparent;
  color: #fff;
}
.bento__cell--iso:hover { border-color: rgba(0, 167, 230, .6); }
.bento__iso {
  font-family: var(--font-alt);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan-400);
}
.bento__iso-sub {
  font-family: var(--font-alt);
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .92);
  letter-spacing: .04em;
}
.bento__cell--iso .bento__lbl { color: rgba(255, 255, 255, .68); }

.bento__cell--range { grid-column: span 3; }
.bento__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .9rem; }
.bento__chips span {
  padding: .28rem .62rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--navy-800);
}

@media (max-width: 1000px) {
  .about-b__intro { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); }
  .bento__cell--photo,
  .bento__cell--claim { grid-column: span 2; grid-row: span 2; }
  .bento__cell--wide,
  .bento__cell--range { grid-column: span 2; grid-row: span 1; }
  .bento__cell--range { grid-row: span 2; }
  .bento__cell--iso { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .bento__cell { grid-column: span 1 !important; grid-row: auto !important; min-height: 0; padding: 1.25rem; }
  .bento__cell--photo { min-height: 300px; }
  .bento__cell--wide { flex-direction: column; padding-bottom: 3.1rem; }
  .bento__link { left: 1.25rem; right: auto; }
}

/* ==========================================================================
   §25  CLIENT FEEDBACK — interactive carousel
   One large quote at a time on a navy mesh, driven by dots/arrows/keyboard
   (see main.js "voices carousel"). Replaces the old row of quote cards.
   ========================================================================== */
.vx {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--navy-900) 0%, #161c4e 55%, #10163f 100%);
  color: #fff;
}
.vx__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 55% at 88% 12%, rgba(0, 167, 230, .30) 0%, transparent 68%),
    radial-gradient(36% 48% at 6% 88%, rgba(0, 167, 230, .16) 0%, transparent 70%),
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px) 0 0 / 100% 46px;
  mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}
.vx__quote-ghost {
  position: absolute;
  top: -.28em; right: 3%;
  font-family: var(--font-display);
  font-size: clamp(14rem, 26vw, 26rem);
  line-height: 1;
  color: rgba(255, 255, 255, .045);
  pointer-events: none;
  user-select: none;
}
.vx .container { position: relative; z-index: 1; }
.eyebrow--light { color: var(--cyan-400); }

.vx__top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.vx__title {
  margin: .4rem 0 0;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #fff;
}
.vx__score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .15rem 1rem;
  align-items: center;
  padding: 1.05rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.vx__score-num {
  grid-row: span 2;
  font-family: var(--font-alt);
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--cyan-400);
}
.vx__score-stars { color: #ffc451; letter-spacing: .14em; font-size: .95rem; }
.vx__score-lbl { margin: 0; font-size: .78rem; line-height: 1.45; color: rgba(255, 255, 255, .68); }

/* --- stage ------------------------------------------------------------- */
.vx__stage { position: relative; }
.vx__track {
  display: grid;
  grid-template-areas: "slide";
}
.vx__slide {
  grid-area: slide;
  margin: 0;
  padding: clamp(1.75rem, 4vw, 3.1rem) clamp(1.5rem, 4vw, 3.4rem);
  border-radius: 26px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.985);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1), visibility .5s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.vx__slide[data-active] { opacity: 1; visibility: visible; transform: none; }
/* no-JS: show the first quote */
html:not(.js-motion) .vx__slide:first-child { opacity: 1; visibility: visible; transform: none; }

.vx__badge {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: .32rem .78rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 167, 230, .2);
  border: 1px solid rgba(0, 167, 230, .45);
  color: var(--cyan-400);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.vx__slide blockquote {
  /* auto margin pins the attribution to the card floor, so the shared stage
     height (set by the longest quote) reads as intentional, not as dead space */
  margin: 0 0 1.6rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.9vw, 2.15rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
}
.vx__slide figcaption { display: flex; align-items: center; gap: .85rem; margin-top: auto; }
.vx__face {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cyan-500), var(--cyan-600));
  color: #fff;
  font-family: var(--font-alt);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .02em;
}
.vx__who { display: flex; flex-direction: column; }
.vx__who cite { font-style: normal; font-weight: 700; color: #fff; font-size: 1rem; }
.vx__who span { font-size: .82rem; color: rgba(255, 255, 255, .62); }

/* --- controls ---------------------------------------------------------- */
.vx__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
}
.vx__dots { display: flex; gap: .5rem; }
.vx__dot {
  width: 34px; height: 5px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  transition: background .3s ease, width .3s ease;
}
.vx__dot:hover { background: rgba(255, 255, 255, .4); }
.vx__dot[aria-selected="true"] { width: 56px; background: var(--cyan-400); }
.vx__arrows { display: flex; gap: .5rem; }
.vx__arrow {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.vx__arrow:hover {
  background: var(--cyan-500);
  border-color: var(--cyan-500);
  transform: translateY(-2px);
}
.vx__dot:focus-visible,
.vx__arrow:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 3px; }

/* --- proof numbers ----------------------------------------------------- */
.vx__proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.vx__proof-item {
  padding: 1.3rem 1.2rem;
  background: rgba(11, 16, 48, .55);
}
.vx__proof-item b {
  display: block;
  font-family: var(--font-alt);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--cyan-400);
}
.vx__proof-item span {
  display: block;
  margin-top: .4rem;
  font-size: .8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, .68);
}

@media (max-width: 900px) {
  .vx__top { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .vx__proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vx__slide blockquote { max-width: none; }
  .vx__controls { flex-direction: column-reverse; align-items: stretch; gap: 1rem; }
  .vx__arrows { justify-content: center; }
  .vx__dots { justify-content: center; }
}

/* ==========================================================================
   §26  NEWS & BLOG — magazine mosaic
   Full-bleed overlay hero + three unlike cards (numeral, thumbnail, quiet).
   Replaces the old lead-story + thumbnail-rows layout.
   ========================================================================== */
.jx { background: var(--surface-2); }   /* keeps the navy→tinted→white CTA rhythm */

.jx__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--navy-900);
}
.jx__h {
  margin: .4rem 0 0;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--navy-900);
}
.jx__head-r { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.jx__head-r p { margin: 0; color: var(--ink-500); font-size: .95rem; line-height: 1.7; max-width: 46ch; }
.jx__all {
  font-weight: 700;
  font-size: .92rem;
  color: var(--cyan-600);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease;
}
.jx__all:hover { border-color: var(--cyan-600); }
.jx__all span { display: inline-block; transition: transform .25s ease; }
.jx__all:hover span { transform: translateX(4px); }

.jx__mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 16px;
}

/* invisible full-card link — keeps one accessible name per card */
.jx__hit { position: absolute; inset: 0; z-index: 3; }
.jx__hit:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 3px; border-radius: inherit; }

.jx__meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.jx__cat {
  padding: .26rem .68rem;
  border-radius: var(--radius-pill);
  background: var(--cyan-50);
  color: var(--cyan-600);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.jx__cat--own { background: rgba(27, 33, 89, .08); color: var(--navy-800); }
.jx__meta time { font-size: .78rem; color: var(--ink-400); }

/* --- hero card: spans 2 cols and both rows ----------------------------- */
.jx__hero {
  position: relative;
  grid-column: span 2;
  grid-row: span 2;
  min-height: 460px;
  overflow: hidden;
  border-radius: 22px;
  isolation: isolate;
  background: var(--navy-900);
}
.jx__hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2,.7,.3,1);
}
.jx__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 12, 40, .93) 4%, rgba(8, 12, 40, .55) 42%, rgba(8, 12, 40, .12) 78%);
  z-index: 1;
}
.jx__hero:hover img { transform: scale(1.045); }
.jx__hero-body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  color: #fff;
}
.jx__hero-body h3 {
  margin: 0 0 .6rem;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.16;
  letter-spacing: -.025em;
  color: #fff;
  max-width: 20ch;
}
.jx__hero-body p {
  margin: 0 0 1rem;
  font-size: .92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .78);
  max-width: 52ch;
}
.jx__hero .jx__cat--live {
  background: rgba(0, 167, 230, .22);
  border: 1px solid rgba(0, 167, 230, .5);
  color: var(--cyan-400);
}
.jx__hero .jx__meta time { color: rgba(255, 255, 255, .6); }
.jx__read {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--cyan-400);
}
.jx__read span { transition: transform .25s ease; }
.jx__hero:hover .jx__read span,
.jx__card:hover .jx__read span { transform: translateX(4px); }

/* --- side cards -------------------------------------------------------- */
.jx__card {
  position: relative;
  display: flex;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s ease, border-color .35s ease;
}
.jx__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -26px rgba(12, 18, 58, .4);
  border-color: rgba(0, 167, 230, .5);
}
.jx__card-body { padding: 1.25rem 1.35rem; }
.jx__card h3 {
  margin: 0 0 .45rem;
  font-size: 1.02rem;
  line-height: 1.28;
  letter-spacing: -.015em;
  color: var(--navy-900);
}
.jx__card p { margin: 0; font-size: .85rem; line-height: 1.6; color: var(--ink-400); }

/* numeral card */
.jx__card--num { flex-direction: column; }
.jx__figure {
  position: absolute;
  top: -.22em; right: .04em;
  font-family: var(--font-alt);
  font-size: 8rem;
  font-weight: 400;
  line-height: 1;
  color: rgba(27, 33, 89, .07);
  pointer-events: none;
}
.jx__card--num .jx__card-body { position: relative; z-index: 1; }

/* thumbnail card */
.jx__card--img { flex-direction: column; }
.jx__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.jx__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.jx__card--img:hover .jx__thumb img { transform: scale(1.06); }

/* quiet card spans the full width under the mosaic on desktop */
.jx__card--quiet {
  grid-column: span 3;
  align-items: center;
  background: var(--navy-900);
  border-color: transparent;
}
.jx__card--quiet .jx__card-body { padding: 1.5rem clamp(1.35rem, 3vw, 2.25rem); }
.jx__card--quiet h3 { color: #fff; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.jx__card--quiet p { color: rgba(255, 255, 255, .7); max-width: 62ch; margin-bottom: .75rem; }
.jx__card--quiet .jx__cat { background: rgba(0, 167, 230, .2); color: var(--cyan-400); }
.jx__card--quiet .jx__meta time { color: rgba(255, 255, 255, .55); }
.jx__card--quiet:hover { border-color: rgba(0, 167, 230, .55); }

@media (max-width: 1000px) {
  .jx__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .jx__mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jx__hero { grid-column: span 2; grid-row: span 1; min-height: 400px; }
  .jx__card--quiet { grid-column: span 2; }
}
@media (max-width: 620px) {
  .jx__mosaic { grid-template-columns: minmax(0, 1fr); }
  .jx__hero,
  .jx__card,
  .jx__card--quiet { grid-column: span 1; }
  .jx__hero { min-height: 380px; }
  .jx__figure { font-size: 6rem; }
}

/* ==========================================================================
   §27  MENU 2.0
   Overrides §20. Three changes:
   (a) nav labels move to Candal with an ink-wipe hover instead of a capsule;
   (b) the desktop mega panel opens with a clip-path reveal and its columns
       cascade in, rather than a flat fade;
   (c) mobile is a true off-canvas drawer — full height, own header bar with
       a visible close button, and items that stagger in behind it.
   ========================================================================== */

/* --- (a) top-level typography + hover ----------------------------------- */
.nav__link,
.nav__link--btn {
  font-family: "Inter";
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .085em;
  text-transform: uppercase;
  padding: .62rem .78rem;
}
/* retire the §20 capsule */
.nav__link::before { display: none !important; }

/* Remove ink wipe underline animation */
.nav__label {
  position: relative;
  z-index: 1;
  display: inline-block;
}
/* Removed: ::after pseudo-element that creates the animated underline */

/* active page: a small filled tick, restated for the uppercase row */
.nav__link[aria-current="page"]::after,
.nav__link--btn[data-current="true"]::after { bottom: 1px; }

/* --- (b) desktop panel reveal ------------------------------------------- */
@media (min-width: 1001px) {
  .mega {
    /* clip-path wipe downward + slight lift; visibility keeps it out of the
       a11y tree while closed */
    clip-path: inset(0 0 100% 0);
    transform: translateY(-6px);
    transition:
      opacity .3s var(--nav-ease),
      transform .38s var(--nav-ease),
      clip-path .44s var(--nav-ease),
      visibility 0s linear .44s;
  }
  .nav__item--mega[data-open="true"] .mega,
  .mega[data-open="true"] {
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
    transition-delay: 0s;
  }

  /* columns cascade in behind the panel edge */
  .mega__col {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .34s var(--nav-ease), transform .34s var(--nav-ease);
  }
  .nav__item--mega[data-open="true"] .mega__col { opacity: 1; transform: none; }
  .nav__item--mega[data-open="true"] .mega__col:nth-child(1) { transition-delay: .06s; }
  .nav__item--mega[data-open="true"] .mega__col:nth-child(2) { transition-delay: .13s; }
  .nav__item--mega[data-open="true"] .mega__col:nth-child(3) { transition-delay: .2s; }

  /* individual links tick in with the column */
  .mega__list li {
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .3s var(--nav-ease), transform .3s var(--nav-ease);
  }
  .nav__item--mega[data-open="true"] .mega__list li { opacity: 1; transform: none; }
  .nav__item--mega[data-open="true"] .mega__list li:nth-child(1) { transition-delay: .16s; }
  .nav__item--mega[data-open="true"] .mega__list li:nth-child(2) { transition-delay: .21s; }
  .nav__item--mega[data-open="true"] .mega__list li:nth-child(3) { transition-delay: .26s; }
  .nav__item--mega[data-open="true"] .mega__list li:nth-child(4) { transition-delay: .31s; }
  .nav__item--mega[data-open="true"] .mega__list li:nth-child(5) { transition-delay: .36s; }
  .nav__item--mega[data-open="true"] .mega__list li:nth-child(6) { transition-delay: .41s; }

  .nav__head { display: none; }        /* drawer chrome is mobile-only */
}

/* --- (c) mobile off-canvas drawer --------------------------------------- */
@media (max-width: 1000px) {
  /* A backdrop-filter on .site-header makes it a containing block for its
     fixed descendants, which pinned the drawer under the header instead of
     the viewport. The blur buys nothing at this width, so drop it and use a
     solid bar; the drawer can then anchor to the viewport properly. */
  .site-header,
  .site-header[data-stuck="true"] {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }

  /* Full-viewport panel. §20 anchored the top to --header-h, which left the
     drawer hanging below a translucent header and clipped the last item on
     short screens; it now owns the whole right edge and carries its own bar. */
  .nav,
  .nav[data-open="true"] {
    inset: 0 0 0 auto;
    height: 100dvh;
    width: min(420px, 90vw);
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;               /* style.css centres nav children */
    gap: 0;
    border-left: 1px solid var(--line);
    box-shadow: -30px 0 70px -34px rgba(16,20,60,.7);
    z-index: 120;                       /* above the header, not under it */
  }

  /* drawer top bar with the close control */
  .nav__head {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    padding: 0 var(--sp-4) 0 var(--sp-5);
    height: var(--header-h);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }
  .nav__head-title {
    font-family: var(--font-alt);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-400);
  }
  .nav__close {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    margin-right: -4px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--navy-800);
    cursor: pointer;
    transition: background-color .2s var(--nav-ease), color .2s var(--nav-ease),
                border-color .2s var(--nav-ease), transform .2s var(--nav-ease);
  }
  .nav__close svg { width: 20px; height: 20px; }
  .nav__close:hover,
  .nav__close:focus-visible {
    background: var(--navy-800);
    border-color: var(--navy-800);
    color: #fff;
    transform: rotate(90deg);
  }

  /* scrollable body */
  .nav__list {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: var(--sp-4) var(--sp-5) var(--sp-5);
    gap: 0;
  }
  .nav__mobile-foot {
    flex: 0 0 auto;
    margin-top: 0;                      /* §20 pushed it off the bottom edge */
    padding: var(--sp-4) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--surface-2);
  }

  /* left-aligned, larger tap targets; drop the uppercase micro-type */
  .nav__link,
  .nav__link--btn {
    width: 100%;
    justify-content: space-between;
    font-size: 1rem;
    letter-spacing: .02em;
    text-transform: none;
    padding: .95rem .2rem;
    border-radius: 0;
  }
  .nav__label::after { display: none; }   /* wipe is a pointer affordance */

  /* Collapsed accordions were leaking their padding and kicker text: the 0fr
     grid row clips the row box, not the child's own padding. Clip on .mega
     and only give .mega__inner its padding once the panel is open. */
  .mega { overflow: hidden; }
  .mega__inner { padding-bottom: 0 !important; }
  .nav__item--mega[data-open="true"] .mega__inner { padding-bottom: var(--sp-4) !important; }

  /* items cascade in behind the panel, driven by --i from build.py */
  .nav__item {
    opacity: 0;
    transform: translateX(18px);
    transition: opacity .3s var(--nav-ease), transform .3s var(--nav-ease);
    border-bottom: 1px solid var(--line);
  }
  .nav__item:last-of-type { border-bottom: 0; }
  .nav[data-open="true"] .nav__item {
    opacity: 1;
    transform: none;
    transition-delay: calc(.1s + var(--i, 0) * .055s);
  }

  /* the scrim must cover the header too, now that the drawer does */
  .nav-scrim { inset: 0; z-index: 110; }
  .nav-scrim:not([hidden]) { pointer-events: auto; }
  .site-header[data-mega-open="true"] .nav-scrim,
  body:has(.nav[data-open="true"]) .nav-scrim { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .mega, .mega__col, .mega__list li, .nav__item, .nav__label::after {
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .nav__close:hover, .nav__close:focus-visible { transform: none; }
}

/* --- Candal inheritance guards -------------------------------------------
   Candal ships one weight, so a child that inherits it and asks for bold
   renders as a synthesised smear. Captions inside a Candal parent go back to
   Inter; numerals that should stay Candal are pinned to 400. */
.price small,
.price .note,
.stat b small,
.hs__facts b small {
  font-family: var(--font-sans);
  font-weight: 500;
}
.vx__proof-item b,
.contact-promise__steps b,
.contact-promise__steps li > b { font-weight: 400; }

/* ==========================================================================
   §28  HOME 2 — CINEMATIC VIDEO HERO  (home2.html only)
   Design direction B: one continuous laboratory scene instead of the slider.
   Shares every other component with index.html.
   ========================================================================== */
.vh {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  isolation: isolate;
}
.vh__media { position: absolute; inset: 0; z-index: 0; }
.vh__video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.03);
}
.vh__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(9,12,40,.94) 0%, rgba(9,12,40,.78) 42%, rgba(9,12,40,.34) 100%),
    linear-gradient(0deg, rgba(9,12,40,.85), transparent 55%);
}
/* very light film grain so the flat video gradient does not band */
.vh__grain {
  position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vh__inner { position: relative; z-index: 2; padding: clamp(4rem, 11vh, 8rem) 0; max-width: 1180px; }
.vh__eyebrow {
  font-family: var(--font-alt);
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cyan-400); margin: 0 0 var(--sp-3);
}
.vh__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.1rem + 3.3vw, 3.7rem);
  font-weight: 600; line-height: 1.14; letter-spacing: 0;
  margin: 0 0 var(--sp-4); max-width: 16ch;
  color: #fff;                       /* else it inherits body navy on video */
  text-shadow: 0 2px 34px rgba(6,9,30,.6);
}
/* ghost button sitting on dark video needs its own palette */
.btn--on-dark {
  color: #fff;
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(4px);
}
.btn--on-dark:hover,
.btn--on-dark:focus-visible {
  color: var(--navy-900);
  background: #fff;
  border-color: #fff;
}
.vh__title em { font-style: normal; color: var(--cyan-400); }
.vh__lede {
  font-size: var(--step-1); line-height: 1.6; color: #cfd9f5;
  max-width: 54ch; margin: 0 0 var(--sp-5);
}
.vh__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: clamp(2rem, 5vh, 3.4rem); }

.vh__stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-4); margin: 0; padding-top: var(--sp-5);
  border-top: 1px solid rgba(255,255,255,.16); max-width: 680px;
}
.vh__stats dt {
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: #9fb0dd; margin-bottom: .35rem;
}
.vh__stats dd {
  margin: 0; font-family: var(--font-alt); font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 2rem); color: #fff;
  font-variant-numeric: tabular-nums;
  text-wrap: nowrap;                 /* keep "ISO/IEC 17025" on one line */
}

.vh__scroll {
  position: absolute; left: 50%; bottom: var(--sp-5); transform: translateX(-50%);
  z-index: 3; display: grid; justify-items: center; gap: .5rem;
  text-decoration: none; color: #9fb0dd;
  font-family: var(--font-alt); font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase;
}
.vh__scroll-line { display: block; width: 1px; height: 42px; background: linear-gradient(180deg, transparent, var(--cyan-400)); }
.vh__scroll:hover { color: #fff; }

/* --- marquee ------------------------------------------------------------ */
.vh-marquee {
  background: var(--navy-800); color: #fff; overflow: hidden;
  padding: var(--sp-4) 0; border-block: 1px solid rgba(255,255,255,.1);
}
.vh-marquee__track {
  display: flex; align-items: center; gap: var(--sp-4);
  white-space: nowrap; width: max-content;
  animation: vh-scroll 42s linear infinite;
  font-family: var(--font-alt); font-size: .82rem;
  letter-spacing: .13em; text-transform: uppercase;
}
.vh-marquee__track i { color: var(--cyan-400); font-style: normal; }
@keyframes vh-scroll { to { transform: translateX(-50%); } }

/* --- split capability --------------------------------------------------- */
.vh-split {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5); margin-top: var(--sp-6);
}
.vh-split__item {
  padding-top: var(--sp-4); border-top: 2px solid var(--line);
  transition: border-color .25s ease;
}
.vh-split__item:hover { border-top-color: var(--cyan-500); }
.vh-split__num {
  display: block; font-family: var(--font-alt); font-size: .8rem;
  letter-spacing: .1em; color: var(--cyan-600); margin-bottom: .6rem;
  font-variant-numeric: tabular-nums;
}
.vh-split__item h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.vh-split__item p { margin: 0; color: var(--ink-500); font-size: .92rem; line-height: 1.6; }

/* --- concept note ------------------------------------------------------- */
.vh-note { max-width: 68ch; }
.vh-note h2 { margin: .2rem 0 var(--sp-4); }
.vh-note p { color: var(--ink-500); line-height: 1.7; margin: 0 0 var(--sp-3); }
.vh-note__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }

@media (max-width: 900px) {
  .vh-split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
}
@media (max-width: 620px) {
  .vh { min-height: 0; }
  .vh__stats { grid-template-columns: 1fr; gap: var(--sp-3); }
  .vh__scroll { display: none; }
  .vh-split { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .vh-marquee__track { animation: none; }
  .vh__video { display: none; }        /* poster still shows through */
}

/* ==========================================================================
   §29  FOOTER WORDMARK
   An oversized, faded "CheMed" closing the page. It is sized to the viewport
   width so it always fills the line edge-to-edge, and clipped at the baseline
   so the descender does not add dead space under the footer.
   ========================================================================== */
.site-footer { position: relative; overflow: hidden; }

.footer-wordmark {
  /* full-bleed regardless of the .container the rest of the footer sits in */
  display: block;
  width: 100%;
  margin-top: var(--sp-4);
  padding: 1rem clamp(.5rem, 2vw, 1.5rem);
  user-select: none;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-wordmark svg {
  display: block;
  width: 100%;
  height: auto;                  /* viewBox is the ink box, so no dead space */
  overflow: visible;
}
.footer-wordmark text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 82px;              /* user units; the viewBox does the scaling */
}

/* ==========================================================================
   §30  HOME 2 LAYOUT FIXES
   The lifecycle band and the concept note were both single-column blocks in a
   full-width container, which left the right half of the page empty. Both are
   now two-column bands that use the whole measure.
   ========================================================================== */
.vh-lifecycle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.vh-lifecycle__intro h2 { margin: .2rem 0 var(--sp-3); }
.vh-lifecycle__lede { color: var(--ink-500); font-size: var(--step-1); line-height: 1.6; margin: 0 0 var(--sp-5); max-width: 46ch; }
.vh-lifecycle__media {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.vh-lifecycle__media img { display: block; width: 100%; height: clamp(200px, 26vw, 300px); object-fit: cover; }

/* the four steps stack 2x2 beside the intro instead of a thin 4-across row */
.vh-lifecycle .vh-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 0;
}

.vh-note-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.vh-note { max-width: none; }

.vh-compare {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.9rem);
  box-shadow: var(--shadow-sm);
}
.vh-compare__title { margin: 0 0 var(--sp-4); font-size: 1.02rem; }
.vh-compare__table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.vh-compare__table th,
.vh-compare__table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.vh-compare__table thead th {
  font-family: var(--font-alt); font-weight: 400;
  font-size: .68rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--cyan-600); border-bottom-color: var(--line-2);
}
.vh-compare__table tbody th {
  font-family: var(--font-sans); font-weight: 650; color: var(--navy-800);
  width: 34%;
}
.vh-compare__table td { color: var(--ink-500); }
.vh-compare__table tbody tr:last-child th,
.vh-compare__table tbody tr:last-child td { border-bottom: 0; }
.vh-compare__foot { margin: var(--sp-3) 0 0; font-size: .78rem; color: var(--ink-400); line-height: 1.5; }

@media (max-width: 900px) {
  .vh-lifecycle,
  .vh-note-wrap { grid-template-columns: 1fr; }
  .vh-lifecycle__media img { height: clamp(180px, 40vw, 260px); }
}
@media (max-width: 620px) {
  .vh-lifecycle .vh-split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   §31  HOME 2 — FULL PAGE (immersive variant)
   index.html states this content as cards, bento and mosaic. home2 restates
   the SAME content in a different physical vocabulary: a console strip, a
   sticky narrative column, a horizontal rail, a vertical spine, a price
   ledger, a quote wall and a dated archive. Nothing here is shared with
   index.html, so either page can be deleted without touching the other.
   ========================================================================== */

/* ---------- 31.1 Quotation console (vs index's boxed .quote-strip) -------- */
.im-quote{
  background:var(--navy-900);
  color:#fff;
  padding:clamp(2.25rem,4vw,3.25rem) 0;
  border-bottom:1px solid rgba(255,255,255,.09);
}
.im-quote__inner{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(1.75rem,4vw,3.5rem);
  align-items:center;
}
.im-quote__h{
  font-size:clamp(1.45rem,.95rem + 1.5vw,2.1rem);
  line-height:1.16;
  color:#fff;
  margin:.35rem 0 .6rem;
}
.im-quote__p{
  color:rgba(255,255,255,.74);
  font-size:var(--step--1);
  line-height:1.65;
  margin:0 0 .85rem;
  max-width:44ch;
}
.im-quote__call{
  display:flex;
  align-items:center;
  gap:.5rem;
  margin:0;
  font-size:var(--step--1);
  color:rgba(255,255,255,.72);
}
.im-quote__call svg{width:18px;height:18px;color:var(--cyan-400);flex:none}
.im-quote__call a{color:#fff;font-family:var(--font-alt);text-decoration:none;border-bottom:1px solid rgba(255,255,255,.35)}
.im-quote__call a:hover{border-bottom-color:var(--cyan-400);color:var(--cyan-400)}

.im-quote__form{margin:0}
.im-quote__row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.85rem 1rem;
  align-items:end;
}
.im-quote__field{display:flex;flex-direction:column;gap:.3rem;min-width:0}
.im-quote__field--grow{grid-column:1 / -1}
.im-quote__field--go{grid-column:1 / -1}
.im-quote__field label{
  font-family:var(--font-alt);
  font-size:.72rem;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:rgba(255,255,255,.62);
}
.im-quote__field .req{color:var(--cyan-400)}
.im-quote__field input,
.im-quote__field select{
  width:100%;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius-sm);
  color:#fff;
  font:inherit;
  font-size:var(--step--1);
  padding:.7rem .85rem;
  transition:border-color .18s ease, background .18s ease;
}
.im-quote__field select{
  appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,rgba(255,255,255,.6) 50%),
                   linear-gradient(135deg,rgba(255,255,255,.6) 50%,transparent 50%);
  background-position:calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size:5px 5px,5px 5px;
  background-repeat:no-repeat;
  padding-right:2.25rem;
}
.im-quote__field select option{background:var(--navy-900);color:#fff}
.im-quote__field input::placeholder{color:rgba(255,255,255,.38)}
.im-quote__field input:focus,
.im-quote__field select:focus{
  outline:none;
  border-color:var(--cyan-400);
  background:rgba(255,255,255,.12);
}
.im-quote__field input:focus-visible,
.im-quote__field select:focus-visible{outline:2px solid var(--cyan-400);outline-offset:2px}
.im-quote__field input[aria-invalid="true"]{border-color:#ff8b8b;background:rgba(255,90,90,.12)}
.im-quote__field .error-text{
  font-size:.75rem;
  color:#ffb4b4;
  margin:0;
  min-height:0;
}
.im-quote__field .error-text:empty{display:none}
.im-quote__field--go .btn{width:100%}
.im-quote__hint{
  margin:.7rem 0 0;
  font-size:.75rem;
  color:rgba(255,255,255,.45);
}
.im-quote .alert--ok{margin-top:.75rem}

/* 761-1099: two columns, button on its own right-aligned row */
@media (min-width:761px){
  .im-quote__row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .im-quote__field--grow{grid-column:1 / -1}
  .im-quote__field--go{grid-column:1 / -1;align-items:flex-end}
  .im-quote__field--go .btn{width:auto;white-space:nowrap}
}


/* ---------- 31.2 About: sticky narrative (vs index's bento) -------------- */
.im-story__grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.75fr);
  gap:clamp(2rem,5vw,4.5rem);
  align-items:start;
}
.im-story__h{
  font-size:clamp(1.7rem,1.05rem + 2.1vw,2.85rem);
  line-height:1.14;
  margin:.4rem 0 1.25rem;
}
.im-story__text > p{
  font-size:var(--step--1);
  line-height:1.78;
  color:var(--ink-500);
  margin:0 0 1.05rem;
  max-width:60ch;
}
/* Editorial drop-cap — a device index.html never uses */
.im-story__drop{
  font-size:var(--step-0);
  color:var(--ink-700);
}
.im-story__drop::first-letter{
  float:left;
  font-family:var(--font-display);
  font-weight:600;
  font-size:3.5em;
  line-height:.82;
  padding:.06em .12em 0 0;
  color:var(--navy-800);
}
.im-story__cta{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.5rem}

/* Facts as a ruled ledger, not stat tiles */
.im-facts{
  margin:1.6rem 0;
  border-top:1px solid var(--line);
}
.im-facts__row{
  display:grid;
  grid-template-columns:minmax(7.5rem,.4fr) minmax(0,1fr);
  gap:1rem;
  padding:.85rem 0;
  border-bottom:1px solid var(--line);
  align-items:baseline;
}
.im-facts dt{
  font-family:var(--font-alt);
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-400);
}
.im-facts dd{margin:0;display:flex;flex-direction:column;gap:.15rem}
.im-facts dd b{
  font-family:var(--font-alt);
  font-size:1.15rem;
  color:var(--navy-800);
  line-height:1.1;
  text-wrap:nowrap;
}
.im-facts dd > span{font-size:.85rem;color:var(--ink-500);line-height:1.5}
.im-facts dd b [data-count]{font-size:inherit;color:inherit}

.im-story__aside{position:sticky;top:calc(var(--header-h) + 1.5rem)}
.im-story__fig{margin:0;position:relative;border-radius:var(--radius-lg);overflow:hidden}
.im-story__fig img{display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover}
.im-story__fig figcaption{
  position:absolute;
  left:.85rem;bottom:.85rem;
  display:flex;align-items:center;gap:.45rem;
  background:rgba(11,15,42,.72);
  backdrop-filter:blur(8px);
  color:#fff;
  font-family:var(--font-alt);
  font-size:.72rem;
  letter-spacing:.06em;
  padding:.4rem .7rem;
  border-radius:var(--radius-pill);
}
.im-story__pull{
  margin:1.25rem 0 0;
  padding:1.15rem 1.25rem;
  border-left:3px solid var(--cyan-500);
  background:var(--surface);
  border-radius:0 var(--radius) var(--radius) 0;
  font-family:var(--font-display);
  font-size:1.2rem;
  line-height:1.35;
  color:var(--navy-800);
}
.im-story__pull cite{
  display:block;
  margin-top:.5rem;
  font-family:var(--font-alt);
  font-style:normal;
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-400);
}

/* ---------- 31.3 Services: horizontal rail (vs index's 6-card grid) ------ */
.im-rail-sec{overflow:hidden}
.im-rail__head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(1.25rem,3vw,3rem);
  align-items:end;
  margin-bottom:clamp(1.5rem,3vw,2.25rem);
}
.im-rail__h{font-size:clamp(1.55rem,1rem + 1.8vw,2.5rem);line-height:1.15;margin:.35rem 0 0}
.im-rail__head-r p{margin:0 0 .55rem;color:var(--ink-500);font-size:var(--step--1);line-height:1.7}
.im-rail__nudge{
  font-family:var(--font-alt);
  font-size:.78rem;
  letter-spacing:.05em;
  color:var(--ink-400);
}
.im-rail__nudge span{color:var(--cyan-500);margin-right:.3rem}
.im-rail__nudge a{color:var(--cyan-600)}

.im-rail{
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scroll-padding-left:max(1.25rem,calc((100% - min(100% - 2.5rem, var(--container))) / 2));
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  padding-bottom:1rem;
}
.im-rail:focus-visible{outline:2px solid var(--cyan-500);outline-offset:4px}
.im-rail__track{
  display:flex;
  gap:1.15rem;
  width:max-content;
  padding-inline:max(1.25rem,calc((100% - min(100% - 2.5rem, var(--container))) / 2));
}
.im-rail__card{
  scroll-snap-align:start;
  flex:0 0 clamp(255px,78vw,330px);
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  overflow:hidden;
  transition:border-color .2s ease, transform .25s var(--nav-ease), box-shadow .25s ease;
}
.im-rail__card:hover{
  border-color:var(--cyan-500);
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
}
.im-rail__media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--surface-2)}
.im-rail__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s var(--nav-ease)}
.im-rail__card:hover .im-rail__media img{transform:scale(1.05)}
.im-rail__num{
  position:absolute;top:.7rem;right:.85rem;
  font-family:var(--font-alt);
  font-size:1.55rem;
  color:#fff;
  text-shadow:0 2px 12px rgba(11,15,42,.65);
  line-height:1;
}
.im-rail__body{padding:1.15rem 1.25rem 1.35rem;display:flex;flex-direction:column;flex:1}
.im-rail__cat{
  display:flex;align-items:center;gap:.4rem;
  font-family:var(--font-alt);
  font-size:.68rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--cyan-600);
  margin:0 0 .45rem;
}
.im-rail__cat svg{width:15px;height:15px;flex:none}
.im-rail__title{font-size:1.02rem;line-height:1.28;margin:0 0 .45rem}
.im-rail__text{font-size:.86rem;line-height:1.62;color:var(--ink-500);margin:0 0 .8rem}
.im-rail__tags{list-style:none;display:flex;flex-wrap:wrap;gap:.35rem;padding:0;margin:0 0 1rem}
.im-rail__tags li{
  font-family:var(--font-alt);
  font-size:.66rem;
  letter-spacing:.05em;
  color:var(--ink-500);
  background:var(--surface-2);
  border:1px solid var(--line);
  border-radius:var(--radius-pill);
  padding:.2rem .55rem;
}
.im-rail__link{
  margin-top:auto;
  display:inline-flex;align-items:center;gap:.4rem;
  font-family:var(--font-alt);
  font-size:.78rem;
  color:var(--navy-800);
  text-decoration:none;
}
.im-rail__link svg{width:16px;height:16px;transition:transform .2s ease}
.im-rail__link:hover{color:var(--cyan-600)}
.im-rail__link:hover svg{transform:translateX(3px)}
.im-rail__end{
  scroll-snap-align:start;
  flex:0 0 clamp(160px,42vw,205px);
  display:flex;flex-direction:column;justify-content:center;gap:.6rem;
  padding:1.5rem;
  border:1px dashed var(--line-2);
  border-radius:var(--radius-lg);
  background:var(--surface-2);
  color:var(--navy-800);
  font-family:var(--font-alt);
  font-size:.9rem;
  line-height:1.4;
  text-decoration:none;
  transition:border-color .2s ease,background .2s ease;
}
.im-rail__end:hover{border-color:var(--cyan-500);background:var(--surface);color:var(--cyan-600)}
.im-rail__end-arrow{font-size:1.6rem;line-height:1;color:var(--cyan-500)}

/* ---------- 31.4 Supply: vertical spine (vs index's split + stats) ------- */
.im-time__head{max-width:60ch;margin-bottom:clamp(1.75rem,3.5vw,2.5rem)}
.im-time__h{font-size:clamp(1.55rem,1rem + 1.8vw,2.4rem);line-height:1.16;margin:.35rem 0 .65rem;color:#fff}
.im-time__lede{color:rgba(255,255,255,.72);font-size:var(--step--1);line-height:1.72;margin:0}

.im-time{
  list-style:none;
  margin:0;
  padding:0;
  position:relative;
  display:grid;
  gap:0;
}
.im-time__step{
  position:relative;
  display:grid;
  grid-template-columns:4.5rem minmax(0,1fr);
  gap:clamp(1rem,2.5vw,2rem);
  align-items:start;
  padding:1.5rem 0;
  border-top:1px solid rgba(255,255,255,.12);
}
.im-time__step:last-child{border-bottom:1px solid rgba(255,255,255,.12)}
/* the connecting spine */
.im-time__step::before{
  content:"";
  position:absolute;
  left:5px;
  top:0;bottom:0;
  width:2px;
  background:linear-gradient(180deg,rgba(41,188,245,.42),rgba(41,188,245,.08));
}
.im-time__step:first-child::before{top:1.9rem}
.im-time__step:last-child::before{bottom:calc(100% - 1.9rem)}
.im-time__dot{
  position:absolute;
  left:0;
  top:1.65rem;
  width:12px;height:12px;
  border-radius:50%;
  background:var(--cyan-400);
  box-shadow:0 0 0 5px rgba(41,188,245,.16);
}
/* numeral sits to the RIGHT of the spine, right-aligned into the gutter */
.im-time__num{
  font-family:var(--font-alt);
  font-size:1.6rem;
  color:rgba(255,255,255,.28);
  line-height:1;
  padding-top:.15rem;
  grid-column:1;
  justify-self:end;
}
.im-time__body{grid-column:2}
.im-time__body h3{
  font-size:1.08rem;
  color:#fff;
  margin:0 0 .4rem;
  line-height:1.3;
}
.im-time__body p{
  color:rgba(255,255,255,.68);
  font-size:var(--step--1);
  line-height:1.7;
  margin:0;
  max-width:62ch;
}
.im-time__band{
  margin:clamp(1.75rem,4vw,2.75rem) 0 0;
  border-radius:var(--radius-lg);
  overflow:hidden;
}
/* the source banner has its own baked-in caption, so never crop it */
.im-time__band img{display:block;width:100%;height:auto}

/* ---------- 31.5 Products: price ledger (vs index's 4-card grid) --------- */
.im-shelf__head{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(1.25rem,3vw,3rem);
  align-items:end;
  margin-bottom:clamp(1.5rem,3vw,2.25rem);
}
.im-shelf__h{font-size:clamp(1.55rem,1rem + 1.8vw,2.5rem);line-height:1.15;margin:.35rem 0 0}
.im-shelf__note{margin:0;color:var(--ink-500);font-size:var(--step--1);line-height:1.7}

.im-shelf{border-top:1px solid var(--line-2)}
.im-shelf__row{
  display:grid;
  grid-template-columns:104px minmax(0,1fr) auto auto;
  gap:clamp(.9rem,2vw,1.75rem);
  align-items:center;
  padding:1.05rem 0;
  border-bottom:1px solid var(--line);
  transition:background .18s ease;
}
.im-shelf__row:hover{background:var(--surface-2)}
.im-shelf__thumb{
  display:block;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface-2);
  aspect-ratio:13/10;
}
.im-shelf__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.im-shelf__id{min-width:0}
.im-shelf__sku{
  font-family:var(--font-alt);
  font-size:.66rem;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--ink-400);
  margin:0 0 .25rem;
}
.im-shelf__title{font-size:1rem;line-height:1.3;margin:0 0 .35rem}
.im-shelf__title a{color:var(--navy-800);text-decoration:none}
.im-shelf__title a:hover{color:var(--cyan-600)}
.im-shelf__meta{
  list-style:none;display:flex;flex-wrap:wrap;gap:.4rem .8rem;padding:0;margin:0;
  font-size:.76rem;color:var(--ink-400);
}
.im-shelf__meta .is-stock,
.im-shelf__meta .is-lead{
  font-family:var(--font-alt);
  letter-spacing:.05em;
  display:inline-flex;align-items:center;gap:.35rem;
}
.im-shelf__meta .is-stock{color:#1a8f5a}
.im-shelf__meta .is-lead{color:#b3701a}
.im-shelf__meta .is-stock::before,
.im-shelf__meta .is-lead::before{
  content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none;
}
.im-shelf__price{margin:0;text-align:right;display:flex;flex-direction:column;gap:.1rem}
.im-shelf__price b{
  font-family:var(--font-alt);
  font-size:1.02rem;
  color:var(--navy-800);
  line-height:1.15;
  text-wrap:nowrap;
}
.im-shelf__price span{font-size:.7rem;color:var(--ink-400)}
.im-shelf__price--quote b{color:var(--cyan-600)}
.im-shelf__act{display:flex;align-items:center;gap:.55rem}
.im-shelf__foot{text-align:center;margin:1.75rem 0 0}

/* ---------- 31.6 Testimonials: quote wall (vs index's navy carousel) ----- */
.im-voices__head{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:clamp(1.25rem,3vw,3rem);
  align-items:end;
  margin-bottom:clamp(1.5rem,3vw,2.25rem);
}
.im-voices__h{font-size:clamp(1.55rem,1rem + 1.8vw,2.5rem);line-height:1.15;margin:.35rem 0 0}
.im-voices__rating{
  margin:0;
  display:grid;
  grid-template-columns:auto auto;
  gap:.1rem .7rem;
  align-items:center;
  justify-content:start;
}
.im-voices__rating b{
  font-family:var(--font-alt);
  font-size:2.4rem;
  line-height:1;
  color:var(--navy-800);
  grid-row:span 2;
}
.im-voices__stars{color:#f0a500;letter-spacing:.12em;font-size:.95rem}
.im-voices__rating-lbl{font-size:.78rem;color:var(--ink-400);line-height:1.5;max-width:34ch}

.im-voices{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1.15rem;
}
.im-voices__item{
  margin:0;
  position:relative;
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius-lg);
  padding:1.5rem 1.4rem 1.25rem;
  overflow:hidden;
}
.im-voices__item::before{
  content:"";
  position:absolute;inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,var(--cyan-500),rgba(0,167,230,0));
}
.im-voices__mark{
  font-family:var(--font-alt);
  font-size:.7rem;
  letter-spacing:.14em;
  color:var(--ink-400);
  margin-bottom:.75rem;
}
.im-voices__item blockquote{
  margin:0 0 1.15rem;
  font-family:var(--font-sans);
  font-size:1.02rem;
  font-weight:450;
  line-height:1.62;
  color:var(--navy-800);
  flex:1;
}
.im-voices__item blockquote::before{content:"\201C"}
.im-voices__item blockquote::after{content:"\201D"}
.im-voices__item figcaption{
  border-top:1px solid var(--line);
  padding-top:.8rem;
  display:flex;
  flex-direction:column;
  gap:.15rem;
}
.im-voices__item cite{
  font-style:normal;
  font-family:var(--font-alt);
  font-size:.92rem;
  color:var(--navy-800);
}
.im-voices__item figcaption span{font-size:.75rem;color:var(--ink-400)}

.im-proof{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1rem;
  margin:clamp(1.5rem,3vw,2.25rem) 0 0;
  border-top:1px solid var(--line-2);
  padding-top:1.35rem;
}
.im-proof > div{display:flex;flex-direction:column-reverse;gap:.25rem}
.im-proof dt{font-size:.76rem;color:var(--ink-400);line-height:1.45}
.im-proof dd{
  margin:0;
  font-family:var(--font-alt);
  font-size:1.5rem;
  color:var(--navy-800);
  line-height:1.1;
  text-wrap:nowrap;
}

/* ---------- 31.7 News: dated archive (vs index's mosaic) ----------------- */
.im-log__head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:1.5rem;
  flex-wrap:wrap;
  margin-bottom:clamp(1.25rem,2.5vw,2rem);
}
.im-log__h{font-size:clamp(1.55rem,1rem + 1.8vw,2.5rem);line-height:1.15;margin:.35rem 0 0}
.im-log__all{
  font-family:var(--font-alt);
  font-size:.82rem;
  color:var(--navy-800);
  text-decoration:none;
  border-bottom:1px solid var(--line-2);
  padding-bottom:.15rem;
}
.im-log__all:hover{color:var(--cyan-600);border-bottom-color:var(--cyan-500)}

.im-log{list-style:none;margin:0;padding:0;border-top:1px solid var(--line-2)}
.im-log__row{border-bottom:1px solid var(--line)}
.im-log__hit{
  display:grid;
  grid-template-columns:5.5rem minmax(0,1fr) 130px 1.75rem;
  gap:clamp(.9rem,2vw,1.75rem);
  align-items:center;
  padding:1.15rem 0;
  text-decoration:none;
  color:inherit;
  transition:background .18s ease, padding-inline .22s var(--nav-ease);
}
.im-log__hit:hover{background:var(--surface-2);padding-inline:.85rem}
.im-log__hit:focus-visible{outline:2px solid var(--cyan-500);outline-offset:-2px}
.im-log__date{
  display:flex;flex-direction:column;align-items:flex-start;gap:.05rem;
  font-family:var(--font-alt);
  line-height:1;
}
.im-log__date b{font-size:1.85rem;color:var(--navy-800)}
.im-log__date span{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-400)}
.im-log__main{display:flex;flex-direction:column;gap:.3rem;min-width:0}
.im-log__cat{
  font-family:var(--font-alt);
  font-size:.65rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-400);
}
.im-log__cat--own{color:var(--cyan-600)}
.im-log__title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:1.05rem;
  line-height:1.3;
  color:var(--navy-800);
}
.im-log__hit:hover .im-log__title{color:var(--cyan-600)}
.im-log__excerpt{font-size:.84rem;line-height:1.6;color:var(--ink-500);max-width:66ch}
.im-log__thumb{
  display:block;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--surface-2);
  aspect-ratio:3/2;
}
.im-log__thumb img{width:100%;height:100%;object-fit:cover;display:block}
.im-log__thumb--num{
  display:flex;align-items:center;justify-content:center;
  background:var(--navy-800);
}
.im-log__thumb--num b{
  font-family:var(--font-alt);
  font-size:1.75rem;
  color:var(--cyan-400);
  line-height:1;
}
.im-log__go{
  font-size:1.15rem;
  color:var(--ink-400);
  justify-self:end;
  transition:transform .2s ease,color .2s ease;
}
.im-log__hit:hover .im-log__go{transform:translateX(4px);color:var(--cyan-600)}

/* Candal ships one weight. These are <b>/<cite>/<dd> elements the UA bolds by
   default, so each must be pinned to 400 or the browser smears a faux-bold. */
.im-facts dd b,
.im-shelf__price b,
.im-log__date b,
.im-log__thumb--num b,
.im-voices__rating b,
.im-voices__item cite,
.im-proof dd,
.im-time__num,
.im-rail__num,
.im-rail__end-arrow{font-weight:400}
/* .im-log__title is Cinzel (a real 600 exists), so it keeps its weight. */

/* ---------- 31.8 Responsive ---------------------------------------------- */
@media (max-width:1000px){
  .im-shelf__row{grid-template-columns:88px minmax(0,1fr) auto}
  .im-shelf__act{grid-column:2 / -1;justify-content:flex-start;margin-top:.15rem}
  .im-log__hit{grid-template-columns:4.5rem minmax(0,1fr) 104px}
  .im-log__go{display:none}
}
@media (max-width:900px){
  .im-quote__inner,
  .im-story__grid,
  .im-rail__head,
  .im-shelf__head,
  .im-voices__head{grid-template-columns:minmax(0,1fr)}
  .im-story__aside{position:static;max-width:520px}
  .im-voices{grid-template-columns:minmax(0,1fr)}
  .im-proof{grid-template-columns:repeat(2,minmax(0,1fr))}
  .im-rail__head,.im-shelf__head,.im-voices__head{align-items:start}
}
@media (max-width:620px){
  .im-quote__row{grid-template-columns:minmax(0,1fr)}
  .im-quote__field--grow,.im-quote__field--go{grid-column:auto}
  .im-quote__field--go .btn{width:100%}
  .im-story__drop::first-letter{font-size:3em}
  .im-facts__row{grid-template-columns:minmax(0,1fr);gap:.2rem}
  .im-time__step{grid-template-columns:2.6rem minmax(0,1fr);gap:.85rem;padding:1.25rem 0}
  .im-time__step::before{left:4px}
  .im-time__dot{left:0;top:1.4rem;width:10px;height:10px}
  .im-time__num{font-size:1.2rem}
  /* ledger becomes a stacked record */
  .im-shelf__row{
    grid-template-columns:76px minmax(0,1fr);
    grid-template-areas:"thumb id" "price price" "act act";
    row-gap:.6rem;
    padding:1.1rem 0;
  }
  .im-shelf__thumb{grid-area:thumb}
  .im-shelf__id{grid-area:id}
  .im-shelf__price{grid-area:price;text-align:left;flex-direction:row;align-items:baseline;gap:.5rem}
  .im-shelf__act{grid-area:act;margin-top:0}
  .im-log__hit{
    grid-template-columns:minmax(0,1fr);
    row-gap:.3rem;
    align-items:start;
  }
  .im-log__date{flex-direction:row;align-items:baseline;gap:.35rem}
  .im-log__date b{font-size:1.05rem}
  .im-log__date span{font-size:.68rem}
  .im-log__thumb{display:none}
  .im-proof{grid-template-columns:minmax(0,1fr)}
  .im-proof dd{font-size:1.3rem}
}

/* ---------- 31.9 Reduced motion ------------------------------------------ */
@media (prefers-reduced-motion:reduce){
  .im-rail{scroll-behavior:auto;scroll-snap-type:none}
  .im-rail__card,.im-rail__media img,.im-log__hit,.im-log__go,.im-rail__link svg{transition:none}
  .im-rail__card:hover{transform:none}
  .im-rail__card:hover .im-rail__media img{transform:none}
  .im-log__hit:hover{padding-inline:0}
}


/* ==========================================================================
   §32  WORDPRESS MARKUP
   The static prototype had no drawer header, no comments, no widgets and no
   pagination. These are the pieces WordPress introduces.
   ========================================================================== */

/* ---------- 32.1 Off-canvas drawer header -------------------------------- */
/* The prototype closed the drawer only via the hamburger, which scrolls away
   on a long menu. The drawer now carries its own header with a close button. */
.nav__head { display: none; }

@media (max-width: 1000px) {
  .nav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: calc(var(--sp-5) * -1);
    background: #fff;
    z-index: 2;
  }
  .nav__head-title {
    font-family: var(--font-alt);
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-400);
  }
  .nav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-2);
    color: var(--navy-800);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
  }
  .nav__close svg { width: 18px; height: 18px; }
  .nav__close:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
  .nav__close:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 2px; }
}

/* ---------- 32.2 Pagination ---------------------------------------------- */
.pagination,
.page-links {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  display: flex;
  justify-content: center;
}
.pagination .nav-links,
.page-links,
.chemed-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination .page-numbers,
.page-links > a,
.page-links > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy-800);
  font-family: var(--font-alt);
  font-size: .82rem;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.pagination a.page-numbers:hover,
.page-links > a:hover {
  border-color: var(--cyan-500);
  color: var(--cyan-600);
}
.pagination .page-numbers.current,
.page-links > span:not(.screen-reader-text) {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: #fff;
}
.pagination .page-numbers.dots { border-color: transparent; background: none; }
.pagination .page-numbers:focus-visible,
.page-links > a:focus-visible { outline: 3px solid var(--cyan-500); outline-offset: 2px; }

/* paginate_links( type => list ) wraps in ul.page-numbers */
ul.page-numbers { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; list-style: none; padding: 0; margin: clamp(2rem, 4vw, 3.25rem) 0 0; }
ul.page-numbers li { display: block; }

/* ---------- 32.3 Post layout, sidebar and widgets ------------------------ */
.post-layout { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 980px) { .post-layout { grid-template-columns: minmax(0, 1fr) 320px; } }

.post-aside { display: grid; gap: var(--sp-5); min-width: 0; }
@media (min-width: 980px) { .post-aside { position: sticky; top: 96px; } }

.widget {
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.widget__title { font-size: var(--step-0); margin: 0 0 var(--sp-3); }
.widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.widget li { font-size: .88rem; line-height: 1.5; }
.widget a { color: var(--ink-500); text-decoration: none; }
.widget a:hover { color: var(--cyan-600); }
.widget select, .widget input { width: 100%; }

/* ---------- 32.4 Post extras --------------------------------------------- */
.news-article--single { padding-top: 0; }
.post-tags { margin-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: .4rem; }
.post-tags a {
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: .76rem;
  color: var(--ink-500);
  text-decoration: none;
}
.post-tags a:hover { border-color: var(--cyan-500); color: var(--cyan-600); }

.post-nav {
  display: grid;
  gap: var(--sp-3);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav__link {
  display: block;
  padding: var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s ease, transform .25s ease;
}
.post-nav__link:hover { border-color: var(--cyan-500); transform: translateY(-2px); }
.post-nav__link--next { text-align: right; }
.post-nav__dir {
  display: block;
  font-family: var(--font-alt);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-600);
  margin-bottom: .3rem;
}
.post-nav__title { display: block; color: var(--navy-800); font-weight: 600; line-height: 1.35; }

.edit-link { margin-top: var(--sp-4); font-size: .82rem; }
.edit-link a { color: var(--cyan-600); }

/* ---------- 32.5 Search ---------------------------------------------------*/
.search-again { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-form label { flex: 1 1 220px; }
.search-form .search-field { width: 100%; }

.search-results { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.search-result { border-bottom: 1px solid var(--line); }
.search-result__hit {
  display: block;
  padding: var(--sp-4) 0;
  text-decoration: none;
  transition: padding-left .25s ease;
}
.search-result__hit:hover { padding-left: .8rem; }
.search-result__kind {
  display: inline-block;
  font-family: var(--font-alt);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan-600);
  margin-bottom: .35rem;
}
.search-result__title { display: block; font-size: var(--step-1); color: var(--navy-800); line-height: 1.3; margin-bottom: .3rem; }
.search-result__hit:hover .search-result__title { color: var(--cyan-600); }
.search-result__excerpt { display: block; font-size: .88rem; color: var(--ink-400); line-height: 1.6; }

/* ---------- 32.6 Comments ------------------------------------------------ */
.comments-area { margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
/* The card shell is set in the root style.css; these refine the layout. */
.comment-list { margin-bottom: var(--sp-6); display: grid; gap: var(--sp-4); }
.comment-list ol.children { margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-4); }
.comment-body { margin-bottom: 0; }
.comment-meta { flex-wrap: wrap; align-items: baseline; font-size: .8rem; color: var(--ink-400); }
.comment-author img { border-radius: var(--radius-pill); vertical-align: middle; margin-right: .5rem; }
.comment-content p { font-size: .92rem; line-height: 1.7; color: var(--ink-500); }
.comment-reply-link { font-size: .8rem; color: var(--cyan-600); text-decoration: none; }
.comment-respond { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.comment-form { display: grid; gap: var(--sp-3); }
.comment-form label { display: block; font-size: .82rem; margin-bottom: .3rem; }
.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea { width: 100%; }
.comment-notes, .form-allowed-tags { font-size: .8rem; color: var(--ink-400); }

/* ---------- 32.7 Editor blocks ------------------------------------------- */
.prose .alignwide { width: min(100%, 1000px); margin-inline: auto; }
/* Root style.css centres .alignfull with margin-left + translateX. Inside prose
   we use the margin-inline technique instead, so the transform must be undone
   or the block shifts twice. */
.prose .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); margin-left: calc(50% - 50vw); transform: none; }
.prose .alignleft { float: left; margin: .3rem var(--sp-4) var(--sp-3) 0; }
.prose .alignright { float: right; margin: .3rem 0 var(--sp-3) var(--sp-4); }
.prose .aligncenter { display: block; margin-inline: auto; }
.prose figure { margin: var(--sp-5) 0; }
.prose figcaption { font-size: .8rem; color: var(--ink-400); margin-top: .5rem; text-align: center; }
.prose blockquote {
  margin: var(--sp-5) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--cyan-500);
  background: var(--surface-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--sp-5) 0; font-size: .9rem; }
.prose th, .prose td { padding: .6rem .8rem; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface-2); font-weight: 600; }
.prose pre { overflow-x: auto; padding: var(--sp-4); background: var(--navy-900); color: #dbe4ff; border-radius: var(--radius); font-size: .85rem; }
.prose code { font-size: .88em; }
.sticky .news-card__cat::after { content: " ★"; }

/* ---------- 32.8 WP utility classes -------------------------------------- */
/* .screen-reader-text, .wp-caption and the alignment classes are defined in the
   theme's root style.css — see the note in that file. Only the author badge is
   added here, because it depends on the comment card styling above. */
.bypostauthor > .comment-body .fn::after { content: " ✓"; color: var(--cyan-600); }

@media (prefers-reduced-motion: reduce) {
  .post-nav__link, .search-result__hit, .nav__close { transition: none; }
  .post-nav__link:hover { transform: none; }
  .search-result__hit:hover { padding-left: 0; }
}
