/* Adaptations for the reduced site; keep shared source styles intact. */
.molecular-background {
  --molecular-parallax: 240px;
  position: fixed;
  inset: 0 0 auto;
  height: 100vh;
  height: 100lvh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 88% 26%, #102f3a 0, transparent 52%),
    radial-gradient(ellipse at 12% 88%, #102530 0, transparent 44%), #080e19;
}
.molecular-background canvas { position: absolute; top: 0; left: 0; display: block; width: 100%; height: calc(100% + var(--molecular-parallax)); opacity: .65; will-change: transform; }
@supports (animation-timeline: scroll(root block)) {
  .molecular-background canvas { animation: molecular-parallax 1s linear both; animation-timeline: scroll(root block); }
}
@keyframes molecular-parallax {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-1 * var(--molecular-parallax))); }
}
@media (prefers-reduced-motion: reduce) {
  .molecular-background canvas { animation: none; }
}
.molecular-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 14, 25, .54), rgba(8, 14, 25, .88) 24%, rgba(8, 14, 25, .66) 47%, rgba(8, 14, 25, .3) 76%, rgba(8, 14, 25, .16)),
    linear-gradient(0deg, rgba(8, 14, 25, .4), transparent 30%, transparent 80%, rgba(8, 14, 25, .5));
}
.home-video .feature-card { background: rgba(10, 20, 32, .92); }
@media (max-width: 760px) {
  .molecular-background canvas { opacity: .4; }
  .molecular-background::after { background: linear-gradient(90deg, rgba(8, 14, 25, .76), rgba(8, 14, 25, .58)); }
}

.header .brand-lockup { gap: 6px; }
.header .brand { display: block; line-height: 0; }
.header .brand-logo { display: block; width: 192px; height: auto; }
.header .brand-positioning { font-size: 10.9px; letter-spacing: .1em; }
.header nav { align-items: center; }
.header .nav-contact { display: inline-flex; min-height: 44px; }

.showcase-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: start; gap: clamp(36px, 6vw, 84px); }
.showcase-copy h2 { font-size: clamp(38px, 4vw, 48px); line-height: 1.12; letter-spacing: -.045em; margin: 0 0 24px; }
.showcase-copy > p:not(.eyebrow) { max-width: 440px; margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.showcase-copy > .button { min-height: 48px; margin-top: 28px; }
.showcase-frontier { color: #C4A4F4; }
.showcase-partial { color: #35BEC0; }
.showcase-complete { color: #B3E08A; }
.showcase-emphasis { font-weight: 700; }
.showcase-video { min-width: 0; width: 100%; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #080e19; }
.showcase-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 746 / 720; border: 0; }
@media (max-width: 760px) {
  .showcase-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* The filter bends the existing button surface without changing its hit area. */
[data-contact-ripple].is-contact-rippling { filter: var(--contact-ripple-filter); }
.contact-ripple-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
@media (prefers-reduced-motion: reduce), (forced-colors: active) {
  [data-contact-ripple].is-contact-rippling { filter: none; }
}

/* Keep benchmark headings and results within the site's existing type system. */
.benchmark-section .experiment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.benchmark-carousel, .benchmark-progress-card { display: flex; flex-direction: column; container-type: inline-size; padding: 20px 20px 10px; border: 1px solid rgba(148, 173, 193, .26); border-radius: 8px; background: rgba(7, 16, 27, .84); outline-offset: 5px; }
.benchmark-progress-size { color: var(--accent); }
.benchmark-progress-body { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 300px; padding: 32px 12px; text-align: center; }
.benchmark-progress-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 400 13px/1.6 var(--mono); }
.benchmark-carousel:focus-visible { outline: 2px solid var(--accent); }
.benchmark-heading { padding-bottom: 16px; border-bottom: 1px solid rgba(148, 173, 193, .2); }
.benchmark-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.benchmark-title { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; font: 600 21px/1.4 var(--display); letter-spacing: -.02em; }
.benchmark-objective { font-weight: 400; }
.benchmark-title-separator { color: var(--subtle); }
.benchmark-number { flex: 0 0 auto; font: 500 14px/1.4 var(--mono); font-variant-numeric: tabular-nums; color: #8192a6; }
.benchmark-dataset { margin: 8px 0 0; font: 400 11px/1.7 var(--mono); color: #aebfce; }
.benchmark-dataset [data-benchmark-size],
.benchmark-dataset [data-benchmark-budget] { color: var(--accent); font-weight: 400; }
.benchmark-budget { white-space: nowrap; }
.benchmark-carousel .hero-metric-window { min-height: 0; padding-top: 16px; }
/* Overlapping grid items reserve the tallest slide's height at every viewport width. */
.benchmark-slides { display: grid; }
.benchmark-slide { grid-area: 1 / 1; min-width: 0; align-self: start; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 225ms ease, visibility 0s linear 225ms; }
.benchmark-slide.is-current { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.benchmark-slides.is-manual .benchmark-slide { transition: none; }
.benchmark-slide h4 { position: relative; font: 500 12px/1.6 var(--mono); letter-spacing: 0; color: #c4d1de; margin: 0 0 32px; }
.benchmark-metric-label { color: var(--accent); }
.benchmark-metric-title { position: relative; display: inline-block; }
.benchmark-metric-explainer { cursor: help; }
.benchmark-metric-explainer:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.benchmark-metric-tooltip { position: absolute; left: calc(100% + 12px); top: 0; z-index: 4; width: min(320px, calc(100cqi - 100% - 12px)); box-sizing: border-box; padding: 6px 9px; border: 1px solid #344556; border-radius: 4px; background: #101d2b; color: #c4d1de; font: 400 11px/1.5 var(--body); white-space: normal; visibility: hidden; pointer-events: none; }
.benchmark-metric-tooltip::after { content: ""; position: absolute; left: -4px; top: 6px; width: 8px; height: 8px; box-sizing: border-box; border-left: 1px solid #344556; border-bottom: 1px solid #344556; background: #101d2b; transform: rotate(45deg); }
.benchmark-metric-heading:has(.benchmark-metric-explainer:hover, .benchmark-metric-explainer:focus) .benchmark-metric-tooltip { visibility: visible; }
.benchmark-slide .hero-metric-kicker { margin: 0; font: 400 10px/1.6 var(--mono); letter-spacing: .03em; color: #aebfce; }
.benchmark-slide .hero-metric-kicker::before { content: "· "; }
.benchmark-result-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: center; }
.benchmark-figure { min-width: 0; margin: 0; }
.benchmark-chart { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 6px; padding-bottom: 16px; }
.benchmark-chart-plot, .benchmark-chart-labels { position: relative; height: 154px; }
.benchmark-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.benchmark-chart svg path { vector-effect: non-scaling-stroke; }
.benchmark-chart-grid { fill: none; stroke: #263648; stroke-width: 1; opacity: .5; }
.benchmark-chart-line { fill: none; stroke: var(--series-color); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.benchmark-chart-leader { fill: none; stroke: var(--series-color); stroke-width: 1; stroke-dasharray: 2 4; opacity: .45; }
.benchmark-chart-tracking .benchmark-chart-leader { vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; opacity: .25; }
.benchmark-chart-current-point, .benchmark-chart-value-point { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--series-color); box-shadow: 0 0 5px var(--series-color); transform: translate(-50%, -50%); pointer-events: none; }
.benchmark-chart-value-point { visibility: hidden; }
.benchmark-slide.is-revealing .benchmark-chart-value-point { visibility: visible; }
.benchmark-chart-point { fill: none; stroke: var(--series-color); stroke-width: 7; stroke-linecap: round; }
.benchmark-chart-guide { fill: none; stroke: var(--series-color); stroke-width: 1; stroke-dasharray: 4 5; opacity: .55; }
.benchmark-chart-glow { fill: none; stroke: var(--series-color); stroke-width: 17; stroke-linecap: round; opacity: .22; filter: drop-shadow(0 0 4px #5fe1cd); }
/* Reveal cached traces in budget order after the slide crossfade; axes stay in place. */
.benchmark-slide.is-revealing .benchmark-chart-lines { animation: benchmark-chart-reveal 2100ms linear 225ms both; }
.benchmark-slide.is-revealing :is(.benchmark-chart-annotations, .benchmark-chart-crossing) { visibility: hidden; }
.benchmark-slide.is-milestone-pending :is(.benchmark-chart-annotations, .benchmark-chart-crossing) { animation: benchmark-chart-details 250ms ease-out 600ms both; }
.benchmark-slide.is-revealing :is(.benchmark-result-comparison, .benchmark-result-efficiency, .benchmark-result-multiplier) { visibility: hidden; }
.benchmark-slide.is-secondary-pending .benchmark-result-comparison { animation: benchmark-secondary-reveal 250ms ease-out 700ms both; }
.benchmark-slide.is-secondary-pending :is(.benchmark-result-efficiency, .benchmark-result-multiplier) { animation: benchmark-secondary-reveal 250ms ease-out 950ms both; }
@keyframes benchmark-secondary-reveal {
  from { visibility: hidden; opacity: 0; transform: translateY(4px); }
  to { visibility: visible; opacity: 1; transform: translateY(0); }
}
@keyframes benchmark-chart-reveal {
  from { clip-path: inset(-10px calc(100% - 8px) -10px -10px) view-box; }
  to { clip-path: inset(-10px calc(100% - 488px) -10px -10px) view-box; }
}
@keyframes benchmark-chart-details {
  from { visibility: hidden; opacity: 0; }
  to { visibility: visible; opacity: 1; }
}
.benchmark-slide.is-complete .benchmark-chart-primary-point { animation: benchmark-point-flash 550ms ease-out; }
.benchmark-slide.is-complete .benchmark-chart-labels span:first-child { transform-origin: left center; animation: benchmark-value-bump 550ms ease-out; }
@keyframes benchmark-point-flash {
  0%, 100% { transform: translate(-50%, -50%) scale(1); background: var(--series-color); box-shadow: 0 0 5px var(--series-color); }
  35% { transform: translate(-50%, -50%) scale(1.9); background: #effffb; box-shadow: 0 0 10px 2px var(--series-color); }
  65% { transform: translate(-50%, -50%) scale(1.1); background: var(--series-color); box-shadow: 0 0 7px var(--series-color); }
}
@keyframes benchmark-value-bump {
  0%, 100% { transform: translateY(-50%) scale(1); }
  35% { transform: translateY(-50%) scale(1.12); }
  65% { transform: translateY(-50%) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .benchmark-slide.is-revealing .benchmark-chart-lines,
  .benchmark-slide.is-secondary-pending :is(.benchmark-result-comparison, .benchmark-result-efficiency, .benchmark-result-multiplier),
  .benchmark-slide.is-milestone-pending :is(.benchmark-chart-annotations, .benchmark-chart-crossing) { animation-duration: 0s; animation-delay: 0s; }
  .benchmark-slide.is-complete :is(.benchmark-chart-primary-point, .benchmark-chart-labels span:first-child) { animation-duration: 0s; }
}
.benchmark-chart-budget { position: absolute; top: calc(91.111% + 6px); transform: translateX(-50%); color: var(--accent); font: 500 10px/1.4 var(--mono); white-space: nowrap; }
.benchmark-chart-axis-start, .benchmark-chart-axis-end { color: #8192a6; transform: none; }
.benchmark-chart-axis-start { left: 1.6%; }
.benchmark-chart-axis-end { left: 97.6%; }
.benchmark-chart-crossing, .benchmark-chart-crossing-point { cursor: help; }
.benchmark-chart-crossing:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.benchmark-chart-tooltip { --tooltip-width: min(240px, calc(100cqi - 8px)); position: absolute; left: clamp(calc(var(--tooltip-width) / 2), var(--crossing-x), calc(100cqi - var(--tooltip-width) / 2)); bottom: var(--crossing-tooltip-bottom); transform: translateX(-50%); z-index: 2; width: var(--tooltip-width); box-sizing: border-box; padding: 6px 9px; border: 1px solid #344556; border-radius: 4px; background: #101d2b; color: #c4d1de; font: 400 11px/1.5 var(--body); white-space: normal; visibility: var(--tooltip-visibility, hidden); pointer-events: none; }
.benchmark-chart-plot:has(.benchmark-chart-tooltip)::after { content: ""; position: absolute; left: var(--crossing-x); bottom: calc(var(--crossing-tooltip-bottom) - 4px); z-index: 3; width: 8px; height: 8px; box-sizing: border-box; border-right: 1px solid #344556; border-bottom: 1px solid #344556; background: #101d2b; transform: translateX(-50%) rotate(45deg); visibility: var(--tooltip-visibility, hidden); pointer-events: none; }
.benchmark-chart-plot:has(.benchmark-chart-crossing:hover, .benchmark-chart-crossing:focus, .benchmark-chart-crossing-point:hover) { --tooltip-visibility: visible; }
.benchmark-chart-labels span { position: absolute; left: 0; transform: translateY(-50%); font: 500 11px/1.4 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.benchmark-legend { display: flex; flex-wrap: wrap; gap: 5px 20px; margin: 10px 0 0; padding: 0; list-style: none; font: 400 11px/1.5 var(--body); color: #aebfce; }
.benchmark-legend li { display: inline-flex; align-items: center; gap: 7px; }
.benchmark-legend li::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--series-color); }
.benchmark-result-summary { min-width: 0; padding-left: 12px; border-left: 1px solid rgba(148, 173, 193, .15); transform: translateY(-8px); }
.benchmark-carousel .hero-metric-value { display: flex; align-items: baseline; gap: 4px; margin: 0 0 16px; font-size: clamp(24px, 9cqi, 58px); }
.benchmark-metric-primary { white-space: nowrap; }
.benchmark-slide .hero-metric-percent[hidden] { display: none; }
/* Align the painted arrow with the digits, accounting for font metrics and SVG padding. */
.benchmark-slide .hero-metric-value .hero-metric-trend { flex: 0 0 auto; width: clamp(12px, 3cqi, 20px); height: clamp(12px, 3cqi, 20px); margin: 0; transform: translateY(.08em); }
.benchmark-slide .hero-metric-trend.benchmark-trend-benefit { stroke: #49d58b; }
.benchmark-result-comparison { margin: 0; font: 400 12px/1.6 var(--mono); }
.benchmark-result-gain, .benchmark-budget-saving, .benchmark-auc-multiplier { font-weight: 500; font-size: 16px; color: var(--accent); }
.benchmark-result-efficiency, .benchmark-result-multiplier { min-height: 21px; margin: 5px 0 0; font: 400 13px/1.6 var(--mono); color: #aebfce; }
.benchmark-result-efficiency[hidden], .benchmark-result-multiplier[hidden] { display: none; }
.benchmark-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: auto; }
.benchmark-details { grid-column: 3; justify-self: end; min-height: 36px; padding: 8px 12px; background: transparent; color: var(--ink); font-size: 12px; }
.benchmark-controls { display: flex; grid-column: 2; justify-content: center; width: 100%; margin: 0; }
.benchmark-controls button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; }
.benchmark-controls button::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #526574; }
.benchmark-controls button:hover::after { background: #aebfce; }
.benchmark-controls button[aria-pressed="true"]::after { background: var(--accent); }
.benchmark-controls[hidden] { display: none; }
.benchmark-error { color: var(--muted); }
.benchmark-error button { padding: 8px; background: transparent; border: 0; color: var(--accent); }
@container (max-width: 360px) {
  .benchmark-slide h4 { min-height: 3.2em; }
}
@container (max-width: 360px) {
  .benchmark-metric-heading:has(.benchmark-metric-explainer:hover, .benchmark-metric-explainer:focus) { min-height: 4.8em; }
}
@container (max-width: 300px) {
  .benchmark-metric-heading:has(.benchmark-metric-explainer:hover, .benchmark-metric-explainer:focus) { min-height: 6.4em; }
}
@container (max-width: 260px) {
  .benchmark-slide[data-metric="auc"] .benchmark-metric-heading:has(.benchmark-metric-explainer:hover, .benchmark-metric-explainer:focus) { min-height: 9.6em; }
}
@container (min-width: 460px) {
  .benchmark-carousel .hero-metric-value { font-size: clamp(44px, 10.4cqi, 68px); }
}
@media (max-width: 760px) {
  .benchmark-section .experiment-grid { grid-template-columns: minmax(0, 1fr); }
  .benchmark-carousel, .benchmark-progress-card { padding: 22px 20px 10px; }
  .benchmark-title { font-size: 20px; }
  .benchmark-result-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .benchmark-result-summary { padding-left: 0; border-left: 0; }
  .benchmark-details { min-height: 44px; }
  .benchmark-carousel .hero-metric-value { font-size: clamp(40px, 9cqi, 58px); }
}
@media (max-width: 390px) {
  .benchmark-carousel { padding: 20px 16px 8px; }
  .benchmark-title { font-size: 18px; }
  .benchmark-chart { grid-template-columns: minmax(0, 1fr) 58px; gap: 6px; }
  .benchmark-chart-plot, .benchmark-chart-labels { height: 128px; }
  .benchmark-chart-labels span { font-size: 10px; }
}

.hero-layout {
  grid-template-areas: "copy visual";
  grid-template-rows: auto;
  align-items: start;
}

.home-video .hero-copy h1 { text-wrap: balance; }
.hero-copy .hero-positioning { display: block; text-wrap: balance; }
.hero-detail strong { font-weight: 700; }
.home-video .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.home-video .hero-actions .button { min-height: 48px; width: auto; max-width: none; font-size: 14px; padding: 14px 20px; }
.home-video .architecture-home-hero { margin-bottom: 0; }
.home-video #architecture .architecture-home-copy > .architecture-output-copy { margin-top: 20px; }
.architecture-diagram .inputs > div { max-width: none; }
.architecture-diagram .inputs small { color: #b3c3cd; }
.arch-search-flow { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; }
.architecture-home-diagram .arch-search-flow .arch-core { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px; }
.architecture-home-diagram .arch-search-flow .core-tag { margin: 0; font: 11px/1.5 var(--mono); letter-spacing: .08em; white-space: normal; }
.arch-next-evaluation { grid-column: 2; grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 6px; color: var(--accent); }
.arch-next-evaluation > span { font-size: 28px; line-height: 1; }
.arch-next-evaluation strong { color: #9af0d7; font-size: 16px; line-height: 1.5; font-weight: 500; }
.arch-evaluator-block { grid-column: 2; grid-row: 3; padding: 16px; border: 1px solid #334255; border-radius: 4px; background: #101b2b; }
.arch-evaluator-block > .arch-output-label { display: block; margin-bottom: 12px; color: #c1ced6; }
.arch-evaluator-block .evaluators { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.arch-evaluator-block .evaluators > div { min-width: 0; padding: 14px 8px; font-size: 14px; }
.arch-feedback-caption { grid-column: 2; grid-row: 4; margin: 12px 0 0; color: #a9c5c6; font-size: 12px; line-height: 1.6; text-align: center; }
.arch-feedback-entry, .arch-feedback-line, .arch-feedback-exit { grid-column: 1; border-left: 2px solid var(--accent); }
.arch-feedback-entry { grid-row: 1; position: relative; align-self: end; height: 50%; border-top: 2px solid var(--accent); border-top-left-radius: 8px; }
.arch-feedback-entry::after { content: ""; position: absolute; top: -7px; right: 0; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid var(--accent); }
.arch-feedback-line { grid-row: 2; }
.arch-feedback-exit { grid-row: 3; align-self: start; height: 50%; border-bottom: 2px solid var(--accent); border-bottom-left-radius: 8px; }
.arch-output-entry { grid-column: 3; grid-row: 1; align-self: end; height: 50%; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); border-top-right-radius: 8px; }
.arch-output-line { grid-column: 3; grid-row: 2 / 5; border-right: 2px solid var(--accent); }
.arch-output-turn { grid-column: 1 / -1; grid-row: 5; position: relative; height: 52px; }
.arch-output-turn::before { content: ""; position: absolute; top: 0; right: 0; left: 50%; height: 14px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); border-bottom-right-radius: 8px; }
.arch-output-turn::after { content: ""; position: absolute; top: 14px; bottom: 10px; left: 50%; border-left: 2px solid var(--accent); }
.arch-output-turn > span { position: absolute; bottom: 2px; left: calc(50% - 6px); width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid var(--accent); }
.arch-results { grid-column: 1 / -1; grid-row: 6; display: flex; align-items: center; gap: 18px; padding: 20px 24px; border: 1px solid #3c7c76; border-radius: 5px; background: #122c31; }
.arch-results-icon { width: 32px; height: 32px; flex: 0 0 32px; color: var(--accent); }
.arch-results > div { min-width: 0; }
.arch-output-label { color: var(--accent); font: 10px/1.5 var(--mono); letter-spacing: .1em; }
.arch-results h3 { margin: 3px 0 5px; font-size: 22px; line-height: 1.25; }
.arch-results p { margin: 0; color: #c1ced6; font-size: 12px; line-height: 1.6; }

.search-figure {
  background: rgba(8, 14, 25, .82);
  box-shadow: 0 0 120px 64px rgba(8, 14, 25, .82);
  grid-area: visual;
  width: 100%;
  max-width: 580px;
  min-width: 0;
  margin: 0;
  justify-self: center;
}

.figure-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 14px;
  border-bottom: 1px solid #344551;
  color: #a9bdc9;
  font: 10px/1.5 var(--mono);
  letter-spacing: .12em;
}

.search-map { display: block; width: 100%; height: auto; }
.map-label { font: 16px var(--mono); fill: #cad8e0; }
.map-label-accent { fill: #9ce7d6; }
.map-legend { display: flex; gap: 24px; flex-wrap: wrap; color: #c1ced6; font-size: 12px; }
.map-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 6px; height: 6px; background: #829eaf; border-radius: 50%; }
.legend-dot.evaluated { width: 9px; height: 9px; background: transparent; border: 2px solid #9af0d7; }
.search-figure figcaption { padding-top: 18px; border-top: 1px solid #344551; }
.search-figure figcaption p { margin: 12px 0 0; color: #b3c3cd; font-size: 12px; max-width: 450px; line-height: 1.7; }

/* Content must wrap inside equal tracks, rather than widening a column. */
.home-video .feature-card,
.home-video .feature-card-heading,
.home-video .feature-card-heading h3 { min-width: 0; }
.home-video .agentic-feature-title-row { width: 100%; }

@media (min-width: 1101px) {
  .home-video .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.back-to-top { font-size: 12px; color: #c0cdd6; white-space: nowrap; }
.back-to-top:hover { color: var(--accent); }
.back-to-top span { margin-left: 15px; }
.footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.footer .back-to-top { justify-self: end; }
.footer-meta { align-items: center; gap: 3px; }
.footer-meta > span { font-size: 12px; line-height: 1.4; text-align: center; }
.footer-legal { justify-content: center; font-size: 14px; line-height: 1.65; }

.reference-page .page-intro, .search-reference-content { width: 90%; max-width: 900px; margin-inline: auto; }
.search-reference-intro { padding-bottom: 48px; }
.search-reference-intro .back { margin-bottom: 28px; }
.search-definition { margin: 0; padding-left: 24px; border-left: 2px solid var(--accent); color: #d5ddea; font-size: clamp(18px, 2vw, 22px); line-height: 1.65; }
.search-definition h1, .search-definition p { display: inline; margin: 0; font: inherit; letter-spacing: normal; }
.search-definition h1 { color: var(--accent); font-weight: 700; }
.search-reference-content { padding-block: 40px 64px; overflow-wrap: anywhere; }
.search-reference-content section + section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.search-reference-content h2 { font-size: 26px; letter-spacing: -.025em; margin-bottom: 16px; }
.search-reference-content section p { margin: 0; color: var(--muted); }
.search-reference-content section p + p { margin-top: 16px; }
.search-reference-content strong { color: var(--ink); font-weight: 500; }
.search-reference .brand-name { color: var(--accent); }
.search-reference p .brand-name { font-weight: 500; }

@media (max-width: 760px) {
  .reference-page .page-intro, .search-reference-content { width: 88%; }
  .search-reference-intro { padding-bottom: 32px; }
  .search-definition { padding-left: 18px; }
  .search-reference-content { padding-block: 32px 48px; }
  .search-reference-content h2 { font-size: 23px; }
}

.experiment-detail { width: 90%; max-width: 1160px; margin: 0 auto; padding: 56px 0 80px; }
.detail-intro .back { display: inline-block; margin-bottom: 32px; font-size: 14px; color: var(--muted); }
.detail-intro .eyebrow { margin-bottom: 16px; }
.detail-intro h1 { max-width: 880px; font-size: clamp(32px, 4vw, 52px); margin-bottom: 20px; }
.detail-lead { max-width: 760px; margin-bottom: 32px; font-size: 19px; line-height: 1.6; color: var(--muted); }
.detail-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0 0 28px; padding: 24px 0; border-block: 1px solid var(--line); }
.detail-facts div { min-width: 0; }
.detail-facts dt { margin-bottom: 6px; font-size: 12px; color: var(--muted); }
.detail-facts dd { margin: 0; font-size: 14px; color: var(--accent); }
.detail-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13px; }
.detail-nav a:hover, .detail-reference:hover strong { color: var(--accent); }
.experiment-section { padding-top: 48px; margin-top: 40px; border-top: 1px solid var(--line); scroll-margin-top: 120px; }
.experiment-section > .eyebrow { margin-bottom: 12px; }
.experiment-section h2 { font-size: 28px; margin-bottom: 18px; }
.experiment-section > p { max-width: 860px; color: var(--muted); }
.detail-formula { padding: 16px 20px; border-left: 2px solid var(--accent); background: rgba(17, 32, 46, .6); }
.detail-formula code { font: 400 13px/1.8 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.detail-table-wrap { max-width: 100%; margin-top: 24px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: #0a1420; }
.detail-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.detail-table { width: 100%; border-collapse: collapse; text-align: right; font: 400 12px/1.6 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.detail-table caption { padding: 15px 18px; text-align: left; font: 500 13px/1.6 var(--body); color: var(--muted); border-bottom: 1px solid var(--line); }
.detail-table th, .detail-table td { padding: 12px 18px; border-bottom: 1px solid rgba(148, 173, 193, .12); vertical-align: top; }
.detail-table thead th { color: var(--muted); font-weight: 500; }
.detail-table th:first-child, .detail-table td:first-child { text-align: left; }
.detail-table tbody th { font-weight: 500; color: var(--ink); }
.detail-table tr:last-child > * { border-bottom: 0; }
.detail-table tbody tr:hover { background: rgba(95, 225, 205, .035); }
.detail-sd { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.detail-definitions { display: grid; gap: 20px; max-width: 880px; }
.detail-definitions div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 20px; }
.detail-definitions dt { color: var(--ink); font-weight: 500; }
.detail-definitions dd { margin: 0; color: var(--muted); }
.detail-disclosure { margin-top: 28px; }
.detail-disclosure summary { cursor: pointer; padding: 12px 0; color: var(--accent); font-size: 14px; }
.detail-references { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-reference { padding: 18px; border: 1px solid var(--line); border-radius: 6px; }
.detail-reference strong { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.detail-reference > span { display: block; color: var(--muted); font-size: 13px; }
.detail-source .button { background: transparent; color: var(--ink); }
.run-results { margin-top: 24px; }
.run-results [hidden] { display: none; }
.run-heading-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 16px; }
.run-heading-row h2, .run-heading-row h3 { margin: 0; }
.run-heading-row h3 { font-size: 24px; }
.run-description { margin-bottom: 20px; color: var(--muted); }
.run-metric-tabs, .run-cohort-tabs { display: flex; gap: 8px; }
.run-metric-tabs { position: relative; flex: 0 0 auto; }
.run-metric-option { display: flex; }
.run-results button[role="tab"], .detail-curve-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: 0 0 auto; min-height: 44px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 14px; white-space: nowrap; }
.run-results button[aria-selected="true"], .detail-curve-tabs button[aria-selected="true"] { color: var(--accent); border-color: #408b82; background: rgba(95, 225, 205, .08); }
.run-results button[role="tab"]:hover, .detail-curve-tabs button:hover { border-color: var(--accent); color: var(--ink); }
.run-results button[role="tab"]:focus-visible, .detail-curve-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.run-cohort-tabs { max-width: 100%; overflow-x: auto; padding: 4px 4px 10px; }
.run-help { display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; line-height: 1; }
.run-metric-tooltip { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; width: min(300px, 88vw); padding: 10px 12px; border: 1px solid #344556; border-radius: 6px; background: #101d2b; color: var(--ink); font: 400 13px/1.6 var(--body); visibility: hidden; pointer-events: none; }
.run-metric-option:hover .run-metric-tooltip, .run-metric-option:has(button:focus-visible) .run-metric-tooltip { visibility: visible; }
.run-results .run-metric-option.is-tooltip-dismissed .run-metric-tooltip { visibility: hidden; }
.run-cohort-panel .detail-table { table-layout: fixed; text-align: center; }
.run-cohort-panel .detail-table th:first-child { width: 86px; }
.run-cohort-panel .detail-table thead th { white-space: normal; font: 500 14px/1.5 var(--body); }
.run-score-value { display: block; color: var(--ink); font-weight: 400; line-height: 1.35; }
.run-cohort-panel .run-score-value { font-size: 16px; }
.run-score.is-better .run-score-value { font-weight: 700; }
.mean-curves { margin-top: 28px; }
.mean-curves > h3 { margin-bottom: 12px; font-size: 24px; }
.detail-curve-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.detail-curve-panel { min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #0a1420; }
.mean-curves [hidden] { display: none; }
.mean-curves.is-tabbed .detail-curve-cutoff-label { display: none; }
.detail-curve-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-width: 480px; margin: 16px 0 20px; }
.detail-curve-tabs button { min-width: 0; padding: 8px 4px; font-size: 12px; }
.detail-curve-cutoff-label { margin-top: 24px; color: var(--ink); font-size: 14px; }
.detail-curve-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.detail-curve-header h4 { margin: 0; font-size: 20px; }
.detail-curve-description { min-height: 63px; margin: 14px 0 8px; color: var(--muted); font-size: 13px; }
.detail-curve-chart { display: grid; grid-template-columns: 36px minmax(0, 1fr) 80px; gap: 10px; padding-top: 12px; }
.detail-curve-plot { min-width: 0; }
.detail-curve-plot svg { display: block; width: 100%; height: 260px; overflow: visible; }
.detail-curve-grid { fill: none; stroke: #263746; stroke-width: 1; }
.detail-curve-grid path, .detail-curve-line { vector-effect: non-scaling-stroke; }
.detail-curve-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.detail-curve-y { position: relative; height: 260px; font: 400 11px/1 var(--mono); }
.detail-curve-y span { position: absolute; top: 0; transform: translateY(-50%); white-space: nowrap; }
.detail-curve-y span { right: 0; color: var(--muted); }
.detail-curve-values { position: relative; height: 260px; font: 400 11px/1.35 var(--mono); color: var(--ink); }
.detail-curve-values > svg { position: absolute; inset: 0 auto auto 0; width: 8px; height: 100%; fill: none; stroke-width: 1; }
.detail-curve-value { position: absolute; left: 12px; transform: translateY(-50%); white-space: nowrap; }
.detail-curve-value strong { font-weight: 700; }
.detail-curve-x { position: relative; height: 20px; margin-top: 10px; color: var(--muted); font: 400 10px/1 var(--mono); }
.detail-curve-x span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.detail-curve-x span:first-child { transform: none; }
.detail-curve-x span:last-child { transform: translateX(-100%); }
.detail-curve-panel figcaption { display: grid; gap: 12px; margin-top: 12px; }
.detail-curve-axis-label { color: var(--muted); font-size: 12px; }
.detail-curve-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; }
.detail-curve-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.detail-curve-legend > span::before { content: ""; width: 18px; height: 2px; background: var(--series-color); }
@media (max-width: 1000px) {
  .detail-curve-pair { grid-template-columns: minmax(0, 1fr); }
  .detail-curve-description { min-height: 0; }
}
@media (max-width: 760px) {
  .experiment-detail { width: 88%; padding-top: 36px; }
  .detail-lead { font-size: 17px; }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .detail-facts dd { font-size: 13px; }
  .experiment-section { padding-top: 32px; margin-top: 32px; scroll-margin-top: 100px; }
  .experiment-section h2 { font-size: 24px; }
  .detail-definitions div { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .detail-references { grid-template-columns: minmax(0, 1fr); }
  .detail-table th, .detail-table td { padding: 10px 12px; }
  .run-heading-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .run-cohort-panel .detail-table th:first-child { width: 56px; }
  .run-cohort-panel .detail-table th, .run-cohort-panel .detail-table td { padding: 12px 8px; }
  .run-cohort-panel .detail-table thead th { font-size: 12px; }
  .detail-curve-panel { padding: 12px; }
  .detail-curve-chart { grid-template-columns: 30px minmax(0, 1fr) 68px; gap: 6px; }
  .detail-curve-plot svg, .detail-curve-y, .detail-curve-values { height: 220px; }
  .detail-curve-y, .detail-curve-values { font-size: 10px; }
  .detail-curve-x { font-size: 9px; }
  .detail-curve-x span:nth-child(2), .detail-curve-x span:nth-child(4) { display: none; }
}

.analytics-consent {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 24px;
  width: calc(100% - 48px);
  max-width: 560px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #465768;
  border-radius: 6px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 12px 40px #0006;
}
.analytics-consent h2 { margin: 0 0 20px; font-size: 24px; letter-spacing: -.02em; }
.analytics-consent p, .cookie-preferences p { margin: 0 0 20px; color: #c1ced6; font-size: 14px; line-height: 1.65; }
.analytics-consent a, .cookie-preferences a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.analytics-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 25px; }
.analytics-actions { display: grid; gap: 16px; }
.cookie-decisions { display: flex; gap: 16px; }
.analytics-actions .button { min-width: 0; min-height: 48px; }
.analytics-actions .button:not(.primary) { background: transparent; color: var(--ink); }
.analytics-actions .button:not(.primary):hover { background: #19302f; }
.cookie-preference-actions { display: flex; gap: 16px; }
.cookie-preference-actions .button { min-height: 48px; min-width: 180px; }
.cookie-preference-actions > .button:not(.primary) { background: transparent; color: var(--ink); }
.cookie-decisions .button, .cookie-preference-actions .button { flex: 1; }
.analytics-consent .analytics-warning, .cookie-preferences .analytics-warning { margin: 16px 0 0; }
.cookie-preferences { width: calc(100% - 40px); max-width: 560px; max-height: calc(100dvh - 40px); padding: 28px; border: 1px solid #465768; border-radius: 6px; background: var(--panel); color: var(--ink); }
.cookie-preferences::backdrop { background: #000a; }
.cookie-preferences h2 { margin: 0 44px 20px 0; font-size: 24px; letter-spacing: -.02em; }
.cookie-category { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cookie-category label { font-weight: 600; cursor: pointer; align-self: center; }
.cookie-category > span { color: #c1ced6; font-size: 12px; }
.cookie-category p { grid-column: 1 / -1; margin: 0; font-size: 13px; }
.cookie-category input { width: 24px; height: 24px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.cookie-category input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cookie-preferences .analytics-status { margin: 8px 0 16px; font-size: 13px; }
.cookie-preference-actions { margin-top: 20px; }
.legal-content .button { margin-bottom: 16px; background: transparent; color: var(--ink); }

@media (max-width: 560px) {
  .analytics-consent { bottom: 12px; left: 12px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px; }
  .analytics-actions, .cookie-decisions { gap: 12px; }
  .analytics-actions .button { padding-inline: 12px; }
  .cookie-preference-actions { flex-direction: column; gap: 12px; }
  .cookie-preferences { width: calc(100% - 24px); max-height: calc(100dvh - 24px); padding: 20px; }
}

@media (max-width: 760px) {
  .header .brand-lockup { gap: 5px; }
  .header .brand-logo { width: 168px; }
  .header .brand-positioning { font-size: 9.54px; }
  .header nav { align-items: stretch; }
  .header .nav-contact { align-self: flex-start; }
  .footer { display: flex; }
  .footer .back-to-top { margin-left: auto; }
}

@media (max-width: 980px) {
  .hero-layout { grid-template-areas: "copy" "visual"; }
  .map-label { font-size: 17px; }
}

@media (max-width: 560px) {
  .hero-copy .hero-positioning { display: inline; }
  .arch-search-flow { grid-template-columns: 18px minmax(0, 1fr) 18px; }
  .architecture-home-diagram .arch-search-flow .arch-core { padding: 18px 12px; }
  .arch-evaluator-block { padding: 12px 8px; }
  .arch-evaluator-block .evaluators { gap: 8px; }
  .arch-evaluator-block .evaluators > div { font-size: 12px; }
  .arch-next-evaluation { gap: 8px; padding-inline: 0; }
  .arch-results { gap: 14px; padding: 18px 16px; }
  .home-video .hero-actions { align-items: stretch; flex-direction: column; }
  .home-video .hero-actions .button { width: 100%; }
  .figure-heading { font-size: 9px; letter-spacing: .08em; }
  .map-label { font-size: 24px; }
  .map-legend { gap: 12px 18px; }
  .home-video .agentic-feature-title-row { grid-template-columns: 30px minmax(0, 1fr); }
  .home-video .agentic-feature-title-row > .agentic-new-marker { grid-column: 2; transform: none; }
}
