/* Page tokens (in addition to base.css) */
:root {
  --indigo: #2b1d8f; /* the glow/panel indigo from the design doc */
  /* One size order for the page, all from home's type:
     1 section titles   = --text-statement (.section-title)
     2 column/card heads = --text-card (home's large card title, .flip__label)
     3 card titles      = --text-h3 (.feature__title)
     4 body             = 1rem (body) */
  --text-card: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
}

/* ==========================================================
   nawa Businesses page — sections unique to /businesses.
   Builds on base.css (tokens, nav, footer, buttons), background.css
   (glows + BackgroundField) and sections.css (.hero, .hero__title, .rise).
   Copy is word for word from docs/businesses-copy.md. Type comes from home's
   classes (.hero__title, .section-title, .feature__title, .feature__text, .eyebrow,
   .btn variants); this file only adds layout, cards and page-only components.
   ========================================================== */

/* ---------- 1. Hero ----------
   Home's hero (.hero spacing, .hero__inner, .hero__title, .hero__ctas) inside the
   same .container, over a wall of portfolio cards (css/portfolio-wall.css). Each
   headline line stays on one line wherever it fits at home's size. */
.biz-hero {
  /* tall enough for the card wall to read as a wall */
  min-height: clamp(520px, 78svh, 760px);
  /* A headline-only hero: the headline sits centred in the block, with even space above
     and below (Home differs: its workspace preview follows the headline) */
  display: flex;
  align-items: center;
  padding-block: var(--space-6);
}
.biz-hero > .biz-hero__layout { width: 100%; }
/* Centred heroes don't need the invisible stand-in for Home's status pill */
.biz-hero .biz-hero__spacer { display: none; }
.biz-hero__layout {
  position: relative;
  z-index: 2;
}
/* At home's size the longer line ("Find talent with initiative.") needs about 11× the
   font size: it fits the container from ~550px wide, so lines stay whole from 600px. */
@media (min-width: 600px) {
  .biz-hero .hero__line { white-space: nowrap; }
}
@media (min-width: 1024px) {
  /* No subtext on this page: the button takes the subtext's spot under the headline */
  .biz-hero__layout .hero__ctas { grid-column: 1; justify-content: flex-start; }
}

/* ---------- Page colour: a white hero that eases back to navy ----------
   html.biz-page + .js: white while the hero is in view; js/businesses.js adds
   .biz-dark as soon as the next section's top rises above 60% of the screen (and
   removes it on the way back). Without JS the page simply stays navy. A deliberate
   Businesses-only exception to "navy everywhere" (docs/landing-design.md).
   Colour/opacity transitions only; instant with reduced motion (css/base.css).
   Currently OFF: businesses/index.html has no .biz-page class, so the hero is navy
   like the rest of the page. Add class="biz-page" to <html> to bring the white hero back. */
:root { --hero-ink: #2b1d8f; } /* the headline's purple on white: ≈11:1 */
html.biz-theme-ready,
html.biz-theme-ready body { transition: background-color 600ms var(--ease); }
html.biz-theme-ready .site-header { transition: background-color 600ms var(--ease), border-color 600ms var(--ease); }
html.biz-theme-ready .background-field,
html.biz-theme-ready .page-bg,
html.biz-theme-ready .biz-hero__glow { transition: opacity 600ms var(--ease); }
html.biz-theme-ready .hero__title,
html.biz-theme-ready .wordmark,
html.biz-theme-ready .nav__links a,
html.biz-theme-ready .nav__menu-btn,
html.biz-theme-ready .nav__signin,
html.biz-theme-ready .biz-hero__scroll { transition: color 600ms var(--ease), border-color 600ms var(--ease), background-color var(--dur-fast) var(--ease); }

html.js.biz-page:not(.biz-dark),
html.js.biz-page:not(.biz-dark) body { background-color: #fff; }
/* Navy-only layers fade out on white */
html.js.biz-page:not(.biz-dark) .background-field,
html.js.biz-page:not(.biz-dark) .page-bg,
html.js.biz-page:not(.biz-dark) .biz-hero__glow { opacity: 0; }
/* The nav on white: the same tokens, light values (also the phone menu panel and dropdown) */
html.js.biz-page:not(.biz-dark) .site-header {
  --text: #070030;
  --text-2: #3b3762;
  --text-3: #6c6890;
  --line: rgba(7, 0, 48, 0.08);
  --line-2: rgba(7, 0, 48, 0.16);
  --hover: rgba(7, 0, 48, 0.05);
  --bg: #ffffff;
  --panel-2: #ffffff;
  background-color: rgba(255, 255, 255, 0.88);
}
/* The hero on white: purple headline, navy outline button */
html.js.biz-page:not(.biz-dark) .biz-hero {
  --text: var(--hero-ink);
  --text-2: #3b3762;
  --line-2: rgba(43, 29, 143, 0.3);
  --hover: rgba(43, 29, 143, 0.06);
}
/* No thin lime lines on white: navy focus rings while the page is white */
html.js.biz-page:not(.biz-dark) .site-header :focus-visible,
html.js.biz-page:not(.biz-dark) .biz-hero :focus-visible { outline-color: var(--navy); }
/* A purple drop shadow under the headline's letters while the page is white
   (short offset, small blur: reads as a shadow, not a glow) */
html.js.biz-page:not(.biz-dark) .biz-hero .hero__title {
  text-shadow: 0 4px 5px rgba(43, 29, 143, 0.35);
}
html.biz-theme-ready .biz-hero .hero__title { transition: color 600ms var(--ease), text-shadow 600ms var(--ease); }
/* The headline fade follows the page colour: white at 95% strength, navy at 70%
   on tablets (85% on phones, 77.5% on desktop, below)
   (cards show through more; the headline area still stays calm) */
html.js.biz-page:not(.biz-dark) .biz-wall__fade--light { opacity: 0.95; }
html.js.biz-page.biz-dark .biz-wall__fade--dark,
html:not(.biz-page) .biz-wall__fade--dark,
html:not(.js) .biz-wall__fade--dark { opacity: 0.7; }
/* Phones: the headline wraps to four lines over more of the cards, so the navy
   fade is strongest there (85%) to keep card text from showing between the lines */
@media (max-width: 767px) {
  html.js.biz-page.biz-dark .biz-wall__fade--dark,
  html:not(.biz-page) .biz-wall__fade--dark,
  html:not(.js) .biz-wall__fade--dark { opacity: 0.85; }
}
/* Desktop: a little stronger than tablets (77.5%) */
@media (min-width: 1024px) {
  html.js.biz-page.biz-dark .biz-wall__fade--dark,
  html:not(.biz-page) .biz-wall__fade--dark,
  html:not(.js) .biz-wall__fade--dark { opacity: 0.775; }
}

/* Soft indigo glow behind the headline (no lime on this page section) */
.biz-hero__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: min(1200px, 140%);
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(43, 29, 143, 0.6), rgba(43, 29, 143, 0.2) 55%, rgba(43, 29, 143, 0)),
    radial-gradient(40% 40% at 50% 50%, rgba(196, 190, 255, 0.1), rgba(196, 190, 255, 0) 70%);
  pointer-events: none;
}

/* Holds the space of home's status pill (same box, never shown), so both headlines line up */
.biz-hero__spacer { visibility: hidden; }

/* The button needs JS to scroll; without it, hide it rather than show a dead control */
html:not(.js) .biz-hero__scroll { display: none; }

.biz-hero__arrow {
  display: inline-block;
  font-size: 1.125rem;
  line-height: 1;
  transform: translateY(-3px);
  transition: transform var(--dur-fast) var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .biz-hero__scroll:hover .biz-hero__arrow { transform: translateY(0); }
}

/* ---------- Shared: section headings (type = home's .section-title) ---------- */
.biz-section-title { max-width: 24em; margin-bottom: var(--head-gap); }
/* Overview: home's title → subtext pairing (18px apart, as in "Choose your path"),
   then the usual heading gap before the columns */
.biz-overview .biz-overview__title { margin-bottom: var(--head-stack); }
.biz-overview__sub { margin-bottom: var(--head-gap); }
.biz-section-title__line { display: block; }
/* Level 2 heading (column and card heads) */
.biz-h2 {
  font-size: var(--text-card);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}

/* ---------- Shared: hex legibility ----------
   A soft navy backdrop behind long text, so the background hex pattern (and its
   mouse trail) fades out behind paragraphs but stays fully visible in open space
   and behind headlines. Feathered edges come from two crossed gradient masks.
   The BackgroundField itself is untouched. Sections that use it clip sideways
   overflow (overflow-x: clip), so the feathered edge never widens the page. */
.biz-veil {
  --veil-edge: 24px;
  position: relative;
  isolation: isolate;
}
.biz-veil::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: calc(var(--veil-edge) * -1);
  background: rgba(7, 0, 48, 0.88);
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(90deg, transparent, #000 var(--veil-edge), #000 calc(100% - var(--veil-edge)), transparent),
    linear-gradient(180deg, transparent, #000 var(--veil-edge), #000 calc(100% - var(--veil-edge)), transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent, #000 var(--veil-edge), #000 calc(100% - var(--veil-edge)), transparent),
    linear-gradient(180deg, transparent, #000 var(--veil-edge), #000 calc(100% - var(--veil-edge)), transparent);
  mask-composite: intersect;
}
/* Mostly-headline blocks (closing CTA): a lighter backdrop, so the hex still reads behind it */
.biz-veil--soft::before { background: rgba(7, 0, 48, 0.6); }
@media (min-width: 768px) {
  .biz-veil { --veil-edge: 56px; }
}

/* ---------- 2. Overview: a text-only signpost ----------
   Three linked columns, each: "01 Discover" (level 2, lime number), the card
   title (level 3, one line from 1024px), the body (level 4). No card backgrounds,
   so the hex and its mouse trail show through; hover/focus adds a faint highlight.
   Subgrid puts heading, title and body on the same lines in all three columns. */
.biz-overview {
  position: relative;
  padding-block: var(--section-space);
}
/* No rule between the navy hero and the overview: the hero's wall fades into the hex
   texture (css/portfolio-wall.css), so the two read as one surface */
html.biz-page .biz-overview { border-top: 1px solid var(--line); }
.biz-sign {
  --sign-pad: var(--space-2);
  --sign-rule: rgba(255, 255, 255, 0.12);
  display: grid;
  margin-inline: calc(var(--sign-pad) * -1); /* text lines up with the section title */
}
.biz-sign__item { display: flex; min-width: 0; }
.biz-sign__item + .biz-sign__item { border-top: 1px solid var(--sign-rule); }
.biz-sign__link {
  position: relative;
  isolation: isolate;
  display: grid;
  flex: 1;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  row-gap: var(--space-2);
  padding: var(--space-4) var(--sign-pad);
  border-radius: var(--radius-lg);
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
/* The faint highlight behind the column */
.biz-sign__link::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
  pointer-events: none;
}
.biz-sign__link:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
/* Level 2: lime number + white stage word, one line */
.biz-sign__heading {
  font-size: var(--text-card);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  white-space: nowrap;
}
.biz-sign__num { color: var(--lime); }
/* Level 3: the card title (brightens on hover/focus) */
.biz-sign__title {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #dcdaea;
  text-wrap: balance;
  transition: color var(--dur-fast) var(--ease);
}
.biz-sign__arrow {
  display: inline-block;
  margin-left: 0.3em;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur) var(--ease);
}
.biz-sign__text { margin: 0; text-wrap: pretty; }
.biz-sign__link:is(:hover, :focus-visible)::before { opacity: 1; }
.biz-sign__link:is(:hover, :focus-visible) .biz-sign__title { color: #fff; }
.biz-sign__link:is(:hover, :focus-visible) .biz-sign__arrow { opacity: 1; transform: translateX(4px); }

@media (min-width: 768px) {
  .biz-sign {
    --sign-pad: var(--space-3);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
  }
  .biz-sign__item + .biz-sign__item { border-top: 0; border-left: 1px solid var(--sign-rule); }
  /* Same rows in all three columns (without subgrid, the one-line heading and title
     below keep the rows level anyway from 1024px) */
  @supports (grid-template-rows: subgrid) {
    .biz-sign__item { display: grid; grid-row: span 3; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }
    .biz-sign__link { grid-row: span 3; grid-template-rows: subgrid; }
  }
}
/* From 1024px every card title fits on one line: level 3 scaled to the column,
   never above home's --text-h3 and always clearly above body size. The arrow's
   room is kept, so hovering never pushes the title out of its column. */
@media (min-width: 1024px) {
  .biz-sign__title {
    font-size: min(var(--text-h3), calc(0.3rem + 1.36vw), 1.5rem); /* measured: the longest title plus its arrow fits from 1024px up (the container stops growing at 1240px) */
    white-space: nowrap;
  }
}

/* ---------- Journey: the Discover / Activate / Deliver stack, with a progress rail ----------
   Wide screens (960px+): container grid, rail left (1/3), both sections right (2/3).
   The rail is sticky for the whole journey and uses home's timeline look
   (css/sections.css .how__rail / .how-step: 2px track at 12% white, 14px ring
   dots, lime fill with a 4px glow, --text-h3 step titles). Below 960px the rail
   hides and a slim progress bar sticks under the nav for as long as the journey
   is on screen. js/businesses.js sets the stage (is-active / is-done,
   aria-current) and the fills (transform only). */
.biz-journey {
  position: relative;
  border-top: 1px solid var(--line);
}
.biz-journey__grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.biz-journey__rail { display: none; }
.biz-journey__main > section:first-child { border-top: 0; } /* the journey draws the line */

/* Rail (home's timeline, applied to this layout) */
.biz-jr {
  position: relative;
  padding-left: 36px; /* home: .how__rail-wrap (rail geometry: the dots sit at -35px) */
}
.biz-jr__track {
  position: absolute;
  left: 7px;
  top: var(--rail-top, 0);
  width: 2px;
  height: var(--rail-height, 0);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.biz-jr__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: 50% 0;
  will-change: transform;
}
.biz-jr__list { display: grid; gap: var(--space-8); } /* home: .how__steps */
.biz-jr__step {
  position: relative;
  display: grid;
  gap: var(--space-2); /* home: .how-step */
  font-size: var(--text-h3); /* home's timeline step title (fits on one line from 960px) */
}
/* The dot, level with the step title (home's ring → lime) */
.biz-jr__step::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -35px;
  top: calc(0.625em - 7px); /* middle of the first title line (line-height 1.25) */
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.biz-jr__step.is-done::before,
.biz-jr__step.is-active::before { background: var(--lime); box-shadow: 0 0 0 4px rgba(209, 238, 43, 0.14); }
/* Step title: home's .how-step__title type; upcoming steps muted */
.biz-jr__link {
  justify-self: start;
  border-radius: 6px;
  font-size: 1em; /* the step's size */
  white-space: nowrap; /* "02 Activate" always on one line */
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.biz-jr__num { transition: color var(--dur) var(--ease); }
.biz-jr__step.is-done .biz-jr__num,
.biz-jr__step.is-active .biz-jr__num { color: var(--lime); }
.biz-jr__step.is-active .biz-jr__link { color: var(--text); }
.biz-jr__link:hover { color: var(--text); }
/* The active step's one-liner: always in the layout (no height change),
   faded and nudged in only under the active step */
.biz-jr__note {
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.biz-jr__step.is-active .biz-jr__note { opacity: 1; transform: none; }

/* Progress bar (below 960px): sticks right under the nav, inside the journey,
   so it arrives with Student work and leaves with the end of Workspace */
.biz-jbar {
  --jbar-h: 44px;
  position: sticky;
  z-index: 40;
  top: var(--header-h);
  height: var(--jbar-h);
  background: rgba(7, 0, 48, 0.88); /* the nav's own fill */
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
}
.biz-jbar__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 100%;
  padding-inline: var(--gutter);
}
.biz-jbar__list li { display: flex; }
.biz-jbar__item {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  min-width: 0;
  border-radius: 6px;
  font-size: 0.875rem; /* 14px: readable on a phone */
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.biz-jbar__item:focus-visible { outline-offset: -2px; }
.biz-jbar__item.is-done .biz-jbar__num,
.biz-jbar__item.is-active .biz-jbar__num { color: var(--lime); }
.biz-jbar__item.is-active { color: var(--text); }
.biz-jbar__track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
}
.biz-jbar__fill {
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}
html:not(.js) .biz-jbar__track,
html:not(.js) .biz-jr__track { display: none; }
/* Below 960px, jumps into the journey land below the nav and the bar (44px);
   jumps elsewhere keep the page's normal offset */
@media (max-width: 959px) {
  .biz-journey :is(.biz-stack__card, .biz-alias) { scroll-margin-top: 44px; }
}

@media (min-width: 960px) {
  .biz-jbar { display: none; }
  /* Rail 1/5, content 4/5. The rail never drops below 200px, so near 960px the
     step titles stay on one line at home's size and the one-liner wraps to two. */
  .biz-journey__grid {
    grid-template-columns: minmax(200px, 1fr) minmax(0, 4fr);
    column-gap: var(--head-gap);
  }
  /* The column runs the full journey height; the rail inside it sticks */
  .biz-journey__rail {
    display: block;
    padding-block: var(--section-space); /* starts level with the first section title */
  }
  /* The rail is as tall as the screen below the nav (home's sticky timeline:
     nav + 24px at the top, the same 24px at the bottom). Its three stages spread
     top / middle / bottom; on short screens the list keeps home's 64px between
     stages and simply grows taller than the screen rather than overlapping. */
  .biz-jr {
    position: sticky;
    top: calc(var(--header-h) + var(--space-3));
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-h) - var(--space-6));
    height: calc(100svh - var(--header-h) - var(--space-6)); /* the screen with browser toolbars showing, so Deliver is never under them */
    min-height: min-content;
  }
  .biz-jr__list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-8); /* the minimum between stages */
  }
}


/* ---------- 3. The Discover card's showcase (3D cover tile left, words right) ---------- */
.biz-sw__layout {
  display: grid;
  gap: var(--head-gap);
  align-items: center;
}
/* Real depth: perspective on the parent, the tile angled at rest so its face turns
   toward the text (left edge closer, right edge further) and tips slightly down.
   js/businesses.js adds a small pointer-follow tilt on top (motion allowed only). */
.biz-sw__stage {
  --tilt-y: 12deg;
  --tilt-x: -4deg;
  perspective: 1200px;
}
.biz-sw__tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: #fff;
  /* Deep, soft, layered shadow (contact, mid, far), in navy for the light card area */
  box-shadow:
    0 0 0 1px rgba(7, 0, 48, 0.06),
    0 2px 4px rgba(7, 0, 48, 0.1),
    0 14px 28px -10px rgba(7, 0, 48, 0.22),
    0 40px 70px -28px rgba(43, 29, 143, 0.4);
  transform: rotateY(var(--tilt-y)) rotateX(var(--tilt-x));
  transform-origin: 0 50%; /* pivot on the left edge: it never swings out into the gutter */
  transition: transform 600ms var(--ease);
}
.biz-sw__tile.is-following { transition-duration: 120ms; }
.biz-sw__logo-img { display: block; width: min(84%, 560px); height: auto; }
/* A project's cover photo fills the tile edge to edge */
.biz-sw__tile--cover { overflow: hidden; background: #070030; }
.biz-sw__cover { display: block; width: 100%; height: 100%; object-fit: cover; }
/* The featured project in the stacked card: the name and the description a step larger */
.biz-stack__card .biz-sw__title { font-size: var(--text-card); }
.biz-stack__card .biz-sw__text { font-size: 1.125rem; line-height: 1.55; }
.biz-sw__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
.biz-sw__title { margin: 0; }
.biz-sw__text { max-width: 34rem; margin: 0; }
.biz-sw__tags { margin-bottom: var(--space-1); } /* chips → button: 16 + 8 = 24, like text → button */
/* On the light card area: white chips, navy text */
.biz-sw__tags .tag { background: #fff; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
/* Phones keep the demo area's own padding; wider screens give the showcase more air */
@media (min-width: 768px) {
  .biz-stack__card .biz-sw__area { padding: 0; }
}

/* Phones: flat, shadow only */
@media (max-width: 767px) {
  .biz-sw__tile { transform: none; }
}
@media (min-width: 768px) {
  .biz-sw__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* ---------- 4. The journey stack: Discover, Activate, Deliver ---------- */
.biz-ws {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
  overflow-x: clip; /* clip, not hidden: keeps the cards sticky */
}
/* Soft indigo glow behind the cards, matching home's panels (no lime) */
.biz-ws__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 38%;
  width: min(1200px, 140%);
  aspect-ratio: 1.3;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(43, 29, 143, 0.55), rgba(43, 29, 143, 0.18) 55%, rgba(43, 29, 143, 0));
  pointer-events: none;
}

.biz-stack { display: grid; gap: var(--grid-gap); }
/* White card with home's light tokens (navy text), like .tile */
.biz-stack__card {
  --panel: #ffffff;
  --panel-2: #f6f5fb;
  --line: #e9e7f1;
  --line-2: #e3e1ec;
  --hover: #f6f5fb;
  --text: #070030;
  --text-2: #3b3762;
  --text-3: #6c6890;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--card-pad);
  border-radius: 24px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.biz-stack__top { display: grid; gap: var(--space-2); }
.biz-stack__title {
  font-size: var(--text-card);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}
.biz-stack__text { max-width: 30rem; margin: 0; color: var(--text-2); text-wrap: pretty; }
/* The demo sits straight on the white card and fills it (no lavender panel round it) */
.biz-stack__demo {
  position: relative;
  display: grid;
  align-items: center;
  padding: 0;
}
.biz-stack__demo > .sv-demo { width: 100%; }
.biz-stack__card :focus-visible { outline-color: var(--navy); }
/* Alias anchors (#journey-discover, #workspace-plan, #workspace-guide, #workspace-review) sit at the top of their card */
.biz-alias { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

@media (min-width: 768px) {
  .biz-stack__top {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start; /* title and body both start at the top, whichever runs longer */
    column-gap: var(--head-gap);
  }
}

/* Step label on each card ("01 Discover"): shown where the left rail is not (below 960px) */
.biz-stack__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 calc(var(--space-1) * -1);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.biz-stack__label-num {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #6a4cff;
  color: #fff;
  font-size: 0.75rem;
}
@media (min-width: 960px) { .biz-stack__label { display: none; } }

.biz-stack__stage { position: relative; display: grid; gap: var(--grid-gap); border-radius: 24px; }

/* The pinned stage (wide and tall enough, motion allowed; .is-flipping is set by
   js/businesses.js under the same query). One card at a time, made from the hex
   background. Scroll track: the stage, plus 85vh per card change (two), plus 50vh
   of rest on Deliver (STEP_SHARE / REST_SHARE in js/businesses.js). */
@media (min-width: 960px) and (min-height: 700px) and (prefers-reduced-motion: no-preference) {
  .biz-stack.is-flipping {
    --stack-top: calc(var(--header-h) + var(--space-2));
    --stage-h: min(820px, calc(100vh - var(--stack-top) - var(--space-3)));
    display: block;
    height: calc(var(--stage-h) + 2 * 85vh + 50vh);
    overflow-anchor: none; /* the stage's content changes as you scroll; never let the browser re-anchor */
  }
  .biz-stack.is-flipping .biz-stack__stage {
    position: sticky;
    top: var(--stack-top);
    display: block;
    height: var(--stage-h);
  }
  /* Between two cards, the gaps of the turning cells show a soft light ground, never the page */
  .biz-stack.is-flipping .biz-stack__stage.is-swapping { background: #ebe8f8; }
  .biz-stack.is-flipping .biz-stack__card {
    position: absolute;
    inset: 0;
    visibility: hidden;
    padding: var(--space-3) var(--space-4) var(--space-4);
    gap: var(--space-3);
  }
  .biz-stack.is-flipping .biz-stack__card.is-on { visibility: visible; }
  .biz-stack.is-flipping .biz-stack__demo { flex: 1; min-height: 0; padding: 0; }
  /* In the narrower 2/3 column each demo sizes to its own state (no shared 560px floor) */
  .biz-stack.is-flipping .sv-demo--full .nd-window,
  .biz-stack.is-flipping .sv-demo--full .nd-body { min-height: 0; }
  /* Discover inside the fixed-height stage: the demo panel's own padding and a wider
     text column, so the words never run past the card on narrower desktops */
  .biz-stack.is-flipping .biz-stack__card .biz-sw__area { padding: 0 var(--space-2); }
  .biz-stack.is-flipping .biz-stack__card .biz-sw__layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

/* ---------- 5. Workspace formats: home's flip cards, two, centred ---------- */
.biz-formats {
  position: relative;
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
  overflow-x: clip; /* the flip cards' 3D back faces never widen the page */
}
/* Level 2: one size below the section titles */
.biz-formats__title {
  max-width: 24em;
  margin-bottom: var(--head-gap);
  font-size: var(--text-card);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
  text-wrap: balance;
}
.biz-flips { max-width: 880px; margin-inline: auto; }
@media (min-width: 768px) {
  .biz-flips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Milestone dots on the Project Execution path: solid, so the path doesn't show through */
.biz-flips .flip__icon .biz-icon-dot { fill: var(--navy); }

/* ---------- Shared: buttons ----------
   Home's .btn--outline-white (css/flip-cards.css) draws its border in --text: navy
   inside white cards (.tile tokens), white on navy. On white, give it a visible hover. */
.tile .btn--outline-white:hover,
.biz-stack__card .btn--outline-white:hover { background: var(--hover); }

/* ---------- 6. Plans ---------- */
.biz-plans-sec {
  position: relative;
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
  overflow-x: clip; /* the footnotes' backdrop edge never widens the page */
}
.biz-plans { display: grid; gap: var(--grid-gap); }
.biz-plans__item { display: flex; }
.biz-plan {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  max-width: none;
  margin: 0;
  padding: var(--card-pad);
  border-radius: 20px;
  transition: transform 260ms var(--ease);
}
/* Plan names: still the mono label, but bigger and bolder so the three compare at a glance */
.biz-plan__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-1);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text);
}
/* "Start here": navy pill, in the body font (it sits inside the mono .eyebrow label) */
.biz-plan__badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.biz-plan__price { display: flex; align-items: baseline; gap: 4px; color: var(--navy); }
.biz-plan__amt { font-size: var(--text-card); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.biz-plan__per { font-size: 1rem; font-weight: 600; color: var(--text-3); }
.biz-plan__list {
  display: grid;
  align-content: start;
  gap: var(--space-1);
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 1rem;
  color: var(--text);
}
.biz-plan__list li { position: relative; padding-left: 26px; line-height: 1.45; }
/* Small navy check, drawn in CSS (no icon files or data: URLs under the CSP) */
.biz-plan__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.28em;
  width: 6px;
  height: 11px;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
/* "Project Execution or Sales Team format": a quiet link to the formats */
.biz-plan__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-fast) var(--ease);
}
.biz-plan__link:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
/* Buttons sit on one line across the cards */
.biz-plan__cta { align-self: flex-start; max-width: 100%; margin-top: auto; white-space: normal; text-align: center; } /* long labels may wrap in narrow cards */

/* Recommended plan: the "Start here" badge plus a 2px lime outline. No lift, so all
   three cards' tops, prices and buttons stay on the same lines. */
.biz-plan--featured {
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 2px var(--lime);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .biz-plan:hover { transform: translateY(-4px); }
}

/* Side by side from 900px. Subgrid lines up name / title / price / description /
   list / button across the three cards; buttons share the bottom line. */
@media (min-width: 900px) {
  .biz-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
  /* Without subgrid the cards simply stretch to equal height (flex, button pushed down) */
  @supports (grid-template-rows: subgrid) {
    .biz-plans {
      grid-template-rows: repeat(4, auto) 1fr auto; /* name, title, price, description, list, button */
      row-gap: 0;
      align-items: start;
    }
    .biz-plans__item,
    .biz-plan {
      display: grid;
      grid-row: span 6;
      grid-template-rows: subgrid;
      row-gap: var(--space-2);
    }
    .biz-plans__item { row-gap: 0; }
    .biz-plan__list { align-self: start; }
    .biz-plan__cta { align-self: end; justify-self: start; margin-top: var(--space-1); }
  }
}

/* Institutions banner: a solid, slightly lighter navy, so the hex never shows through */
.biz-inst {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--grid-gap); /* the banner continues the plan grid */
  padding: var(--card-pad);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: #151049; /* --panel-2 */
}
.biz-inst__copy { display: grid; gap: var(--space-1); }
.biz-inst .feature__text { margin: 0; color: #cfcce2; } /* brighter than body text: ≈11:1 */
@media (min-width: 768px) {
  .biz-inst { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-4); }
  .biz-inst .btn { flex: none; }
}

/* Footnotes: body size, brighter white, two columns on wider screens */
.biz-notes {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--head-gap);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}
.biz-notes p { text-wrap: pretty; }
.biz-notes strong { color: #fff; font-weight: 700; }
@media (min-width: 768px) {
  .biz-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
}

/* Focus on white cards: navy ring (the site's lime ring would be a thin lime line on white) */
.biz-plan :focus-visible { outline-color: var(--navy); }

/* ---------- 7. FAQs ---------- */
.biz-faq {
  position: relative;
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
  overflow-x: clip; /* clip, not hidden: keeps the title sticky */
}
.biz-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.biz-faq__title { margin-bottom: 0; }
/* "Can't find your answer? Contact us →" under the title */
.biz-faq__help { margin-top: var(--space-2); font-size: 1rem; color: var(--text-3); }
.biz-faq__contact {
  color: var(--lime);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.biz-faq__arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease); }
.biz-faq__contact:is(:hover, :focus-visible) .biz-faq__arrow { transform: translateX(3px); }
.biz-faq__list { border-top: 1px solid var(--line-2); }
.biz-faq__item { border-bottom: 1px solid var(--line-2); }
.biz-faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 1.25rem; /* questions a step under card titles (24), like Handshake's FAQ */
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
}
.biz-faq__btn:hover .biz-faq__q-text { color: #fff; }
/* + that turns into × (two bars, transform only) */
.biz-faq__icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--ease);
}
.biz-faq__icon::before,
.biz-faq__icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-2);
}
.biz-faq__icon::after { transform: rotate(90deg); }
.biz-faq__btn[aria-expanded="true"] .biz-faq__icon { transform: rotate(45deg); }
.biz-faq__btn:hover .biz-faq__icon::before,
.biz-faq__btn:hover .biz-faq__icon::after { background: var(--text); }
/* Open: the × turns lime */
.biz-faq__btn[aria-expanded="true"] .biz-faq__icon::before,
.biz-faq__btn[aria-expanded="true"] .biz-faq__icon::after { background: var(--lime); }

/* Answer: a grid row that eases from 0fr to 1fr. The request asked for a height
   animation, so this is the one deliberate exception to "transform/opacity only";
   it is a short, single-row change and instant with reduced motion. */
.biz-faq__a {
  display: grid;
  grid-template-rows: 1fr;
}
.biz-faq__a-inner { min-height: 0; overflow: hidden; }
.biz-faq__a p {
  max-width: 40rem;
  padding: 0 var(--space-5) var(--space-3) 0;
  color: var(--text-2);
  text-wrap: pretty;
}
/* Collapsed only once js/businesses.js has set the accordion up (.is-ready);
   without JS, or if the script fails, every answer stays readable */
.biz-faq.is-ready .biz-faq__a {
  grid-template-rows: 0fr;
  visibility: hidden; /* closed answers are out of the reading and tab order */
  transition: grid-template-rows var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.biz-faq.is-ready .biz-faq__a.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows var(--dur) var(--ease), visibility 0s;
}
.biz-faq:not(.is-ready) .biz-faq__icon { display: none; }
.biz-faq:not(.is-ready) .biz-faq__btn { cursor: default; }

@media (min-width: 960px) {
  .biz-faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--split-gap); }
  /* The title (and the contact line) stay in view while the questions scroll past */
  .biz-faq__head { position: sticky; top: calc(var(--header-h) + var(--space-4)); align-self: start; }
}

/* ---------- 8. Closing CTA: headline left, team photo right ---------- */
.biz-cta {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-block: var(--section-space);
  border-top: 1px solid var(--line);
}
.biz-cta__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 60%;
  width: min(1100px, 140%);
  aspect-ratio: 1.4;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(43, 29, 143, 0.6), rgba(43, 29, 143, 0.2) 55%, rgba(43, 29, 143, 0));
  pointer-events: none;
}
.biz-cta__inner {
  display: grid;
  gap: var(--split-gap);
  align-items: center;
}
.biz-cta__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  justify-self: start;
}
.biz-cta__title { max-width: 16em; margin: 0; }
.biz-cta__stage {
  width: min(100%, 440px);
  perspective: 1200px;
}
.biz-cta__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: transform 260ms var(--ease);
}
.biz-cta__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* the people fill the frame */
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .biz-cta__stage:hover .biz-cta__photo { transform: translateY(-6px) rotateX(3deg) rotateY(-4deg); }
}
@media (min-width: 960px) {
  .biz-cta__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .biz-cta__stage { justify-self: end; }
  .biz-cta__glow { left: 72%; top: 50%; }
}

/* "future talent." uses home's .ul underline; it draws in once the headline scrolls
   into view (the headline's .reveal → .is-in), not on page load far above */
.js .biz-cta__title:not(.is-in) .ul::after { animation-play-state: paused; }

/* Headings that receive focus after a jump (js/businesses.js adds .biz-jump-target);
   they aren't controls, so no ring */
.biz-jump-target:focus { outline: none; }
