/* ==========================================================================
   CyberVijay Technologies — site styles
   Brand: red #E4142F, white, navy-black #0B0E14
   ========================================================================== */

:root {
  --red: #e4142f;
  --red-dark: #b60f25;
  --red-soft: #fdecef;
  --ink: #0b0e14;
  --ink-2: #141821;
  --ink-3: #1d2230;
  --paper: #ffffff;
  --cloud: #f5f6f8;
  --line: #e3e6eb;
  --line-dark: rgba(255, 255, 255, 0.12);
  --text: #0b0e14;
  --text-2: #4a5160;
  --text-3: #666e7c;
  --on-dark: #f4f6fa;
  --on-dark-2: #a8b0c0;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 1200px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(11, 14, 20, 0.05), 0 8px 24px -18px rgba(11, 14, 20, 0.35);
  --shadow: 0 2px 4px rgba(11, 14, 20, 0.04), 0 24px 48px -30px rgba(11, 14, 20, 0.4);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.022em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ------------------------------- Buttons -------------------------------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.62rem 1.05rem; font-size: 0.85rem; }

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255, 255, 255, 0.28);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* -------------------------------- Header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.86);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 14, 20, 0.97);
  box-shadow: 0 12px 30px -24px rgba(0, 0, 0, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 0.65rem; color: #fff; flex: none; }
.brand-lockup { height: 46px; width: auto; flex: none; display: block; }
.footer-lockup-img { height: 38px; width: auto; display: block; }
.brand-sub {
  font-size: 0.55rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-top: 0.32rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}
.nav a {
  padding: 0.5rem 0.62rem;
  font-size: 0.845rem;
  font-weight: 500;
  color: #ccd2de;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav a.is-active { color: #fff; }
.nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 0.28rem;
  background: var(--red);
  border-radius: 2px;
}

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex: none; margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: #fff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* --------------------------------- Hero --------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 62vw;
  height: 62vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle at 60% 40%, rgba(228, 20, 47, 0.42), rgba(228, 20, 47, 0.06) 45%, transparent 70%);
  z-index: -1;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 1.15rem;
}
.eyebrow-dark { color: var(--red-dark); }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(228, 20, 47, 0.22);
  flex: none;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 1.35rem;
}
.accent { color: var(--red); }

.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.7;
  color: #c3cad6;
  max-width: 34rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.6rem;
  margin-top: 2.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: var(--on-dark-2);
}
.hero-meta strong { color: #fff; font-weight: 700; margin-right: 0.25rem; }

/* Posture card */
.posture-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  padding: 1.4rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.posture-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.posture-title { font-size: 0.92rem; font-weight: 700; color: #fff; }
.posture-sub { font-size: 0.72rem; color: var(--on-dark-2); margin-top: 0.15rem; }
.tag-illus {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: #fff;
  white-space: nowrap;
}


.posture-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.posture-stats div { display: flex; flex-direction: column; }
.stat-num { font-family: var(--mono); font-size: 1.05rem; color: #fff; font-weight: 600; }
.stat-cap { font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-dark-2); }

.posture-list { margin-top: 0.75rem; display: grid; gap: 0.1rem; }
.posture-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.09);
  font-size: 0.78rem;
}
.posture-list li:last-child { border-bottom: 0; }
.dcode { font-family: var(--mono); font-size: 0.68rem; color: var(--on-dark-2); letter-spacing: 0.04em; }
.dname { color: #dde2ec; }
.state { font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.12rem 0.42rem; border-radius: 100px; }
.state.ok { color: #7ee0b0; background: rgba(126, 224, 176, 0.12); }
.state.warn { color: #ffc46b; background: rgba(255, 196, 107, 0.12); }
.posture-foot { margin-top: 0.9rem; font-size: 0.63rem; color: #8b93a3; }

.deliver-list { margin-top: 1.25rem; }
.deliver-list li {
  display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: 0.6rem;
  padding: 0.8rem 0; border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.deliver-list li:last-child { padding-bottom: 1.05rem; }
.deliver-no {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em;
  color: var(--red); padding-top: 0.22rem;
}
.deliver-title { font-size: 0.84rem; font-weight: 600; color: #fff; letter-spacing: -0.006em; }
.deliver-desc { font-size: 0.74rem; color: var(--on-dark-2); line-height: 1.55; margin-top: 0.16rem; }

/* -------------------------------- Figures -------------------------------- */
.figures { background: var(--ink-2); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.figures-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
}
.figure {
  background: var(--ink-2);
  padding: 1.5rem clamp(0.5rem, 1.4vw, 1.1rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.figure-num {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff;
}
.figure-num sup { font-size: 0.55em; color: #ff6b7d; top: -0.55em; }
.figure-label { font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-dark-2); line-height: 1.35; }

/* -------------------------------- Sections ------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--cloud); border-block: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark .h2 { color: #fff; }

.h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.85rem);
  letter-spacing: -0.032em;
  max-width: 22ch;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2rem 4rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section-head .section-note { max-width: 44ch; justify-self: end; }
.section-note { font-size: 0.95rem; color: var(--text-2); line-height: 1.7; }
.section-lede {
  max-width: 78ch;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0 0 2rem;
  text-wrap: pretty;
}
.section-dark .section-lede { color: var(--on-dark-2); }
.section-dark .section-note { color: var(--on-dark-2); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.split-head .h2 { margin-bottom: 1rem; }
.split-body { font-size: 1rem; color: var(--text-2); line-height: 1.75; display: grid; gap: 1.1rem; }
.split-body .lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text); line-height: 1.65; }
.section-dark .split-body, .section-dark .split-body .lead { color: #c3cad6; }
.section-dark .split-body .lead { color: #e7ebf2; }

.quote {
  margin: 0.5rem 0 0;
  padding: 1.4rem 1.6rem;
  border-left: 3px solid var(--red);
  background: var(--cloud);
  border-radius: 0 var(--r) var(--r) 0;
}
.section-dark .quote { background: rgba(255, 255, 255, 0.045); }
.quote p { font-size: 1.05rem; line-height: 1.6; color: var(--text); font-weight: 500; }
.section-dark .quote p { color: #fff; }
.quote footer { margin-top: 0.85rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

/* ------------------------------- Filters -------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.75rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.chip:hover { border-color: #c8cdd6; color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-count { font-family: var(--mono); font-size: 0.68rem; opacity: 0.55; }
.chip.is-active .chip-count { opacity: 0.75; }

/* --------------------------------- Cards -------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.card {
  background: #fff;
  padding: 1.4rem 1.35rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background-color 0.2s ease;
}
.card:hover { background: #fcfcfd; }
.card.is-hidden { display: none; }
.card-top { display: flex; align-items: center; gap: 0.6rem; justify-content: space-between; }
.num { font-family: var(--mono); font-size: 0.7rem; color: #666e7c; letter-spacing: 0.06em; }
.tag {
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--cloud);
  border: 1px solid var(--line);
  padding: 0.18rem 0.5rem;
  border-radius: 100px;
  font-weight: 600;
  white-space: nowrap;
}
.card h3 { font-size: 1.02rem; letter-spacing: -0.015em; line-height: 1.3; }
.card p { font-size: 0.86rem; color: var(--text-2); line-height: 1.62; }
.card .card-lede {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin-top: -0.15rem;
}
.card .platform {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.73rem;
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.card .platform::before { content: "▸ "; opacity: 0.7; }

/* ------------------------------- Practices ------------------------------- */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}
/* Five cards: three across the first row, two wide cards across the second. */
.practice { grid-column: span 2; }
.practice:nth-last-child(-n+2) { grid-column: span 3; }
.practice {
  position: relative;
  padding: 1.9rem 1.6rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.practice:hover { border-color: #cfd4dd; box-shadow: var(--shadow); transform: translateY(-2px); }
.practice .num { font-size: 0.72rem; }
.practice h3 { font-size: 1.22rem; line-height: 1.25; }
.practice-focus {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}
.practice p:not(.practice-focus) { font-size: 0.88rem; color: var(--text-2); }
.link-arrow {
  margin-top: 0.5rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.link-arrow:hover { color: var(--red); border-color: var(--red); }

/* ----------------------------- Operating model --------------------------- */
.stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--r);
  overflow: hidden;
}
.stage {
  background: var(--ink);
  padding: 1.7rem 1.5rem;
  display: flex;
  gap: 1rem;
  transition: background-color 0.25s;
}
.stage:hover { background: var(--ink-3); }
.stage-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #ff6b7d;
  letter-spacing: 0.06em;
  padding-top: 0.28rem;
  flex: none;
}
.stage h3 { font-size: 1.12rem; color: #fff; margin-bottom: 0.45rem; }
.stage p { font-size: 0.83rem; line-height: 1.62; color: var(--on-dark-2); }
.stage-meta { display: block; margin-top: 0.55rem; font-size: 0.79rem; line-height: 1.55; color: #c3cad6; }
.step-label {
  display: block; font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ff6b7d; margin-bottom: 0.1rem;
}
.engagement-terms {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.15rem; margin-top: 1.15rem;
}
.engagement-terms > div {
  border: 1px solid rgba(255, 255, 255, 0.11); border-radius: var(--r);
  background: rgba(255, 255, 255, 0.02); padding: 1.3rem 1.4rem;
}
.engagement-terms h3 { font-size: 0.98rem; color: #fff; margin-bottom: 0.45rem; }
.engagement-terms p { font-size: 0.84rem; line-height: 1.62; color: var(--on-dark-2); }
.cycle-note {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-2);
  font-family: var(--mono);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 0.5rem 0.95rem;
}
.cycle-note span { color: var(--red); font-size: 1rem; }

/* -------------------------------- Products ------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.15rem;
}
.product {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.45rem 1.35rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.product:hover { border-color: #cfd4dd; box-shadow: var(--shadow-sm); }
.product-new { border-color: rgba(228, 20, 47, 0.3); background: linear-gradient(180deg, #fff, #fffafb); }
.product-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.product h3 { font-size: 1.16rem; }
.product .product-lede {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-top: 0.15rem;
}
.product p { font-size: 0.87rem; color: var(--text-2); line-height: 1.66; }
.adlc { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.1rem 0 0; padding: 0; }
.adlc li {
  font-size: 0.68rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-2);
  background: #f5f6f8; border: 1px solid var(--line); border-radius: 999px; padding: 0.24rem 0.6rem;
}
.pulse-editions { list-style: none; display: grid; gap: 0.75rem; margin: 0.1rem 0 0; padding: 0; }
.pulse-editions li { border-left: 2px solid var(--red); padding-left: 0.72rem; display: grid; gap: 0.15rem; }
.pulse-who { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: #666e7c; }
.pulse-editions strong { font-size: 0.94rem; color: #0b0e14; font-weight: 600; }
.product-foot {
  margin-top: auto;
  padding-top: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.product-foot .link-arrow { margin-top: 0; font-size: 0.79rem; }
.domains {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--text-3);
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.16rem 0.4rem;
  white-space: nowrap;
}

/* ---------------------------------- AI ---------------------------------- */
.ai-section { background: var(--ink-2); }
.ai-list { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.1); border-radius: var(--r); overflow: hidden; }
.ai-list li { display: flex; gap: 1rem; padding: 1.05rem 1.2rem; background: var(--ink-2); }
.ai-list li:hover { background: var(--ink-3); }
.ai-num { font-family: var(--mono); font-size: 0.68rem; color: var(--red); padding-top: 0.2rem; flex: none; }
.ai-list h3 { font-size: 0.97rem; color: #fff; margin-bottom: 0.2rem; font-weight: 600; }
.ai-list p { font-size: 0.82rem; color: var(--on-dark-2); line-height: 1.55; }

/* --------------------------------- Steps -------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.steps li { background: #fff; padding: 1.6rem 1.45rem; display: grid; gap: 0.5rem; align-content: start; }
.step-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--red);
  border: 1px solid rgba(228, 20, 47, 0.25);
  border-radius: 100px;
  padding: 0.12rem 0.45rem;
  width: fit-content;
}
.steps h3 { font-size: 1rem; }
.steps p { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

/* ------------------------------ Principles ------------------------------ */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.principle { background: #fff; padding: 1.5rem 1.4rem; display: grid; gap: 0.4rem; align-content: start; }
.principle h3 { font-size: 1.02rem; }
.principle p { font-size: 0.85rem; color: var(--text-2); }

/* -------------------------------- Domains ------------------------------- */
.subhead {
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 2.6rem 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.subhead:first-of-type { margin-top: 0; }

.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.domain { background: #fff; padding: 1rem 1.1rem; display: flex; gap: 0.75rem; align-items: flex-start; }
.domain-new { background: #fff8f9; }
.domain h4 { font-size: 0.9rem; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.domain p { font-size: 0.75rem; color: var(--text-3); margin-top: 0.15rem; line-height: 1.5; }
.domain .dcode { color: #666e7c; padding-top: 0.18rem; }
.domain .tag { font-size: 0.55rem; padding: 0.1rem 0.35rem; background: var(--red-soft); border-color: rgba(228, 20, 47, 0.2); color: var(--red-dark); }
.domain .dcode { font-family: var(--mono); font-size: 0.68rem; color: #666e7c; }

.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.framework-group { border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.15rem; background: #fff; }
.framework-group h4 { font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--red); margin-bottom: 0.75rem; }
.framework-group li {
  font-size: 0.83rem;
  padding: 0.38rem 0;
  border-bottom: 1px solid #f0f2f5;
  color: var(--text-2);
}
.framework-group li:last-child { border-bottom: 0; }

/* -------------------------------- Sectors ------------------------------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.sector-grid li {
  background: #fff;
  padding: 0.9rem 1.05rem;
  font-size: 0.845rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: background-color 0.18s;
}
.sector-grid li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #c8ced8;
  flex: none;
}
.sector-grid li:hover { background: #fcfcfd; }
.sector-grid li:hover::before { background: var(--red); }

/* --------------------------------- Tiers -------------------------------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; align-items: stretch; }
.tier {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.9rem 1.6rem 1.5rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.tier-featured { border-color: var(--ink); box-shadow: var(--shadow); }
.tier-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.6rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
  font-weight: 700;
}
.tier h3 { font-size: 1.45rem; }
.tier-model { font-size: 0.76rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.tier-scope { font-size: 0.88rem; color: var(--text-2); line-height: 1.6; }
.tier ul { display: grid; gap: 0.45rem; margin: 0.35rem 0 1.1rem; }
.tier li { font-size: 0.85rem; color: var(--text-2); padding-left: 1.15rem; position: relative; }
.tier li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.52em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.85;
}
.tier .btn { margin-top: auto; justify-content: center; }

/* ------------------------------ Credentials ----------------------------- */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.cred-card { background: #fff; padding: 1.3rem 1.2rem; }
.cred-card-wide { grid-column: span 2; }
.cred-card h3 {
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.cred-card ul { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cred-card li {
  font-size: 0.755rem;
  color: var(--text-2);
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  line-height: 1.4;
}

.why { margin-top: 2.75rem; }
.why-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}
.why-list li { display: grid; gap: 0.3rem; padding-top: 0.9rem; border-top: 2px solid var(--ink); }
.why-list strong { font-size: 0.92rem; font-weight: 700; }
.why-list span { font-size: 0.82rem; color: var(--text-2); line-height: 1.55; }

/* -------------------------------- Contact ------------------------------- */
.contact { background: var(--ink); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.contact-info { display: grid; gap: 1.4rem; }
.contact-block h3 {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
  margin-bottom: 0.3rem;
  font-weight: 600;
}
.contact-block p, .contact-block a { font-size: 0.95rem; color: #fff; line-height: 1.6; }
.contact-block a { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.contact-block a:hover { color: var(--red); border-color: var(--red); }

.onboarding {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.4rem;
  margin-top: 0.2rem;
}
.onboarding h3 { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--on-dark-2); margin-bottom: 0.9rem; }
.onboarding ol { display: grid; gap: 0.65rem; }
.onboarding li { display: flex; gap: 0.7rem; font-size: 0.86rem; color: #d5dae4; align-items: baseline; }
.onboarding li span {
  font-family: var(--mono);
  font-size: 0.68rem;
  width: 1.4rem; height: 1.4rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(228, 20, 47, 0.5);
  color: var(--red);
  border-radius: 50%;
  flex: none;
}

.contact-form {
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
  color: var(--text);
}
.field { display: grid; gap: 0.35rem; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-2); text-transform: uppercase; }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #d7dbe2;
  border-radius: var(--r-sm);
  padding: 0.7rem 0.8rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 6rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11, 14, 20, 0.08);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.err { font-size: 0.75rem; color: var(--red); min-height: 0; }
.err:empty { display: none; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}
.form-note { font-size: 0.72rem; color: var(--text-3); line-height: 1.5; max-width: 24rem; }
.form-status {
  grid-column: 1 / -1;
  font-size: 0.86rem;
  color: #0f7a4a;
  background: #eafaf1;
  border: 1px solid #bfe9d3;
  border-radius: var(--r-sm);
  padding: 0.7rem 0.85rem;
}
.form-status:empty { display: none; }
.form-status.is-error { color: var(--red-dark); background: var(--red-soft); border-color: #f6c7cf; }
.form-assurance {
  grid-column: 1 / -1;
  font-size: 0.74rem;
  color: var(--text-3);
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

/* --------------------------------- Footer -------------------------------- */
.site-footer { background: var(--ink-2); color: var(--on-dark-2); padding: 3rem 0 1.5rem; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-lockup { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-brand p { margin-top: 0.8rem; font-size: 0.86rem; max-width: 32ch; line-height: 1.6; color: #98a0b0; }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-cols .footer-h { font-size: 0.66rem; letter-spacing: 0.15em; text-transform: uppercase; color: #fff; margin-bottom: 0.8rem; font-weight: 600; }
.footer-cols li { margin-bottom: 0.45rem; }
.footer-cols a, .footer-cols li { font-size: 0.84rem; color: #98a0b0; }
.footer-cols a:hover { color: #fff; }

.footer-legal {
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-legal p { font-size: 0.72rem; color: #7d8598; line-height: 1.7; }
.legal-links { letter-spacing: 0.02em; }

.preselect-pulse { animation: preselect 1.1s ease; }
@keyframes preselect {
  0% { box-shadow: 0 0 0 0 rgba(228, 20, 47, 0.45); }
  100% { box-shadow: 0 0 0 14px rgba(228, 20, 47, 0); }
}

/* ------------------------------ Legal pages ------------------------------ */
.legal-hero {
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(2.75rem, 5vw, 3.75rem) 0 clamp(2.25rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: -0.035em;
  color: #fff;
}
.legal-meta {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--on-dark-2);
}

.legal-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.15rem 1.15rem 1.2rem;
  background: #fff;
}
.toc-title {
  font-size: 0.63rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  padding-bottom: 0.65rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}
.legal-toc ol { counter-reset: toc; display: grid; gap: 0.1rem; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.81rem;
  color: var(--text-2);
  line-height: 1.4;
  padding: 0.31rem 0;
  transition: color 0.18s ease;
}
.legal-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.63rem;
  color: #666e7c;
  flex: none;
}
.legal-toc a:hover { color: var(--red); }

.legal-body { max-width: 46rem; font-size: 0.95rem; color: var(--text-2); line-height: 1.78; }
.legal-body > .legal-intro {
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.75;
  padding-left: 1.1rem;
  border-left: 3px solid var(--red);
}
.legal-body section { padding-top: 2.1rem; scroll-margin-top: 90px; }
.legal-body h2 {
  font-size: clamp(1.22rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.8rem;
}
.legal-body h3 { font-size: 0.98rem; color: var(--text); margin: 1.4rem 0 0.5rem; }
.legal-body p + p { margin-top: 0.75rem; }
.legal-body ul { margin: 0.7rem 0 0.2rem; display: grid; gap: 0.5rem; }
.legal-body ul li { padding-left: 1.1rem; position: relative; }
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.8;
}
.legal-body strong { color: var(--text); font-weight: 650; }
.legal-body a { color: var(--red); border-bottom: 1px solid rgba(228, 20, 47, 0.3); }
.legal-body a:hover { border-color: var(--red); }
.legal-body a.link-arrow { color: var(--ink); border-bottom-color: transparent; }
.legal-body a.link-arrow:hover { color: var(--red); }

.legal-dl { display: grid; gap: 0.45rem; margin: 1rem 0 0.9rem; }
.legal-dl > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}
.legal-dl dt { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; padding-top: 0.1rem; }
.legal-dl dd { margin: 0; color: var(--text); }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin: 0.9rem 0 0.4rem; border: 1px solid var(--line); border-radius: var(--r-sm); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 0.83rem; min-width: 30rem; }
.legal-body th, .legal-body td { text-align: left; padding: 0.62rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-body th {
  background: var(--cloud);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 700;
  white-space: nowrap;
}
.legal-body tr:last-child td { border-bottom: 0; }
.legal-body td:first-child { color: var(--text); font-weight: 550; }
.legal-body code {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink);
  background: var(--cloud);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.32rem;
  white-space: nowrap;
}
.table-note { margin-top: 0.7rem; font-size: 0.82rem; color: var(--text-3); line-height: 1.65; }

.callout {
  background: var(--cloud);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.05rem 1.2rem;
  margin: 0.9rem 0;
  font-size: 0.9rem;
  line-height: 1.7;
}
.callout-title { font-size: 0.68rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 0.4rem; }

.legal-foot {
  margin-top: 2.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-3);
}
.legal-back { margin-top: 1.6rem; }
.legal-links a { color: inherit; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.legal-links a:hover { color: #fff; }
.legal-links a[aria-current="page"] { color: #fff; border-color: var(--red); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc ol { grid-template-columns: 1fr 1fr; column-gap: 1rem; }
}
@media (max-width: 560px) {
  .legal-toc ol { grid-template-columns: 1fr; }
  .legal-dl > div { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ----------------------------- Cookie banner ----------------------------- */
.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 160;
  width: min(430px, calc(100% - 2rem));
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r);
  padding: 1.2rem 1.25rem 1.1rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85);
  animation: cookie-in 0.35s ease both;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-kicker {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff6b7d;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.cookie-banner h2 {
  font-size: 0.98rem;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 0.45rem;
}
.cookie-banner p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--on-dark-2);
}
.cookie-actions { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.cookie-actions .btn { flex: 1 1 0; justify-content: center; padding: 0.62rem 0.9rem; font-size: 0.82rem; }
.btn-cookie-decline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-cookie-decline:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.55); }
.cookie-links {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.73rem !important;
}
.cookie-links a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.cookie-links a:hover { border-color: var(--red); color: #fff; }
.cookie-links span { color: #98a0b0; }
.cookie-current {
  margin-top: 0.55rem;
  font-size: 0.71rem !important;
  color: #8b93a3 !important;
}
.cookie-current strong { color: #fff; font-weight: 600; }

.linkish {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  line-height: inherit;
}
.linkish:hover { color: #fff; border-color: var(--red); }

@keyframes cookie-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0.65rem;
    width: auto;
    padding: 1.05rem 1.05rem 1rem;
  }
  .cookie-actions { flex-direction: column; }
}

/* ------------------------------- Responsive ------------------------------ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.75rem var(--pad) 1.25rem;
    margin-left: 0;
  }
  .nav.is-open a { padding: 0.8rem 0.25rem; font-size: 0.95rem; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav.is-open a.is-active::after { display: none; }
  .nav.is-open a.is-active { color: var(--red); }
  .header-inner { position: relative; }

  .hero-inner { grid-template-columns: 1fr; }
  .posture-card { max-width: 520px; }
  .figures-grid { grid-template-columns: repeat(4, 1fr); }
  .framework-grid { grid-template-columns: repeat(2, 1fr); }
  .cred-grid { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: repeat(3, 1fr); }
  .sector-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .section-head, .split, .contact-grid, .footer-inner { grid-template-columns: 1fr; }
  .section-head .section-note { justify-self: start; }
  .section-head { gap: 1.1rem; }
  .practice-grid, .tier-grid, .stages, .steps, .principle-grid, .domain-grid { grid-template-columns: 1fr; }
  .stages { border-radius: var(--r); }
  .card-grid, .product-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 0.5rem 1.2rem; }
  .contact-form { grid-template-columns: 1fr; }
  .cred-card-wide { grid-column: span 1; }
  .why-list { grid-template-columns: 1fr 1fr; }
  .posture-card { max-width: none; }
  .header-actions .btn { display: none; }
  .h2 { max-width: none; }
}

@media (max-width: 560px) {
  .figures-grid { grid-template-columns: repeat(2, 1fr); }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .framework-grid { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .why-list { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.45rem; }
  .footer-cols { gap: 1.5rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .section, .figures { content-visibility: visible; }
  .site-header, .nav-toggle, .hero-glow, .hero-grid-bg, .contact-form { display: none; }
  body { color: #000; }
}

/* ------------------------- Cookie preference centre ----------------------- */
.cookie-banner.is-prefs {
  width: min(560px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
}
.cookie-prefs-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-prefs h2 { margin-bottom: 0.45rem; }
.cookie-close {
  background: none; border: 0; padding: 0.1rem 0.35rem; border-radius: 6px;
  color: #a8b0c0; font-size: 1.25rem; line-height: 1; cursor: pointer;
}
.cookie-close:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.cookie-cats { margin: 0.8rem 0 0.2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.cookie-cat { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.cookie-cat-head { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0; }
.cookie-cat-toggle {
  display: flex; align-items: center; gap: 0.55rem; flex: 1;
  background: none; border: 0; padding: 0; margin: 0;
  color: var(--on-dark); font: inherit; font-size: 0.82rem; text-align: left; cursor: pointer;
}
.cookie-cat-toggle:hover { color: #fff; }
.cookie-chevron { width: 1rem; flex: none; text-align: center; color: #8b93a3; font-size: 1rem; line-height: 1; }
.cookie-chevron::before { content: "+"; }
.cookie-cat-toggle[aria-expanded="true"] .cookie-chevron::before { content: "\2212"; }
.cookie-cat-always {
  font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: #8fc7a8; white-space: nowrap;
}
.cookie-switch {
  position: relative; flex: none; width: 42px; height: 24px;
  border: 0; border-radius: 100px; background: rgba(255, 255, 255, 0.22);
  cursor: pointer; transition: background-color 0.2s ease;
}
.cookie-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform 0.2s ease;
}
.cookie-switch[aria-checked="true"] { background: var(--red); }
.cookie-switch[aria-checked="true"]::after { transform: translateX(18px); }
.cookie-cat-body { padding: 0.2rem 0 0.9rem; }
.cookie-cat-body p { font-size: 0.75rem; margin-bottom: 0.55rem; }
.cookie-table { width: 100%; border-collapse: collapse; font-size: 0.67rem; line-height: 1.4; }
.cookie-table th {
  text-align: left; font-size: 0.56rem; letter-spacing: 0.09em; text-transform: uppercase;
  color: #8b93a3; padding: 0.3rem 0.35rem; border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  white-space: nowrap; font-weight: 700;
}
.cookie-table td {
  padding: 0.34rem 0.35rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #c3cad6; vertical-align: top;
}
.cookie-table tr:last-child td { border-bottom: 0; }
.cookie-table code {
  font-family: var(--mono); font-size: 0.64rem; color: #fff;
  background: rgba(255, 255, 255, 0.09); border-radius: 3px; padding: 0 0.22rem;
}
.cookie-note { margin-top: 0.75rem; font-size: 0.7rem; color: #8b93a3; }
.cookie-linkbtn {
  background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0; margin: 0; font: inherit; font-size: 0.73rem; color: #fff; cursor: pointer;
}
.cookie-linkbtn:hover { border-color: var(--red); }
.cookie-prefs .cookie-actions { margin-top: 0.9rem; }
.cookie-prefs .cookie-links { margin-top: 0.7rem; }

@media (max-width: 560px) {
  .cookie-banner.is-prefs { width: auto; }
  .cookie-table { font-size: 0.62rem; }
  .cookie-table th, .cookie-table td { padding: 0.28rem 0.25rem; }
}

/* --------------------------- Enterprise polish ---------------------------- */
.framework-rail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin-top: 1.6rem;
}
.framework-rail .rail-label {
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #98a0b0; margin-right: 0.3rem;
}
.framework-rail span:not(.rail-label) {
  font-size: 0.65rem; letter-spacing: 0.05em;
  color: #a8b0c0; border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 100px; padding: 0.24rem 0.55rem; white-space: nowrap;
}
.figure-num, .stat-num { font-variant-numeric: tabular-nums; }
.h2 { text-wrap: balance; }
.section-note { text-wrap: pretty; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-size: 1.02rem; font-weight: 600; letter-spacing: -0.012em;
  transition: color 0.2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; color: var(--red);
  font-size: 1.3rem; line-height: 1; font-weight: 400; flex: none;
}
.faq details[open] summary::after { content: "\2212"; }
.faq summary:hover { color: var(--red); }
.faq summary:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }
.faq-a { padding: 0 0 1.35rem; max-width: 66ch; font-size: 0.92rem; color: var(--text-2); line-height: 1.78; }
.faq-a p + p { margin-top: 0.6rem; }
.faq-a a { color: var(--red); border-bottom: 1px solid rgba(228, 20, 47, 0.3); }
.section-tint .faq summary { color: var(--text); }

/* 404 */
.error-hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem); }
.error-code {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.18em;
  color: var(--red); text-transform: uppercase; margin-bottom: 1rem;
}
.error-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); letter-spacing: -0.035em; max-width: 20ch; }
.error-hero p { margin-top: 1rem; max-width: 52ch; color: var(--text-2); font-size: 1rem; line-height: 1.75; }
.error-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ------------------------------ DSAR portal ------------------------------- */
.dsar-lead { max-width: 64ch; margin-top: 1.2rem; font-size: 1.02rem; color: var(--text-2); line-height: 1.8; }
.dsar-layout {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(1.5rem, 4vw, 3rem); align-items: start;
}
.dsar-form.contact-form {
  border: 1px solid var(--line);
  box-shadow: 0 28px 64px -48px rgba(11, 14, 20, 0.5);
}
.dsar-fieldset { grid-column: 1 / -1; border: 0; padding: 0; margin: 0.2rem 0 0; display: grid; gap: 0.8rem; }
.dsar-fieldset + .dsar-fieldset { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.dsar-fieldset legend {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 0.5rem; padding: 0;
}
.dsar-fieldset legend .opt { color: var(--text-3); font-weight: 500; letter-spacing: 0.02em; text-transform: none; }
.dsar-radio { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dsar-radio label {
  display: flex; align-items: center; gap: 0.4rem;
  border: 1px solid #d7dbe2; border-radius: 100px; padding: 0.4rem 0.75rem;
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0;
  text-transform: none; color: var(--text); cursor: pointer;
}
.dsar-radio label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.dsar-radio input { accent-color: var(--red); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.86rem; line-height: 1.45; color: var(--text); }
.check input { margin-top: 0.18rem; width: 1rem; height: 1rem; flex: none; accent-color: var(--red); }
.check small { display: block; color: var(--text-3); font-size: 0.76rem; }
.dsar-side { display: grid; gap: 1.1rem; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.2rem 1.25rem; }
.step-card h3 { font-size: 0.95rem; margin-bottom: 0.35rem; letter-spacing: -0.015em; }
.step-card p { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; }
.step-card .step-no {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--red); display: block; margin-bottom: 0.4rem;
}
.dsar-result { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 0.5rem; }
.dsar-result h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.dsar-result .ref { font-family: var(--mono); font-size: 0.8rem; color: var(--red); }
.dsar-result pre {
  white-space: pre-wrap; overflow-wrap: break-word;
  font-family: var(--mono); font-size: 0.76rem; line-height: 1.65;
  background: #f5f6f8; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0.9rem; max-height: 24rem; overflow: auto; margin-top: 0.7rem;
}
.dsar-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.dsar-note { font-size: 0.76rem; color: var(--text-3); margin-top: 0.6rem; line-height: 1.6; }
@media (max-width: 900px) {
  .dsar-layout { grid-template-columns: 1fr; }
  .check-grid { grid-template-columns: 1fr; }
}

/* --------------------- Responsive + performance pass ---------------------- */
body { overflow-wrap: break-word; }

/* Long pages: skip layout/paint work for sections that are far off-screen. */
.section, .figures {
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}

/* Hover lifts and blur are desktop luxuries; drop them on touch/small screens. */
@media (hover: none) {
  .practice:hover, .product:hover { transform: none; }
}
@media (max-width: 860px) {
  .posture-card { backdrop-filter: none; }
}

/* Comfortable touch targets */
@media (pointer: coarse) {
  .nav a { min-height: 44px; display: flex; align-items: center; }
  .chip { min-height: 44px; }
  .btn { min-height: 44px; }
  .footer-cols a { display: inline-block; padding-block: 0.3rem; }
  .cookie-switch { width: 48px; height: 28px; }
  .cookie-switch::after { width: 22px; height: 22px; }
  .cookie-switch[aria-checked="true"]::after { transform: translateX(20px); }
}

/* Tablet: 3-up panels are too tight, 1-up wastes the width */
@media (max-width: 1024px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid .tier:last-child { grid-column: 1 / -1; }
  .cred-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .principle-grid, .stages, .steps, .domain-grid, .practice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .section { padding: clamp(3rem, 8vw, 4.2rem) 0; }
  .section-head { margin-bottom: 1.9rem; }
  .hero { padding: 2.75rem 0 2.75rem; }
}

@media (max-width: 620px) {
  .principle-grid, .stages, .steps, .domain-grid, .practice-grid,
  .tier-grid, .cred-grid { grid-template-columns: 1fr; }
  .tier-grid .tier:last-child { grid-column: auto; }
  .section { padding: 2.6rem 0; }
  .section-head { margin-bottom: 1.6rem; }
  .h2 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .hero h1 { font-size: clamp(1.95rem, 8.6vw, 2.4rem); }
  .posture-card { padding: 1.15rem; }
  .product, .principle, .step-card, .practice { padding: 1.2rem 1.05rem; }
  .legal-body { font-size: 0.93rem; }
  .footer-inner { gap: 1.75rem; }
  .hero-meta { gap: 0.45rem 1rem; font-size: 0.8rem; }
}

@media (max-width: 420px) {
  .brand-lockup { height: 36px; }
  .footer-lockup-img { height: 32px; }
  .hero h1 { font-size: 1.9rem; }
  .posture-stats { gap: 0.3rem; }
  .stat-num { font-size: 0.95rem; }
  .sector-grid li { padding: 0.72rem 0.8rem; font-size: 0.8rem; }
  .framework-rail span:not(.rail-label) { font-size: 0.6rem; padding: 0.2rem 0.45rem; }
  .hero-cta .btn, .error-actions .btn, .form-foot .btn { width: 100%; justify-content: center; }
  .dsar-actions .btn { flex: 1 1 100%; justify-content: center; }
  .cookie-banner { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; width: auto; }
}

/* WCAG 1.4.3 — brand red is 4.08:1 on the navy background, so red text on dark
   surfaces uses the lighter tint (7.04:1). Red on light surfaces keeps the brand red. */
.section-dark .practice-focus,
.section-dark .link-arrow:hover,
.ai-section .practice-focus,
.hero .eyebrow .dot { color: #ff6b7d; }
.cookie-banner .cookie-linkbtn,
.cookie-banner .cookie-links a { border-color: rgba(255, 255, 255, 0.35); }

/* Links sitting on the tinted (#f5f6f8) sections use the darker red so they clear 4.5:1. */
.section-tint .faq-a a,
.section-tint .section-note a,
.section-tint .principle a { color: var(--red-dark); }

.section-tint .faq summary:hover,
.section-tint .faq summary:hover::after,
.section-tint .faq summary::after { color: var(--red-dark); }

@media (max-width: 860px) {
  .practice-grid { grid-template-columns: 1fr; }
  .practice, .practice:nth-last-child(-n+2) { grid-column: auto; }
}

@media (max-width: 860px) {
  .engagement-terms { grid-template-columns: 1fr; }
}
