/* Static demo presentation. Content, routes and the CMS snapshot remain unchanged. */
:root {
  --header-height: 5.375rem;
  --header-offset: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 1px);
  --gutter: max(clamp(1.25rem, 3.2vw, 3.75rem), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
}
html { scroll-padding-top: calc(var(--header-offset) + 1rem); }
.site-header {
  background: #1d1e20;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
.header-inner {
  width: 100%;
  min-height: var(--header-height);
  grid-template-columns: minmax(12.5rem, 1fr) auto minmax(12.5rem, 1fr);
  align-items: stretch;
  gap: 0;
  padding-inline: 0;
  border-inline: 0;
}
.brand { width: 15.75rem; max-width: 100%; padding-inline: clamp(1.25rem, 3.2vw, 3rem); border-right: 1px solid var(--line-soft); justify-self: start; }
.brand img { width: 9.75rem; }
.site-nav { justify-self: center; justify-content: center; gap: 0; border-right: 1px solid var(--line-soft); }
.nav-menu > summary {
  min-height: var(--header-height);
  padding-inline: 1.65rem;
  border-left: 1px solid var(--line-soft);
  font-size: .94rem;
  font-weight: 400;
  white-space: nowrap;
}
.nav-menu > summary span {
  color: var(--accent);
  font-size: .85rem;
  transform: none;
}
.nav-menu[open] > summary span { transform: rotate(45deg); }
.nav-menu > summary:is(:hover, :focus-visible), .nav-menu[open] > summary {
  background: #27282b;
  color: white;
}
.header-action {
  width: 15.75rem;
  max-width: 100%;
  justify-self: end;
  min-height: var(--header-height);
  padding-inline: 1.65rem;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  gap: 2rem;
  background: transparent;
  color: var(--text);
  font-size: .94rem;
  font-weight: 400;
  white-space: nowrap;
}
.header-action:is(:hover, :focus-visible) { background: #27282b; color: white; }
.mega-menu {
  left: 50%;
  right: auto;
  width: min(80rem, calc(100vw - 3rem));
  transform: translateX(-50%);
  max-height: calc(100svh - 6rem);
  border-top: 2px solid #8e6bd0;
  border-radius: 0 0 6px 6px;
  background: #1c1d20;
  overscroll-behavior: contain;
}
.mega-overview { min-height: 3.75rem; padding-inline: 1.75rem; background: #232428; }
.mega-overview:is(:hover, :focus-visible) { background: #2c2638; }
.mega-groups section { padding: 1.5rem 1.75rem 1.75rem; }
.mega-groups h2 { color: #ad96d6; font-size: .7rem; }
.mega-groups a { padding: .8rem .65rem; border-top: 0; border-radius: 3px; color: #dedde2; }
.mega-groups a:is(:hover, :focus-visible) { background: #2a2730; color: white; }

/* A single full-bleed scene and a readable statement, matching the approved hero. */
.hero-video {
  height: calc(100vh - var(--header-offset));
  height: calc(100svh - var(--header-offset));
  min-height: 0;
}
.hero-stage {
  position: relative;
  top: 0;
  height: 100%;
  min-height: inherit;
  padding-left: max(clamp(1.5rem, 9.5vw, 10rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.5rem, 9.5vw, 10rem), env(safe-area-inset-right, 0px));
  place-items: center start;
}
.hero-stage::before {
  background: linear-gradient(180deg, rgb(4 8 15 / .18), rgb(4 8 15 / .12) 40%, rgb(3 5 12 / .65));
  opacity: 1;
}
.hero-stage::after {
  border: 0;
  background: linear-gradient(90deg, rgb(3 7 13 / .18), transparent 80%);
}
.hero-reel-video { transform: none; filter: saturate(.8) contrast(1.06) brightness(.82); }
.hero .hero-statement {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 70rem;
  margin: 0;
  color: #f5f5f1;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(2.75rem, 5.8vw, 6rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .94;
  text-wrap: initial;
  overflow-wrap: normal;
  text-shadow: 0 2px 20px rgb(0 0 0 / .12);
  opacity: calc(1 - var(--hero-exit, 0));
  transform: translate3d(0, calc(-3.5rem * var(--hero-exit, 0)), 0);
  filter: blur(calc(3px * var(--hero-exit, 0)));
}
.hero-statement span { display: block; }
.hero-video-label {
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: var(--gutter);
}

/* Shared editorial rhythm: quieter rules, shorter reading widths, fewer giant gaps. */
body:not([data-page-family='home'])::before { background: none; }
.article-hero { position: relative; overflow: hidden; isolation: isolate; }
.article-hero .breadcrumbs { margin-bottom: 3.5rem; }
.article-hero h1 { font-size: clamp(2.5rem, 4.8vw, 4.75rem); max-width: 22ch; }
.article-hero .lead { max-width: 65ch; font-size: clamp(1rem, 1.25vw, 1.15rem); }
.article-content > section { padding-block: clamp(3rem, 5vw, 5rem); }
.article-content > section:nth-of-type(even) { background: rgb(255 255 255 / .018); }
.article-content .content-groups-grid { border: 0; gap: 1rem; }
.article-content .content-groups-grid .content-group {
  border: 1px solid var(--line-soft);
  border-top-color: #68616f;
  background: #202124;
}
.article-content .content-groups-grid .content-group:last-child:nth-child(odd) { grid-column: auto; }
.article-content .content-groups-grid .content-group:only-child { grid-column: 1 / -1; }
.article-content .content-list li { padding-block: .55rem; }
.article-index { top: 6rem; }

/* Products: a compact technical masthead, horizontal chapter navigation, broad cards. */
[data-page-family='product'] .article-hero { padding-right: 32%; background: #17191c; }
[data-page-family='product'] .article-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 23%;
  height: 48%;
  right: 5%;
  top: 31%;
  border: 1px solid #655977;
  background: repeating-linear-gradient(0deg, transparent 0 34px, #45434c 35px 36px);
  box-shadow: 18px -18px 0 -1px #17191c, 18px -18px 0 0 #44404c, 36px -36px 0 -1px #17191c, 36px -36px 0 0 #343139;
  transform: skewY(-8deg);
  pointer-events: none;
}
[data-page-family='product'] .article-layout { display: block; }
[data-page-family='product'] .article-index { position: static; border-bottom: 1px solid var(--line); max-height: none; padding: 1.5rem var(--gutter); }
[data-page-family='product'] .desktop-article-index > .eyebrow { display: none; }
[data-page-family='product'] .article-index ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; }
[data-page-family='product'] .article-index a { border-top: 0; padding-block: .3rem; font-size: .8rem; }
[data-page-family='product'] .article-content { border-left: 0; }
[data-page-family='product'] .article-content > section { padding-inline: var(--gutter); }
[data-page-family='product'] .article-content .content-groups-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Technology: a sober blueprint texture and tighter section rhythm. */
[data-page-family='technology'] .article-hero {
  background-image: linear-gradient(90deg, #191a1c 45%, transparent), repeating-linear-gradient(0deg, transparent 0 47px, #34353a 48px), repeating-linear-gradient(90deg, transparent 0 47px, #34353a 48px);
}
[data-page-family='technology'] .article-hero .lead { max-width: 58ch; }
[data-page-family='technology'] .article-content > section { border-top: 1px solid #4b4555; }
[data-page-family='technology'] .article-content .section-number { border: 1px solid #5c4d73; width: fit-content; padding: .45rem .6rem; }

/* Solutions and audiences: spacious editorial leads, contrasting chapter surfaces. */
[data-page-family='solution'] .article-hero { background: linear-gradient(115deg, #1a1b1e 55%, #24212a); }
[data-page-family='solution'] .article-hero h1 { max-width: 20ch; }
[data-page-family='audience'] .article-hero { padding-bottom: 4rem; background: #25232a; }
[data-page-family='audience'] .article-hero h1 { max-width: 23ch; font-weight: 400; }
[data-page-family='audience'] .article-hero .lead { border-left: 2px solid #9d7bda; padding-left: 1.5rem; }
[data-page-family='audience'] .article-content .content-groups-grid { grid-template-columns: 1fr; }
[data-page-family='audience'] .article-content .content-groups-grid .content-group { border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 1rem 0 2rem; }

/* Customer stories: an editorial cover, then wide chapters instead of a document sidebar. */
[data-page-family='story'] .article-hero { padding-block: 2rem 5rem; background: #242429; }
[data-page-family='story'] .article-hero h1 { max-width: 24ch; font-size: clamp(2.75rem, 5.6vw, 5.5rem); }
[data-page-family='story'] .article-hero .lead { margin-left: min(12vw, 10rem); max-width: 62ch; border-left: 2px solid #9675cb; padding-left: 1.5rem; }
[data-page-family='story'] .article-layout { display: block; }
[data-page-family='story'] .article-index { position: static; max-height: none; border-bottom: 1px solid var(--line); }
[data-page-family='story'] .article-index ol { display: flex; flex-wrap: wrap; gap: .25rem 2rem; margin: 0; }
[data-page-family='story'] .article-index a { border: 0; }
[data-page-family='story'] .article-content { border-left: 0; }
[data-page-family='story'] .article-content > section { padding-inline: clamp(1.25rem, 9vw, 9rem); }
[data-page-family='story'] .article-content > section:not(.related-pages) > h2 { max-width: 27ch; font-size: clamp(2rem, 3.8vw, 3.7rem); }
.article-hero[data-story-photo] { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto auto min-content 1fr; gap: 0 3rem; }
.article-hero[data-story-photo] > :is(.breadcrumbs, .eyebrow, h1) { grid-column: 1 / -1; }
[data-page-family='story'] .article-hero[data-story-photo] .lead { grid-column: 1; margin-left: 0; align-self: start; }
.article-hero[data-story-photo] .article-actions { grid-column: 1; align-self: start; }
.story-photo { grid-column: 2; grid-row: 4 / span 2; margin: 0; align-self: start; }
.story-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid #4b4654; filter: saturate(.65); }
[data-page-family='company'] .article-hero { background: linear-gradient(140deg, #24232a, #17191c 70%); }
[data-page-family='legal'] .article-hero h1 { font-size: clamp(2.4rem, 4vw, 3.5rem); }
[data-page-family='legal'] .article-content > section { background: none; }
.legal-copy { max-width: 85rem; padding: 2rem var(--gutter) 5rem; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.legal-copy > :not(table) { max-width: 78ch; }
.legal-copy h2 { margin: 3rem 0 1rem; font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.25; }
.legal-copy h3 { margin: 2rem 0 1rem; font-size: 1.25rem; line-height: 1.4; }
.legal-copy p, .legal-copy li { line-height: 1.7; color: var(--muted, #bcbcc4); }
.legal-copy p { margin: 0 0 1rem; }
.legal-copy ul, .legal-copy ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.legal-copy ul { list-style: disc; }
.legal-copy ol { list-style: decimal; }
.legal-copy li { margin: .5rem 0; }
.legal-copy a { text-decoration: underline; text-underline-offset: .2em; }
.legal-copy a:hover { color: #b99aff; }
.legal-copy table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: 2rem; }
.legal-copy th, .legal-copy td { min-width: 11rem; padding: .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }

/* An introduction explains a group; it is not another item in that group. */
.article-content .content-groups > .content-group[data-content-role='introduction'] {
  grid-column: 1 / -1;
  border: 0;
  background: transparent;
  padding: 0 0 1rem;
}
.article-content .content-group[data-content-role='introduction'] p { max-width: 68ch; }

/* Each problem stays with its own answer, in both visual and reading order. */
.content-comparison { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.comparison-pair { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.article-content .comparison-pair > .content-kicker { margin-bottom: 1rem; }
.comparison-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comparison-columns > .content-group { padding: clamp(1.25rem, 2.4vw, 2rem); background: #202124; }
.comparison-columns > [data-content-role='solution'] { background: #242229; border-left: 1px solid #625373; }
.comparison-columns > [data-content-role='solution'] h3 { color: #c9b4ed; }
.comparison-columns h3 { font-size: 1rem; }

/* A migration is a sequence, not nine unrelated feature cards. */
.migration-steps { margin: 0; padding: 0; list-style: none; counter-reset: migration; }
.migration-step { position: relative; padding: 2rem 0 2rem 4rem; border-top: 1px solid var(--line); counter-increment: migration; }
.migration-step::before { content: counter(migration, decimal-leading-zero); position: absolute; left: 0; top: 2.15rem; color: #ad96d6; font: .85rem var(--font-mono); }
.migration-step-content { display: grid; gap: 1.5rem; }
.migration-step-content .content-group { max-width: 74ch; }
.article-content .migration-step h4 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 500; color: var(--muted); }
.article-content .migration-step .content-list { margin-top: .5rem; }

@media (max-width: 75rem) and (min-width: 64.01rem) {
  .brand { padding-inline: 1.75rem; }
  .brand img { width: 9rem; }
  .nav-menu > summary { padding-inline: 1rem; font-size: .85rem; }
  .header-action { padding-inline: 1.25rem; gap: 1.5rem; font-size: .85rem; }
}
@media (max-width: 64rem) {
  :root { --header-height: 4.5rem; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 0; min-height: var(--header-height); }
  .site-nav { display: none; }
  .brand { width: auto; border: 0; }
  .brand img { width: 9.5rem; }
  .header-action { width: auto; }
  .mobile-menu { display: block; border-left: 1px solid var(--line-soft); }
  .mobile-menu > summary { min-height: var(--header-height); padding-inline: 1.5rem; }
  .mobile-menu-panel {
    max-height: calc(100vh - var(--header-offset));
    max-height: calc(100dvh - var(--header-offset));
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }
  .mobile-menu-panel a { display: flex; align-items: center; min-height: 2.75rem; }
  .mobile-article-index > summary { min-height: 2.75rem; }
  .article-index a { display: flex; align-items: center; min-height: 2.75rem; }
  .article-actions .button { min-width: min(13rem, 100%); }
  .hero .hero-statement { overflow-wrap: anywhere; }
  .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .latest-card { min-height: 0; padding: 1.25rem; }
  .latest-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .latest-card-meta { margin-bottom: 1.5rem; }
  .latest-card h3 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
  .latest-win-card h3, .latest-win-card .latest-value { min-height: 0; }
  .latest-card .card-action { padding-top: 1.5rem; }
  .article-hero .breadcrumbs { margin-bottom: 2.5rem; }
  [data-page-family='product'] .article-hero { padding-right: var(--gutter); }
  [data-page-family='product'] .article-hero::after { display: none; }
  .article-content .content-groups-grid,
  [data-page-family='product'] .article-content .content-groups-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
  [data-page-family='story'] .article-hero .lead { margin-left: 0; }
  .article-hero[data-story-photo] { display: block; }
  .story-photo { margin-top: 2rem; }
  [data-page-family='product'] .article-index ol { grid-template-columns: 1fr; gap: .25rem; margin-top: 1rem; }
  [data-page-family='story'] .article-index ol { display: grid; gap: .25rem; margin-top: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-statement { opacity: 1; transform: none; filter: none; }
}
@media (min-width: 42.01rem) and (max-width: 64rem) {
  .mobile-menu-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .mobile-menu-panel .mobile-primary-action { grid-column: 1 / -1; }
  .mobile-menu-panel section { align-content: start; border-top: 1px solid var(--line); }
}

@media (max-width: 42rem) {
  .header-inner { padding-inline: 0; gap: 0; }
  .header-action { display: none; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .brand { min-width: 0; padding-inline: 1rem; }
  .brand img { width: min(9.5rem, 100%); }
  .hero-stage {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  }
  .hero .hero-statement { font-size: clamp(2.3rem, 7.5vw, 3rem); line-height: 1.03; letter-spacing: -.04em; }
  .hero-statement span { display: inline; }
  .article-hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  [data-page-family='story'] .article-hero h1 { font-size: clamp(2.4rem, 10vw, 3.25rem); }
  .article-content .content-groups-grid,
  [data-page-family='product'] .article-content .content-groups-grid { grid-template-columns: 1fr; }
  .article-content .content-groups-grid .content-group:last-child:nth-child(odd) { grid-column: auto; }
  .comparison-columns { grid-template-columns: minmax(0, 1fr); }
  .comparison-columns > [data-content-role='solution'] { border-left: 0; border-top: 1px solid #625373; }
  .migration-step { padding-left: 2.5rem; }
  .latest-grid { grid-template-columns: minmax(0, 1fr); }
  .latest-panel-heading { padding-inline: 1.25rem; }
}

/* A phone in landscape must not inherit a desktop-height masthead. */
@media (max-height: 32rem) and (max-width: 64rem) {
  :root { --header-height: 3.75rem; }
  .hero .hero-statement { font-size: clamp(1.8rem, 5.8vw, 3rem); line-height: 1.03; max-width: 24ch; }
  .hero-stage { padding-block: 1.25rem 3rem; }
  .hero-video-label { bottom: max(.75rem, env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 28rem) {
  .content-stats { grid-template-columns: minmax(0, 1fr); }
  .latest-panel-heading { grid-template-columns: 2rem minmax(0, 1fr); }
  .mobile-menu > summary { padding-inline: 1rem; }
}

/* Progressive enhancement: keep the hero copy off a reported fold/hinge.
   Browsers without segment reporting retain the fluid single-screen layout. */
@media (horizontal-viewport-segments: 2) {
  .hero-stage { padding-left: max(1.25rem, env(safe-area-inset-left, 0px)); }
  .hero .hero-statement {
    max-width: calc(env(viewport-segment-width 0 0) - max(1.25rem, env(safe-area-inset-left, 0px)) - 1.25rem);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }
  .hero-statement span { display: inline; }
}
@media (vertical-viewport-segments: 2) {
  .hero-video { height: calc(env(viewport-segment-height 0 0) - var(--header-offset)); }
  .hero .hero-statement { font-size: clamp(1.8rem, 5vw, 3rem); }
}

/* Citation: a quote and its author, rebuilt from the flattened export */
.article-content .citation {
  position: relative;
  grid-column: 1 / -1;
  margin: 1.5rem 0 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.25rem, 3vw, 2rem) 1.25rem;
}
.article-content .citation::before {
  content: '\201C';
  position: absolute;
  top: .4rem;
  right: 1.25rem;
  color: var(--accent);
  font-size: 4rem;
  line-height: 1;
  opacity: .35;
  pointer-events: none;
}
.article-content .citation blockquote { margin: 0; }
.article-content .citation blockquote p {
  max-width: 62ch;
  margin: 0;
  color: var(--text);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
}
.article-content .citation figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .75rem;
  margin-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  padding-top: .85rem;
  color: var(--muted);
  font-size: .85rem;
}
.article-content .citation .citation-author { color: var(--text); font-style: normal; font-weight: 600; }
