/* OncoloHealth fx: CT volume band (home) and research-area k-space track (research). */

/* ---------------------------------------------------------------- volume band */
.scope-strip.fx-volume {
  --bloom-x: 30%;
  --bloom-y: -8%;
  background: var(--fx-deep);
  background-image:
    radial-gradient(ellipse at 28% 40%, rgba(255, 255, 255, .06), transparent 48%),
    radial-gradient(ellipse at 88% 100%, rgba(73, 96, 120, .32), transparent 55%);
  color: var(--fx-cream);
  border: 0;
  padding: 0;
}
.fx-volume-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding: clamp(72px, 9vw, 120px) 0;
}
.fx-volume-stage {
  --pad: 24px;
  position: relative;
  aspect-ratio: 1 / .84;
  min-height: 340px;
  border-radius: 4px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, .06), transparent 66%),
    linear-gradient(180deg, #213350, var(--fx-navy) 60%, #1b2b41);
  box-shadow: inset 0 0 0 1px rgba(234, 195, 182, .13), 0 30px 70px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
  touch-action: pan-y;
}
.fx-volume-stage [data-vol-canvas] { position: absolute; inset: 0; }

/* crop marks: hairline L-brackets on an 8px inset */
.fx-vol-crop { position: absolute; z-index: 2; width: 14px; height: 14px; pointer-events: none; border: 0 solid rgba(234, 195, 182, .6); }
.fx-vol-crop--tl { top: 8px; left: 8px; border-top-width: 1px; border-left-width: 1px; }
.fx-vol-crop--tr { top: 8px; right: 8px; border-top-width: 1px; border-right-width: 1px; }
.fx-vol-crop--bl { bottom: 8px; left: 8px; border-bottom-width: 1px; border-left-width: 1px; }
.fx-vol-crop--br { bottom: 8px; right: 8px; border-bottom-width: 1px; border-right-width: 1px; }

/* scanner console: a label column and a value column, tabular figures, one rhythm */
.fx-vol-console {
  position: absolute; z-index: 2; margin: 0; pointer-events: none;
  display: grid; grid-template-columns: 7ch auto; column-gap: 1ch; row-gap: 4px;
  font: 400 10.5px/1.3 var(--fx-mono); letter-spacing: .06em; font-feature-settings: 'tnum' 1;
  text-transform: uppercase; white-space: nowrap;
}
.fx-vol-console > div { display: contents; }
.fx-vol-console dt { color: rgba(251, 245, 241, .42); }
.fx-vol-console dd { margin: 0; color: rgba(251, 245, 241, .86); }
.fx-vol-console b { font-weight: 500; color: var(--fx-peach-light); }
.fx-vol-console--tl { top: var(--pad); left: var(--pad); }
.fx-vol-console--bl { bottom: var(--pad); left: var(--pad); }
.fx-vol-console--tr { top: var(--pad); right: var(--pad); grid-template-columns: auto auto; text-align: right; }

.fx-volume-copy .eyebrow { color: var(--fx-peach-light); }
.fx-volume-copy h2 { color: var(--fx-cream); margin-top: 22px; font-size: clamp(2.4rem, 3.6vw, 3.8rem); }
.fx-volume-copy h2 em { color: var(--fx-peach-light); }
.fx-volume-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 44px 0 36px;
  border-top: 1px solid rgba(251, 245, 241, .16);
}
.fx-volume-figures > div { padding: 24px 18px 4px 0; }
.fx-volume-figures > div + div { border-left: 1px solid rgba(251, 245, 241, .16); padding-left: 20px; }
.fx-volume-figures span { display: block; font-size: 10px; font-weight: 700; letter-spacing: .12em; color: rgba(234, 195, 182, .9); }
.fx-volume-figures strong {
  display: block; margin-top: 14px;
  font: 400 clamp(2.6rem, 4vw, 3.9rem)/1 var(--serif, 'DM Serif Display', Georgia, serif);
  color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums;
}
.fx-volume-figures small { display: block; margin-top: 10px; font-size: 12px; line-height: 1.45; color: rgba(251, 245, 241, .66); }
.fx-volume-copy .button.light { min-height: 48px; }
.fx-volume-copy .button:focus-visible { outline: 2px solid var(--fx-peach-light); outline-offset: 3px; }

/* count-ups hold their width steady while the digits run */
.fx-counting { font-variant-numeric: tabular-nums lining-nums; }

@media (max-width: 900px) {
  .fx-volume-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 72px; }
  .fx-volume-stage { aspect-ratio: 1 / .8; min-height: 0; }
}
@media (max-width: 520px) {
  .fx-volume-stage { --pad: 16px; aspect-ratio: 1 / .98; }
  .fx-vol-console { font-size: 9.5px; row-gap: 3px; grid-template-columns: 7.5ch auto; column-gap: .5ch; }
  .fx-vol-console--tr { display: none; }
  .fx-volume-figures > div { padding-right: 8px; }
  .fx-volume-figures > div + div { padding-left: 12px; }
  .fx-volume-figures span { font-size: 8.5px; letter-spacing: .08em; }
  .fx-volume-figures strong { font-size: 2.3rem; }
  .fx-volume-figures small { font-size: 11px; }
}

/* ------------------------------------------------------------ research areas */
.fx-branches { overflow: hidden; overflow: clip; }
.fx-br { position: relative; }
.fx-br-hud {
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--fx-line);
}
.fx-br-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-br-picks button,
.fx-br-steps button {
  position: relative; min-height: 44px; border: 1px solid var(--fx-line); background: transparent; color: var(--fx-ink);
  border-radius: 3px; cursor: pointer;
  transition: background-color .25s var(--fx-ease), border-color .25s var(--fx-ease), color .25s var(--fx-ease), box-shadow .25s var(--fx-ease);
}
.fx-br-picks button { padding: 0 16px; font: 600 13px/1 var(--sans, 'DM Sans', Arial, sans-serif); overflow: hidden; }
.fx-br-picks button:hover { background: var(--fx-paper); border-color: #dcc3b8; }
.fx-br-picks button[aria-pressed="true"] {
  background: var(--fx-peach); border-color: var(--fx-peach);
  box-shadow: 0 10px 22px -14px rgba(188, 138, 114, .9);
}
/* the active area's reconstruction progress, drawn along its button's base */
.fx-br-picks button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--fx-peach-deep); transform-origin: 0 50%; transform: scaleX(var(--recon, 0));
}
.fx-br-picks button:not([aria-pressed="true"])::after { opacity: 0; }
.fx-br-picks button:focus-visible,
.fx-br-steps button:focus-visible,
.fx-br-panel a:focus-visible { outline: 2px solid var(--fx-peach-deep); outline-offset: 3px; }
.fx-br-nav { display: flex; align-items: center; gap: 20px; }
.fx-br-meter { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .06em; color: #85706a; white-space: nowrap; }
.fx-br-meter b { font-weight: 500; color: var(--fx-ink); }
/* five stops on a hairline; the fill runs between them */
.fx-br-meter i {
  position: relative; display: block; width: 97px; height: 9px;
  background:
    linear-gradient(var(--fx-line), var(--fx-line)) 0 50% / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, #cdb5ab 0 1px, transparent 1px 24px);
}
.fx-br-meter u { position: absolute; left: 0; right: 0; top: 3px; height: 3px; background: var(--fx-peach-deep); transform-origin: 0 50%; transform: scaleX(0); }
.fx-br-steps { display: flex; gap: 8px; }
.fx-br-steps button { width: 44px; padding: 0; font-size: 17px; line-height: 1; background: var(--fx-paper); }
.fx-br-steps button:hover:not(:disabled) { background: var(--fx-ink); border-color: var(--fx-ink); color: var(--fx-cream); }
.fx-br-steps button:disabled { opacity: .35; cursor: default; }

.fx-br-viewport { position: relative; touch-action: pan-y; }
.fx-br.is-enhanced .fx-br-viewport { cursor: grab; user-select: none; -webkit-user-select: none; }
.fx-br.is-dragging .fx-br-viewport { cursor: grabbing; }
.fx-br-track { display: flex; gap: 24px; will-change: transform; }
.fx-br-panel { flex: 0 0 min(86%, 1080px); min-width: 0; }
.fx-br-card {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  min-height: 440px; background: var(--fx-paper); border: 1px solid #efe2db; border-radius: 4px;
  box-shadow: var(--fx-shadow); overflow: hidden;
  transition: opacity .6s var(--fx-ease), transform .6s var(--fx-ease), box-shadow .6s var(--fx-ease);
}
.fx-br.is-enhanced .fx-br-panel:not(.is-current) .fx-br-card { opacity: .4; transform: scale(.955); box-shadow: none; }
.fx-br.is-enhanced .fx-br-panel:not(.is-current) { cursor: pointer; }

.fx-br-visual {
  --bloom-x: 30%; --bloom-y: -34%;
  position: relative; min-height: 300px;
  background: radial-gradient(ellipse at 50% 55%, #f7e4d9, var(--fx-peach) 70%);
}
.fx-br-visual [data-br-canvas] { position: absolute; inset: 0; }
.fx-br-crop { position: absolute; z-index: 1; inset: 10px; pointer-events: none; }
.fx-br-crop::before, .fx-br-crop::after { content: ''; position: absolute; width: 12px; height: 12px; border: 0 solid rgba(30, 48, 71, .35); }
.fx-br-crop::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.fx-br-crop::after { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.fx-br-hudtext {
  position: absolute; z-index: 1; display: grid; row-gap: 3px; pointer-events: none;
  font: 400 10px/1.3 var(--fx-mono); letter-spacing: .07em; color: rgba(30, 48, 71, .74);
  font-feature-settings: 'tnum' 1;
}
.fx-br-hudtext span + span { color: rgba(30, 48, 71, .5); }
.fx-br-hudtext--tl { top: 24px; left: 26px; }
.fx-br-hudtext--br { bottom: 24px; right: 26px; text-align: right; }
.fx-br-body { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 52px); }
.fx-br-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 10px; font-weight: 700; letter-spacing: .13em; color: #86584e; }
.fx-br-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 10px; border-radius: 99px;
  background: #f6e6dd; color: var(--fx-ink); letter-spacing: .1em;
}
.fx-br-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--fx-peach-deep); }
.fx-br-status[data-status="exploratory"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fx-peach-deep); }
.fx-br-status[data-status="blocked"] { background: #e9ecf1; }
.fx-br-status[data-status="blocked"]::before { border-radius: 1px; background: var(--fx-navy); }
.fx-br-body h3 {
  margin-top: 24px; font: 400 clamp(1.9rem, 2.6vw, 2.6rem)/1.05 var(--serif, 'DM Serif Display', Georgia, serif);
  letter-spacing: -.02em; color: var(--fx-ink);
}
.fx-br-body h3 em { color: var(--fx-peach-deep); }
.fx-br-body p { margin-top: 18px; color: #4f5868; font-size: 15px; line-height: 1.65; max-width: 470px; }
.fx-br-body .underlink { margin-top: auto; }
.fx-br-body p + .underlink { margin-top: auto; padding-top: 0; }
.fx-br-body > :last-child { margin-top: 28px; }
.fx-br-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the arriving area's text settles in just after the track starts moving */
@keyframes fx-br-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.fx-br.is-enhanced .fx-br-panel.is-current .fx-br-body > * { animation: fx-br-in .62s var(--fx-ease) both; }
.fx-br.is-enhanced .fx-br-panel.is-current .fx-br-body > :nth-child(1) { animation-delay: .16s; }
.fx-br.is-enhanced .fx-br-panel.is-current .fx-br-body > :nth-child(2) { animation-delay: .22s; }
.fx-br.is-enhanced .fx-br-panel.is-current .fx-br-body > :nth-child(3) { animation-delay: .28s; }
.fx-br.is-enhanced .fx-br-panel.is-current .fx-br-body > :nth-child(4) { animation-delay: .34s; }

/* Without JS the track is a plain stacked list. */
.fx-br:not(.is-enhanced) .fx-br-track { flex-direction: column; }
.fx-br:not(.is-enhanced) .fx-br-panel { flex-basis: auto; }
.fx-br:not(.is-enhanced) .fx-br-nav,
.fx-br:not(.is-enhanced) .fx-br-picks { display: none; }

@media (max-width: 900px) {
  .fx-br-panel { flex-basis: calc(100% - 28px); }
  .fx-br-track { gap: 14px; }
  .fx-br-card { grid-template-columns: 1fr; min-height: 0; }
  .fx-br-visual { min-height: 0; aspect-ratio: 16 / 10; }
  .fx-br-hud { margin-bottom: 22px; }
}
@media (max-width: 520px) {
  .fx-br-picks { gap: 6px; }
  .fx-br-picks button { padding: 0 12px; font-size: 12.5px; }
  .fx-br-nav { width: 100%; justify-content: space-between; gap: 12px; }
  .fx-br-meter { gap: 8px; }
  .fx-br-meter i { display: none; }
  .fx-br-visual { aspect-ratio: 4 / 3; }
  .fx-br-hudtext--tl { top: 18px; left: 20px; }
  .fx-br-hudtext--br { bottom: 18px; right: 20px; }
  .fx-br-body { padding: 26px 22px 30px; }
  .fx-br-body p { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-br-card, .fx-br-picks button, .fx-br-steps button { transition: none; }
  .fx-br.is-enhanced .fx-br-panel.is-current .fx-br-body > * { animation: none; }
}
