/* =========================================================================
   STARWATCH LABS — applied AI consulting
   Deep navy "night sky" canvas · cool silver (starlight) accent +
   periwinkle secondary · light-weight grotesque headlines ·
   hairline grid · corner-bracket buttons.
   ========================================================================= */

/* ---------- Fonts (license-safe substitutes for Saans TRIAL) ------------ */
@font-face {
  font-family: "Grotesk";
  src: url("../fonts/hanken-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Grotesk";
  src: url("../fonts/hanken-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/roboto-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("../fonts/roboto-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------ */
:root {
  /* surfaces & text — deep navy "night sky" base (Starwatch) */
  --surface-primary: #080a14;
  --surface-secondary: #0d1020;
  --surface-raised: #141830;
  --text-primary: #ffffff;
  --text-subdued: rgba(255, 255, 255, 0.6);
  --text-secondary: #9aa0b4;

  /* brand — silver starlight + cool periwinkle (token names kept for reuse) */
  --brand-teal: #a6c0e8;        /* primary accent: cool silver / starlight */
  --brand-teal-bright: #cfe0f7; /* bright ice-white (glows / hovers) */
  --brand-pink: #7aa2ff;        /* cool secondary: periwinkle */
  --brand-magenta: #5b7fe0;     /* deeper periwinkle */

  /* structure */
  --line: #1b2036;
  --line-soft: rgba(255, 255, 255, 0.06);
  --fill-4: rgba(255, 255, 255, 0.04);
  --fill-8: rgba(255, 255, 255, 0.08);
  --border-10: rgba(255, 255, 255, 0.1);
  --focus: #4285f4;

  /* type */
  --font-sans: "Grotesk", -apple-system, BlinkMacSystemFont, "avenir next",
    avenir, "segoe ui", "helvetica neue", helvetica, arial, sans-serif;
  --font-mono: "Roboto Mono", Menlo, Consolas, Monaco, "Liberation Mono",
    monospace;

  --h1: clamp(2.5rem, 1.3915rem + 3.6874vw, 5.125rem);
  --h2: clamp(1.875rem, 1.0832rem + 2.6339vw, 3.75rem);
  --h3: clamp(1.625rem, 0.9388rem + 2.2827vw, 3.25rem);
  --h4: clamp(1.5rem, 0.8665rem + 2.1071vw, 3rem);
  --h5: clamp(1.375rem, 1.1111rem + 0.878vw, 2rem);
  --h6: clamp(1.25rem, 1.1444rem + 0.3512vw, 1.5rem);
  --body: clamp(0.875rem, 0.8222rem + 0.1756vw, 1rem);
  --lg: clamp(1rem, 0.9472rem + 0.1756vw, 1.125rem);
  --xl: clamp(1.125rem, 1.0722rem + 0.1756vw, 1.25rem);

  /* layout */
  --wide-max: 1460px;
  --narrow-max: 800px;
  --gutter: 24px;
  --nav-h: 80px;
  --announce-h: 40px;

  --dur: 0.15s;
}

/* ---------- Reset ------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* clip (not hidden) prevents horizontal overflow without turning the root
     into a scroll container, which would break position: sticky in the
     tabs-scene scrollytelling section. */
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--surface-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.4;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) ease;
}
a:hover {
  color: var(--brand-teal);
}
button {
  font-family: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Headings ---------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-feature-settings: "liga" 0, "clig" 0;
}
h1 {
  font-size: var(--h1);
}
h2 {
  font-size: var(--h2);
}
h3 {
  font-size: var(--h3);
}
h4 {
  font-size: var(--h4);
}
p {
  margin: 0;
}
.teal {
  color: var(--brand-teal);
}
.subdued {
  color: var(--text-subdued);
}

/* ---------- Layout helpers --------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wide-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section {
  position: relative;
  padding-block: clamp(64px, 8vw, 120px);
}
.section--tight {
  padding-block: clamp(48px, 5vw, 80px);
}
@media (min-width: 981px) {
  :root {
    /* The reference keeps its primary content off the viewport edge by a
       full 64px at desktop widths. */
    --gutter: 64px;
  }
}
.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.eyebrow--teal {
  color: var(--brand-teal);
}
.lede {
  font-size: var(--xl);
  color: var(--text-subdued);
  line-height: 1.45;
  max-width: 46ch;
}

/* hairline rules */
.rule-top {
  border-top: 1px solid var(--line);
}
.rule-bottom {
  border-bottom: 1px solid var(--line);
}

/* diagonal hatch transition band */
.hatch {
  height: 64px;
  border-block: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 9px,
    var(--line) 9px,
    var(--line) 10px
  );
  opacity: 0.8;
}

/* dotted-grid backdrop */
.dotgrid {
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* ---------- Buttons ----------------------------------------------------- */
.btn {
  --corner: var(--brand-teal);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-primary);
  font-size: var(--body);
  font-weight: 400;
  line-height: 1;
  transition: color var(--dur) ease;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--fill-4);
  z-index: -1;
  transition: transform var(--dur) ease, background var(--dur) ease;
}
/* four L-shaped teal corner brackets */
.btn .corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--corner);
  border-style: solid;
  border-width: 0;
  transition: border-color var(--dur) ease;
}
.btn .corner.tl {
  top: 0;
  left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}
.btn .corner.tr {
  top: 0;
  right: 0;
  border-top-width: 1px;
  border-right-width: 1px;
}
.btn .corner.bl {
  bottom: 0;
  left: 0;
  border-bottom-width: 1px;
  border-left-width: 1px;
}
.btn .corner.br {
  bottom: 0;
  right: 0;
  border-bottom-width: 1px;
  border-right-width: 1px;
}
.btn .icon-box {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--fill-8);
  color: var(--brand-teal);
  transition: background var(--dur) ease, color var(--dur) ease;
}
.btn .icon-box svg {
  width: 13px;
  height: 13px;
}
.btn:hover {
  color: var(--text-primary);
}
.btn:hover::before {
  transform: scale(0.97, 0.96);
  background: var(--fill-8);
}
.btn:hover .corner {
  border-color: var(--brand-teal-bright);
}
.btn:hover .icon-box {
  background: var(--brand-teal);
  color: var(--surface-primary);
}
.btn--sm {
  padding: 10px 12px 10px 16px;
  font-size: 14px;
}
.btn--sm .icon-box {
  width: 22px;
  height: 22px;
}

/* solid teal pill (consent / secondary) */
.btn-pill {
  border: 0;
  border-radius: 999px;
  background: var(--brand-teal);
  color: #00232a;
  font-weight: 500;
  padding: 10px 22px;
  font-size: 14px;
  transition: filter var(--dur) ease;
}
.btn-pill:hover {
  filter: brightness(1.1);
}

/* inline arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: var(--body);
}
.arrow-link svg {
  width: 12px;
  height: 12px;
  color: var(--brand-teal);
  transition: transform var(--dur) ease;
}
.arrow-link:hover svg {
  transform: translate(2px, -2px);
}

/* ---------- Announcement bar ------------------------------------------- */
.announce {
  position: relative;
  z-index: 60;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  background: linear-gradient(
    90deg,
    rgba(207, 224, 247, 0.16),
    rgba(0, 13, 22, 0.2) 45%,
    rgba(246, 147, 255, 0.18)
  );
  border-bottom: 1px solid var(--line);
}
.announce a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.announce .icon-box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: var(--brand-teal);
  color: var(--surface-primary);
}
.announce .icon-box svg {
  width: 11px;
  height: 11px;
}

/* ---------- Header ------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(0, 13, 22, 0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: height var(--dur) ease, background var(--dur) ease,
    border-color var(--dur) ease;
}
.header.is-shrunk {
  height: 60px;
  background: rgba(0, 13, 22, 0.92);
  border-bottom-color: var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: 40px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.brand:hover {
  color: var(--text-primary);
}
.brand svg {
  width: 26px;
  height: 26px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--text-primary);
}
.nav .caret {
  width: 9px;
  height: 9px;
  color: var(--text-secondary);
  transition: transform var(--dur) ease;
}
/* Product / Resources mega-menu (reference has a deeper platform menu) */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-item.has-menu:hover .caret,
.nav-item.has-menu:focus-within .caret {
  transform: rotate(180deg);
}
.mega {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 320px;
  padding: 10px;
  background: rgba(4, 16, 24, 0.98);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) ease, transform var(--dur) ease,
    visibility var(--dur) ease;
  z-index: 60;
}
/* invisible bridge so the pointer can cross from label to menu */
.mega::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-item.has-menu:hover .mega,
.nav-item.has-menu:focus-within .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.mega a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid transparent;
}
.mega a:hover,
.mega a.is-current {
  background: var(--fill-4);
  border-color: var(--line);
  color: var(--text-primary);
}
.mega .mt {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.mega a.is-current .mt {
  color: var(--brand-teal);
}
.mega .md {
  font-size: 12px;
  color: var(--text-secondary);
}
/* mobile drawer sub-links (product children) */
.drawer .drawer-sub {
  font-size: 18px;
  color: var(--text-secondary);
  padding-left: 18px;
}
.header .spacer {
  flex: 1;
}
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-10);
  background: var(--fill-4);
  color: var(--text-primary);
  place-items: center;
}
.hamburger svg {
  width: 18px;
  height: 18px;
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  width: 100%;
  max-width: 100vw;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface-primary);
  padding: 90px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.drawer.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.drawer a {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.drawer .drawer-close {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-10);
  background: var(--fill-4);
  color: var(--text-primary);
}

/* ---------- Hero -------------------------------------------------------- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: min(78vh, 760px);
}
.hero-copy {
  padding-block: clamp(48px, 6vw, 96px);
  padding-right: 40px;
}
.hero h1 {
  margin-bottom: 28px;
}
.hero .lede {
  margin-bottom: 40px;
}
.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  border-left: 1px solid var(--line);
}
.field-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* floating callout labels over the particle field */
.callout {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: rgba(0, 13, 22, 0.72);
  border: 1px solid var(--border-10);
  padding: 4px 8px;
  white-space: nowrap;
  pointer-events: none;
}
.callout::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--brand-teal);
  background: rgba(166, 192, 232, 0.15);
}
.callout.c1 {
  top: 26%;
  right: 14%;
}
.callout.c1::before {
  left: -22px;
  bottom: -12px;
}
.callout.c2 {
  top: 58%;
  right: 6%;
}
.callout.c2::before {
  left: -20px;
  top: -14px;
}
.callout.c3 {
  top: 44%;
  left: 8%;
  color: var(--text-subdued);
}
.callout.c3::before {
  right: -20px;
  bottom: -12px;
}

/* POI stars — labels are positioned by JS to track a live star; the interactive
   ring/marker is drawn on the canvas, so the fixed CSS leader square is hidden. */
.callout.poi-live {
  transform: translateY(-50%);
  transition: opacity 0.25s ease;
}
.callout.poi-live::before {
  display: none;
}
.callout.poi-live:hover {
  border-color: var(--brand-teal);
  color: var(--text-primary);
}

/* POI detail panel — revealed when a star is "flown into" */
.poi-detail {
  position: absolute;
  left: clamp(16px, 6%, 56px);
  bottom: clamp(16px, 8%, 64px);
  width: min(320px, 74%);
  padding: 22px 22px 20px;
  background: rgba(6, 9, 18, 0.82);
  border: 1px solid var(--border-10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.45s var(--ease, ease), transform 0.45s var(--ease, ease);
  pointer-events: none;
  z-index: 4;
}
.poi-detail.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.poi-detail .poi-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-10);
  background: transparent;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.poi-detail .poi-close:hover {
  color: var(--text-primary);
  border-color: var(--brand-teal);
}
.poi-detail .poi-desig {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--brand-teal);
  margin-bottom: 10px;
}
.poi-detail .poi-eyebrow {
  margin-bottom: 8px;
}
.poi-detail .poi-title {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.poi-detail .poi-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* ---------- Logo strip -------------------------------------------------- */
.logostrip {
  border-block: 1px solid var(--line);
}
.logostrip .wrap {
  padding-block: 40px;
}
.logostrip .label {
  text-align: center;
  margin-bottom: 26px;
}
/* Experience strip — past-employer wordmarks (background, not clients) */
.explist {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
}
.explist .cell {
  display: grid;
  place-items: center;
  padding: 8px 12px;
  border-left: 1px solid var(--line);
  color: var(--text-subdued);
  transition: color var(--dur) ease;
}
.explist .cell:first-child {
  border-left: 0;
}
.explist .cell:hover {
  color: var(--brand-teal);
}
/* Official logo file, normalized to a monochrome starlight tone on the dark
   strip. Swap the filter for full colour if you'd rather keep brand colours. */
/* Logo files are pre-tinted to the accent (#cfe0f7) with transparency, so no
   CSS recolour is needed — just a muted resting opacity that lifts on hover.
   Per-logo heights balance wordmark lockups against icon-only marks. */
.explogo {
  height: 24px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity var(--dur) ease;
}
.explist .cell:hover .explogo {
  opacity: 1;
}
.explist .cell:nth-child(1) .explogo { height: 21px; }  /* Equativ (lockup) */
.explist .cell:nth-child(3) .explogo { height: 27px; }  /* Amexio Group (icon + 2-line lockup) */

/* Icon-only marks: show the logo AND the company name beside it. */
.explist .cell--named {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.cell--named .explogo {
  height: 24px;
}
.cell--named .expname {
  display: inline-block;
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--text-subdued);
}
/* Text wordmark fallback — shown only when no logo file loaded (img removed). */
.expname {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: none;
}
.explist .cell > .expname:only-child {
  display: block;
}

/* ---------- Feature row ------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.feature--rev .feature-media {
  order: -1;
}
.feature-copy h2 {
  margin-bottom: 24px;
}
.feature-copy .lede {
  margin-bottom: 36px;
}

/* metric block */
.metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 520px;
}
.metric .num {
  font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(120deg, var(--brand-teal), var(--brand-pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric .desc {
  color: var(--text-subdued);
  font-size: var(--lg);
  line-height: 1.35;
}

/* ---------- Console mockup (procedural, no images) --------------------- */
.console {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #0a1a25, #06121b);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-subdued);
  overflow: hidden;
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.console-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #223440;
}
.console-bar .title {
  margin-left: 8px;
  color: var(--text-secondary);
  font-size: 12px;
}
.console-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.console-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.015);
}
.console-row .k {
  color: var(--brand-teal);
}
.console-row .v {
  color: var(--text-subdued);
}
.tag {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.tag--blocked {
  color: #7ef0c0;
  background: rgba(56, 220, 150, 0.12);
  border: 1px solid rgba(56, 220, 150, 0.25);
}
.tag--critical {
  color: #ff9d9d;
  background: rgba(255, 90, 90, 0.12);
  border: 1px solid rgba(255, 90, 90, 0.28);
}
.tag--open {
  color: var(--brand-teal);
  background: rgba(166, 192, 232, 0.12);
  border: 1px solid rgba(166, 192, 232, 0.28);
}

/* node-link attack path graph */
.attackpath {
  display: grid;
  gap: 10px;
  padding: 8px 4px;
}
.attackpath .node {
  justify-self: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-subdued);
  position: relative;
}
.attackpath .node.crit {
  border-color: rgba(255, 90, 90, 0.4);
  color: #ffb3b3;
}
.attackpath .down {
  justify-self: center;
  color: var(--brand-teal);
  opacity: 0.6;
}

/* console figure with dotted-grid frame */
.mockup-frame {
  position: relative;
  padding: 40px;
  border: 1px solid var(--line);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* ---------- Large product dashboard mockup (platform hero) ------------- */
.dashboard {
  position: relative;
  display: grid;
  grid-template-columns: 210px 1fr 264px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #0a1a25, #060f17);
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, 0.9);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subdued);
  overflow: hidden;
  min-height: 460px;
}
.dash-side {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255, 255, 255, 0.015);
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 18px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.dash-brand svg {
  width: 20px;
  height: 20px;
}
.dash-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
}
.dash-nav svg {
  width: 15px;
  height: 15px;
  opacity: 0.8;
}
.dash-nav.is-active {
  background: rgba(166, 192, 232, 0.1);
  color: var(--brand-teal);
  border: 1px solid rgba(166, 192, 232, 0.22);
}
.dash-side .spacer {
  flex: 1;
}
.dash-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 8px 2px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
  color: var(--text-secondary);
}
.dash-user .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a6c0e8, #14213e);
  flex: 0 0 22px;
}
.dash-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dash-topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.dash-topbar .h {
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.dash-topbar .tabbar {
  display: flex;
  gap: 16px;
  margin-left: auto;
  color: var(--text-secondary);
}
.dash-topbar .tabbar .on {
  color: var(--brand-teal);
  border-bottom: 1px solid var(--brand-teal);
  padding-bottom: 3px;
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.dash-stat {
  background: #06121b;
  padding: 14px 18px;
}
.dash-stat .n {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.dash-stat .n.crit {
  color: #ff9d9d;
}
.dash-stat .l {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}
.dash-graph {
  position: relative;
  flex: 1;
  padding: 22px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
  min-height: 240px;
}
.dash-graph svg {
  width: 100%;
  height: 100%;
}
.dash-detail {
  border-left: 1px solid var(--line);
  padding: 16px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.012);
}
.dash-detail .did {
  color: var(--text-primary);
  font-size: 12.5px;
}
.dash-detail .drow {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.dash-detail .drow .k {
  color: var(--text-secondary);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dash-detail .drow .v {
  color: var(--text-subdued);
}
.dash-detail .drow .v.teal {
  color: var(--brand-teal);
}

/* stacked/angled consoles (article hero) */
.console-stack {
  position: relative;
  min-height: 420px;
}
.console-stack .console {
  position: absolute;
  width: 74%;
}
.console-stack .console.s1 {
  top: 40px;
  left: 0;
  transform: rotate(-4deg);
  opacity: 0.85;
}
.console-stack .console.s2 {
  top: 90px;
  left: 14%;
  transform: rotate(2deg);
  opacity: 0.92;
}
.console-stack .console.s3 {
  top: 10px;
  right: 0;
  transform: rotate(-1deg);
  z-index: 2;
}

/* ---------- Highlight-text section ------------------------------------- */
.highlight {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.highlight h2 {
  font-size: var(--h1);
}
/* word-by-word brighten: JS toggles .on per word */
.hl-word {
  color: rgba(255, 255, 255, 0.22);
  transition: color 0.4s ease;
}
.hl-word.on {
  color: var(--text-primary);
}
.highlight .side p {
  color: var(--text-subdued);
  font-size: var(--lg);
  line-height: 1.5;
  margin-bottom: 28px;
}

/* ---------- Media-tabs -------------------------------------------------- */
.tabs {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.tabs > *,
.hero-grid > *,
.feature > *,
.highlight > *,
.article-hero > *,
.cta-inner > *,
.blog-head > *,
.trust-grid > * {
  min-width: 0;
  max-width: 100%;
}
.tablist {
  display: flex;
  flex-direction: column;
}
.tab {
  position: relative;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0 24px 20px;
  color: var(--text-subdued);
}
.tab:last-child {
  border-bottom: 1px solid var(--line);
}
.tab .tab-title {
  font-size: var(--h6);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  margin-bottom: 6px;
  transition: color var(--dur) ease;
}
.tab .tab-desc {
  font-size: var(--body);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
}
.tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-teal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.tab.is-active .tab-title {
  color: var(--text-primary);
}
.tab.is-active .tab-desc {
  max-height: 120px;
  opacity: 1;
  margin-top: 4px;
}
.tab.is-active::before {
  transform: scaleY(1);
}
.tab-panels {
  position: relative;
  min-height: 340px;
}
.tab-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}
.tab-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Keep the product sequence framed while desktop scroll progress advances
   its panels. Mobile and reduced-motion use the direct click interaction. */
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .tabs-scene {
    min-height: calc(100vh + 1080px);
    padding-block: clamp(64px, 8vw, 120px) 0;
  }
  .tabs-scene > .wrap {
    position: sticky;
    top: calc(var(--announce-h) + 60px + 28px);
  }
  .tabs-scene .tab::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: calc(var(--tab-progress, 0) * 100%);
    background: var(--brand-teal-bright);
  }
}

/* ---------- Dropping cards --------------------------------------------- */
.dropcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dropcard {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--surface-secondary);
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.dropcard .num {
  font-family: var(--font-mono);
  color: var(--brand-teal);
  font-size: 13px;
  margin-bottom: auto;
}
.dropcard h3 {
  font-size: var(--h6);
  margin: 20px 0 10px;
}
.dropcard p {
  color: var(--text-subdued);
  font-size: var(--body);
}

/* ---------- Testimonials carousel -------------------------------------- */
.carousel {
  overflow: hidden;
  cursor: grab;
}
.carousel.dragging {
  cursor: grabbing;
}
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.quote {
  flex: 0 0 clamp(280px, 40%, 520px);
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--surface-secondary);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote .mark {
  font-family: var(--font-mono);
  color: var(--brand-teal);
  font-size: 28px;
  line-height: 0.5;
}
.quote p {
  font-size: var(--lg);
  line-height: 1.5;
}
.quote .who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 42px;
}
.quote .who .name {
  font-size: 14px;
  font-weight: 500;
}
.quote .who .role {
  font-size: 13px;
  color: var(--text-secondary);
}
.carousel-nav {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}
.carousel-nav button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-10);
  background: var(--fill-4);
  color: var(--text-primary);
  transition: background var(--dur) ease, color var(--dur) ease;
}
.carousel-nav button:hover {
  background: var(--fill-8);
  color: var(--brand-teal);
}
.carousel-nav svg {
  width: 15px;
  height: 15px;
}

/* ---------- Centre statement (platform hero) --------------------------- */
/* Tight top band: the headline and the product-dashboard band below it read
   together in the first viewport, mirroring the reference's immediate reveal. */
.centre {
  text-align: center;
  padding-block: clamp(44px, 5.5vw, 88px) clamp(32px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
}
.centre h1 {
  max-width: 24ch;
  margin: 0 auto 32px;
}
.centre .btn {
  margin-inline: auto;
}
/* dotted-grid product-mockup band sits directly under the statement */
.showcase {
  padding-block: clamp(32px, 4vw, 56px) clamp(56px, 8vw, 112px);
}

/* ---------- Long-form section choreography ---------------------------- */
.statement-section {
  min-height: clamp(560px, 68vw, 880px);
  display: grid;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(90deg, transparent calc(50% - .5px), var(--line) 50%, transparent calc(50% + .5px));
}
.statement-section h2 {
  max-width: 19ch;
  font-size: var(--h1);
}
/* Long-sentence statement (case studies through-line) — smaller, wider measure */
#through-line h2 {
  max-width: 26ch;
  font-size: var(--h2);
}
.statement-section .lede {
  margin-top: 30px;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}
.evidence-card {
  min-height: 420px;
  padding: clamp(28px, 4vw, 56px);
  background: var(--surface-primary);
  display: flex;
  flex-direction: column;
}
.evidence-card .eyebrow {
  margin-bottom: auto;
}
.evidence-card .evidence-value {
  font-size: clamp(3rem, 6vw, 6.5rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--brand-teal);
  margin: 64px 0 24px;
}
/* Word-based evidence values (case studies) — smaller, single-line so all three align */
.evidence-grid--words .evidence-value {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  white-space: nowrap;
}
.evidence-card h3 {
  font-size: var(--h6);
  margin-bottom: 14px;
}
.evidence-card p {
  color: var(--text-subdued);
  max-width: 34ch;
}
.workflow-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  border: 1px solid var(--line);
  min-height: 680px;
}
.workflow-copy {
  padding: clamp(36px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}
.workflow-copy h2 {
  max-width: 13ch;
  margin-top: 24px;
}
.workflow-steps {
  display: grid;
  align-content: stretch;
}
.workflow-step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  padding: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(166,192,232,.035), transparent 46%);
}
.workflow-step:last-child {
  border-bottom: 0;
}
.workflow-step .step-no {
  font-family: var(--font-mono);
  color: var(--brand-teal);
}
.workflow-step h3 {
  font-size: var(--h6);
  margin-bottom: 12px;
}
.workflow-step p {
  color: var(--text-subdued);
  max-width: 50ch;
}
.console-field {
  min-height: 720px;
  display: grid;
  place-items: center;
  padding: clamp(40px, 7vw, 110px);
  border-block: 1px solid var(--line);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
}
.console-field .mockup-frame {
  width: min(100%, 980px);
}

/* Article figures and pull-outs carry the long detail template's pacing. */
.article-body h3 {
  font-size: var(--h6);
  margin: 36px 0 14px;
}
.article-body ul {
  margin: 0 0 30px;
  border-top: 1px solid var(--line);
}
.article-body li {
  position: relative;
  padding: 16px 0 16px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--text-subdued);
  font-size: var(--lg);
}
.article-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 25px;
  width: 6px;
  height: 6px;
  border: 1px solid var(--brand-teal);
}
.article-pull {
  margin: 56px 0;
  padding: 40px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(166,192,232,.07), transparent 62%);
}
.article-pull p {
  color: var(--text-primary);
  font-size: var(--h5);
  line-height: 1.25;
  letter-spacing: -.02em;
  margin: 0;
}
.article-figure {
  margin: 56px 0;
  padding: 32px;
  border: 1px solid var(--line);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 14px 14px;
}
.article-figure figcaption {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.related-band {
  padding-block: clamp(88px, 10vw, 150px);
  border-top: 1px solid var(--line);
}
.related-band .section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 40px;
}
.related-band .section-head h2 {
  max-width: 12ch;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.related-card {
  min-height: 360px;
  padding: 32px;
  background: var(--surface-secondary);
  display: flex;
  flex-direction: column;
}
.related-card h3 {
  font-size: var(--h6);
  margin: auto 0 18px;
}
.related-card p {
  color: var(--text-subdued);
}

/* ---------- CTA band + footer ------------------------------------------ */
.cta-band {
  position: relative;
  padding-block: clamp(180px, 24vw, 320px) clamp(48px, 6vw, 88px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
/* particle horizon fills the band and sits behind the content */
.cta-horizon {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cta-horizon canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* horizon reads from the upper band, fading into the black content zone */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, #000 46%, transparent 78%);
}
.cta-band .wrap {
  position: relative;
  z-index: 1;
}
.cta-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.cta-lead h2 {
  max-width: 16ch;
  margin: 0 0 28px;
}
.cta-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  padding-bottom: 6px;
}
.cta-links .eyebrow {
  display: block;
  margin-bottom: 18px;
}
.cta-links ul li {
  margin-bottom: 12px;
}
.cta-links ul a {
  color: var(--text-subdued);
  font-size: 15px;
}
.cta-links ul a:hover {
  color: var(--brand-teal);
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--surface-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
}
.footer-col {
  padding: 48px 24px;
  border-left: 1px solid var(--line);
  min-height: 260px;
}
.footer-col:first-child {
  border-left: 0;
  padding-left: 0;
}
.footer-col .eyebrow {
  margin-bottom: 22px;
}
.footer-col ul li {
  margin-bottom: 14px;
}
.footer-col ul a {
  color: var(--text-subdued);
  font-size: 15px;
}
.footer-col ul a:hover {
  color: var(--brand-teal);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-brand p {
  color: var(--text-subdued);
  font-size: var(--body);
  max-width: 30ch;
}
.footer-bottom {
  border-top: 1px solid var(--line);
}
.footer-bottom .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ---------- Article template ------------------------------------------- */
.back-bar {
  border-bottom: 1px solid var(--line);
}
.back-bar .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 22px;
}
.back-bar .back-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-10);
  background: var(--fill-4);
  color: var(--brand-teal);
}
.back-bar .eyebrow {
  color: var(--text-primary);
}
.article-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.article-hero .col-copy {
  padding: clamp(40px, 5vw, 72px) 40px clamp(40px, 5vw, 72px)
    max(var(--gutter), calc((100vw - var(--wide-max)) / 2 + var(--gutter)));
  display: flex;
  flex-direction: column;
}
.article-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}
.article-hero h1 {
  font-size: clamp(2.125rem, 2.45vw, 2.75rem);
  max-width: 18ch;
  margin-bottom: auto;
}
.byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.byline .who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.byline .name {
  font-size: 15px;
  font-weight: 500;
}
.byline .role {
  font-size: 13px;
  color: var(--text-secondary);
}
.glyph-row {
  display: flex;
  gap: 14px;
  color: var(--text-secondary);
}
.glyph-row svg {
  width: 22px;
  height: 22px;
  opacity: 0.7;
}
.article-hero .col-media {
  position: relative;
  border-left: 1px solid var(--line);
  padding: 40px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 16px 16px;
}
/* two-column reading layout: sticky TOC/similar rail + narrow body */
.article-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, var(--narrow-max));
  gap: clamp(40px, 6vw, 96px);
  justify-content: center;
  padding-block: clamp(48px, 6vw, 88px);
}
.article-aside {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.article-aside .aside-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 18px;
}
.toc ul li {
  margin-bottom: 14px;
}
.toc a {
  display: block;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.35;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.toc a:hover,
.toc a.is-active {
  color: var(--text-primary);
  border-left-color: var(--brand-teal);
}
.similar .item {
  display: block;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

/* ---- homepage section rail (scroll-spy) ------------------------------ */
.sectionrail {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  /* sit in the left margin when there's room; pin near the edge otherwise */
  left: max(28px, calc((100vw - var(--wide-max)) / 2 - 172px));
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  pointer-events: none;
}
.sectionrail.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.sectionrail ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
/* the connecting track line running through the dots */
.sectionrail ul::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 15px;
  bottom: 15px;
  width: 1px;
  background: var(--line);
  z-index: 0;
}
.sectionrail li {
  margin: 0;
}
.sectionrail a {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  color: var(--text-secondary);
  opacity: 0.55;
  text-shadow: 0 1px 10px var(--surface-primary), 0 0 4px var(--surface-primary);
  transition: color var(--dur) ease, opacity var(--dur) ease;
}
.sectionrail a::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: var(--surface-primary);
  transition: background var(--dur) ease, border-color var(--dur) ease,
    box-shadow var(--dur) ease, transform var(--dur) ease;
}
.sectionrail a:hover {
  opacity: 0.9;
  color: var(--text-primary);
}
.sectionrail a.is-active {
  opacity: 1;
  color: var(--brand-teal-bright);
}
.sectionrail a.is-active::before {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  box-shadow: 0 0 10px 1px rgba(166, 192, 232, 0.6);
  transform: scale(1.06);
}
/* land section tops below the sticky header when jumped to */
#discovery,
#engineering,
#how-it-works,
#difference,
#outcomes,
#why,
#partner,
#field {
  scroll-margin-top: calc(var(--nav-h) + var(--announce-h) + 24px);
}
/* desktop-only: hide where the margin is too tight to avoid overlapping content */
@media (max-width: 1399px) {
  .sectionrail {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sectionrail,
  .sectionrail a,
  .sectionrail a::before {
    transition: none;
  }
}
.similar .item:last-child {
  border-bottom: 1px solid var(--line);
}
.similar .item .tag-eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-teal);
}
.similar .item h4 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 8px;
  color: var(--text-primary);
}
.similar .item:hover h4 {
  color: var(--brand-teal);
}
.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.share-row .lbl {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.share-row a,
.share-row button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-10);
  background: var(--fill-4);
  color: var(--text-subdued);
  padding: 0;
  font: inherit;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.share-row a:hover,
.share-row button:hover {
  color: var(--brand-teal);
  border-color: var(--brand-teal);
}
.share-row a svg,
.share-row button svg {
  width: 15px;
  height: 15px;
}
.article-body {
  max-width: var(--narrow-max);
  padding-block: 0;
}
.article-body h2 {
  font-size: var(--h4);
  margin: 44px 0 18px;
}
.article-body p {
  color: var(--text-subdued);
  font-size: var(--lg);
  line-height: 1.65;
  margin-bottom: 22px;
}
.article-body p:first-of-type {
  color: var(--text-primary);
  font-size: var(--xl);
}
/* Inline code + fenced code blocks for deep-dive engineering posts. */
.article-body :not(pre) > code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  color: #cfe0f7;
  white-space: nowrap;
}
.code-figure {
  margin: 44px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #06090f;
}
.code-figure .code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.code-figure .code-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #223440;
}
.code-figure .code-bar .path {
  margin-left: 8px;
}
.code-figure pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #c6d2dc;
  -webkit-text-size-adjust: 100%;
}
.code-figure pre .cm {
  color: #5a6c75;
}
.code-figure pre .kw {
  color: #7aa2ff;
}
.code-figure pre .st {
  color: #7ef0c0;
}
.code-figure pre .fn {
  color: #a6c0e8;
}
.code-figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.012);
}

/* ---------- Blog index -------------------------------------------------- */
/* two-column intro: big title left, supporting lede right */
.blog-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
.blog-head .lede {
  padding-bottom: 8px;
}

/* filter tab row + result count */
.blog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-tab {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 14px;
  transition: color var(--dur) ease, border-color var(--dur) ease,
    background var(--dur) ease;
}
.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-10);
}
.filter-tab.is-active {
  color: var(--surface-primary);
  background: var(--brand-teal);
  border-color: var(--brand-teal);
}
.result-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.pager .page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subdued);
  background: transparent;
  border: 1px solid var(--line);
  transition: color var(--dur) ease, border-color var(--dur) ease,
    background var(--dur) ease;
}
.pager .page-btn svg {
  width: 13px;
  height: 13px;
}
.pager .page-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-10);
}
.pager .page-btn.is-active {
  color: var(--surface-primary);
  background: var(--brand-teal);
  border-color: var(--brand-teal);
}
.pager .page-btn[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}
.pager .ellipsis {
  color: var(--text-secondary);
  padding: 0 4px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.post-card.is-hidden {
  display: none;
}
.post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--surface-secondary);
  transition: border-color var(--dur) ease, transform var(--dur) ease;
}
.post-card:hover {
  border-color: var(--brand-teal);
  color: var(--text-primary);
  transform: translateY(-3px);
}
.post-thumb {
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--line);
  background-color: var(--surface-primary);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 14px 14px;
  position: relative;
  overflow: hidden;
}
/* Per-item media contracts use materially different crops and surfaces. */
.post-thumb .thumb-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.post-thumb--release {
  background-color: #04141d;
}
.post-thumb--identity {
  background-color: #0a0416;
}
.post-thumb--code {
  background-color: #07101a;
}
.post-thumb--orbit {
  background-color: #04141d;
}
.post-thumb--signal {
  background-color: #0a0416;
}
.post-thumb--terminal {
  background-color: #041016;
}
.post-thumb .thumb-art {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}
.post-card:hover .post-thumb--release .thumb-art { transform: scale(1.035) translate3d(-4px, -2px, 0); }
.post-card:hover .post-thumb--identity .thumb-art { transform: scale(1.045); }
.post-card:hover .post-thumb--code .thumb-art { transform: scale(1.025) translate3d(-7px, 0, 0); }
.post-card:hover .post-thumb--orbit .thumb-art { transform: scale(1.03) rotate(2deg); }
.post-card:hover .post-thumb--signal .thumb-art { transform: scale(1.035) translate3d(0, -4px, 0); }
.post-card:hover .post-thumb--terminal .thumb-art { transform: scale(1.04); }
.post-thumb .badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-teal);
  background: rgba(0, 13, 22, 0.8);
  border: 1px solid var(--border-10);
  padding: 3px 8px;
}
.post-card .body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.post-card .meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}
.post-card h3 {
  font-size: var(--h6);
}
.post-card .who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}
.post-card .who .name {
  font-size: 13px;
}

/* subpage hero: lede + button stacked in the right column of .blog-head */
.side-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 6px;
}

/* trust/security controls grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.trust-card {
  background: var(--surface-secondary);
  padding: clamp(26px, 3vw, 44px);
}
.trust-card .eyebrow {
  display: block;
  margin-bottom: 16px;
}
.trust-card h3 {
  font-size: var(--h6);
  margin-bottom: 12px;
}
.trust-card p {
  color: var(--text-subdued);
  font-size: var(--body);
  line-height: 1.5;
}

/* page intro block for subpages */
.page-intro {
  padding-block: clamp(64px, 9vw, 130px) clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.page-intro .eyebrow {
  margin-bottom: 20px;
  display: block;
}
.page-intro h1 {
  max-width: 18ch;
  margin-bottom: 24px;
}

/* reveal-on-scroll (only hidden once JS confirms it can reveal them) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive -------------------------------------------------- */
@media (max-width: 980px) {
  :root {
    --gutter: 20px;
  }
  .nav {
    display: none;
  }
  .header .cta-desktop {
    display: none;
  }
  .hamburger {
    display: grid;
  }
  .hero-grid,
  .feature,
  .highlight,
  .tabs,
  .article-hero,
  .cta-inner,
  .blog-head,
  .trust-grid,
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid,
  .feature,
  .highlight,
  .tabs,
  .article-hero,
  .cta-inner,
  .blog-head,
  .trust-grid,
  .wrap {
    min-width: 0;
    max-width: 100%;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    max-width: 100%;
    overflow-wrap: break-word;
  }
  .side-cta {
    gap: 24px;
  }
  .cta-band {
    padding-block: clamp(140px, 40vw, 220px) 56px;
  }
  .cta-inner {
    gap: 40px;
  }
  .feature--rev .feature-media {
    order: 0;
  }
  .hero-media {
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 360px;
  }
  .highlight h2 {
    font-size: var(--h2);
  }
  .dropcards,
  .blog-grid,
  .evidence-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .statement-section {
    min-height: 620px;
    background-image: none;
  }
  .evidence-card {
    min-height: 300px;
  }
  .workflow-grid {
    min-height: 0;
  }
  .workflow-copy {
    min-height: 460px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .console-field {
    min-height: 560px;
    padding-inline: var(--gutter);
  }
  .related-band .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .explist {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 20px;
  }
  .explist .cell:nth-child(3n + 1) {
    border-left: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col {
    border-left: 0;
    padding-inline: 0;
    min-height: 0;
  }
  .article-hero .col-media {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .console-stack .console {
    width: 88%;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .article-aside {
    position: static;
    max-height: none;
    order: 2;
    overflow: visible;
  }
  .dashboard {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .dash-side {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 4px 6px;
  }
  .dash-brand {
    padding: 4px 8px;
    width: 100%;
  }
  .dash-side .spacer,
  .dash-user {
    display: none;
  }
  .dash-nav {
    padding: 6px 10px;
    font-size: 11px;
  }
  .dash-detail {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .footer-col {
    padding-block: 28px;
  }
  .footer-col .eyebrow {
    margin-bottom: 16px;
  }
  .footer-col ul li {
    margin-bottom: 10px;
  }
  .footer-col ul a {
    font-size: 14px;
  }
  .footer-bottom .wrap {
    align-items: flex-start;
    gap: 12px;
    padding-block: 18px;
  }
  .cta-links {
    gap: 20px;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .byline {
    flex-direction: column;
    align-items: flex-start;
  }
  .workflow-step {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .article-pull,
  .article-figure {
    margin-block: 40px;
    padding: 24px;
  }
}

/* ---------- Reduced motion --------------------------------------------- */
@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hl-word {
    color: var(--text-primary);
  }
}

/* ---- contact modal + form ------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--surface-secondary);
  border: 1px solid var(--border-10);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: translateY(12px);
  transition: transform 0.3s ease;
}
.modal.is-open .modal-card {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--border-10);
  background: var(--fill-4);
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--dur) ease, border-color var(--dur) ease;
}
.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--brand-teal);
}
.modal-close svg {
  width: 18px;
  height: 18px;
}
.modal-card h2 {
  font-size: var(--h5);
  margin: 14px 0 8px;
}
.modal-sub {
  color: var(--text-subdued);
  font-size: var(--body);
  line-height: 1.5;
  margin-bottom: 24px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form .field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.contact-form label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.contact-form label .opt {
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.6;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--body);
  color: var(--text-primary);
  background: var(--fill-4);
  border: 1px solid var(--border-10);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}
.contact-form textarea {
  resize: vertical;
  min-height: 96px;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(166, 192, 232, 0.16);
}
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.contact-form .btn {
  margin-top: 6px;
  justify-content: center;
  font-family: var(--font-sans);
  cursor: pointer;
}
.contact-form .btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}
.form-status {
  font-size: 14px;
  line-height: 1.4;
  min-height: 1.2em;
  margin: 2px 0 0;
}
.form-status.is-error {
  color: #ff9b9b;
}
.form-status.is-success {
  color: var(--brand-teal-bright);
}
@media (max-width: 560px) {
  .modal-card {
    padding: 28px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal,
  .modal-card {
    transition: none;
  }
}

/* =========================================================================
   Contact page — email form + inline Cal.com calendar (contact.html)
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-panel > .eyebrow {
  margin-bottom: 12px;
}
.contact-panel h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 10px;
}
.contact-panel-sub {
  color: var(--text-subdued);
  font-size: var(--body);
  line-height: 1.5;
  margin: 0 0 24px;
  max-width: 46ch;
}
.cal-embed {
  min-height: 640px;
  border: 1px solid var(--border-10);
  border-radius: 14px;
  overflow: hidden;
  background: var(--fill-4);
}
.cal-embed iframe {
  display: block;
  width: 100%;
}
@media (max-width: 940px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .cal-embed {
    min-height: 560px;
  }
}

/* =========================================================================
   Voilae try-on — interactive case-study demo (case-studies.html)
   ========================================================================= */
.tryon {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* ---- stage / before-after viewport ---------------------------------- */
.tryon-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #06121b;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  user-select: none;
  outline: none;
}
.tryon-viewport:focus-visible {
  box-shadow: 0 0 0 2px var(--focus), 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.tryon[data-state="result"] .tryon-viewport {
  cursor: ew-resize;
}
.tryon-cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.tryon-clip {
  position: absolute;
  inset: 0;
}
/* idle: the base figure covers the whole frame */
.tryon[data-state="idle"] .tryon-clip {
  clip-path: none !important;
}

/* divider + handle (result only) */
.tryon-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-1px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) ease;
}
.tryon-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #06121b;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.tryon[data-state="result"] .tryon-divider {
  opacity: 1;
}

/* corner labels (result only) */
.tryon-vtag {
  position: absolute;
  top: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.tryon-vtag--after {
  left: 12px;
  color: #06121b;
  background: var(--brand-teal-bright);
}
.tryon-vtag--before {
  right: 12px;
  color: #06121b;
  background: #fff;
}
.tryon[data-state="result"] .tryon-vtag {
  opacity: 1;
}

/* loading scan overlay */
.tryon-scan {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(6, 18, 27, 0.55), rgba(6, 18, 27, 0.55));
  transition: opacity var(--dur) ease;
}
.tryon-scan::before {
  /* dashed fitting box */
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 14%;
  bottom: 18%;
  border: 1.5px dashed var(--brand-teal);
  border-radius: 8px;
  animation: tryon-pulse 1.1s ease-in-out infinite;
}
.tryon-scan::after {
  /* sweeping scan line */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, var(--brand-teal-bright), transparent);
  box-shadow: 0 0 14px 2px rgba(207, 224, 247, 0.5);
  animation: tryon-scanline 1.4s linear infinite;
}
.tryon[data-state="loading"] .tryon-scan {
  opacity: 1;
}
@keyframes tryon-scanline {
  0% { top: 8%; }
  100% { top: 88%; }
}
@keyframes tryon-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* idle hint */
.tryon-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: rgba(6, 18, 27, 0.72);
  border: 1px solid var(--border-10);
  padding: 7px 13px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.tryon[data-state="idle"] .tryon-hint {
  opacity: 1;
}

/* ---- panel ----------------------------------------------------------- */
.tryon-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tryon-product {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.tryon-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-teal);
}
.tryon-name {
  font-size: var(--xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.tryon-sub {
  font-size: 13px;
  color: var(--text-subdued);
}

/* garment picker */
.tryon-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tryon-thumb {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--fill-4);
  cursor: pointer;
  transition: border-color var(--dur) ease, transform var(--dur) ease,
    box-shadow var(--dur) ease;
}
.tryon-thumb img,
.tryon-thumb canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.tryon-thumb canvas {
  background: linear-gradient(180deg, #0d1020, #080a14);
}
.tryon-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--border-10);
}
.tryon-thumb[aria-selected="true"] {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 1px var(--brand-teal), 0 0 18px -4px var(--brand-teal);
}

/* telemetry console — inherits .console; a touch tighter here */
.tryon-tel {
  margin-top: 2px;
}
.tryon-tel .console-body {
  gap: 8px;
  padding: 14px 16px;
}

.tryon-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.tryon-next {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.tryon[data-state="result"] .tryon-next {
  display: inline-flex;
}
.tryon-report {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--brand-teal-bright);
  margin: 0;
  min-height: 1.5em;
}
.tryon-report strong {
  color: #fff;
  font-weight: 500;
}
.tryon-foot {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-subdued);
  margin: 0;
}
.tryon-foot a {
  color: var(--brand-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 980px) {
  .tryon {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .tryon-stage {
    max-width: 340px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tryon-scan::before,
  .tryon-scan::after {
    animation: none;
  }
}

/* =====================================================================
   modr part-scan demo — shares the .tryon grid language, tells its own
   "never guesses" (confidence) story. Landscape bench viewport, a
   detection box on result, and a confidence meter.
   ===================================================================== */
.scan {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.scan-body {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* ---- mode toggle (segmented) ---------------------------------------- */
.scan-modes {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--fill-4);
  align-self: start;
}
.scan-mode {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-subdued);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color var(--dur) ease, background var(--dur) ease;
}
.scan-mode:hover { color: var(--text-primary); }
.scan-mode[aria-selected="true"] {
  color: #06121b;
  background: var(--brand-teal-bright);
}

/* panels swap with the active mode */
.scan[data-mode="part"] [data-scan-panel="diagram"],
.scan[data-mode="diagram"] [data-scan-panel="part"] { display: none; }
/* part overlay box only in part mode; diagram boxes only in diagram mode */
.scan[data-mode="diagram"] .scan-box { display: none; }
.scan[data-mode="part"] .scan-dboxes { display: none; }

/* ---- stage / viewport ------------------------------------------------ */
.scan-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #06121b;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  user-select: none;
}
.scan-cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* detection bounding box (result only) */
.scan-box {
  position: absolute;
  z-index: 3;
  border: 1.5px solid var(--brand-teal-bright);
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(6, 18, 27, 0.6), 0 0 16px -2px var(--brand-teal);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity var(--dur) ease, transform var(--dur) ease;
  pointer-events: none;
}
.scan[data-state="result"] .scan-box {
  opacity: 1;
  transform: scale(1);
}
.scan[data-verdict="low"] .scan-box {
  border-style: dashed;
  border-color: #e6a23c;
  box-shadow: 0 0 0 1px rgba(6, 18, 27, 0.6), 0 0 16px -2px rgba(230, 162, 60, 0.8);
}
.scan-boxlabel {
  position: absolute;
  left: -1.5px;
  top: -21px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 4px;
  color: #06121b;
  background: var(--brand-teal-bright);
}
.scan[data-verdict="low"] .scan-boxlabel {
  background: #e6a23c;
}

/* reticle / scan overlay (loading) — reuses tryon-scan keyframes */
.scan-reticle {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(rgba(6, 18, 27, 0.5), rgba(6, 18, 27, 0.5));
  transition: opacity var(--dur) ease;
}
.scan-reticle::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  top: 12%;
  bottom: 16%;
  border: 1.5px dashed var(--brand-teal);
  border-radius: 8px;
  animation: tryon-pulse 1.1s ease-in-out infinite;
}
.scan-reticle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, var(--brand-teal-bright), transparent);
  box-shadow: 0 0 14px 2px rgba(207, 224, 247, 0.5);
  animation: tryon-scanline 1.4s linear infinite;
}
.scan[data-state="loading"] .scan-reticle {
  opacity: 1;
}

.scan-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: rgba(6, 18, 27, 0.72);
  border: 1px solid var(--border-10);
  padding: 7px 13px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.scan[data-state="idle"] .scan-hint {
  opacity: 1;
}

/* ---- panel ----------------------------------------------------------- */
.scan-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.scan-product {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.scan-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-teal);
}
.scan-name {
  font-size: var(--xl);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.scan-sub {
  font-size: 13px;
  color: var(--text-subdued);
}

/* part picker */
.scan-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.scan-thumb {
  width: 64px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0b0e1c;
  cursor: pointer;
  transition: border-color var(--dur) ease, transform var(--dur) ease,
    box-shadow var(--dur) ease;
}
.scan-thumb canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.scan-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--border-10);
}
.scan-thumb[aria-selected="true"] {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 1px var(--brand-teal), 0 0 18px -4px var(--brand-teal);
}

/* confidence meter + verdict */
.scan-meter {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.scan-meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subdued);
}
.scan-meter-head .val {
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: 0;
}
.scan-meter-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--fill-4);
  overflow: hidden;
}
/* the 60% confidence floor marker */
.scan-meter-track::after {
  content: "";
  position: absolute;
  left: 60%;
  top: -2px;
  bottom: -2px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--border-10) 0 3px, transparent 3px 6px);
}
.scan-meter-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--brand-teal-bright);
  transition: width 0.25s ease;
}
.scan-meter-fill[data-low="true"] {
  background: #e6a23c;
}
.scan-verdict {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-subdued);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.scan-verdict::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-subdued);
}
.scan-verdict--high { color: var(--brand-teal-bright); }
.scan-verdict--high::before { background: var(--brand-teal-bright); }
.scan-verdict--low { color: #e6a23c; }
.scan-verdict--low::before { background: #e6a23c; }

/* telemetry console — inherits .console */
.scan-tel .console-body {
  gap: 8px;
  padding: 14px 16px;
}

.scan-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.scan-next {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0;
}
.scan[data-state="result"] .scan-next {
  display: inline-flex;
}
.scan-report {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--brand-teal-bright);
  margin: 0;
  min-height: 3em;
}
.scan[data-verdict="low"] .scan-report {
  color: #f0c07a;
}
.scan-report strong {
  color: #fff;
  font-weight: 500;
}
.scan-foot {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-subdued);
  margin: 0;
}
.scan-foot a {
  color: var(--brand-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- diagram mode: detection boxes over the canvas ------------------ */
.scan-dboxes {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.scan-dbox {
  position: absolute;
  border: 1.5px solid rgba(207, 224, 247, 0.55);
  border-radius: 3px;
  background: rgba(122, 162, 255, 0.08);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.28s ease, transform 0.28s ease,
    border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
/* staggered reveal once the analysis resolves */
.scan-dboxes.is-shown .scan-dbox { opacity: 1; transform: scale(1); }
.scan-dboxes.is-shown .scan-dbox:nth-child(1) { transition-delay: 0.05s; }
.scan-dboxes.is-shown .scan-dbox:nth-child(2) { transition-delay: 0.14s; }
.scan-dboxes.is-shown .scan-dbox:nth-child(3) { transition-delay: 0.23s; }
.scan-dboxes.is-shown .scan-dbox:nth-child(4) { transition-delay: 0.32s; }
.scan-dboxes.is-shown .scan-dbox:nth-child(5) { transition-delay: 0.41s; }
.scan-dbox-label {
  position: absolute;
  left: -1.5px;
  top: -17px;
  min-width: 15px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 3px;
  color: #06121b;
  background: rgba(207, 224, 247, 0.7);
}
/* step hover: light the referenced parts, dim the rest */
.scan-dbox.is-lit {
  border-color: var(--brand-teal-bright);
  background: rgba(122, 162, 255, 0.2);
  box-shadow: 0 0 14px -2px var(--brand-teal);
}
.scan-dbox.is-lit .scan-dbox-label { background: var(--brand-teal-bright); }
.scan-dbox.is-dim { opacity: 0.28; }

/* ---- diagram mode: repair steps ------------------------------------- */
.scan-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;   /* takes no space until results resolve */
  flex-direction: column;
  gap: 8px;
}
.scan-steps.is-shown { display: flex; animation: scan-fade 0.4s ease both; }
.scan-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--fill-4);
  cursor: default;
  outline: none;
  transition: border-color var(--dur) ease, background var(--dur) ease;
}
.scan-step:hover,
.scan-step:focus-visible {
  border-color: var(--brand-teal);
  background: rgba(122, 162, 255, 0.08);
}
.scan-step-n {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  color: var(--brand-teal-bright);
  background: rgba(122, 162, 255, 0.14);
}
.scan-step-t {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-primary);
}

/* ---- diagram mode: parts glossary ----------------------------------- */
.scan-gloss {
  display: none;   /* takes no space until results resolve */
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--fill-4);
}
.scan-gloss.is-shown { display: flex; animation: scan-fade 0.4s ease both; }
@keyframes scan-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.scan-gloss-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-subdued);
}
.scan-gloss-k {
  flex: none;
  width: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-teal);
}
.scan-gloss-v strong { color: var(--text-primary); font-weight: 500; }

@media (max-width: 980px) {
  .scan-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .scan-stage {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-reticle::before,
  .scan-reticle::after {
    animation: none;
  }
  .scan-dbox { transition: opacity 0.01s, border-color 0.15s ease, background 0.15s ease; }
  .scan-steps.is-shown, .scan-gloss.is-shown { animation: none; }
}

/* =========================================================================
   AdFlow demo — mock news page + AdFlow network inspector
   ========================================================================= */
.adflow {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* ---- stage: a little browser showing a news page -------------------- */
.adflow-browser {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #06121b;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.adflow-omni {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.adflow-omni .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #223440;
}
.adflow-url {
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  background: var(--fill-4);
  border: 1px solid var(--line);
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adflow-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #06121b;
  user-select: none;
}
.adflow[data-state="idle"] .adflow-viewport { cursor: pointer; }
.adflow-cv {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
/* the small "Advertisement" label floating above the ad slot */
.adflow-slotlabel {
  position: absolute;
  top: 11%;
  right: 3%;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b7690;
}
.adflow[data-state="idle"] .adflow-slotlabel,
.adflow[data-state="loading"] .adflow-slotlabel { color: #8b95ad; }

/* capture scanline while loading */
.adflow-scan {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(rgba(6, 18, 27, 0.28), rgba(6, 18, 27, 0.28));
  transition: opacity var(--dur) ease;
}
.adflow-scan::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, var(--brand-teal-bright), transparent);
  box-shadow: 0 0 14px 2px rgba(207, 224, 247, 0.5);
  animation: tryon-scanline 1.4s linear infinite;
}
.adflow[data-state="loading"] .adflow-scan { opacity: 1; }

.adflow-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  background: rgba(6, 18, 27, 0.72);
  border: 1px solid var(--border-10);
  padding: 7px 13px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--dur) ease;
}
.adflow[data-state="idle"] .adflow-hint,
.adflow[data-state="loading"] .adflow-hint { opacity: 1; }

/* ---- panel: the inspector ------------------------------------------- */
.adflow-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adflow-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.adflow-brand {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-teal);
}
.adflow-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-subdued);
}

/* the captured-request waterfall */
.adflow-flow {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 60px;
  max-height: 264px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-10) transparent;
}
.adflow-flow::-webkit-scrollbar { width: 6px; }
.adflow-flow::-webkit-scrollbar-thumb { background: var(--border-10); border-radius: 3px; }
.adflow-flow::-webkit-scrollbar-track { background: transparent; }
.adflow-req {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--text-subdued);
  border-radius: 6px;
  background: var(--fill-4);
  opacity: 0;
  transform: translateX(-7px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.adflow-req.is-in { opacity: 1; transform: none; }
.adflow-req-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-subdued);
}
.adflow-req-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.adflow-req-vendor {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
}
.adflow-req-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-subdued);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.adflow-req-price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}
.adflow-reqtag { margin-left: 0; flex: none; }
.adflow-req-ms {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-subdued);
  min-width: 40px;
  text-align: right;
}
.adflow-req.is-win {
  border-left-color: var(--brand-teal-bright);
  background: rgba(56, 220, 150, 0.06);
  box-shadow: inset 0 0 0 1px rgba(56, 220, 150, 0.15);
}
.adflow-req.is-issue {
  border-left-color: #F59E0B;
  background: rgba(245, 158, 11, 0.06);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.18);
}

.adflow-tel .console-body { gap: 8px; padding: 14px 16px; }

/* ---- AI action + streamed summary ----------------------------------- */
.adflow-ai {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.adflow-report {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-subdued);
  margin: 0;
}
.adflow-report:empty { display: none; }
.adflow-report strong { color: #fff; font-weight: 500; }
.adflow-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--brand-teal-bright);
  animation: adflow-blink 0.9s step-end infinite;
}
@keyframes adflow-blink { 50% { opacity: 0; } }

.adflow-foot {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-subdued);
  margin: 0;
}
.adflow-foot a {
  color: var(--brand-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 980px) {
  .adflow {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .adflow-stage {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .adflow-scan::after { animation: none; }
  .adflow-req { transition: opacity 0.01s; }
  .adflow-cursor { animation: none; }
}
