/* ==========================================================================
   Bedaya — film.css
   The scroll-film home: the film stage + beats, the seam landing, and the
   sections below it. Scoped to .v2 / .film so every other page is untouched.
   Elevation by colour-stepping (surface over field), one accent per screen,
   brand colour only as a tint. Type: Aktiv Grotesk Thin at display scale,
   RNS Sanz for the small tracked labels.
   ========================================================================== */

/* ----- chrome over the film ------------------------------------------- */
body[data-film] .dock { display: none; }
@media (max-width: 860px) { body[data-film] .dock { display: inline-flex; transform: translateX(-50%) translateY(0); } }
.glass-nav.on-dark { background: rgba(255,255,255,.72); border-color: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15); }

/* ----- the film ------------------------------------------------------- */
.film { position: relative; height: 760vh; background: var(--bg); }
.film__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.film__poster, .film__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.film__poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.film__poster[hidden] { display: none; }
.film__canvas { display: block; }
.film__vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(38,52,46,.16) 100%); }
/* K, 2026-09-09: a dark contrast overlay on the banner so the type reads; the type turns white */
.film__scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,16,18,.34) 0%, rgba(12,16,18,.30) 45%, rgba(12,16,18,.56) 100%), radial-gradient(60% 55% at 50% 58%, rgba(12,16,18,.28), transparent 75%); }
.film__fade { position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, rgba(228,235,230,0), var(--bg) 92%); }
html.film-static .film { height: 100vh; height: 100svh; }
html.film-static .film__canvas, html.film-static .film__vignette { display: none; }

/* beats: copy over the film. Positioned so the butterfly stays the hero. */
.beat { position: absolute; z-index: 3; top: 0; bottom: 0; opacity: 0; visibility: hidden; will-change: opacity, transform; display: flex; flex-direction: column; justify-content: center; }
.beat > * { max-width: 44rem; }
.beat::before { display: none; }
.beat h1, .beat h2 { font-family: var(--font-display); font-weight: 200; letter-spacing: -.03em; line-height: 1.0; color: #fff; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.28); }
.beat h1 em, .beat h2 em { font-style: normal; background: linear-gradient(92deg, #cfe6e6 0%, #ABCFD2 40%, #d8c6ea 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.beat .lead { color: rgba(255,255,255,.86); text-shadow: 0 1px 18px rgba(0,0,0,.28); line-height: 1.7; letter-spacing: .01em; }
.beat__label { display: block; font-family: var(--font-ui); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #ABCFD2; margin-bottom: 1rem; }
.beat__label--rules { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.beat__label--rules::before, .beat__label--rules::after { content: ""; width: 48px; height: 1px; background: rgba(171,207,210,.6); }
.beat__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.6rem; }

.beat--centre { left: 6%; right: 6%; align-items: center; text-align: center; }
.beat--centre > * { max-width: 52rem; }
.beat--centre .beat__actions { justify-content: center; }
.beat--hero h1 { font-size: clamp(3rem, 7.2vw, 6.8rem); max-width: 14ch; }
.beat--hero .lead { margin-top: 1.4rem; max-width: 44ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); }


.beat--two { left: 6%; right: 6%; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-content: center; align-items: start; }
.beat--two > * { max-width: none; }
.beat--two::before { display: none; }
.beat__col { position: relative; max-width: 24rem; }
.beat__col::before { content: ""; position: absolute; z-index: -1; inset: -22% -14%; border-radius: 40%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(241,243,241,.62), rgba(241,243,241,.3) 55%, transparent 80%); }
.beat__col--right { justify-self: end; text-align: right; }
.beat__col h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.beat__list { margin: .9rem 0 0; padding: 0; list-style: none; color: var(--body); line-height: 1.75; font-size: clamp(.95rem, 1.15vw, 1.08rem); }


.beat--one h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.beat__depts { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.beat__depts a { padding: .6rem 1.1rem; border-radius: var(--r-pill); background: rgba(255,255,255,.16); font-size: .95rem; color: #fff;
  box-shadow: inset 1px 1px 1px -1px rgba(255,255,255,.9), 0 0 0 1px rgba(44,44,44,.12); transition: box-shadow var(--t) var(--breathe), transform var(--t) var(--breathe); }
.beat__depts a:hover { transform: translateY(-2px); box-shadow: inset 1px 1px 1px -1px rgba(255,255,255,.9), 0 0 0 1.5px rgba(146,107,172,.7); }

.beat--begin { justify-content: center; }
.beat--begin h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); }
.beat--begin .lead { margin-top: 1rem; max-width: 40ch; }

/* the primary CTA is the most confident element on the page */
/* one button language across the page: glass with a halo (the site's own kit).
   primary = purple halo at rest, secondary = teal halo that turns purple on hover — as every old section already does */
.btn--begin { color: #fff; background: rgba(255,255,255,.14);
  box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12), 0 0 0 1.5px rgba(146,107,172,.95), 0 0 26px 4px rgba(146,107,172,.45);
  transition: box-shadow var(--t) var(--breathe), transform var(--t) var(--breathe), background var(--t) var(--breathe); }
.btn--begin::before { display: none; }
.btn--begin:hover { transform: translateY(-2px); background: rgba(255,255,255,.24);
  box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12), 0 0 0 1.5px rgba(146,107,172,1), 0 0 32px 6px rgba(146,107,172,.55); }
.btn--begin:active { transform: translateY(0); }
.btn--quiet { color: #fff; background: rgba(255,255,255,.12);
  box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12), 0 0 0 1.5px rgba(171,207,210,.9), 0 0 22px 3px rgba(171,207,210,.55);
  transition: box-shadow var(--t) var(--breathe), transform var(--t) var(--breathe); }
.btn--quiet::before { display: none; }
.btn--quiet:hover { transform: translateY(-2px);
  box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12), 0 0 0 1.5px rgba(146,107,172,.95), 0 0 28px 4px rgba(146,107,172,.55); }

/* chapter readout — label + a thin bar, bottom left */
.film__chapter { position: absolute; z-index: 4; left: clamp(1rem, 4vw, 3rem); bottom: calc(clamp(1rem, 3.5vh, 2rem) + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: .8rem;
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.film__bar { display: block; width: 120px; height: 1px; background: rgba(255,255,255,.28); overflow: hidden; }
.film__bar b { display: block; height: 100%; background: #ABCFD2; transform-origin: left; transform: scaleX(0); }

@media (max-width: 860px) {
  .beat { left: 6%; right: 6%; justify-content: flex-end; padding-bottom: 16vh; }
  .beat > * { max-width: none; }
  .beat--hero h1 { font-size: clamp(2.3rem, 11vw, 3.4rem); }
  .beat__label { font-size: .68rem; margin-bottom: .6rem; }
  .beat__actions { gap: .6rem; }
  .beat__actions .btn { flex: 1 1 100%; justify-content: center; white-space: nowrap; }
  .beat--one { align-items: center; }
  .beat--one h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .beat--begin { padding-bottom: 16vh; justify-content: flex-end; }
  .beat__ar { font-size: clamp(3rem, 16vw, 4.6rem); }
  .film__chapter { left: 6%; bottom: 5.5rem; }
  .film__scrim { background: linear-gradient(180deg, rgba(12,16,18,.30) 0%, rgba(12,16,18,.22) 40%, rgba(12,16,18,.62) 100%); }
}

/* ----- the page below the film --------------------------------------- */
.v2 .sec { position: relative; padding-block: clamp(80px, 12vh, 150px); }
.v2 .sec--tall { min-height: min(92vh, 900px); display: flex; flex-direction: column; justify-content: center; }
.v2 .sec-head { display: grid; grid-template-columns: 1fr; gap: 1.2rem; align-items: end; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 860px) { .v2 .sec-head { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }
.v2 .sec-head p { color: var(--muted); max-width: 44ch; }
:root { --fs-section: clamp(2.1rem, 4vw, 3.4rem); }
/* one section heading size, film beats excepted */
.v2 h2.big, .v2 .promise__statement, .v2 .deptv2__title, .v2 .approachv1__text h2, .v2 .servicesv1__head h2 { font-size: var(--fs-section); letter-spacing: -.02em; line-height: 1.08; }
.v2 h2.big em, .v2 .reading em { font-style: normal; color: var(--purple-deep); }

/* arrival motion — behind prefers-reduced-motion */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-arrive] > .arrive { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--breathe), transform .9s var(--breathe); }
  html.js [data-arrive].in > .arrive { opacity: 1; transform: none; }
  html.js [data-arrive].in > .arrive:nth-child(2) { transition-delay: .09s; }
  html.js [data-arrive].in > .arrive:nth-child(3) { transition-delay: .18s; }
  html.js [data-arrive].in > .arrive:nth-child(4) { transition-delay: .27s; }
}

/* the landing: melts from the film's last colour into the field, then the reading */
.landing { background: var(--bg); margin-top: -1px; }
.landing .reading { font-family: var(--font-display); font-weight: 200; letter-spacing: -.022em; line-height: 1.08;
  font-size: clamp(2.2rem, 6.2vw, 5.6rem); max-width: 18ch; text-wrap: balance; color: var(--text); }
.landing .reading .w { display: inline-block; transition: opacity .2s linear; }
.landing .after { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: clamp(2rem, 5vw, 4rem); }
@media (min-width: 860px) { .landing .after { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.landing .after p { max-width: 44ch; color: var(--body); }
.landing .after .eyebrow { margin-bottom: .6rem; }
.landing .hair { height: 1px; background: var(--line); margin-top: clamp(2rem, 5vw, 4rem); }

/* departments: sticky crossfading visual + numbered blocks with a growing line */
.depts { background: var(--bg); }
.depts__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .depts__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; } }
.depts__sticky { position: sticky; top: 12vh; height: 76vh; min-height: 420px; display: none; }
@media (min-width: 900px) { .depts__sticky { display: block; } }
.depts__frame { position: relative; height: 100%; border-radius: 28px; overflow: hidden; background: var(--bg-purple); isolation: isolate; }
.depts__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.05); transition: opacity .9s var(--breathe), transform 1.6s var(--breathe); }
.depts__frame img.is-active { opacity: 1; transform: scale(1); }
.depts__frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); border-radius: inherit; pointer-events: none; }
.depts__glow { position: absolute; inset: -20%; z-index: -1; filter: blur(70px); opacity: 0; transition: opacity .9s var(--breathe); will-change: opacity; }
.depts__glow--0 { background: radial-gradient(circle at 60% 60%, rgba(146,107,172,.6), transparent 60%); }
.depts__glow--1 { background: radial-gradient(circle at 60% 60%, rgba(163,203,145,.7), transparent 60%); }
.depts__glow--2 { background: radial-gradient(circle at 60% 60%, rgba(171,207,210,.75), transparent 60%); }
.depts[data-active="0"] .depts__glow--0, .depts[data-active="1"] .depts__glow--1, .depts[data-active="2"] .depts__glow--2 { opacity: .55; }
.depts__list { position: relative; padding-left: 2.2rem; }
.depts__rail { position: absolute; left: 0; top: 1.2rem; bottom: 1.2rem; width: 1px; background: var(--line); }
.depts__rail b { position: absolute; inset: 0; background: var(--purple-deep); transform-origin: top; transform: scaleY(0); }
.dblock { padding-block: clamp(2.2rem, 6vh, 4.2rem); border-bottom: 1px solid var(--line); transition: opacity .6s var(--breathe); opacity: .42; }
.dblock:last-child { border-bottom: 0; }
.dblock.is-active { opacity: 1; }
.dblock__num { font-family: var(--font-ui); font-size: .75rem; letter-spacing: .2em; color: var(--purple-deep); }
.dblock h3 { font-family: var(--font-display); font-weight: 200; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.02em; line-height: 1.08; margin: .6rem 0 .9rem; }
.dblock p { color: var(--body); max-width: 42ch; }
.dblock__img { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 22px; margin-bottom: 1.2rem; }
@media (min-width: 900px) { .dblock__img { display: none; } }
.dblock__more { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.2rem; color: var(--purple-deep); font-weight: 400; }
.dblock__more .arr { transition: transform var(--t) var(--breathe); }
.dblock__more:hover .arr { transform: translateX(4px); }
.dblock:nth-child(2) .dblock__num, .dblock:nth-child(2) .dblock__more { color: var(--sage-dark); }
.dblock:nth-child(3) .dblock__num, .dblock:nth-child(3) .dblock__more { color: var(--teal-deep); }

/* care: five category rows, native scroll-snap strips, no hijack */
.care { background: var(--surface); }
.care__row { padding-block: clamp(1.4rem, 3vw, 2.2rem); border-top: 1px solid var(--line); }
.care__rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.care__rowhead h3 { font-family: var(--font-display); font-weight: 200; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.015em; }
.care__count { font-family: var(--font-ui); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(230px, 24vw, 300px); gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; padding-bottom: .6rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.tcard { position: relative; scroll-snap-align: start; border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; background: var(--bg-ph); isolation: isolate; display: block;
  transition: transform var(--t) var(--breathe), box-shadow var(--t) var(--breathe); }
.tcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--breathe); }
.tcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,36,32,.62), rgba(28,36,32,.06) 55%, transparent); }
.tcard__cap { position: absolute; z-index: 2; left: 1.1rem; right: 1.1rem; bottom: 1rem; color: #fff; }
.tcard__cap h4 { font-family: var(--font-display); font-weight: 300; font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.2; }
.tcard__cap span { display: block; margin-top: .35rem; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .82; }
.tcard:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(44,44,44,.14); }
.tcard:hover img { transform: scale(1.05); }
.tcard:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* team: the real portraits, one row, and the facts */
.team { background: var(--bg); }
.team__row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.team__row a { position: relative; width: clamp(64px, 7.4vw, 104px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg-ph); box-shadow: 0 0 0 1px rgba(255,255,255,.7), 0 6px 18px rgba(44,44,44,.08);
  transition: transform var(--t) var(--breathe), box-shadow var(--t) var(--breathe); }
.team__row a:hover, .team__row a:focus-visible { transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 2px var(--purple), 0 14px 30px rgba(44,44,44,.14); z-index: 2; }
.team__row img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team__row a span { position: absolute; left: 50%; bottom: -1.6rem; transform: translateX(-50%); white-space: nowrap; font-size: .72rem; color: var(--muted); opacity: 0; transition: opacity var(--t) var(--breathe); pointer-events: none; }
.team__row a:hover span { opacity: 1; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact b { display: block; font-family: var(--font-display); font-weight: 200; font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.fact span { display: block; margin-top: .5rem; font-family: var(--font-ui); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* journal: one large card, four small, clip-reveal on arrival */
.journal { background: var(--bg); }
.journey + .journal { padding-top: clamp(40px, 6vh, 72px); }
.jgrid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 860px) { .jgrid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; } .jcard--lead { grid-column: span 2; grid-row: span 2; } }
.jcard { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; background: var(--bg-ph); aspect-ratio: 4/3; isolation: isolate; }
.jcard--lead { aspect-ratio: 4/3; }
@media (min-width: 860px) { .jcard { aspect-ratio: auto; min-height: 240px; } .jcard--lead { min-height: 496px; } }
.jcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--breathe); }
.jcard:hover img { transform: scale(1.04); }
.jcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,36,32,.66), rgba(28,36,32,.05) 55%, transparent); }
.jcard__cap { position: absolute; z-index: 2; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; color: #fff; }
.jcard__cap span { display: block; font-family: var(--font-ui); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .82; margin-bottom: .4rem; }
.jcard__cap h3 { color: #fff; font-family: var(--font-display); font-weight: 300; font-size: 1.3rem; letter-spacing: -.01em; line-height: 1.2; }
.jcard--lead .jcard__cap h3 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
@media (prefers-reduced-motion: no-preference) {
  html.js .jgrid .jcard { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--breathe); }
  html.js [data-arrive].in .jgrid .jcard { clip-path: inset(0 0 0 0); }
  html.js [data-arrive].in .jgrid .jcard:nth-child(2) { transition-delay: .1s; }
  html.js [data-arrive].in .jgrid .jcard:nth-child(3) { transition-delay: .2s; }
  html.js [data-arrive].in .jgrid .jcard:nth-child(4) { transition-delay: .3s; }
  html.js [data-arrive].in .jgrid .jcard:nth-child(5) { transition-delay: .4s; }
}

/* begin: the full-bleed closing image, the Arabic word, the confident CTA */
.begin { position: relative; min-height: min(92vh, 900px); display: flex; align-items: center; overflow: hidden; background: var(--bg-purple); }
.begin__media { position: absolute; inset: 0; }
.begin__media img { width: 100%; height: 100%; object-fit: cover; }
.begin__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(241,243,241,.88), rgba(241,243,241,.55) 45%, rgba(241,243,241,.15)); }
@media (max-width: 860px) { .begin__media::after { background: linear-gradient(to top, rgba(241,243,241,.92), rgba(241,243,241,.6) 55%, rgba(241,243,241,.2)); } }
.begin__inner { position: relative; z-index: 2; max-width: 40rem; }
.begin__ar { font-family: var(--font-display); font-weight: 200; font-size: clamp(3.2rem, 9vw, 8rem); line-height: 1; color: var(--purple-deep); direction: rtl; text-align: left; }
.begin h2 { font-size: clamp(2rem, 4.6vw, 4rem); letter-spacing: -.02em; line-height: 1.04; margin-top: .6rem; }
.begin p { color: var(--body); max-width: 40ch; margin-top: 1rem; }
.begin__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.8rem; align-items: center; }
.begin__hours { margin-top: 1.6rem; font-family: var(--font-ui); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.begin__hours span { white-space: nowrap; }

/* ----- interaction hygiene (Web Interface Guidelines pass) ---------------- */
html:has(body[data-film]) { scroll-padding-top: 7rem; }
.v2 section[id] { scroll-margin-top: 7rem; }
.v2 .btn, .nav__wa, .tcard, .jcard, .team__row a, .beat__depts a, .dblock__more { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.v2 .strip { scroll-padding-inline: var(--gutter); }
@media (max-width: 860px) { .film__chapter { bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); } }

/* the merge: the old ambient leaves start where the film ends */
body[data-film] .leaf-field { top: 760vh; }

/* ==========================================================================
   The audit pass — the old sections tuned to the film's language. Scoped to the
   home (.v2) so the departments and other pages keep their own styles.
   ========================================================================== */
/* north star: flat on the field, a soft sage bloom instead of waves, measured body */
.v2 .promise { position: relative; overflow: hidden; background: var(--bg); padding-block: var(--section-y); }
.v2 .promise__bloom { position: absolute; inset: -20% -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 45%, rgba(163,203,145,.16), rgba(163,203,145,.06) 55%, transparent 80%); }
.v2 .promise .container { position: relative; z-index: 1; }
.v2 .promise__statement { margin-top: 1rem; }
.v2 .promise__body { max-width: 52ch; margin: 1.25rem auto 0; }
.v2 .promise .eyebrow { color: var(--muted); }

/* departments: bloom inside the alpha law, one accent per slide, lighter ring and shadow, a shorter pin, a crossfade not a stagger */
@media (min-width: 821px) { .v2 .deptv2 { min-height: 220vh; } }
.v2 .deptv2__grad { opacity: .5; }
.v2 .deptv2__grad[data-grad="purple"] { background: radial-gradient(circle, rgba(146,107,172,.22), transparent 62%); }
.v2 .deptv2__grad[data-grad="green"]  { background: radial-gradient(circle, rgba(163,203,145,.22), transparent 62%); }
.v2 .deptv2__grad[data-grad="blue"]   { background: radial-gradient(circle, rgba(171,207,210,.24), transparent 62%); }
.v2 .deptv2 .eyebrow--accent { color: var(--muted); }
.v2 .deptv2__outline { stroke-width: .3; opacity: .4; }
.v2 .deptv2__shape { box-shadow: 0 24px 60px rgba(44,44,44,.10); }
.v2 .rt-char { transform: none; transition: opacity 700ms var(--breathe); transition-delay: 0ms !important; }
@media (max-width: 820px) {
  .v2 .deptv2__mcard { text-align: left; padding-inline: var(--gutter); }
  .v2 .deptv2__mcard img { margin-inline: 0; width: 100%; aspect-ratio: 4/3; border-radius: var(--r-card); }
  .v2 .deptv2__mcard p { margin-inline: 0; }
}

/* approach: the placeholder loop is gone; a soft plane in its place, one ring weight, one shadow */
.v2 .approachv1__plane { display: block; background: linear-gradient(160deg, var(--teal-12), var(--purple-18)); box-shadow: none; opacity: .9; }
.v2 .approachv1__shape { box-shadow: 0 24px 60px rgba(44,44,44,.10); }
.v2 .approachv1__ring { border-width: 1.5px; opacity: .4; }
@media (min-width: 821px) { .v2 .journey { min-height: 200vh; } .v2 .journey__stage { padding-top: 6rem; } .v2 .journey .approachv1 { top: 6rem; } }

/* services: fits one screen, the journal's card language, one quiet row that runs once the scene is live */
.v2 .servicesv1__cats { margin-bottom: 1.8rem; max-width: 960px; }
.v2 .scat__img { aspect-ratio: 1; border-radius: var(--r-card); box-shadow: none; }
.v2 .scat__img::after { background: linear-gradient(to top, rgba(28,36,32,.62), rgba(28,36,32,.05) 55%, transparent); }
.v2 .scat__inset { display: none; }
.v2 .scat__label { left: 1.3rem; right: 1.3rem; bottom: 1.1rem; text-align: left; font-weight: 300; font-size: 1.3rem; text-shadow: none; }
.v2 .smq { -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.v2 .smq__track { animation-play-state: paused; }
.v2 .servicesv1.is-live .smq__track { animation-play-state: running; }
.v2 .smq:hover .smq__track, .v2 .smq:focus-within .smq__track { animation-play-state: paused; }
.v2 .pill { background: rgba(255,255,255,.28); box-shadow: inset 1px 1px 1px -1px rgba(255,255,255,.9), 0 0 0 1px rgba(44,44,44,.12); }
.v2 .pill:hover, .v2 .pill:focus-visible { box-shadow: inset 1px 1px 1px -1px rgba(255,255,255,.9), 0 0 0 1.5px rgba(146,107,172,.7); }
@media (max-width: 820px) {
  .v2 .servicesv1__cats { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; gap: .8rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-bottom: .5rem; scrollbar-width: none; }
  .v2 .servicesv1__cats::-webkit-scrollbar { display: none; }
  .v2 .scat { scroll-snap-align: start; }
  .v2 .smq__track { animation-play-state: running; }
  .v2 .beat--begin .btn--quiet { flex-basis: auto; background: none; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; padding-inline: .2rem; }
  /* approach on phones: no second plane, the portrait as a plain card, untouched by the desktop descent script */
  .v2 .approachv1__plane { display: none; }
  .v2 .approachv1__visual { height: auto; min-height: 0; display: block; }
  .v2 .approachv1__media { width: 100%; transform: none !important; opacity: 1 !important; }
  .v2 .approachv1__shape { position: relative; inset: auto; aspect-ratio: 4/3; border-radius: var(--r-card); }
  .v2 .approachv1__ring { display: none; }
}
@media (prefers-reduced-motion: reduce) { .v2 .smq__track { animation: none !important; } }

/* buttons: the secondary glow a touch quieter, as the audit asked */
.v2 .btn--halo { box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12), 0 0 0 1.5px rgba(171,207,210,.9), 0 0 14px 0 rgba(171,207,210,.35); }
.v2 .beat .btn--quiet { color: #fff; }
.v2 .btn--quiet { box-shadow: inset 1.5px 1.5px 1px -1px rgba(255,255,255,.9), inset -1.5px -1.5px 1px -1px rgba(44,44,44,.12), 0 0 0 1.5px rgba(171,207,210,.9), 0 0 14px 0 rgba(171,207,210,.35); }

/* ambient leaves: half as many */
.v2 .leaf-field img:nth-child(even) { display: none; }

/* ==========================================================================
   K, 2026-09-09 — typographic treatment for the sections that read flat
   ========================================================================== */
/* north star: the mission at display size, "health" in the brand gradient, a rule under the eyebrow */
.v2 .promise__statement { font-size: clamp(2.4rem, 4.8vw, 4.2rem); letter-spacing: -.035em; line-height: 1.06; max-width: 22ch; margin-inline: auto; }
.v2 .promise__statement em { font-style: normal; background: linear-gradient(92deg, var(--purple-deep) 0%, var(--purple) 45%, var(--teal-deep) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v2 .promise__rule { width: 56px; height: 1px; margin: 1.1rem auto 1.6rem; opacity: .7; }
.v2 .promise__body { font-size: 1.05rem; line-height: 1.8; color: var(--muted); letter-spacing: .005em; }

/* departments: one treatment for all three slides — counter, eyebrow, a rule in the slide's colour, a tighter display title */
.v2 .deptv2__count { font-family: var(--font-ui); font-size: .72rem; letter-spacing: .2em; color: var(--muted); font-variant-numeric: tabular-nums; }
.v2 .deptv2__rule { width: 56px; height: 1px; margin: .2rem 0 .6rem; opacity: .8; border: 0; background: var(--purple); transition: background 700ms var(--breathe); }
.v2 .deptv2__grad[data-grad="green"] ~ .deptv2__text .deptv2__rule { background: var(--sage-dark); }
.v2 .deptv2__grad[data-grad="blue"] ~ .deptv2__text .deptv2__rule { background: var(--teal-deep); }
.v2 .deptv2__title { letter-spacing: -.035em; line-height: 1.02; }
.v2 .deptv2__desc { font-size: 1.05rem; line-height: 1.8; max-width: 44ch; letter-spacing: .005em; }
.v2 .deptv2__text { gap: .9rem; }

/* services: the three rows are back (K); thumbnails soft, rows quiet until the scene is live */
.v2 .smq__thumb { border: 0; box-shadow: none; border-radius: 12px; opacity: .9; }
