:root {
  color-scheme: dark;

  /* Type: Newsreader optical serif (display), Hanken Grotesk (body + labels).
     A calm, workhorse serif (conventional f/J, no swash) chosen over the funkier
     Fraunces. Deliberately distinct from OTB's Oswald / IBM Plex / EB Garamond.
     There is no monospace: the label role (eyebrows, nav, tags, table heads,
     data labels) is proportional Hanken set in tracked uppercase. The --font-mono
     name is kept only to avoid churn across the sheet; it is intentionally a sans
     now, and dropping the typewriter labels is the single biggest break from OTB. */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Warm near-black surfaces */
  --bg: #0a0f16;
  --bg-elev: #0c121b;
  --bg-card: #101722;
  --bg-card-2: #16202e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --ink: #ffffff;
  --neutral-200: #e6eaef;
  --neutral-300: #cbd3dc;
  --neutral-400: #98a1ad;
  --neutral-500: #8b95a1;
  --neutral-600: #79838f;

  /* OTB Remedia identity, keyed to the logo: navy #2e4c68, slate-blue #789bae,
     tan #b79567. Muted steel-blue accents (more corporate/remediation than the
     old bright water-blue), navy for depth, tan as the droplet's warm accent.
     The --blue-* names are kept to avoid churn; they are the steel-blue ramp. */
  --blue-300: #c9dbe4;
  --blue-400: #a4c1d0;
  --blue-500: #7fa6bb;
  --blue-600: #446478;
  --blue-700: #33506a;
  --navy: #2e4c68;
  --tan: #c8a878;
  --amber-400: #e8b14c;
  --green-400: #5fd07f;
  --blue-glow: rgba(127, 166, 187, 0.18);
  --slate: #26384a;
  --slate-glow: rgba(46, 76, 104, 0.22);

  /* Dark wash painted over every hero/subhero image so copy stays readable */
  --hero-wash:
    linear-gradient(180deg, rgba(10,15,22,0.55) 0%, rgba(10,15,22,0.42) 45%, rgba(10,15,22,0.95) 100%),
    linear-gradient(90deg, rgba(10,15,22,0.84) 0%, rgba(10,15,22,0.34) 55%, rgba(46,76,104,0.28) 100%);

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(135% 90% at 50% -12%, rgba(127, 166, 187, 0.10), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overscroll-behavior-y: none;
}

/* Site-wide water caustics: the thin rippling net of refracted light on a lit
   water surface, desaturated and gamma-pushed to bare bright ridges, washed in
   with soft-light. On-brand for a superhydrophobic surface and a clean break
   from the generic film grain. Kept low so dense tables stay legible; white
   text and near-black surfaces are essentially unchanged by soft-light. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='caustic'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.008 0.016' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='gamma' exponent='2.2'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23caustic)'/%3E%3C/svg%3E");
  background-size: 620px 620px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.01em;
  margin: 0;
  color: #fff;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

.accent { color: var(--blue-500); }
.center { text-align: center; }
.mt0 { margin-top: 0; }

/* ============================================================= Header / nav
   Legacy topbar/navbar kept for compatibility; public chrome uses util-bar +
   main-bar (see Public chrome section at end of file). */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg); }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
}
.brand { display: inline-flex; align-items: center; gap: 1.1rem; }
.brand img {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 2px 14px rgba(127, 166, 187, 0.34));
}
.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  padding-left: 1.1rem;
  border-left: 1px solid var(--line-strong);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  font-size: 1.52rem;
  letter-spacing: -0.005em;
  color: #fff;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--neutral-500);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 6px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(127, 166, 187, 0.10);
  border: 1px solid rgba(127, 166, 187, 0.22);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--blue-400);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 8px var(--blue-500);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.9); }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 22, 0.92);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.navbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(127, 166, 187, 0.5) 35%, rgba(127, 166, 187, 0.5) 65%, transparent 100%);
  pointer-events: none;
}
.nav {
  display: flex;
  gap: 0.1rem;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-400);
  padding: 0.95rem 0.72rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--neutral-200); background: rgba(255,255,255,0.02); }
.nav a.active { color: #fff; border-bottom-color: var(--blue-500); }

/* ============================================================= Hero + subhero (with xAI image backgrounds) */
.hero, .subhero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.hero { padding: 5.5rem 0 5rem; }
.subhero { padding: 4.75rem 0 4.25rem; }

/* image + dark wash, set per page via --bgimg */
.hero::before, .subhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-wash), var(--bgimg, none);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}
/* faint water ripples over the hero image: two droplet sources whose concentric
   rings gently interfere. Replaces the old spec-sheet crosshatch. */
.hero::after, .subhero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 86% 16%, transparent 0 23px, rgba(184, 206, 220, 0.08) 23px 24px),
    repeating-radial-gradient(circle at 12% 96%, transparent 0 27px, rgba(127, 166, 187, 0.06) 27px 28px);
  mix-blend-mode: screen;
}
.hero-grad {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% 0%, var(--slate-glow), transparent 62%),
    radial-gradient(820px 520px at 112% 100%, rgba(127, 166, 187, 0.16), transparent 60%);
}

.bg-hero { --bgimg: url('/images/bg/hero.webp?v=5'); }
.bg-tech { --bgimg: url('/images/bg/tech.webp?v=5'); }
.bg-blizzard { --bgimg: url('/images/bg/blizzard.webp?v=5'); }
.bg-plant { --bgimg: url('/images/bg/plant.webp?v=5'); }
.bg-strata { --bgimg: url('/images/bg/strata.webp?v=5'); }
.bg-products { --bgimg: url('/images/bg/products.webp?v=5'); }
.bg-markets { --bgimg: url('/images/bg/markets.webp?v=5'); }
.bg-plan { --bgimg: url('/images/bg/plan.webp?v=5'); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin: 0 0 1.25rem;
}
/* engineered monograph tick before the eyebrow — replaces the old mono chip feel */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.7em;
  height: 2px;
  margin-right: 0.75em;
  vertical-align: middle;
  background: var(--tan);
  border-radius: 1px;
}
.hero h1 {
  font-size: clamp(2.7rem, 5.8vw, 4.7rem);
  line-height: 1.0;
  margin: 0 0 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}
.lede {
  font-size: clamp(1.3rem, 1.6vw, 1.56rem);
  color: var(--neutral-200);
  max-width: 44rem;
  margin: 0;
  font-weight: 300;
  line-height: 1.58;
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}
.hero-cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }

.subhero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  margin: 0 0 1.1rem;
  max-width: 22ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.55);
}

/* hero/subhero load reveal */
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > *, .subhero .wrap > * { animation: riseIn 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .wrap > *:nth-child(1), .subhero .wrap > *:nth-child(1) { animation-delay: 0.05s; }
  .hero .wrap > *:nth-child(2), .subhero .wrap > *:nth-child(2) { animation-delay: 0.13s; }
  .hero .wrap > *:nth-child(3), .subhero .wrap > *:nth-child(3) { animation-delay: 0.21s; }
  .hero .wrap > *:nth-child(4), .subhero .wrap > *:nth-child(4) { animation-delay: 0.29s; }
  .hero .wrap > *:nth-child(5), .subhero .wrap > *:nth-child(5) { animation-delay: 0.37s; }
}
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ============================================================= Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.82rem 1.4rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.06s ease, color 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--blue-500); color: #0a0f16; box-shadow: 0 8px 24px -10px rgba(127, 166, 187, 0.55); }
.btn-primary:hover { background: var(--blue-400); box-shadow: 0 10px 30px -8px rgba(127, 166, 187, 0.7); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: rgba(255,255,255,0.02); border-color: var(--line-strong); color: var(--neutral-200); }
.btn-ghost:hover { border-color: rgba(127, 166, 187, 0.5); color: #fff; }

/* ============================================================= Sections */
.section {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--line);
}
.section.tight { padding: 3.25rem 0; }
.section.alt { background: var(--bg-elev); }
.section.black { background: #000; }

.section-head { margin: 0 0 2.25rem; max-width: 52rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section h2 { font-size: clamp(1.98rem, 3.2vw, 2.9rem); line-height: 1.05; margin: 0 0 0.9rem; }
.section-head p { margin: 0; color: var(--neutral-300); font-size: 1.17rem; line-height: 1.62; }
.section h3 { color: #fff; }

/* Background texture utilities — a water/fluid vocabulary that replaces the old
   OTB hatch/grid/dot spec-sheet motifs. Each sits behind section content. */
.ov-cross::after, .ov-concrete::after, .ov-dots::after, .ov-diag::after, .ov-grid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
}
/* organic water caustics */
.ov-cross::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='c2'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.012 0.02' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='gamma' exponent='2.4'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c2)'/%3E%3C/svg%3E");
  background-size: 460px 460px;
  opacity: 0.11;
  mix-blend-mode: soft-light;
}
/* diagonal flow streaks (water sheeting off a surface) */
.ov-concrete::after {
  background-image: repeating-linear-gradient(12deg, transparent 0 26px, rgba(184, 206, 220, 0.05) 26px 28px, transparent 28px 54px);
  opacity: 0.7;
}
/* superhydrophobic beading field (staggered droplets) */
.ov-dots::after {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(190, 210, 222, 0.12) 1.6px, transparent 2.6px),
    radial-gradient(circle at 50% 50%, rgba(190, 210, 222, 0.08) 1.1px, transparent 2px);
  background-size: 36px 36px, 36px 36px;
  background-position: 0 0, 18px 18px;
  opacity: 0.7;
}
/* horizontal ripple / meniscus bands */
.ov-diag::after {
  background-image: repeating-linear-gradient(0deg, transparent 0 22px, rgba(120, 165, 195, 0.05) 22px 23px, transparent 23px 46px);
  opacity: 0.7;
}
/* bathymetric depth contours (concentric ripple rings) */
.ov-grid::after {
  background-image: repeating-radial-gradient(circle at 22% 118%, transparent 0 33px, rgba(127, 166, 187, 0.16) 33px 34px);
  opacity: 0.6;
}

/* ============================================================= Prose */
.prose { max-width: 46rem; }
.prose p { color: var(--neutral-300); font-size: 1.17rem; line-height: 1.7; margin: 0 0 1.15rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: #fff; font-weight: 600; }
.prose ul { margin: 0 0 1.15rem; padding-left: 1.2rem; color: var(--neutral-300); }
.prose li { margin-bottom: 0.5rem; line-height: 1.6; }

/* ============================================================= Card grids */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Card surfaces carry a visible xAI mineral texture under a gradient */
.card, .duo-card, .phase {
  background-color: var(--bg-card);
  background-image:
    radial-gradient(130% 80% at 86% 10%, rgba(127, 166, 187, 0.09), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(190, 210, 222, 0.045) 1px, transparent 2px),
    linear-gradient(155deg, rgba(16,23,34,0.90) 0%, rgba(16,23,34,0.96) 100%);
  background-size: cover, 30px 30px, cover;
  background-position: center, 0 0, center;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.85rem 1.85rem 2rem;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  border-color: rgba(127, 166, 187, 0.34);
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -24px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(127, 166, 187, 0.08);
}
.card-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: 0.16em;
  color: var(--blue-500);
  margin: 0 0 0.85rem;
}
.card-num.big {
  position: absolute;
  top: 1.1rem; right: 1.4rem;
  font-family: var(--font-display);
  font-size: 3.15rem; line-height: 1;
  color: rgba(127, 166, 187, 0.55);
  letter-spacing: -0.02em;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,0.75);
  transition: color 0.2s ease;
}
.card:hover .card-num.big { color: rgba(127, 166, 187, 0.85); }
.card-label {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-500);
  margin: 0 0 0.7rem;
}
.card h3 { font-size: 1.52rem; margin: 0 0 0.65rem; line-height: 1.15; }
.card p { margin: 0 0 0.7rem; color: var(--neutral-300); font-size: 1.1rem; line-height: 1.62; }
.card p:last-child { margin-bottom: 0; }
.card .card-foot {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--neutral-400);
  font-size: 0.94rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}


/* Embedded unique image at the top of feature cards */
.card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin: 0 0 1.25rem;
}
.card:hover .card-img, .duo-card:hover .card-img { border-color: rgba(127, 166, 187, 0.3); }

/* ============================================================= Tags / chips */
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.26rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--neutral-300);
}
.tag-red { background: rgba(127,166,187,0.10); border-color: rgba(127,166,187,0.30); color: var(--blue-300); }
.tag-amber { background: rgba(232,177,76,0.08); border-color: rgba(232,177,76,0.30); color: var(--amber-400); }
.tag-green { background: rgba(95,208,127,0.08); border-color: rgba(95,208,127,0.30); color: var(--green-400); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }

/* ============================================================= Metric strip */
.metrics { background: #000; padding: 2.75rem 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.metrics.metrics-under-hero { padding: 1.85rem 0; }
.line-section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
.line-section .grade-flow { margin-bottom: 0; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 760px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }
.metric { text-align: center; padding: 0.5rem; position: relative; }
.metric + .metric::before {
  content: ""; position: absolute; left: -0.75rem; top: 15%; bottom: 15%;
  width: 1px; background: var(--line);
}
.metric-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.98rem, 3.4vw, 2.9rem);
  line-height: 1;
  color: var(--blue-500);
  letter-spacing: -0.01em;
  margin-bottom: 0.45rem;
  text-shadow: 0 0 28px rgba(127, 166, 187, 0.35);
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--neutral-400);
  line-height: 1.45;
}

/* ============================================================= Split feature */
.split { display: grid; grid-template-columns: 1fr; gap: 1.75rem; align-items: center; }
@media (min-width: 880px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split.narrow-left { grid-template-columns: 0.85fr 1.15fr; }
  .split.narrow-right { grid-template-columns: 1.15fr 0.85fr; }
}
.split-media { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-card); }
.split-media img { width: 100%; display: block; }

/* ============================================================= Data tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-card);
  -webkit-overflow-scrolling: touch;
}
table.dtable { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 1.04rem; }
table.dtable caption { text-align: left; padding: 1rem 1.15rem 0; color: var(--neutral-500); font-size: 0.95rem; letter-spacing: 0.04em; font-family: var(--font-mono); }
table.dtable th, table.dtable td { text-align: left; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
table.dtable thead th {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-400);
  background: rgba(127, 166, 187, 0.06);
  position: sticky;
  top: 0;
  white-space: nowrap;
}
table.dtable tbody tr:last-child td { border-bottom: 0; }
table.dtable tbody tr { transition: background 0.12s ease; }
table.dtable tbody tr:hover td { background: rgba(127, 166, 187, 0.04); }
table.dtable td:first-child, table.dtable th:first-child { color: #fff; font-weight: 600; }
table.dtable td.num { font-variant-numeric: tabular-nums; font-family: var(--font-mono); }
table.dtable .pos { color: var(--green-400); font-weight: 600; }

/* ============================================================= Callouts */
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--neutral-500);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 1.1rem 1.3rem;
  color: var(--neutral-300);
  font-size: 1.08rem;
  line-height: 1.62;
}
.note.red { border-left-color: var(--blue-500); background: rgba(127, 166, 187, 0.05); }
.note.amber { border-left-color: var(--amber-400); background: rgba(232, 177, 76, 0.04); }
.note strong { color: #fff; }
.note .note-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.4rem;
}

/* ============================================================= Phase columns */
.phase-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 880px) { .phase-grid { grid-template-columns: repeat(3, 1fr); } }
.phase {
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-600);
  border-radius: 12px;
  padding: 1.6rem 1.6rem 1.85rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.phase:hover { transform: translateY(-3px); border-top-color: var(--blue-500); }
.phase-tag {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin: 0 0 0.35rem;
}
.phase h3 { font-size: 1.47rem; margin: 0 0 1rem; line-height: 1.1; }
.phase .phase-headline { font-family: var(--font-display); font-size: 1.65rem; color: #fff; margin: 0 0 1rem; line-height: 1.05; }
.phase ul { margin: 0; padding-left: 1.1rem; color: var(--neutral-300); }
.phase li { margin-bottom: 0.55rem; font-size: 1.07rem; line-height: 1.5; }
.phase .phase-target { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--blue-300); font-weight: 600; font-size: 1.07rem; }

/* ============================================================= Definition rows */
.deflist { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg-card); }
.defrow { display: grid; grid-template-columns: 1fr; gap: 0.2rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.defrow:last-child { border-bottom: 0; }
@media (min-width: 640px) { .defrow { grid-template-columns: 230px 1fr; gap: 1.5rem; align-items: baseline; } }
.defrow dt { font-family: var(--font-mono); font-weight: 500; color: #fff; font-size: 0.97rem; letter-spacing: 0.02em; text-transform: uppercase; }
.defrow dd { margin: 0; color: var(--neutral-300); font-size: 1.1rem; line-height: 1.55; }

/* ============================================================= Duo cards (carry texture via shared rule above) */
.duo-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 2rem 2.25rem;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.duo-card:hover { border-color: rgba(127, 166, 187, 0.34); transform: translateY(-3px); box-shadow: 0 18px 44px -24px rgba(0,0,0,0.8); }
.duo-num {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.15rem; line-height: 1;
  color: rgba(127, 166, 187, 0.5);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.75);
}
.duo-label {
  font-family: var(--font-mono);
  font-size: 0.86rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue-500); margin: 0 0 0.85rem;
}
.duo-card h3 { font-size: clamp(1.63rem, 2.4vw, 2.08rem); margin: 0 0 0.85rem; line-height: 1.1; }
.duo-card p { margin: 0; color: var(--neutral-300); font-size: 1.12rem; line-height: 1.62; }

/* ============================================================= Video + gallery (products page) */
.video-frame {
  position: relative;
  background: #000;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(127, 166, 187, 0.05), 0 30px 80px -20px rgba(0, 0, 0, 0.6), 0 0 60px -20px rgba(127, 166, 187, 0.16);
}
.video-frame video { width: 100%; display: block; background: #000; aspect-ratio: 16 / 9; object-fit: contain; }
.video-badge {
  position: absolute;
  top: -0.75rem; left: 1.25rem; z-index: 5;
  background: var(--blue-600); color: #fff;
  font-family: var(--font-mono);
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.4rem 0.85rem; border-radius: 6px;
  box-shadow: 0 6px 16px rgba(68, 100, 120, 0.4);
}
.video-frame.is-placeholder {
  background:
    radial-gradient(600px 280px at 50% 40%, rgba(127, 166, 187, 0.14), transparent 70%),
    linear-gradient(160deg, #0d1420 0%, #0a0f16 100%);
}
.media-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 12rem;
  aspect-ratio: 16 / 9;
  padding: 2rem 1.5rem;
  text-align: center;
}
figure.shot .media-placeholder { aspect-ratio: 4 / 3; min-height: 0; }
.wrap-field { max-width: min(1360px, 100%); }
.field-section { padding-top: 3.25rem; padding-bottom: 3.75rem; }
.field-section .section-head { max-width: 48rem; margin-bottom: 1.75rem; }
.field-head .field-brand {
  display: inline-flex;
  text-decoration: none;
  color: inherit;
  margin: 0 0 1.1rem;
}
.field-head .field-brand:hover { opacity: 0.92; }
.demo-logo-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 6;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  border: 1px solid rgba(127,166,187,0.45);
  background: rgba(10,15,22,0.72);
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.85);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.demo-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
}
.demo-logo-badge:hover {
  transform: translateY(-1px);
  border-color: rgba(127,166,187,0.75);
}
.field-section .video-frame { position: relative; }

.demo-panel {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(127,166,187,0.06), transparent 42%),
    var(--bg-card);
  box-shadow: 0 28px 70px -36px rgba(0,0,0,0.9);
  padding: 1.35rem 1.35rem 1.5rem;
  margin-bottom: 1.5rem;
}
.demo-panel-head { margin: 0 0 1.15rem; max-width: 42rem; }
.demo-panel-head h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  line-height: 1.15;
}
.demo-panel-sub {
  margin: 0;
  color: var(--neutral-400);
  font-size: 1.05rem;
  line-height: 1.45;
}

.field-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.field-label-h { color: var(--prod-h, var(--blue-400)); }
.field-label-n { color: var(--neutral-300); }

.field-clip { min-width: 0; }
.field-clip .field-cap {
  margin: 0.75rem 0 0;
  color: var(--neutral-400);
  font-size: 1.02rem;
  line-height: 1.45;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  align-items: stretch;
}
.compare-vs {
  display: none;
  align-items: center;
  justify-content: center;
}
.compare-vs span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(0,0,0,0.35);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-300);
}
@media (min-width: 920px) {
  .compare-grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.1rem;
    align-items: center;
  }
  .compare-vs { display: flex; }
}

.field-section .video-frame {
  border-radius: 14px;
  border: 1px solid rgba(127,166,187,0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 18px 40px -22px rgba(0,0,0,0.85);
  background: #04070c;
}
.field-section .video-frame video {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}
.video-frame-feature video {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

figure.shot.shot-wide.demo-panel {
  overflow: hidden;
  padding: 0;
  margin-bottom: 0;
}
figure.shot.shot-wide.demo-panel img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
figure.shot.shot-wide.demo-panel figcaption {
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,0.25);
}

/* Compact home hero; demos live in the next section */
.hero.hero-compact { padding: 2.75rem 0 2.5rem; }
.hero.hero-compact h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  max-width: 16ch;
  margin-bottom: 0.85rem;
}
.hero.hero-compact .lede {
  font-size: clamp(1.12rem, 1.35vw, 1.3rem);
  max-width: 40rem;
}
.hero.hero-compact .hero-cta { margin-top: 1.35rem; }
@media (min-width: 900px) {
  .hero.hero-compact { padding: 3.25rem 0 2.85rem; }
}
.media-placeholder-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--neutral-100);
}
.media-placeholder-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-500);
}
figure.shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
figure.shot:hover { border-color: rgba(127, 166, 187, 0.34); transform: translateY(-2px); }
figure.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
figure.shot figcaption { padding: 0.95rem 1.15rem; font-size: 1.02rem; color: var(--neutral-300); border-top: 1px solid var(--line); }
figure.shot.is-placeholder {
  background:
    radial-gradient(120% 80% at 50% 20%, rgba(127, 166, 187, 0.1), transparent 60%),
    var(--bg-card);
}

/* ============================================================= CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(127, 166, 187, 0.12), transparent 70%),
    var(--bg-elev);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 4.25rem 0;
}
.cta-band h2 { font-size: clamp(2.03rem, 3.4vw, 3.0rem); margin: 0 0 1rem; }
.cta-band p { color: var(--neutral-300); max-width: 38rem; margin: 0 auto 1.75rem; font-size: 1.17rem; line-height: 1.6; }
.cta-band .hero-cta { justify-content: center; }

/* ============================================================= Footer */
#site-footer,
.site-footer {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  background: #000;
  color: var(--neutral-500);
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 1.15rem;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.15rem; margin-bottom: 1.15rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand-name { font-size: 1.15rem; }
.footer-logo {
  display: inline-block;
  line-height: 0;
  margin: 0;
  position: relative;
  z-index: 0;
}
.footer-logo img {
  height: 2.35rem;
  width: auto;
  max-height: 2.35rem;
  max-width: 8.5rem;
  display: block;
  object-fit: contain;
  object-position: left center;
}
.footer-blurb { color: var(--neutral-500); font-size: 0.92rem; line-height: 1.5; margin: 0.55rem 0 0; max-width: 24rem; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--neutral-400); margin: 0 0 0.55rem; }
.footer-col a { display: block; color: var(--neutral-400); font-size: 0.95rem; padding: 0.18rem 0; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--blue-400); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--neutral-600);
}

/* ============================================================= Scroll reveal (progressive enhancement, content visible by default) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section .card,
    .section .duo-card,
    .section .phase,
    .section .section-head,
    .section .table-wrap,
    .section .deflist,
    .section .note,
    .section figure.shot {
      animation: revealUp linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}
@keyframes revealUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }



/* Compact phase copy + gate checklist (replaces tall bullet stacks) */
.phase .phase-desc { margin: 0; color: var(--neutral-300); font-size: 1.02rem; line-height: 1.6; }
.phase .phase-meta { margin: 0.55rem 0 0; color: var(--neutral-400); font-size: 0.98rem; line-height: 1.55; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; font-size: 1rem; line-height: 1.45; color: var(--neutral-300); }
.checks li:last-child { margin-bottom: 0; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0.02em; color: var(--blue-500); font-weight: 700; }


/* Stacked wide rows for long itemized content (e.g. IP layers) */
.layers { display: grid; gap: 1rem; }
.layer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem 2.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.8rem;
  background-color: var(--bg-card);
  background-image:
    radial-gradient(130% 80% at 86% 10%, rgba(127, 166, 187, 0.09), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(190, 210, 222, 0.045) 1px, transparent 2px),
    linear-gradient(155deg, rgba(16,23,34,0.90) 0%, rgba(16,23,34,0.96) 100%);
  background-size: cover, 30px 30px, cover;
  background-position: center, 0 0, center;
  transition: border-color 0.2s ease;
}
.layer:hover { border-color: rgba(127, 166, 187, 0.34); }
@media (min-width: 820px) { .layer { grid-template-columns: 260px 1fr; align-items: start; } }
.layer-head { display: flex; flex-direction: column; gap: 0.5rem; }
.layer-num { font-family: var(--font-display); font-weight: 700; font-size: 2.8rem; line-height: 0.9; color: rgba(127, 166, 187, 0.35); }
.layer-label { font-family: var(--font-mono); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-400); line-height: 1.35; }
.layer-body p { margin: 0 0 0.8rem; color: var(--neutral-300); font-size: 1rem; line-height: 1.62; }
.layer-body p:last-child { margin: 0; }

/* ===================================================== Image + gradient bands behind card sections */

/* ============================================================= Responsive */
@media (max-width: 600px) {
  .brand-text { display: none; }
  .topbar { padding: 0.85rem 1.5rem; }
  .brand img { height: 44px; }
  .hero { padding: 3.75rem 0 3.25rem; }
  .subhero { padding: 3.25rem 0 2.75rem; }
  .section { padding: 3rem 0; }
}

/* ============================================================= Product-led redesign
   Four grades (O/H/F/X) drive nav and page structure. Themes tint accents without
   leaving the Remedia steel-blue / navy / tan identity. */

:root {
  --prod-o: #d4a574;
  --prod-o-soft: rgba(212, 165, 116, 0.14);
  --prod-h: #7fa6bb;
  --prod-h-soft: rgba(127, 166, 187, 0.14);
  --prod-f: #c8a878;
  --prod-f-soft: rgba(200, 168, 120, 0.14);
  --prod-x: #a4c1d0;
  --prod-x-soft: rgba(164, 193, 208, 0.14);
}

.nav a.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.nav-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  border: 1px solid transparent;
}
.nav a[href="/o.html"] .nav-letter { color: var(--prod-o); border-color: rgba(212,165,116,0.35); background: var(--prod-o-soft); }
.nav a[href="/h.html"] .nav-letter { color: var(--prod-h); border-color: rgba(127,166,187,0.35); background: var(--prod-h-soft); }
.nav a[href="/f.html"] .nav-letter { color: var(--prod-f); border-color: rgba(200,168,120,0.35); background: var(--prod-f-soft); }
.nav a[href="/x.html"] .nav-letter { color: var(--prod-x); border-color: rgba(164,193,208,0.35); background: var(--prod-x-soft); }
.nav a.active[href="/o.html"] { border-bottom-color: var(--prod-o); }
.nav a.active[href="/h.html"] { border-bottom-color: var(--prod-h); }
.nav a.active[href="/f.html"] { border-bottom-color: var(--prod-f); }
.nav a.active[href="/x.html"] { border-bottom-color: var(--prod-x); }

.bg-o { --bgimg: url('/images/bg/products.webp?v=5'); }
.bg-h { --bgimg: url('/images/bg/tech.webp?v=5'); }
.bg-f { --bgimg: url('/images/bg/strata.webp?v=5'); }
.bg-x { --bgimg: url('/images/bg/blizzard.webp?v=5'); }

.theme-o { --accent: var(--prod-o); --accent-soft: var(--prod-o-soft); }
.theme-h { --accent: var(--prod-h); --accent-soft: var(--prod-h-soft); }
.theme-f { --accent: var(--prod-f); --accent-soft: var(--prod-f-soft); }
.theme-x { --accent: var(--prod-x); --accent-soft: var(--prod-x-soft); }
.theme-o .accent, .theme-h .accent, .theme-f .accent, .theme-x .accent { color: var(--accent); }
.theme-o .eyebrow, .theme-h .eyebrow, .theme-f .eyebrow, .theme-x .eyebrow { color: var(--accent); }
.theme-o .eyebrow::before, .theme-h .eyebrow::before, .theme-f .eyebrow::before, .theme-x .eyebrow::before { background: var(--accent); }
.theme-o .metric-value, .theme-h .metric-value, .theme-f .metric-value, .theme-x .metric-value { color: var(--accent); text-shadow: 0 0 28px var(--accent-soft); }
.theme-o .btn-primary { background: var(--accent); color: #0a0f16; box-shadow: 0 8px 24px -10px var(--accent); }
.theme-h .btn-primary { background: var(--accent); color: #0a0f16; }
.theme-f .btn-primary { background: var(--accent); color: #0a0f16; }
.theme-x .btn-primary { background: var(--accent); color: #0a0f16; }

.brand-lock {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 0.85rem;
}
.brand-lock span { color: var(--blue-500); }

.hero.hero-product { padding: 5.75rem 0 5.25rem; }
.hero.hero-product h1 { max-width: 16ch; }
.hero.hero-product.hero-compact { padding: 2.75rem 0 2.5rem; }
.hero.hero-product.hero-compact h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.25rem);
  max-width: 16ch;
  margin-bottom: 0.85rem;
}
@media (min-width: 900px) {
  .hero.hero-product.hero-compact { padding: 3.25rem 0 2.85rem; }
}
.product-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: #fff;
  box-shadow: 0 10px 30px -16px rgba(0,0,0,0.8);
}
.theme-o .product-mark { color: var(--prod-o); border-color: rgba(212,165,116,0.4); background: var(--prod-o-soft); }
.theme-h .product-mark { color: var(--prod-h); border-color: rgba(127,166,187,0.4); background: var(--prod-h-soft); }
.theme-f .product-mark { color: var(--prod-f); border-color: rgba(200,168,120,0.4); background: var(--prod-f-soft); }
.theme-x .product-mark { color: var(--prod-x); border-color: rgba(164,193,208,0.4); background: var(--prod-x-soft); }

.product-gate {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 760px) {
  .product-gate { grid-template-columns: 1fr 1fr; gap: 1.35rem; }
}
.gate {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.gate:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px -28px rgba(0,0,0,0.85);
}
.gate-o:hover { border-color: rgba(212,165,116,0.45); }
.gate-h:hover { border-color: rgba(127,166,187,0.45); }
.gate-f:hover { border-color: rgba(200,168,120,0.45); }
.gate-x:hover { border-color: rgba(164,193,208,0.45); }
.gate-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.gate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gate:hover .gate-media img { transform: scale(1.04); }
.gate-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,15,22,0.72) 100%);
  pointer-events: none;
}
.gate-body { padding: 1.55rem 1.65rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.gate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.gate-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.gate-o .gate-letter { color: var(--prod-o); }
.gate-h .gate-letter { color: var(--prod-h); }
.gate-f .gate-letter { color: var(--prod-f); }
.gate-x .gate-letter { color: var(--prod-x); }
.gate-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-500);
  text-align: right;
}
.gate h3 {
  font-size: clamp(1.55rem, 2.2vw, 1.9rem);
  margin: 0 0 0.65rem;
  line-height: 1.1;
}
.gate p {
  margin: 0 0 1.15rem;
  color: var(--neutral-300);
  font-size: 1.08rem;
  line-height: 1.58;
  flex: 1;
}
.gate-cta {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-200);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.gate-cta::after { content: "→"; transition: transform 0.15s ease; }
.gate:hover .gate-cta::after { transform: translateX(3px); }
.gate-o .gate-cta { color: var(--prod-o); }
.gate-h .gate-cta { color: var(--prod-h); }
.gate-f .gate-cta { color: var(--prod-f); }
.gate-x .gate-cta { color: var(--prod-x); }

.chooser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
}
@media (min-width: 880px) {
  .chooser { grid-template-columns: repeat(4, 1fr); }
}
.chooser-col {
  padding: 1.5rem 1.35rem 1.65rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.chooser-col:last-child { border-bottom: 0; }
@media (min-width: 880px) {
  .chooser-col {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }
  .chooser-col:last-child { border-right: 0; }
}
.chooser-col:hover { background: rgba(255,255,255,0.02); }
.chooser-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1;
  margin-bottom: 0.55rem;
}
.chooser-o .chooser-letter { color: var(--prod-o); }
.chooser-h .chooser-letter { color: var(--prod-h); }
.chooser-f .chooser-letter { color: var(--prod-f); }
.chooser-x .chooser-letter { color: var(--prod-x); }
.chooser-q {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin: 0 0 0.55rem;
}
.chooser-a {
  margin: 0 0 1rem;
  color: var(--neutral-200);
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 500;
}
.chooser-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.chooser-col li {
  position: relative;
  padding-left: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--neutral-400);
  font-size: 0.98rem;
  line-height: 1.4;
}
.chooser-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--neutral-600);
}
.chooser-o li::before { background: var(--prod-o); }
.chooser-h li::before { background: var(--prod-h); }
.chooser-f li::before { background: var(--prod-f); }
.chooser-x li::before { background: var(--prod-x); }

.trait-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) { .trait-grid { grid-template-columns: 1fr 1fr; } }
.trait {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem 1.4rem 1.5rem;
  background:
    radial-gradient(120% 80% at 100% 0%, var(--accent-soft, rgba(127,166,187,0.08)), transparent 55%),
    var(--bg-card);
}
.trait-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, var(--blue-500));
  margin: 0 0 0.55rem;
}
.trait h3 { font-size: 1.28rem; margin: 0 0 0.45rem; line-height: 1.2; }
.trait p { margin: 0; color: var(--neutral-300); font-size: 1.02rem; line-height: 1.55; }

.app-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  margin-bottom: 1rem;
}
.app-band:last-child { margin-bottom: 0; }
@media (min-width: 820px) {
  .app-band { grid-template-columns: 0.9fr 1.1fr; }
  .app-band.reverse { direction: rtl; }
  .app-band.reverse > * { direction: ltr; }
}
.app-band-media {
  min-height: 14rem;
  background: #0d1420;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 820px) {
  .app-band-media { border-bottom: 0; border-right: 1px solid var(--line); }
  .app-band.reverse .app-band-media { border-right: 0; border-left: 1px solid var(--line); }
}
.app-band-media img { width: 100%; height: 100%; object-fit: cover; min-height: 14rem; }
.app-band-body { padding: 1.65rem 1.75rem 1.85rem; display: flex; flex-direction: column; justify-content: center; }
.app-band-body h3 { font-size: 1.55rem; margin: 0 0 0.65rem; }
.app-band-body p { margin: 0; color: var(--neutral-300); font-size: 1.08rem; line-height: 1.58; }

.spec-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
}
@media (min-width: 720px) { .spec-strip { grid-template-columns: repeat(4, 1fr); } }
.spec-cell {
  padding: 1.15rem 1.2rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.spec-cell:nth-child(2n) { border-right: 0; }
@media (min-width: 720px) {
  .spec-cell { border-bottom: 0; }
  .spec-cell:nth-child(2n) { border-right: 1px solid var(--line); }
  .spec-cell:last-child { border-right: 0; }
}
.spec-k {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin: 0 0 0.35rem;
}
.spec-v {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}
.theme-o .spec-v { color: var(--prod-o); }
.theme-h .spec-v { color: var(--prod-h); }
.theme-f .spec-v { color: var(--prod-f); }
.theme-x .spec-v { color: var(--prod-x); }

.sibling-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 720px) { .sibling-row { grid-template-columns: repeat(3, 1fr); } }
.sibling {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.2rem 1.25rem;
  background: var(--bg-card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.sibling:hover { transform: translateY(-2px); }
.sibling-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.sibling-o .sibling-letter { color: var(--prod-o); }
.sibling-h .sibling-letter { color: var(--prod-h); }
.sibling-f .sibling-letter { color: var(--prod-f); }
.sibling-x .sibling-letter { color: var(--prod-x); }
.sibling-o:hover { border-color: rgba(212,165,116,0.4); }
.sibling-h:hover { border-color: rgba(127,166,187,0.4); }
.sibling-f:hover { border-color: rgba(200,168,120,0.4); }
.sibling-x:hover { border-color: rgba(164,193,208,0.4); }
.sibling h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.sibling p { margin: 0; color: var(--neutral-400); font-size: 0.98rem; line-height: 1.45; }

.platform-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 880px) {
  .platform-strip { grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: start; }
}
@media (min-width: 880px) {
  .platform-strip + .trait-grid { margin-top: 2.25rem; }
}
.story-list { list-style: none; margin: 0; padding: 0; }
.story-list li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.story-list li:first-child { padding-top: 0; }
.story-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.story-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--blue-500);
}
.story-list h3 { font-size: 1.2rem; margin: 0 0 0.3rem; }
.story-list p { margin: 0; color: var(--neutral-400); font-size: 1.02rem; line-height: 1.5; }

.mosaic {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(9.5rem, auto); }
  .mosaic .tile:nth-child(1) { grid-column: span 3; grid-row: span 2; }
  .mosaic .tile:nth-child(2) { grid-column: span 3; }
  .mosaic .tile:nth-child(3) { grid-column: span 3; }
  .mosaic .tile:nth-child(4) { grid-column: span 2; }
  .mosaic .tile:nth-child(5) { grid-column: span 2; }
  .mosaic .tile:nth-child(6) { grid-column: span 2; }
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 10rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.tile:hover { transform: translateY(-2px); border-color: rgba(127,166,187,0.35); }
.tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.78;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.45s ease;
}
.tile:hover .tile-bg { opacity: 0.92; transform: scale(1.04); }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(10,15,22,0.2) 0%, rgba(10,15,22,0.45) 40%, rgba(10,15,22,0.92) 100%);
  pointer-events: none;
}
.tile > :not(.tile-bg) { position: relative; z-index: 1; }
.tile-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.tile-o .tile-kicker { color: var(--prod-o); }
.tile-h .tile-kicker { color: var(--prod-h); }
.tile-f .tile-kicker { color: var(--prod-f); }
.tile-x .tile-kicker { color: var(--prod-x); }
.tile h3 { font-size: 1.25rem; margin: 0 0 0.35rem; }
.tile p { margin: 0; color: var(--neutral-300); font-size: 0.98rem; line-height: 1.45; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section .gate,
    .section .chooser,
    .section .trait,
    .section .app-band,
    .section .tile,
    .section .sibling {
      animation: revealUp linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
  }
}

@media (max-width: 720px) {
  .nav a.nav-mark .nav-text { display: none; }
  .nav a.nav-mark { padding-left: 0.55rem; padding-right: 0.55rem; }
  .nav-letter { width: 1.55rem; height: 1.55rem; font-size: 0.85rem; }
}

/* ============================================================= Public chrome
   OTB Materials family patterns, Remedia palette. Hover dropdowns; logo pills. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  overflow: visible;
}
/* Header wrap must not create a low stacking context over page content.
   Wider than page --maxw so brand + four product logos have room. */
.site-header .wrap {
  z-index: auto;
  max-width: 1440px;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.util-bar {
  background: #152033;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  overflow: visible;
}
.util-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.35rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.util-left, .util-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.util-right { margin-left: auto; }
.util-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.55);
}
.util-loc svg { width: 0.9rem; height: 0.9rem; color: var(--tan); flex-shrink: 0; }
.util-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.7rem 0.28rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.92);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.util-pill img {
  height: 1.05rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.util-pill-materials img {
  height: 1.2rem;
  /* Keep the original green OTB mark; do not invert to white */
  filter: none;
}
.util-ext {
  width: 0.7rem;
  height: 0.7rem;
  opacity: 0.45;
  flex-shrink: 0;
}
.util-pill:hover {
  border-color: rgba(127,166,187,0.5);
  background: rgba(127,166,187,0.14);
  color: #fff;
}
.util-pill-armor:hover {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
}
.util-pill:hover .util-ext { opacity: 0.9; }
.util-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.15s ease;
}
.util-link:hover { color: var(--blue-400); }
.util-link svg { width: 0.95rem; height: 0.95rem; flex-shrink: 0; }
.util-social { display: none; align-items: center; gap: 0.55rem; padding-left: 0.65rem; border-left: 1px solid rgba(255,255,255,0.12); }
@media (min-width: 900px) {
  .util-social { display: inline-flex; }
}
@media (max-width: 720px) {
  .util-left { display: none; }
  .util-hide-sm { display: none; }
}
@media (max-width: 520px) {
  .util-pill span { display: none; }
  .util-pill { padding: 0.3rem 0.45rem; }
}

.accent-line {
  height: 3px;
  background: linear-gradient(90deg, var(--tan) 0%, var(--blue-500) 50%, var(--navy) 100%);
}

.main-bar {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 15, 22, 0.98);
  /* No backdrop-filter: it clips absolute dropdowns that extend below the bar */
  overflow: visible;
}
.main-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 5.25rem;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  overflow: visible;
  position: relative;
  z-index: auto;
}
.brand-cluster {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  overflow: visible;
}
.brand-cluster .brand { flex-shrink: 0; }
.brand-cluster .brand img { height: 56px; }
.brand-cluster .brand-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--tan);
}
.brand-cluster .brand-sub {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.28rem;
}

/* Shared dropdown panels: hover + focus-within (desktop), .is-open (touch) */
.has-drop { position: relative; overflow: visible; }
.drop-panel {
  position: absolute;
  top: calc(100% - 0.05rem);
  left: 0;
  min-width: 17.5rem;
  padding: 0.55rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #121a26;
  box-shadow: 0 22px 50px -18px rgba(0,0,0,0.9), 0 0 0 1px rgba(127,166,187,0.08);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}
.has-drop::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.85rem;
}
.has-drop:hover > .drop-panel,
.has-drop:focus-within > .drop-panel,
.has-drop.is-open > .drop-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.drop-heading {
  margin: 0 0 0.35rem;
  padding: 0.45rem 0.75rem 0.65rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-500);
}
.family-panel { min-width: 19.5rem; }
.family-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.8rem;
  border-radius: 10px;
  color: var(--neutral-300);
}
.family-item img {
  height: 1.85rem;
  width: auto;
  flex-shrink: 0;
  display: block;
  background: transparent;
}
.family-item div { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.family-item:hover { background: rgba(127,166,187,0.1); color: #fff; }
.family-item strong {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.05rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.family-item span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--neutral-500);
  line-height: 1.35;
}
.family-item.is-here { background: rgba(127,166,187,0.12); }

.primary-nav {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  overflow: visible;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}
@media (min-width: 980px) { .primary-nav { display: flex; } }

.nav-products {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0.5rem;
  padding: 0;
  flex-shrink: 0;
}

/* Product row: logo + name, replaces Products dropdown */
.nav-prod {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  color: var(--tan);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-prod img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  max-width: none;
}
.nav-prod-name {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  line-height: 1.1;
  color: inherit;
}
.nav-prod:hover {
  color: #e0c9a0;
  background: rgba(200,168,120,0.08);
}
.nav-prod.is-active {
  color: var(--tan);
  background: rgba(200,168,120,0.14);
}
/* Progressive hide so O/H/F/X never collide with Overview/About/Contact */
@media (max-width: 1380px) {
  .brand-cluster .brand-sub { display: none; }
  .nav-prod-name { display: none; }
  .nav-prod { padding: 0.4rem; }
  .nav-prod img { width: 2.15rem; height: 2.15rem; }
  .nav-products { gap: 0.55rem; margin: 0 0.65rem; }
}
@media (max-width: 1180px) {
  .nav-overview { display: none; }
  .nav-link { padding: 0.7rem 0.75rem; }
  .nav-cta { padding: 0.7rem 1rem; margin-left: 0.25rem; }
}
@media (max-width: 1040px) {
  .brand-cluster .brand-text { display: none; }
  .nav-products { gap: 0.65rem; margin: 0 0.4rem; }
  .nav-prod img { width: 2.25rem; height: 2.25rem; }
}

.nav-link {
  appearance: none;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tan);
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.nav-link:hover, .nav-link.is-active { color: #e0c9a0; background: rgba(200,168,120,0.08); }
.nav-cta {
  margin-left: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0f16;
  background: var(--blue-500);
  padding: 0.75rem 1.15rem;
  border-radius: 8px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 20px -12px rgba(127,166,187,0.7);
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--blue-400); color: #0a0f16; }
.nav-cta.is-active { box-shadow: 0 0 0 2px rgba(127,166,187,0.35); }

.menu-toggle {
  margin-left: auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--neutral-200);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 980px) { .menu-toggle { display: none; } }

.mobile-drawer {
  border-bottom: 1px solid var(--line);
  background: #0c121b;
}
.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 1.5rem 1.4rem;
  gap: 0.15rem;
}
.mobile-drawer a {
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--neutral-200);
  font-size: 1.05rem;
}
.mobile-drawer a:hover { color: #fff; }
.mobile-prod {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
}
.mobile-prod img {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
  flex-shrink: 0;
}
.mobile-label {
  margin: 0.85rem 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neutral-500);
}
.mobile-cta {
  margin-top: 0.75rem !important;
  text-align: center;
  border: 0 !important;
  border-radius: 8px;
  background: var(--blue-500);
  color: #0a0f16 !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem !important;
  padding: 0.95rem !important;
}
.mobile-family, .mobile-contact { margin-top: 0.5rem; }
.mobile-family-link {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
}
.mobile-family-link img {
  height: 1.5rem;
  width: auto;
  background: transparent;
}
.mobile-contact a { color: var(--blue-400); border-bottom: 0; padding: 0.4rem 0.2rem; display: block; }

.social-icon {
  display: inline-flex;
  color: rgba(255,255,255,0.45);
  transition: color 0.15s ease;
}
.social-icon:hover { color: #fff; }
.social-icon svg { width: 0.95rem; height: 0.95rem; display: block; }
.footer-social { display: flex; gap: 0.65rem; margin-top: 0.7rem; }
.footer-social .social-icon svg { width: 1rem; height: 1rem; }

.footer-grid-public {
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 760px) {
  .footer-grid-public { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-contact-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--neutral-400);
  font-size: 0.9rem;
  line-height: 1.45;
}
@media (min-width: 760px) {
  .footer-contact-strip { grid-template-columns: repeat(3, 1fr); }
}
.strip-k {
  margin: 0 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-200);
}
.footer-contact-strip a { color: var(--neutral-300); }
.footer-contact-strip a:hover { color: var(--blue-400); }
.footer-legal { display: inline-flex; gap: 1.25rem; }
.footer-legal a { color: var(--neutral-600); }
.footer-legal a:hover { color: var(--blue-400); }

body.menu-open { overflow: hidden; }

/* Contact page layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 880px) {
  .contact-layout { grid-template-columns: 1.35fr 0.85fr; gap: 2rem; align-items: start; }
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.55rem;
  background: var(--bg-card);
}
.contact-card h3 { font-size: 1.25rem; margin: 0 0 0.85rem; }
.contact-card p, .contact-card li { color: var(--neutral-300); font-size: 1.05rem; line-height: 1.55; }
.contact-card ul { margin: 0; padding-left: 1.1rem; }
.contact-card li { margin-bottom: 0.45rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.contact-side { position: sticky; top: 7.5rem; }

.about-quote {
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--tan);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
  max-width: 40rem;
}

/* ============================================================= Product grade marks
   Cleaned PNG lockups (navy #2e4c68 + tan #c8a878) + name/role. */
.grade-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}
.grade-mark img {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  display: block;
  border-radius: 10px;
  background: transparent;
  border: none;
  padding: 0;
  object-fit: contain;
}
.grade-mark-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.grade-mark-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -0.01em;
}
.grade-mark-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-500);
}
.grade-mark-o .grade-mark-role { color: var(--prod-o); }
.grade-mark-h .grade-mark-role { color: var(--prod-h); }
.grade-mark-f .grade-mark-role { color: var(--prod-f); }
.grade-mark-x .grade-mark-role { color: var(--prod-x); }

.grade-mark-lg img {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 12px;
}
.grade-mark-lg .grade-mark-name { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.grade-mark-lg .grade-mark-role { font-size: 0.86rem; }
.grade-mark-lg { margin-bottom: 1.15rem; }
/* On product heroes the mark carries the name; keep eyebrow for the job label */
.subhero .grade-mark-lg { margin-bottom: 1.35rem; }
.gate-body > p { margin-top: 0.35rem; }
.gate h3 { display: none; } /* name lives in grade-mark now */

.grade-mark-sm {
  gap: 0.65rem;
}
.grade-mark-sm img {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 8px;
}
.grade-mark-sm .grade-mark-name { font-size: 1.05rem; }
.grade-mark-sm .grade-mark-role { font-size: 0.7rem; }

.grade-mark-icon {
  gap: 0;
}
.grade-mark-icon img {
  width: 2.75rem;
  height: 2.75rem;
}
.grade-mark-icon .grade-mark-copy { display: none; }

/* Replace old bare-letter treatments with grade marks inside existing slots */
.gate-top { align-items: flex-start; }
.gate-top .grade-mark { flex: 1; }
.chooser-col .grade-mark { margin-bottom: 0.65rem; }
.sibling .grade-mark { margin-bottom: 0.45rem; }
.product-mark { display: none; } /* retired bare letter tile */

/* ============================================================= Remedia home flow */
.line-sep {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 42rem;
  margin: 0 auto;
}
.line-sep-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127,166,187,0.45), transparent);
}
.line-sep-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-400);
  white-space: nowrap;
}

.grade-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0.65rem 0.35rem;
  margin: 0 0 2.25rem;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  min-width: 7.5rem;
  max-width: 9.5rem;
  flex: 1 1 7.5rem;
  padding: 1.1rem 0.85rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.flow-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(0,0,0,0.85);
}
.flow-o:hover { border-color: rgba(212,165,116,0.5); }
.flow-h:hover { border-color: rgba(127,166,187,0.5); }
.flow-f:hover { border-color: rgba(200,168,120,0.5); }
.flow-x:hover { border-color: rgba(164,193,208,0.5); }
.flow-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9px;
  object-fit: contain;
  margin-bottom: 0.15rem;
}
.flow-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.15;
}
.flow-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--neutral-400);
}
.flow-o .flow-role { color: var(--prod-o); }
.flow-h .flow-role { color: var(--prod-h); }
.flow-f .flow-role { color: var(--prod-f); }
.flow-x .flow-role { color: var(--prod-x); }
.flow-hint {
  font-size: 0.88rem;
  color: var(--neutral-500);
  line-height: 1.3;
}
.flow-arrow {
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--neutral-600);
  flex: 0 0 auto;
  align-self: center;
}
@media (min-width: 920px) {
  .grade-flow {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }
  .flow-node {
    flex: 1 1 0;
    max-width: none;
  }
  .flow-arrow {
    display: flex;
    width: 1.75rem;
  }
}
@media (max-width: 919px) {
  .flow-arrow { display: none; }
}

.grade-cards { margin-top: 0.25rem; }
a.chooser-col {
  display: block;
  color: inherit;
  text-decoration: none;
}
