/* Nexo: white surfaces, blue typography and orange accents. */
:root { color-scheme: light; }
h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; line-height: 1.12; }
.hero h1 { letter-spacing: -.048em; line-height: 1.09; }
.serif-emphasis { color: var(--accent); font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; }
.site-header { background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
.hero { background: var(--paper); }
.hero .eyebrow { color: var(--accent); }
.hero .mini-x { color: var(--orange); }
.button { border-radius: 6px; }
.interactive-cta { position: relative; isolation: isolate; overflow: hidden; gap: 20px; background: var(--accent); color: #ffffff; transition: border-color .25s; border-color: var(--accent); }
.motion-ready .interactive-cta:hover,.interactive-cta:hover { transform: none; background: var(--accent); }
.cta-fill { position: absolute; z-index: -1; inset: 0; background: var(--accent-hover); clip-path: circle(0 at 50% 50%); }
.cta-label { display: inline-block; white-space: nowrap; }
.cta-letter { display: inline-block; white-space: pre; }
.cta-spark { color: #ffb47f; font-size: 1.45rem; font-weight: 300; line-height: 1; }
.cta-ripple { position: absolute; pointer-events: none; border: 1px solid currentColor; border-radius: 50%; width: 12px; height: 12px; margin: -6px; }
.interactive-cta:focus-visible { outline-color: var(--accent); }
/* Animated triage sequence using the same blue and orange palette. */
.flow-visual {
  --flow-paper: #f1f6ff;
  --flow-ink: var(--ink);
  --flow-muted: var(--muted);
  --flow-rule: var(--line);
  --flow-accent: var(--accent);
  --flow-orange: var(--orange);
  color-scheme: light;
  color: var(--flow-ink);
  background: var(--flow-paper);
  border: 1px solid #d0dff3;
  border-radius: 10px;
  padding: 26px 28px 18px;
  box-shadow: 0 18px 45px -32px #16325b24;
  position: relative;
  min-width: 0;
  overflow: clip;
}
.visual-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--flow-muted);
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
}
.visual-symbol {
  color: var(--flow-orange);
  font-family: var(--serif);
  font-size: 1.9rem;
  line-height: 1;
}
.flow-caption {
  display: none;
  margin-top: 25px;
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.flow-caption > span { grid-area: 1 / 1; visibility: hidden; }
.flow-animated .flow-caption { display: grid; }
.flow-animated[data-flow-phase="0"] .flow-caption > :nth-child(1),
.flow-animated[data-flow-phase="1"] .flow-caption > :nth-child(2),
.flow-animated[data-flow-phase="2"] .flow-caption > :nth-child(3),
.flow-animated[data-flow-phase="3"] .flow-caption > :nth-child(4) { visibility: visible; }
.flow-canvas { position: relative; margin-top: 22px; }
.flow-scene { min-width: 0; }
.flow-scene + .flow-scene { margin-top: 28px; }
/* Grid reserves the tallest scene's space, even with enlarged text. */
.flow-animated .flow-canvas {
  display: grid;
  align-items: center;
  min-height: 23rem;
  isolation: isolate;
}
.flow-animated .flow-scene { grid-area: 1 / 1; margin: 0; pointer-events: none; }
.flow-label {
  color: var(--flow-muted);
  font-size: .625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.story-paper {
  position: relative;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #d0dff3;
  border-radius: 7px;
  box-shadow: 0 12px 26px -20px #16325b26;
}
.story-topline { display: flex; justify-content: space-between; align-items: center; }
.story-quote { color: var(--orange); font-family: var(--serif); font-size: 2.6rem; height: 24px; line-height: 1; }
.flow-story blockquote {
  margin: 30px 0 26px;
  max-width: 370px;
  color: var(--flow-ink);
  font-family: var(--serif);
  font-size: clamp(2rem, 2.8vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.14;
  overflow-wrap: anywhere;
}
.story-word { display: inline-block; max-width: 100%; }
.story-voice { display: flex; align-items: center; gap: 5px; height: 28px; }
.story-voice i { width: 3px; height: 25px; border-radius: 2px; background: var(--orange); transform: scaleY(.3); }
.story-voice i:nth-child(3n) { height: 16px; }
.story-voice i:nth-child(4n) { height: 22px; }
.story-fragments { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.story-fragments span { padding: 6px 10px; border: 1px solid #ffd0af; border-radius: 4px; background: var(--orange-pale); color: var(--orange-ink); font-size: .6875rem; }
.story-fragments span:first-child { transform: rotate(-5deg); }
.story-fragments span:last-child { transform: rotate(5deg); }
.flow-record > .flow-label { margin-bottom: 16px; }
.flow-sheets { position: relative; }
.flow-details { display: grid; gap: 10px; margin: 0; }
.flow-details > div {
  position: relative;
  padding: 13px 18px 14px;
  background: #ffffff;
  border: 1px solid #d0dff3;
  border-radius: 6px;
  box-shadow: 0 6px 12px -12px #16325b26;
}
.flow-details dt { display: flex; align-items: center; gap: 9px; color: var(--flow-muted); font-size: .625rem; text-transform: uppercase; letter-spacing: .07em; line-height: 1.4; }
.flow-details dt > span { color: var(--accent); font-variant-numeric: tabular-nums; }
.flow-details dd { margin: 5px 0 0; color: var(--flow-ink); font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.flow-scan { display: none; position: absolute; z-index: 2; inset: 0 0 auto; height: 100%; border-bottom: 2px solid var(--orange); }
.flow-scan::after { content: ""; position: absolute; inset: auto 0 0; height: 18px; background: linear-gradient(transparent, #f4772126); }
.flow-scan span { position: absolute; right: 0; bottom: 5px; color: var(--orange-ink); background: var(--orange-pale); border: 1px solid #ffd0af; border-radius: 3px; padding: 3px 6px; font-size: .55rem; font-weight: 600; letter-spacing: .1em; }
.flow-animated .flow-scan { display: block; }
.analysis-note { display: flex; align-items: baseline; gap: 8px; margin-top: 16px; color: var(--accent); font-size: .6875rem; line-height: 1.45; }
.analysis-note > span { font-size: 1.15rem; }
.review-handoff { display: flex; flex-direction: column; align-items: center; text-align: center; }
.handoff-document { display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; width: 80%; max-width: 16rem; padding: 18px 20px; text-align: left; border: 1px solid #c5d7f5; border-radius: 6px; background: #ffffff; box-shadow: 0 7px 0 -3px #e9f0fe, 0 8px 0 -3px #cedcf2, 0 16px 24px -20px #16325b26; }
.handoff-document > span:first-child { align-self: center; color: var(--muted); font-size: .5625rem; letter-spacing: .09em; }
.handoff-symbol { color: var(--orange); font-family: var(--serif); font-size: 1.75rem; line-height: 1; }
.handoff-document i { grid-column: 1 / -1; height: 4px; background: #c5d7f5; border-radius: 2px; }
.handoff-document i:last-child { width: 64%; }
.handoff-connector { position: relative; height: 3.25rem; width: 1px; margin-top: 8px; background: #b8ccf0; transform-origin: top; }
.handoff-connector > span { position: absolute; top: 0; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.review-person { display: flex; flex-direction: column; align-items: center; }
.review-avatar { position: relative; width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid #bfd2f2; border-radius: 50%; background: #e6efff; color: var(--accent); }
.review-avatar > svg { width: 30px; height: 30px; }
.review-check { display: grid; place-items: center; position: absolute; right: -3px; bottom: 0; width: 23px; height: 23px; border: 3px solid var(--flow-paper); border-radius: 50%; background: var(--accent); color: #fff; }
.review-check svg { width: 14px; height: 14px; }
.review-person strong { display: block; margin-top: 17px; color: var(--ink); font-size: 1.125rem; font-weight: 500; line-height: 1.4; }
.review-person > span:last-child { margin-top: 5px; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.hero-flow { display: grid; grid-template-columns: .75fr 1fr 1fr 1.15fr; gap: 10px; margin-top: 23px; list-style: none; }
.hero-flow li { position: relative; padding-top: 13px; border-top: 2px solid #c5d7f5; min-width: 0; }
.hero-flow .flow-node { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--muted); font-size: .625rem; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 7px; }
.hero-flow strong { display: block; color: var(--muted); font-size: .6875rem; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.hero-flow li[aria-current=step] .flow-node { background: var(--accent); color: #fff; }
.hero-flow li[aria-current=step] strong { color: var(--ink); font-weight: 600; }
.stage-progress { display: none; position: absolute; top: -2px; left: 0; right: 0; height: 3px; background: var(--flow-accent); transform: scaleX(0); transform-origin: left; }
.flow-animated .stage-progress { display: block; }
.visual-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.visual-footnote { color: var(--flow-muted); font-size: .6875rem; line-height: 1.5; }
.flow-toggle { min-height: 44px; min-width: 72px; flex-shrink: 0; padding: 8px 10px; color: var(--ink); background: transparent; border: 1px solid #afc3e5; border-radius: 4px; font-size: .75rem; cursor: pointer; }
.flow-toggle[hidden] { display: none; }
.flow-toggle:hover { background: var(--pale); }
.flow-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* Without animation, show a compact, readable summary of the whole journey. */
.flow-visual:not(.flow-animated) .story-voice,
.flow-visual:not(.flow-animated) .story-fragments,
.flow-visual:not(.flow-animated) .handoff-document,
.flow-visual:not(.flow-animated) .handoff-connector,
.flow-visual:not(.flow-animated) .review-check { display: none; }
.flow-visual:not(.flow-animated) .story-paper { padding: 0; background: none; border: 0; box-shadow: none; }
.flow-visual:not(.flow-animated) blockquote { margin: 18px 0 0; font-size: 2rem; }
.flow-visual:not(.flow-animated) .flow-details { gap: 0; }
.flow-visual:not(.flow-animated) .flow-details > div { padding: 11px 0; border: 0; border-bottom: 1px solid var(--flow-rule); border-radius: 0; background: none; box-shadow: none; }
.flow-visual:not(.flow-animated) .review-handoff { align-items: stretch; padding: 16px; border-radius: 5px; background: var(--pale); }
.flow-visual:not(.flow-animated) .review-person { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; text-align: left; }
.flow-visual:not(.flow-animated) .review-avatar { grid-row: 1 / 3; width: 36px; height: 36px; border: 0; background: none; }
.flow-visual:not(.flow-animated) .review-person strong { margin: 0; font-size: .9375rem; }
@media (min-width: 801px) and (max-width: 1100px) {
  .flow-visual { padding-inline: 22px; }
  .hero-flow { gap: 7px; }
  .story-paper { padding: 20px; }
}
@media (max-width: 800px) {
  .flow-visual { padding: 26px 28px 20px; }
  .hero h1 { line-height: 1.1; }
}
@media (max-width: 420px) {
  .flow-visual { padding: 24px 20px 18px; }
  .flow-caption { font-size: 1.5rem; }
  .flow-animated .flow-canvas { min-height: 22rem; }
  .story-paper { padding: 20px; }
  .story-fragments { gap: 6px; }
  .story-fragments span { padding-inline: 8px; font-size: .625rem; }
  .hero-flow { grid-template-columns: 1fr 1fr; gap: 16px 24px; }
  .hero-flow li { padding-top: 8px; }
  .hero-flow .flow-node { margin-bottom: 4px; }
  .hero-flow strong { font-size: .75rem; }
  .button-group .interactive-cta { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-visual,.flow-visual * { transition: none; }
  .interactive-cta:hover,.interactive-cta:focus-visible { background: var(--accent-hover); color: #ffffff; }
  .cta-fill { display: none; }
}
