/* ==========================================================
   Institutions page: the hero.
   Same headline (size, white, lime underlines) and height as the other
   pages' heroes, on the page's own navy and hex background. On the right,
   a university portico ("THE UNIVERSITY OF …", the name left for the
   visitor to fill in) cut out of its sky; its top and foot fade into the page.
   On arrival the building is first drawn in dots, then the photo comes forward
   (js/inst-hero-dots.js); the headline slides in from the left. Reduced motion:
   no movement.
   Phones and tablets: the building sits under the headline.
   ========================================================== */

.in-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.in-hero__building {
  display: block;
  pointer-events: none;
  user-select: none;
  /* the photo's cut top edge fades out like its foot does (the foot fade is in the image) */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%);
  mask-image: linear-gradient(180deg, transparent, #000 16%);
}
.in-hero__copy { position: relative; z-index: 1; }

/* ---------- Desktop: headline centred on the left, building on the right edge ---------- */
@media (min-width: 960px) {
  /* the same height as the Businesses and Students heroes */
  .sub-hero.in-hero { min-height: clamp(520px, 78svh, 760px); }
  .in-hero { --in-fs: min(var(--text-hero), 4rem, calc((min(100vw, 1304px) - 128px) * 0.049)); }
  .in-hero__building {
    position: absolute;
    z-index: 0;
    right: 0;
    top: 50%;
    width: 40vw;   /* small enough to stay clear of the headline at every desktop width */
    height: auto;
    max-width: none;
    translate: 0 -50%;
  }
  .in-hero .hero__line { white-space: nowrap; }
  /* the same size as the Students headline (css/students.css) */
  .in-hero .hero__title { font-size: var(--in-fs); }
}
@media (min-width: 1100px) {
  .in-hero { --in-fs: min(var(--text-hero), 4rem, calc((min(100vw, 1304px) - 128px) * 0.0545)); }
}

/* ---------- Phones and tablets: the building under the headline ---------- */
@media (max-width: 959px) {
  .in-hero.biz-hero { display: flex; flex-direction: column; align-items: stretch; padding-bottom: 0; }
  .in-hero__building {
    order: 2;
    width: min(100%, 640px);
    height: auto;
    margin: var(--space-5) 0 0 auto;
  }
}

/* ---------- Arrival motion ----------
   js/inst-hero-dots.js draws the building in dots first (.has-dots), then brings the
   photo forward (.is-shown) and lets the dots go. If that script never takes over,
   the photo fades in by itself after a moment, so it can never stay hidden. */
@media (prefers-reduced-motion: no-preference) {
  .js .in-hero__building { animation: in-building-reveal 900ms var(--ease) 2.5s both; }
  .js .in-hero.has-dots .in-hero__building {
    animation: none;
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 1000ms var(--ease), transform 1400ms cubic-bezier(0.2, 0.7, 0.1, 1);
  }
  .js .in-hero.has-dots.is-shown .in-hero__building { opacity: 1; transform: none; }
  .js .in-hero__copy { animation: in-copy-in 1100ms cubic-bezier(0.2, 0.7, 0.1, 1) 200ms both; }
}
@keyframes in-building-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* The dots' canvas covers the hero, under the headline */
.in-hero__dots { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
@keyframes in-copy-in {
  from { transform: translateX(-64px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- Goal (shared styles in css/subpages.css): ordinary section spacing here ---------- */
.in-goal { padding-block: var(--section-space); }

/* ---------- Built for high schools and universities: a fork in the road ----------
   The heading on one line, centred; a lime line (js/fork-path.js) draws down from it,
   forks, and runs along the ground to each building's door. The door lights up when the
   line arrives, then that side's text fades in. */
.fk { position: relative; }
.fk-title { text-align: center; margin: 0 auto; text-wrap: balance; }
.fk-grid {
  display: grid;
  gap: var(--space-7);
  margin: var(--space-7) 0 0;
  padding: 0;
  list-style: none;
}
.fk-stop { display: flex; flex-direction: column; align-items: center; text-align: center; }
.fk-building {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin-bottom: var(--space-5);
  overflow: visible;
}
.fk-ink, .fk-flag {
  fill: none;
  stroke: rgba(244, 243, 250, 0.55);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fk-flag { stroke: rgba(209, 238, 43, 0.6); }
.fk-door {
  fill: rgba(244, 243, 250, 0.04);
  stroke: rgba(244, 243, 250, 0.55);
  stroke-width: 1.6;
  transition: fill 500ms var(--ease), stroke 500ms var(--ease), filter 500ms var(--ease);
}
.fk-stop.is-on .fk-door {
  fill: var(--lime);
  stroke: var(--lime);
  filter: drop-shadow(0 0 10px rgba(209, 238, 43, 0.7));
}
.fk-name {               /* the audience: what people scan for */
  margin: 0 0 var(--space-2);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.fk-tag {                /* its one-line promise */
  margin: 0 0 var(--space-3);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--lime);
}
.fk-text { margin: 0; max-width: 34ch; color: var(--text-2); }

/* The line: a faint track, the lime line drawn over it, and a soft glow */
.fk-line {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  display: none;
}
.fk-line .fk-track { fill: none; stroke: rgba(244, 243, 250, 0.08); stroke-width: 2; }
.fk-line .fk-draw {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(209, 238, 43, 0.55));
}
.fk .container { position: relative; z-index: 1; }
/* The buildings in dots (js/fork-dots.js): one canvas over the section, above the line.
   Once it is drawing, the SVG line drawings (kept for no JS, and as the doors' anchors) hide. */
.fk-dots { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.fk.has-dots .fk-ink,
.fk.has-dots .fk-flag,
.fk.has-dots .fk-door { opacity: 0; }

@media (min-width: 960px) {
  .fk-title { white-space: nowrap; }
  .fk-grid { grid-template-columns: 1fr 1fr; gap: var(--split-gap); margin-top: calc(var(--space-7) * 2.2); }
  .js .fk.is-drawn-mode .fk-line { display: block; }
  /* the text waits for the line (only when the line is running) */
  .js .fk.is-drawn-mode .fk-name,
  .js .fk.is-drawn-mode .fk-tag,
  .js .fk.is-drawn-mode .fk-text {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  }
  .js .fk.is-drawn-mode .fk-stop.is-on .fk-name,
  .js .fk.is-drawn-mode .fk-stop.is-on .fk-tag,
  .js .fk.is-drawn-mode .fk-stop.is-on .fk-text { opacity: 1; transform: none; }
  .js .fk.is-drawn-mode .fk-stop.is-on .fk-tag { transition-delay: 80ms; }
  .js .fk.is-drawn-mode .fk-stop.is-on .fk-text { transition-delay: 160ms; }
}

/* ---------- Program types: a folder and three papers ----------
   The heading is the folder's label. On desktop (js/program-folder.js sets .is-live) the
   section holds on screen for about one screen of scrolling: the folder's front panel tips
   open and the papers come out in one overlapping wave, landing side by side above it. The folder's back
   sits behind the papers and its front panel in front of them, so they come out of the mouth.
   Phones, reduced motion, no JS: folder first, then the papers, all visible. */
.pt { padding-block: var(--section-space); }
.pt-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.pt-folder {
  position: relative;            /* no transform here: its two layers interleave with the papers */
  width: min(100%, 480px);
  aspect-ratio: 480 / 320;
}
.pt-back, .pt-front { position: absolute; inset: 0; }
.pt-back { z-index: 0; width: 100%; height: 100%; }
.pt-back path, .pt-front path {
  fill: #0c0540;
  stroke: rgba(244, 243, 250, 0.55);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.pt-back .pt-sheet { fill: none; stroke: rgba(244, 243, 250, 0.25); }
.pt-front {
  z-index: 2;
  transform-origin: 50% 95%;
}
.pt-front svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pt-label {
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;
  bottom: 5%;
  display: grid;
  place-items: center;
  margin: 0;
  text-align: center;
  font-size: var(--text-statement);   /* the same as every section title */
}

.pt-papers {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-4);
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* A landscape sheet of lined paper, with a folded corner. The faint ruled lines sit on a
   24px rhythm that starts where the text starts, and the text keeps to it (every line of
   text is 24px tall), so the words sit on the lines; a faint margin rule runs down the left
   and the top is left blank, like notebook paper. */
.pt-paper {
  --ink: var(--hero-ink);
  --rule: 24px;
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-5);
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 25px, rgba(225, 95, 120, 0.28) 25px, rgba(225, 95, 120, 0.28) 26.5px, transparent 26.5px),
    linear-gradient(#f3f2f8, #f3f2f8) 0 0 / 100% 37px no-repeat,
    repeating-linear-gradient(180deg, transparent 0 20px, rgba(95, 120, 200, 0.2) 20px 21px, transparent 21px var(--rule)) 0 var(--space-5) / 100% var(--rule),
    #f3f2f8;
  color: #3b3762;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.pt-paper::after {               /* the fold */
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(225deg, transparent 50%, #d9d6ea 50%);
  border-bottom-left-radius: 4px;
}
.pt-name {
  margin: 0;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: var(--rule);
  letter-spacing: -0.02em;
}
.pt-tag { margin: 0 0 var(--rule); color: var(--ink); font-weight: 600; font-size: 1rem; line-height: var(--rule); }
.pt-tag::before {                /* a lime marker, like the doors and underlines */
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 0 1px rgba(43, 29, 143, 0.25);
  vertical-align: 0.05em;
}
.pt-text { margin: 0; font-size: 1rem; line-height: var(--rule); }

@media (min-width: 960px) {
  .pt-papers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
  .pt-paper { min-height: 220px; }  /* landscape sheets; the grid row keeps all three the same height */

  /* Live: the track gives one extra screen of scrolling while the stage holds */
  .pt.is-live { padding-block: 0; }
  .pt.is-live .pt-track { height: calc(100svh + 100svh); }
  .pt.is-live .pt-stage {
    position: sticky;
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    flex-direction: column-reverse;   /* papers above, folder below */
    justify-content: center;
  }
  .pt.is-live .pt-papers { width: min(100%, 1120px); }
  .pt.is-live .pt-paper { will-change: transform; }
}

/* ---------- One dashboard for the whole program: a tour (js/dash-tour.js) ----------
   A mock-up of the institution dashboard (made-up data) with three steps under it.
   .dt-canvas is drawn at a fixed 1160 × 580 and scaled to the window by the script, which
   also zooms it into each step's [data-dash-focus] area. */
/* The title on one line, the wide dashboard, then the three steps in a row under it.
   The current step is bright and a lime line fills across its top while it plays. */
.dt-inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.dt-title { margin: 0; text-align: center; text-wrap: balance; }
.dt-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.dt-step__btn {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  padding: 0 0 var(--space-1);
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dt-step__bar { display: block; height: 3px; margin-bottom: var(--space-2); border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.dt-step__bar i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--lime); transform: scaleX(0); transform-origin: 0 50%; }
.dt-step__title {
  font-size: clamp(1.375rem, 0.85rem + 0.85vw, 1.875rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}
.dt-step__num { margin-right: 0.3em; color: var(--lime); font-variant-numeric: tabular-nums; }
.dt-step__text { color: var(--text-2); font-size: 1rem; line-height: 1.5; }
.js .dt-step__btn { opacity: 0.45; transition: opacity 400ms var(--ease); }
.js .dt-step__btn:hover, .js .dt-step__btn:focus-visible { opacity: 0.8; }
.js .dt-step.is-on .dt-step__btn { opacity: 1; }
.dt-step__btn:focus-visible { outline: 2px solid var(--lime); outline-offset: 6px; border-radius: 6px; }
/* the line fills over one step's time; the script moves on when it finishes */
.dt-step.is-on .dt-step__bar i { animation: dt-fill var(--dt-step-ms, 6000ms) linear forwards; }
.dt.is-paused .dt-step.is-on .dt-step__bar i { animation-play-state: paused; }
.dt.is-manual .dt-step.is-on .dt-step__bar i,
html:not(.js) .dt-step__bar i { animation: none; transform: none; }
@keyframes dt-fill { to { transform: scaleX(1); } }
@media (max-width: 719px) {
  .dt-steps { grid-template-columns: 1fr; gap: var(--space-4); }
  .dt-step__title { font-size: 1.25rem; }
}

.dt-stage { min-width: 0; }
.dt-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}
.dt-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid #ecebf3;
  background: #f6f5fa;
}
.dt-dots { display: inline-flex; gap: 6px; }
.dt-dots i { width: 9px; height: 9px; border-radius: 50%; background: #d9d7e5; }
.dt-url { flex: 1; text-align: center; font-size: 11px; color: #8a86a3; }
.dt-viewport { position: relative; overflow: hidden; aspect-ratio: 1160 / 580; }
.dt-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 200px 1fr;
  width: 1160px;
  height: 580px;
  transform-origin: 0 0;
  color: #1d1846;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
}
.dt-canvas.is-moving { transition: transform var(--dt-move-ms, 700ms) cubic-bezier(0.65, 0, 0.35, 1); }

/* sidebar */
.dt-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 12px;
  background: linear-gradient(180deg, #2b1d8f 0%, #140a6b 60%, #0b0640 100%);
  color: #e9e7ff;
}
.dt-brand, .dt-me { display: flex; align-items: center; gap: 8px; }
.dt-brand b, .dt-me b { display: block; font-size: 11.5px; color: #fff; }
.dt-brand small, .dt-me small { display: block; font-size: 10px; color: #b8b3e8; }
.dt-logo {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--lime);
  color: #140a6b;
  font-weight: 700;
}
.dt-nav { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dt-nav li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  color: #cfcbf3;
  transition: background-color 300ms ease, color 300ms ease;
}
.dt-nav li i { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 3px; opacity: 0.8; }
.dt-nav li.is-on { background: rgba(7, 0, 48, 0.55); color: #fff; }
.dt-me { margin-top: auto; }
.dt-av {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: #2b1d8f;
  font-size: 10px;
  font-weight: 700;
}

/* main area and its screens */
.dt-main { position: relative; background: #fbfbfe; }
.dt-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 26px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 350ms ease, visibility 0s linear 350ms;
}
.dt-screen.is-on { opacity: 1; visibility: visible; transition: opacity 350ms ease; }
.dt-hero {
  padding: 18px 20px;
  border: 1px solid #e6e4f0;
  border-radius: 12px;
  background: linear-gradient(120deg, #f1f0fa, #e9e7f7);
}
.dt-hero small { color: #6b6690; font-weight: 600; }
.dt-hero h4, .dt-head h4 { margin: 2px 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #140a6b; }
.dt-hero p, .dt-head p { margin: 0; color: #6b6690; }
.dt-head--row { display: flex; align-items: flex-end; justify-content: space-between; }
.dt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dt-stats--3 { grid-template-columns: repeat(3, 1fr); }
.dt-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid #e6e4f0;
  border-radius: 10px;
  background: #fff;
}
.dt-stat small { color: #6b6690; }
.dt-stat b { font-size: 22px; font-weight: 700; color: #140a6b; }
.dt-stat em { font-style: normal; color: #8a86a3; font-size: 11px; }
.dt-card {
  padding: 14px 16px;
  border: 1px solid #e6e4f0;
  border-radius: 12px;
  background: #fff;
}
.dt-card h5 { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: #140a6b; }
.dt-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dt-list li { display: flex; align-items: center; gap: 8px; color: #3b3762; }
.dt-list li em { margin-left: auto; font-style: normal; color: #8a86a3; }
.dt-dot { width: 7px; height: 7px; border-radius: 50%; }
.dt-dot.g, .dt-bar .g { background: #2fa36b; }
.dt-dot.y, .dt-bar .y { background: #e2a72e; }
.g { color: #1f8a57; }
.y { color: #b7821c; }
.r { color: #d04545; }
.dt-pill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 600;
}
.dt-pill.g { background: #e3f5eb; }
.dt-pill.y { background: #fbf0d9; }
.dt-btn {
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 8px;
  background: #2b1d8f;
  color: #fff;
  font-weight: 600;
}
.dt-form { display: flex; flex-direction: column; gap: 12px; }
.dt-form h5 { margin: 0; }
.dt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.dt-fields label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: #140a6b; }
.dt-wide { grid-column: 1 / -1; }
.dt-input {
  padding: 7px 10px;
  border: 1px solid #dcd9ea;
  border-radius: 7px;
  background: #fff;
  font-weight: 400;
  color: #3b3762;
}
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-chips i, .dt-pills i, .dt-tag {
  padding: 2px 8px;
  border: 1px solid #dcd9ea;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  color: #3b3762;
}
.dt-pills { display: flex; gap: 6px; margin-bottom: 10px; }
.dt-pills i { padding: 4px 10px; font-weight: 600; }
.dt-pills i.is-on { border-color: #2b1d8f; background: #2b1d8f; color: #fff; }
.dt-table { width: 100%; border-collapse: collapse; }
.dt-table th { padding: 6px 8px; text-align: left; font-weight: 600; color: #6b6690; border-bottom: 1px solid #ecebf3; }
.dt-table td { padding: 9px 8px; border-bottom: 1px solid #f1f0f7; color: #3b3762; }
.dt-table b { color: #140a6b; }
.dt-health { display: grid; grid-template-columns: 160px 1fr 140px; align-items: center; gap: 12px; padding: 8px 0; }
.dt-health b { color: #140a6b; }
.dt-health em { font-style: normal; font-weight: 600; }
.dt-bar { height: 8px; border-radius: 999px; background: #eeedf5; overflow: hidden; }
.dt-bar i { display: block; height: 100%; border-radius: inherit; }
.dt-bar .w92 { width: 92%; }
.dt-bar .w88 { width: 88%; }
.dt-bar .w74 { width: 74%; }
.dt-note {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #f1dfb3;
  border-radius: 8px;
  background: #fdf8ea;
  color: #8a6416;
}
/* the area a step is about: a soft lime ring while zoomed in */
[data-dash-focus] { border-radius: 10px; outline: 3px solid transparent; outline-offset: 6px; transition: outline-color 400ms ease; }
[data-dash-focus].is-focus { outline-color: rgba(209, 238, 43, 0.9); }

/* Phone and tablet: title, dashboard, then the steps, all full width.
   Desktop: the title on top, then the steps in a column beside the dashboard, so the
   title, the dashboard and the steps fit on one screen together (down to ~1190 × 576).
   Only the current step shows its text; the others show their titles. */
.dt-stage, .dt-steps { width: 100%; }
@media (min-width: 1024px) {
  .dt-inner {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(0, 2.6fr);
    grid-template-areas: "title title" "steps stage";
    align-items: center;
    gap: var(--space-5) var(--space-8);
  }
  .dt-title { grid-area: title; }
  .dt-steps { grid-area: steps; grid-template-columns: 1fr; gap: var(--space-3); }
  /* short enough to fit under the title on one screen: height = width / 2 + the 32px bar */
  .dt-stage { grid-area: stage; justify-self: end; width: min(100%, calc((100svh - var(--header-h) - 170px) * 2)); }
  .dt-step__btn { gap: 0; }
  .dt-step__title { font-size: var(--text-h3); }
  .dt-step__text { margin-top: var(--space-1); }
  .js .dt-step__text { max-height: 0; opacity: 0; overflow: hidden; transition: max-height 500ms var(--ease), opacity 300ms ease; }
  .js .dt-step.is-on .dt-step__text { max-height: 7.5em; opacity: 1; transition-delay: 0ms, 150ms; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .js .dt-step__text { transition: none; }
}



/* ---------- Who does what: three roles as a 3D stack (js/who-stack.js) ----------
   Phones, no WebGL and no JS: a still image of the open stack, then the three roles listed.
   Desktop: names on the left, the stack in the middle, the chosen role's text on the right
   (like Rox's platform stack). The section holds in place (.ws-pin is sticky inside the
   taller .ws-track) while the scroll moves through the three roles. */
.ws .sub-head { align-items: center; margin-inline: auto; text-align: center; }
.ws-grid { display: grid; gap: var(--space-4); }
.ws-list { display: none; }
.ws-stage { position: relative; width: min(100%, 420px); margin-inline: auto; }
.ws-still { display: block; width: 100%; height: auto; }
.ws-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms var(--ease); }
.ws.has-3d .ws-canvas { opacity: 1; }
.ws-canvas.is-pointing { cursor: pointer; }
.ws-panels { display: grid; gap: var(--space-4); }
.ws-panel__name { margin: 0 0 var(--space-1); color: var(--lime); font-size: 1rem; font-weight: 600; }
.ws-panel__text { margin: 0; color: var(--text); font-size: 1.25rem; line-height: 1.45; text-wrap: pretty; }

@media (min-width: 1024px) {
  /* held in place: 100% of the screen, plus a stretch of scroll for each role */
  .ws.is-tabs { padding-block: 0; }
  .ws.is-tabs .ws-track { height: calc(100svh - var(--header-h) + 3 * 55svh); }
  .ws.is-tabs .ws-pin {
    position: sticky;
    top: var(--header-h);
    display: flex;
    align-items: center;
    height: calc(100svh - var(--header-h));
  }
  .ws.is-tabs .ws-pin > .container { width: 100%; }
  .ws.is-tabs .sub-head { margin-bottom: var(--space-4); }
  .ws.is-tabs .ws-grid {
    grid-template-columns: minmax(max-content, 1fr) minmax(0, 2.5fr) minmax(220px, 1fr);
    align-items: center;
    gap: var(--space-5);
  }
  .ws.is-tabs .ws-list { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .ws.is-tabs .ws-stage { width: min(100%, calc(100svh - var(--header-h) - 170px)); min-width: 360px; aspect-ratio: 1; }
  /* the still (the open stack) only shows on desktop when the 3D scene can't run */
  .ws.is-tabs .ws-still { position: absolute; inset: 0; height: 100%; object-fit: contain; visibility: hidden; }
  .ws.is-tabs.no-3d .ws-still { visibility: visible; }
  .ws.is-tabs .ws-panels { display: block; }
  .ws.is-tabs .ws-panel { display: none; }
  .ws.is-tabs .ws-panel.is-on { display: block; animation: ws-in 450ms var(--ease) both; }
  .ws.is-tabs .ws-panel__name { display: none; }   /* the names are on the left already */
}
.ws-tab {
  position: relative;
  padding: var(--space-1) 0 var(--space-1) 24px;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease);
}
.ws-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 2px;
  background: var(--lime);
  transform: rotate(45deg) scale(0);
  transition: transform var(--dur) var(--ease);
}
.ws-tab:hover { color: var(--text); }
.ws-tab[aria-selected="true"] { color: var(--text); }
.ws-tab[aria-selected="true"]::before { transform: rotate(45deg) scale(1); }
.ws-tab:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; border-radius: 6px; }
@keyframes ws-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .ws.is-tabs .ws-panel.is-on { animation: none; }
  .ws-tab::before, .ws-canvas { transition: none; }
}
