/* SplenDent Care v4: effects layer.
   Scroll scenes are laid out only under html.fx (set by fx.js when motion is allowed).
   Without JS, under prefers-reduced-motion, or with html.reduce, every scene is plain document flow. */

/* ---------- Shared ---------- */
.scene { position: relative; }
html.fx .pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
html.fx .scene .pin > * { will-change: auto; }
.fx-kicker,
.aud__title,
.aud__k,
.b3__k,
.gcard__area,
.stepper__k {
  font-family: var(--text);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- N: smart header ---------- */
.site-header { transition: border-color 200ms var(--ease), transform 320ms var(--ease); }
.site-header.is-hidden { transform: translateY(-100%); }
.hdr-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; }
.hdr-progress__bar {
  display: block; height: 100%;
  background: var(--orange);
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.site-nav__list a[aria-current="true"] {
  text-decoration-line: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
}

/* ---------- I: owner / dentist switch ---------- */
.aud { padding-block: var(--space-l) var(--space-m); }
.aud__title { color: var(--ink-2); }
.seg {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 16px;
  padding: 4px;
  border-radius: 2px;
  background: var(--stone);
  max-width: 100%;
}
html:not(.fxjs) .seg { display: none; }
.seg__btn {
  position: relative; z-index: 1;
  min-height: 48px;
  padding: 0 clamp(14px, 3vw, 26px);
  border: 0; border-radius: 2px;
  background: none;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: color 300ms var(--ease);
}
.seg__btn[aria-selected="true"] { color: var(--white); }
.seg__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.seg__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  border-radius: 2px;
  background: var(--navy);
  transition: transform 420ms var(--ease);
}
.seg[data-on="dentist"] .seg__thumb { transform: translateX(100%); }
.aud__panel { display: grid; gap: var(--space-s); margin-top: var(--space-s); }
.aud__panel:focus { outline: none; }
.aud__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--stone);
  border-radius: 2px;
}
.aud__pic { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms var(--ease); }
.aud__pic.is-on { opacity: 1; }
.aud__pic img { width: 100%; height: 100%; object-fit: cover; }
.aud__pic[data-aud-pic="owner"] img { object-position: 50% 40%; }
.aud__pic[data-aud-pic="dentist"] img { object-position: 60% 30%; }
.aud__text { transition: opacity 220ms var(--ease), transform 220ms var(--ease); }
.aud__text.is-swapping { opacity: 0; transform: translateY(8px); }
.aud__k { color: var(--ink-2); }
.aud__h {
  margin-top: 12px;
  font-size: clamp(2rem, 1.1rem + 2.4vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 450;
}
.aud__l { margin-top: 16px; font-size: var(--fs-lead); line-height: 1.5; max-width: 30em; }
.aud__list { margin-top: 20px; display: grid; gap: 10px; }
.aud__list li { position: relative; padding-left: 28px; line-height: 1.45; }
.aud__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 16px; height: 2px; background: currentColor; }
.aud__cta { margin-top: 28px; }
@media (max-width: 699px) {
  .aud__media { margin-inline: calc(-1 * var(--margin)); max-width: none; border-radius: 0; }
  .seg { display: grid; width: 100%; }
  html:not(.fxjs) .seg { display: none; }
  .seg__btn { padding-inline: 8px; }
}
@media (min-width: 1000px) {
  .aud__panel { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 4vw, 80px); align-items: center; }
}

/* ---------- B1: owners headline ---------- */
.b1__pin { max-width: calc(var(--max) + 2 * var(--margin)); margin-inline: auto; padding-inline: var(--margin); }
.b1__title { font-size: var(--fs-h2); }
.b1__line { display: block; }
.b1__line--1::before { content: ""; display: block; width: 56px; height: 3px; margin-bottom: clamp(20px, 1rem + 1vw, 32px); background: var(--orange); }
.b1__fig { margin-top: var(--space-s); }
.b1__clip { overflow: hidden; background: var(--stone); }
.b1__clip img { width: 100%; height: auto; aspect-ratio: 2600 / 1000; object-fit: cover; }
.b1__cap { margin-top: 12px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.owners__head { margin-top: var(--space-m); }
@media (max-width: 699px) {
  .b1__fig { margin-inline: calc(-1 * var(--margin)); }
  .b1__clip img { aspect-ratio: 1 / .855; object-position: 100% 50%; }
  .b1__cap { padding-inline: var(--margin); }
}


/* ---------- K: four steps on navy ---------- */
.process__band { position: relative; background: var(--navy); color: var(--on-navy); padding-block: var(--space-l); }
.process__band .h2 { color: var(--white); }
.process__band :focus-visible { outline-color: var(--orange); }
.process__band .tbc { background: #26385A; color: var(--on-navy); }
.stepper { margin-top: var(--space-m); max-width: 980px; }
.stepper__tabs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
html:not(.fxjs) .stepper__tabs, html:not(.fxjs) .stepper__nav { display: none; }
.stepper__track { position: absolute; left: 12.5%; right: 12.5%; top: 21px; height: 2px; background: var(--rule-navy); pointer-events: none; }
.stepper__fill { position: absolute; inset: 0; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); transition: transform 600ms var(--ease); }
.stepper__tab {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 0 6px; border: 0; background: none;
  color: var(--on-navy-2);
  cursor: pointer;
  font-size: .9375rem; line-height: 1.3; text-align: center;
}
.stepper__n {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy-raised);
  border: 2px solid var(--rule-navy);
  color: var(--white);
  font: 600 1rem/1 var(--display);
  transition: transform 400ms var(--ease), background-color 300ms var(--ease), border-color 300ms var(--ease);
}
.stepper__tab.is-done .stepper__n { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.stepper__tab[aria-selected="true"] { color: var(--white); }
.stepper__tab[aria-selected="true"] .stepper__n { border-color: var(--white); transform: scale(1.12); }
.stepper__tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.stepper__panels { margin-top: 36px; }
.stepper__panel + .stepper__panel { margin-top: 28px; }
html.fxjs .stepper__panels { display: grid; }
html.fxjs .stepper__panel { grid-area: 1 / 1; margin: 0; visibility: hidden; opacity: 0; transform: translateX(20px); transition: opacity 400ms var(--ease), transform 500ms var(--ease), visibility 0s linear 500ms; }
html.fxjs .stepper__panel.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity 400ms var(--ease), transform 500ms var(--ease), visibility 0s; }
.stepper__panel:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; }
.stepper__k { color: var(--on-navy-2); }
html.fxjs .stepper__k { display: none; } /* the tab numbers already show the step */
html.fxjs .stepper__h { margin-top: 0; }
.stepper__h { margin-top: 10px; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; font-weight: 450; color: var(--white); }
.stepper__p { margin-top: 14px; max-width: 36em; font-weight: 400; }
.stepper__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.stepper__btn {
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--on-navy); border-radius: 2px;
  background: none; color: var(--on-navy);
  font-size: var(--fs-small); font-weight: 600; cursor: pointer;
}
.stepper__btn[data-st-next] { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.stepper__btn:disabled { opacity: .35; cursor: default; }
.process .note-line { margin-top: 28px; }
@media (max-width: 699px) {
  .stepper__s { font-size: .8125rem; }
}
@media (max-width: 359px) {
  .stepper__s { font-size: .75rem; letter-spacing: -0.01em; }
}

/* ---------- B5: what stays, what we add ----------
   Static: two plain sentences around the Bromley photo. Under html.fx the lines meet, part as the
   photo rises, then the words roll through four pairs. The static sentences stay for screen readers. */
.b5 { padding-block: var(--space-l); }
.b5__pin { padding-inline: var(--margin); }
.b5__stack { width: min(100%, 1120px); margin-inline: auto; }
.b5__line { font-family: var(--display); font-weight: 450; font-size: min(var(--fs-h2), 9.4vw); line-height: 1.04; letter-spacing: -0.03em; color: var(--ink); }
.b5__line--1::before { content: ""; display: block; width: 56px; height: 3px; margin-bottom: clamp(20px, 1rem + 1vw, 32px); background: var(--orange); }
.b5__plus { color: var(--orange); }
.b5__fig { margin-block: clamp(16px, 2.4vh, 28px); }
.b5__clip { overflow: hidden; background: var(--stone); }
.b5__clip img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 745; object-fit: cover; }
.b5__roll, .b5__prog { display: none; }
@media (max-width: 699px) { .b5__clip img { aspect-ratio: 4 / 3; object-position: 22% 50%; } }
html.fx .b5__static { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.fx .b5__roll { display: block; white-space: nowrap; }
html.fx .b5__line--2 { text-align: right; }
/* Each word stack is one grid cell; the clip reaches past the line box so ascenders and descenders survive. */
.b5__cyc { display: inline-grid; clip-path: inset(-0.3em -0.2em -0.3em -0.2em); }
.b5__cyc--2 { justify-items: end; }
.b5__cyc > span { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translate3d(0, 135%, 0); transition: transform 600ms var(--ease), opacity 400ms var(--ease); }
.b5__cyc > span.on { opacity: 1; transform: none; }
.b5__cyc > span.out { transform: translate3d(0, -135%, 0); }
html.fx .b5__prog { display: flex; gap: 6px; justify-content: center; margin-top: clamp(16px, 2.4vh, 28px); }
.b5__prog i { width: 26px; height: 3px; border-radius: 2px; background: var(--rule); transition: background-color 300ms var(--ease); }
.b5__prog i.on { background: var(--navy); }
@media (max-height: 480px) { html.fx .b5__prog { display: none; } }

/* ---------- B2: navy curtain for careers ---------- */
.careers[data-glow], .contact[data-glow], .process__band[data-glow] { isolation: isolate; overflow: clip; }
.b2__pin { background: var(--navy); color: var(--white); }
.b2__panel { padding: var(--space-s) var(--margin); text-align: center; background: var(--navy); }
.b2__line { font-family: var(--display); font-size: clamp(30px, 5.8vw, 92px); line-height: 1.04; letter-spacing: -0.026em; font-weight: 450; color: var(--white); }
.b2__line em { font-style: normal; color: var(--orange); }
.b2__cap { margin-top: 10px; font-size: var(--fs-small); line-height: 1.45; color: var(--on-navy-2); }
.b2__fig { max-width: 1368px; margin-inline: auto; }
.b2__fig img { width: 100%; height: auto; }
html.fx .b2 { height: 260vh; }
html.fx .b2__panel { position: absolute; left: 0; right: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 0 var(--margin); will-change: transform; }
html.fx .b2__panel--top { top: 0; justify-content: flex-end; }
html.fx .b2__panel--bot { justify-content: flex-start; }
html.fx .b2__fig { position: absolute; left: 0; top: 0; z-index: 1; margin: 0; max-width: none; }
html.fx .b2__fig picture, html.fx .b2__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
@media (max-width: 699px) { html.fx .b2__fig img { object-position: 84% 28%; } }

/* ---------- B3: Same team. ---------- */
.b3 { margin-top: var(--space-m); }
.b3__head { text-align: center; }
.b3__k { color: var(--ink-2); }
.b3__word { margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 2rem + 6vw, 8rem); line-height: .95; letter-spacing: -0.035em; }
.b3__fig { margin-top: var(--space-s); }
.b3__card { position: relative; width: min(1240px, 100% - 2 * var(--margin)); margin-inline: auto; aspect-ratio: 1920 / 1050; overflow: hidden; overflow: clip; background: var(--stone); }
.b3__photo, .b3__photo img { display: block; width: 100%; height: 100%; }
.b3__photo img { object-fit: cover; }
.b3__knock { display: none; }
.b3__cap { width: min(1240px, 100% - 2 * var(--margin)); margin: 12px auto 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
@media (max-width: 699px) {
  .b3__card { width: 100%; }
}
html.fx .b3 { height: 300vh; margin-top: 0; }
html.fx .b3__pin { display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); background: var(--paper); }
html.fx .b3__word { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html.fx .b3__fig { margin-top: 16px; }
html.fx .b3__card { background: var(--paper); }
@media (min-width: 700px) {
  html.fx .b3__card, html.fx .b3__cap { width: min(1240px, 100% - 2 * var(--margin), (100svh - var(--header-h) - 150px) * 1.829); }
}
html.fx .b3__knock { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
html.fx .b3__cap { opacity: 0; }

/* ---------- Practices: count-up, gallery, marquee ---------- */
.stats { margin-top: var(--space-m); display: grid; gap: 28px; }
.stat { border-top: 3px solid var(--orange); padding-top: 16px; display: flex; align-items: baseline; gap: 14px; }
.stat__n { font-family: var(--display); font-size: clamp(3rem, 2rem + 4vw, 6rem); line-height: 1; font-weight: 500; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; min-width: .7em; }
.stat__l { font-size: var(--fs-body); line-height: 1.35; color: var(--ink-2); max-width: 12em; }
@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
  .stat { flex-direction: column; gap: 10px; }
}
.gal { margin-top: var(--space-m); }
.gal__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.gal__filters, .faq__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--ink); border-radius: 2px;
  background: transparent; color: var(--ink);
  font-size: var(--fs-small); font-weight: 600; line-height: 1;
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease);
}
.chip:hover { background: var(--stone); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.gal__arrows { display: flex; gap: 8px; }
html:not(.fxjs) .gal__arrows, html:not(.fxjs) .gal__filters, html:not(.fxjs) .gal__progress { display: none; }
.gal__arrow {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 2px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer;
}
.gal__arrow:hover { background: var(--stone); }
.gal__arrow:disabled { opacity: .3; cursor: default; background: transparent; }
.gal__track {
  display: flex; gap: 16px;
  margin-top: 20px; padding: 4px 2px 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__track:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.gal__track.is-drag { scroll-snap-type: none; cursor: grabbing; }
@media (pointer: fine) { .gal__track { cursor: grab; } }
.gcard {
  flex: 0 0 clamp(260px, 78vw, 380px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--rule);
}
.gcard__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.gcard__media img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.gcard__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px 20px 16px; }
.gcard .practice__plate { grid-row: auto; margin-bottom: 10px; }
.gcard__area { color: var(--ink-2); }
.gcard .gcard__name { font-size: clamp(1.2rem, 1.05rem + .4vw, 1.4rem); line-height: 1.22; letter-spacing: -0.012em; font-weight: 400; padding-right: 0; }
.gcard .gcard__place { font-size: var(--fs-small); }
.gcard .gcard__name, .gcard .gcard__place { align-self: auto; } /* undo the old list layout's align-self, which centred short titles */
.gcard .gcard__link { margin-top: auto; padding-top: 6px; justify-self: auto; font-size: var(--fs-small); min-height: 44px; }
.gal__progress { position: relative; height: 2px; margin-top: 12px; background: var(--rule); overflow: hidden; }
.gal__bar-fill { position: absolute; inset: 0; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }
.gal .note-line { margin-top: 20px; }

.marquee { margin-top: var(--space-m); padding-block: 22px; border-block: 1px solid var(--rule); overflow: hidden; }
.marquee__track { display: flex; width: max-content; }
.marquee__run { display: flex; flex: none; }
.marquee__item { flex: none; padding-inline: clamp(16px, 2vw, 32px); font-family: var(--display); font-size: clamp(1.5rem, 1rem + 2vw, 2.75rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 400; white-space: nowrap; }
.marquee__item::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: clamp(32px, 4vw, 64px); border-radius: 50%; background: var(--orange); vertical-align: .2em; }
@keyframes fx-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  html.fx .marquee__track { animation: fx-marquee 70s linear infinite; }
  html.fx .marquee:hover .marquee__track { animation-play-state: paused; }
}
html:not(.fx) .marquee__track { width: auto; flex-wrap: wrap; justify-content: center; padding-inline: var(--margin); }
html:not(.fx) .marquee__run { flex-wrap: wrap; justify-content: center; flex: 1 1 100%; row-gap: 8px; }
html:not(.fx) .marquee__run + .marquee__run { display: none; }
html:not(.fx) .marquee__item { flex: 0 1 auto; white-space: normal; text-align: center; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
html:not(.fx) .marquee__item::after { margin-left: clamp(16px, 2vw, 32px); }

/* ---------- L: searchable FAQ ---------- */
.faq__tools { margin-top: var(--space-s); display: grid; gap: 16px; align-items: end; }
.faq__label-s { display: block; margin-bottom: 8px; font-size: var(--fs-small); font-weight: 500; }
.faq__input {
  display: block; width: 100%; height: 56px; padding: 0 16px;
  border: 1.5px solid var(--ink-2); border-radius: 2px;
  background: var(--paper); color: var(--ink);
  font-size: 1.125rem;
}
.faq__input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.faq__input::placeholder { color: var(--ink-2); }
/* 320: the full hint fits; 16px still stops iOS zooming on focus. */
@media (max-width: 359px) { .faq__input { font-size: 1rem; padding-inline: 12px; } }
.faq__count { font-size: var(--fs-small); color: var(--ink-2); }
.faq__group.is-solo { grid-column: 1 / -1; }
.faq__empty { margin-top: var(--space-s); font-size: var(--fs-lead); }
.faq mark { background: #FDE3D6; color: var(--ink); border-radius: 2px; padding: 0 .08em; }
@media (min-width: 1000px) {
  .faq__tools { grid-template-columns: minmax(0, 5fr) auto minmax(0, 3fr); column-gap: var(--gutter); }
  .faq__count { padding-bottom: 14px; text-align: right; }
}

/* ---------- B4: white words below the faces ---------- */
.b4sec { background: var(--navy); }
.b4__pin { padding-block: var(--space-m) 0; }
.b4__card { position: relative; width: min(1240px, 100% - 2 * var(--margin)); margin-inline: auto; }
.b4__media { position: relative; overflow: hidden; background: var(--navy-raised); aspect-ratio: 1920 / 1599; }
.b4__media picture, .b4__media img { display: block; width: 100%; height: 100%; }
.b4__media img { object-fit: cover; object-position: 50% 25%; }
.b4__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 15, 21, .82) 0%, rgba(11, 15, 21, .62) 24%, rgba(11, 15, 21, .2) 40%, rgba(11, 15, 21, 0) 46%); }
.b4__words { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 4vw, 48px); color: var(--white); }
.b4__line { font-family: var(--display); font-size: clamp(1.875rem, 1rem + 3.2vw, 4.25rem); line-height: 1.04; letter-spacing: -0.024em; font-weight: 450; color: var(--white); text-wrap: balance; }
.b4__cap { margin-top: 14px; font-size: var(--fs-small); line-height: 1.45; color: #D6DCE6; }
@media (max-width: 699px) {
  .b4__card { width: 100%; }
  .b4__media { aspect-ratio: auto; height: min(68svh, 150vw); }
  .b4__media img { object-position: 35% 30%; }
  .b4__scrim { background: linear-gradient(to top, rgba(11, 15, 21, .85) 0%, rgba(11, 15, 21, .66) 28%, rgba(11, 15, 21, .2) 44%, rgba(11, 15, 21, 0) 50%); }
}

/* ---------- Contact chips ---------- */
.route__chip { border-radius: 2px; padding-inline: 18px 22px; }
.route__help { margin-top: 12px; font-size: var(--fs-small); line-height: 1.5; color: var(--f-opt, var(--ink-2)); }

/* ---------- Glow on navy (pointer: fine only) ---------- */
.fx-glow {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 640px; height: 640px; margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(243, 101, 35, .16), rgba(243, 101, 35, .05) 55%, rgba(243, 101, 35, 0));
  pointer-events: none;
  opacity: 0;
  transition: opacity 400ms var(--ease);
  will-change: transform, opacity;
}
.fx-glow.is-on { opacity: 1; }
.process__band > .wrap, .contact > .wrap { position: relative; }

/* ---------- Magnetic ---------- */
[data-magnetic] { transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 260ms var(--ease); }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; z-index: 25;
  right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  box-shadow: 0 0 0 1px rgba(230, 234, 240, .45), 0 4px 16px rgba(18, 26, 36, .22);
  text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(14px); pointer-events: none;
  transition: opacity 140ms var(--ease), transform 140ms var(--ease), visibility 0s linear 140ms;
}
.totop.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s; }
.totop:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop__track, .totop__arc { fill: none; stroke-width: 2; }
.totop__track { stroke: rgba(230, 234, 240, .22); }
.totop__arc { stroke: var(--orange); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.totop__icon { position: relative; }

/* ---------- Static fallback: reduced motion ---------- */
.reduce .scene { height: auto !important; }
.reduce .pin { position: relative !important; height: auto !important; }
.reduce *, .reduce *::before, .reduce *::after { transition-duration: 0ms !important; animation: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) {
  .scene { height: auto !important; }
  .pin { position: relative !important; height: auto !important; }
  .marquee__track { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .scene { height: auto !important; }
  .pin { position: static !important; height: auto !important; overflow: visible !important; }
  .b1__fig, .who__cta, .b2, .b3, .b4sec, .aud__media, .seg, .stepper__tabs, .stepper__nav,
  .gal__bar, .gal__progress, .marquee, .faq__tools, .faq__empty, .totop, .hdr-progress, .fx-glow, .route__help { display: none !important; }
  .stepper__panel { visibility: visible !important; opacity: 1 !important; transform: none !important; grid-area: auto !important; margin-top: 3mm !important; }
  .stepper__panels { display: block !important; }
  .process__band { background: #fff !important; color: #000 !important; }
  .process__band * { color: #000 !important; }
  .b5__roll, .b5__prog, .b5__fig { display: none !important; }
  .b5__static { position: static !important; width: auto !important; height: auto !important; margin: 0 !important; clip: auto !important; white-space: normal !important; }
  .b5__line { transform: none !important; }
  .gal__track { display: block !important; overflow: visible !important; }
  .gcard { box-shadow: none !important; transform: none !important; display: grid !important; grid-template-columns: 1fr; column-gap: 4mm; break-inside: avoid; }
  .letter__text .w { opacity: 1 !important; }
  .letter__sign { opacity: 1 !important; transform: none !important; }
  .gcard__media { display: none !important; }
  .gcard__body { padding: 2mm 0 !important; }
  .gcard [hidden] { display: none !important; }
  .stat__n { font-size: 20pt !important; }
}

/* Photo resolution caps on very wide screens: the hero (1080 px source) and the
   letter portrait (1086 px source) never display above ~1.2x at DPR 2. */
@media (min-width: 1500px) {
  .hero__figure { max-width: 640px; width: 100%; justify-self: end; justify-content: center; }
  .hero__figure .ba { max-height: 800px; }
  .letter__figure { margin-left: 0; max-width: 640px; }
}

/* Tablet (700 to 999 px): the hero is a single column, so cap the 1080 px source
   at 640 px wide (about 1.19x at DPR 2) instead of letting it run full width. */
@media (min-width: 700px) and (max-width: 999px) {
  .hero__figure { width: 100%; max-width: 640px; }
}

/* Split lists as an accordion (option B): headlines only, a round +/- opens the paragraph.
   Panels collapse only under .js, so without scripts every paragraph stays visible. */
.items--acc { gap: 0; }
.items--acc > li { border-top: 1px solid var(--rule); }
.items--acc > li:last-child { border-bottom: 1px solid var(--rule); }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  width: 100%; min-height: 44px; padding: 20px 0; margin: 0;
  border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer;
}
.acc__t { min-width: 0; text-wrap: balance; }
.acc__btn:focus-visible { outline-offset: 6px; border-radius: 4px; }
.acc__ico {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 2px;
  border: 1px solid var(--rule); color: var(--ink);
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease), transform 450ms var(--ease);
}
.acc__ico::before, .acc__ico::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px;
  background: currentColor; transition: transform 450ms var(--ease);
}
.acc__ico::after { transform: rotate(90deg); }
.acc__btn:hover .acc__ico { border-color: var(--orange); }
.acc__btn:hover .acc__t { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.acc__btn[aria-expanded="true"] .acc__ico { background: var(--orange); border-color: var(--orange); color: var(--on-orange); transform: rotate(180deg); }
.acc__btn[aria-expanded="true"] .acc__ico::after { transform: rotate(0deg); }
.items--acc .acc__in p { margin: 0; padding: 0 54px 22px 0; }
.acc__ico { display: none; }
.js:not(.no-fx) .acc__ico { display: block; }
.js:not(.no-fx) .acc__pnl { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--ease); }
.js:not(.no-fx) .acc__in { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear 450ms; }
/* the h4 wraps the button, so fx.js mirrors the state onto the li */
.js:not(.no-fx) .items--acc > li.is-open .acc__pnl { grid-template-rows: 1fr; }
.js:not(.no-fx) .items--acc > li.is-open .acc__in { visibility: visible; transition-delay: 0s; }
html.reduce .acc__pnl, html.reduce .acc__in, html.reduce .acc__ico, html.reduce .acc__ico::before, html.reduce .acc__ico::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .acc__pnl, .acc__in, .acc__ico, .acc__ico::before, .acc__ico::after { transition: none !important; }
}
@media (forced-colors: active) {
  .acc__ico::before, .acc__ico::after { forced-color-adjust: none; background: CanvasText; }
}
@media print {
  .acc__ico { display: none !important; }
  .acc__btn { padding: 2mm 0 1mm !important; min-height: 0 !important; }
  .acc__pnl { display: block !important; }
  .acc__in { visibility: visible !important; overflow: visible !important; transition: none !important; }
  .items--acc .acc__in p { padding: 0 0 2mm !important; }
  .items--acc > li { border-color: #999 !important; }
}

/* ---------- Careers: role stepper (option A). Without JS the four lines show as a plain list. html.no-fx is set if fx.js fails to load. ---------- */
.step { margin-top: var(--space-m); }
.step__bar { display: none; }
.step__pnl { margin-top: 10px; max-width: 34em; }
.step__k { font-weight: 560; color: var(--white); }
.js:not(.no-fx) .step__bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; border-top: 1.5px solid var(--rule-navy); }
.step__fill { position: absolute; top: -1.5px; left: 0; height: 2px; width: 0; background: var(--orange); transition: width .55s var(--ease); }
.step__tab {
  position: relative; text-align: left; min-height: 44px; padding: 26px 12px 4px 0;
  font: 480 clamp(1rem, .7rem + 1.1vw, 1.6rem)/1.15 var(--display); letter-spacing: -0.016em;
  color: var(--on-navy-2); background: none; border: 0; cursor: pointer; transition: color .3s;
}
.step__tab::before {
  content: ""; position: absolute; top: -6.5px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--navy); border: 1.5px solid var(--on-navy-2); transition: background .3s, border-color .3s;
}
.step__tab:hover, .step__tab[aria-selected="true"] { color: var(--white); }
.step__tab.is-done::before, .step__tab[aria-selected="true"]::before { background: var(--orange); border-color: var(--orange); }
.step__tab:focus-visible { outline-offset: 4px; border-radius: 4px; }
@media (max-width: 479px) {
  .js:not(.no-fx) .step__bar { grid-template-columns: repeat(4, auto); justify-content: space-between; column-gap: 10px; }
  .step__tab { padding-right: 0; font-size: .875rem; }
}
.js:not(.no-fx) .step__pnls { display: grid; margin-top: 22px; }
.js:not(.no-fx) .step__pnl { grid-area: 1 / 1; margin: 0; font-size: var(--fs-lead); color: var(--on-navy); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s .4s; }
.js:not(.no-fx) .step__pnl.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.js:not(.no-fx) .step__k { display: none; }
.careers__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  margin-top: var(--space-m); padding-top: 32px; border-top: 1px solid var(--rule-navy); }
.careers__row .academy__link, .careers__row .careers__cta { margin: 0; }
.careers__row .academy__link a { font: 480 clamp(1.05rem, .9rem + .5vw, 1.3rem)/1.3 var(--display); text-decoration: none; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px; }
.careers__row .academy__link a:hover { color: var(--white); }
/* Caviar Dreams draws the arrow as a thin line that reads as a dash; the arrow uses the text face. */
.careers__row .academy__link a span { font-family: var(--text); font-weight: 400; }
.academy__sub { display: block; max-width: 52ch; margin-top: 10px; font-size: var(--fs-small); line-height: 1.55; color: var(--on-navy-2); }
html.reduce .step__fill, html.reduce .step__tab, html.reduce .step__tab::before, html.reduce .step__pnl { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .step__fill, .step__tab, .step__tab::before, .step__pnl { transition: none !important; } }
@media (forced-colors: active) { .step__tab::before, .step__fill { forced-color-adjust: none; background: CanvasText; border-color: CanvasText; } }
@media print {
  .step__bar { display: none !important; }
  .step__pnls { display: block !important; }
  .step__pnl { opacity: 1 !important; visibility: visible !important; transform: none !important; margin: 0 0 2mm !important; font-size: 10pt !important; transition: none !important; }
  .step__k { display: inline !important; }
  .careers__row { border: 0; padding: 0; }
}

/* ---------- R15 additions (3 Nov) ---------- */
/* Android Chrome: hidden labels inside the cards escaped the scroller and widened the page */
.gal__track { position: relative; }
/* Soft right edge while more practices sit off screen; clears at the end of the row */
@media (min-width: 700px) {
  .gal .gal__track { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 72px), transparent); }
  .gal:has([data-gal-next]:disabled) .gal__track { -webkit-mask-image: none; mask-image: none; }
}
