/* ============================================================
   Limitless — Programmes site
   Editorial system built on the Limitless brand tokens.
   Restrained, type-led, lots of white space. Collins / v3 energy.
   ============================================================ */

@import url("../_ds/limitless-design-system-019dd97b-fb16-734e-9f90-0f17585d6a25/colors_and_type.css");

:root {
  --page-x: clamp(20px, 5.2vw, 88px);
  --maxw: 1680px;
  --rule: rgba(43, 43, 43, 0.14);
  --rule-soft: rgba(43, 43, 43, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* Editorial type scale (fluid) */
  --fs-mega:    clamp(3rem, 10.5vw, 11.5rem);
  --fs-giant:   clamp(2.6rem, 7.2vw, 7.5rem);
  --fs-display: clamp(2.2rem, 4.6vw, 5.25rem);
  --fs-h2:      clamp(1.8rem, 3.2vw, 3.4rem);
  --fs-h3:      clamp(1.35rem, 1.9vw, 2.05rem);
  --fs-lede:    clamp(1.25rem, 1.9vw, 1.95rem);
  --fs-body:    clamp(1rem, 1.05vw, 1.1875rem);
  --fs-small:   0.9375rem;
  --fs-meta:    0.75rem;
}

* , *::before, *::after { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  background: var(--ll-white);
  color: var(--ll-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-x: clip;
}

/* Hide native cursor on fine-pointer devices when custom cursor active */
body.has-cursor, body.has-cursor a, body.has-cursor button,
body.has-cursor [data-cursor] { cursor: none; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

::selection { background: var(--ll-ink); color: var(--ll-white); }

/* ---------- Layout helpers --------------------------------- */
.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--page-x); }
.bleed { width: 100%; padding-inline: var(--page-x); }
/* On mobile, full-bleed case-study images become narrow + tall, so object-fit:cover
   crops the sides heavily. Switch to a 2.35:1 cinematic ratio so more of the image reads. */
@media (max-width: 760px) {
  .cs-figure--bleed > img,
  .bleed > .slotwrap > img { height: auto !important; aspect-ratio: 2.35 / 1; }
  .cs-figure--bleed > img,
  .bleed > .slotwrap > img { border-radius: 0 !important; }
  /* Pull full-bleed image captions in from the screen edge to the page margin. */
  .bleed > .slotwrap > .placeholder-cap { padding-inline: var(--page-x); }
}
.section { padding-block: clamp(72px, 11vh, 180px); }
.section--tight { padding-block: clamp(48px, 7vh, 110px); }
.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ---------- Type primitives -------------------------------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-meta);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ll-ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.eyebrow--muted { color: var(--ll-ink-muted); }
.eyebrow .tick { width: 26px; height: 1px; background: currentColor; opacity: 0.5; }

.mega   { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-mega);   line-height: 0.92; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.giant  { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-giant);  line-height: 0.94; letter-spacing: -0.022em; margin: 0; text-wrap: balance; }
.display{ font-family: var(--font-display); font-weight: 500; font-size: var(--fs-display);line-height: 0.98; letter-spacing: -0.02em;  margin: 0; text-wrap: balance; }
.h2     { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h2);     line-height: 1.04; letter-spacing: -0.018em; margin: 0; text-wrap: balance; }
.h3     { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-h3);     line-height: 1.1;  letter-spacing: -0.012em; margin: 0; }
.lede   { font-family: var(--font-body); font-weight: 300; font-size: var(--fs-lede); line-height: 1.5; letter-spacing: -0.01em; margin: 0; text-wrap: pretty; }
.body   { font-size: var(--fs-body); line-height: 1.75; margin: 0; }
.muted  { color: var(--ll-ink-soft); }
.body-muted { color: var(--ll-ink-soft); }

.serif-italic { font-style: italic; }

/* ---------- Buttons / links -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 56px; padding: 0 30px; border-radius: 100px;
  border: 1.5px solid var(--ll-ink); background: transparent; color: var(--ll-ink);
  font-family: var(--font-body); font-weight: 500; font-size: var(--fs-small);
  letter-spacing: 0.01em; white-space: nowrap;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .5s var(--ease);
  position: relative; overflow: hidden;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--ll-ink);
  transform: translateY(101%); transition: transform .5s var(--ease); z-index: 0;
}
.btn:hover { color: var(--ll-white); }
.btn:hover::before { transform: translateY(0); }
.btn--inverse { border-color: rgba(255,255,255,0.55); color: var(--ll-white); }
.btn--inverse::before { background: var(--ll-white); }
.btn--inverse:hover { color: var(--ll-ink); }
.btn .ico { width: 15px; height: 15px; }

/* Text link with animated underline + arrow */
.tlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: var(--fs-small); letter-spacing: 0.01em;
  position: relative; padding-bottom: 3px;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink .ico { width: 13px; height: 13px; transition: transform .45s var(--ease); }
.tlink:hover .ico { transform: translate(3px, -3px); }

/* ---------- Header / nav ----------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  height: 84px; padding-inline: var(--page-x);
  transition: transform .55s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
  mix-blend-mode: normal;
}
.nav--solid { background: rgba(255,255,255,0.86); backdrop-filter: blur(14px); border-bottom-color: var(--rule-soft); }
.nav--hidden { transform: translateY(-100%); }
.nav--ondark { color: var(--ll-white); background: #2B2B2B; backdrop-filter: none; border-bottom-color: rgba(255,255,255,0.14); }
.nav__logo { display: inline-flex; align-items: center; height: 26px; }
.nav__logo svg, .nav__logo img { height: 24px; width: auto; }
.nav__logo .lg-ink { color: var(--ll-ink); }
.nav--ondark .nav__logo { color: var(--ll-white); }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 44px); }
.nav__link {
  font-size: 0.9375rem; font-weight: 500; letter-spacing: 0.005em; position: relative; padding: 6px 0;
}
.nav__link::after {
  content:""; position:absolute; left:0; bottom:2px; height:1.5px; width:100%;
  background: currentColor; transform: scaleX(0); transform-origin:left; transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { margin-left: 8px; }
.nav__cta .btn { height: 44px; padding: 0 22px; }
.nav--ondark .btn { border-color: rgba(255,255,255,0.5); color:#fff; }
.nav--ondark .btn::before { background:#fff; }
.nav--ondark .btn:hover { color: var(--ll-ink); }

.nav__menu-btn { display: none; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: var(--fs-meta); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  }
  .nav__menu-btn .bars { display:flex; flex-direction:column; gap:4px; width:22px; }
  .nav__menu-btn .bars span { height:1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
}

.menu-overlay {
  position: fixed; inset: 0; z-index: 90; background: var(--ll-ink); color: var(--ll-white);
  display: flex; flex-direction: column; justify-content: center; padding: var(--page-x);
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); pointer-events: none;
}
.menu-overlay.open { clip-path: inset(0 0 0% 0); pointer-events: auto; }
.menu-overlay__close { position: absolute; top: 28px; right: var(--page-x); font-size: var(--fs-meta); letter-spacing: 0.16em; text-transform: uppercase; }
.menu-overlay__list { display: flex; flex-direction: column; gap: 6px; }
.menu-overlay__list a { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 9vw, 4rem); line-height: 1.05; letter-spacing: -0.02em; opacity: 0.5; transition: opacity .35s, transform .5s var(--ease); transform: translateX(0); }
.menu-overlay__list a:hover { opacity: 1; transform: translateX(14px); }
.menu-overlay__foot { margin-top: clamp(32px, 6vh, 64px); display: flex; gap: 40px; flex-wrap: wrap; font-size: var(--fs-small); opacity: 0.7; }

/* ---------- Custom cursor ---------------------------------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%; background: #3B82F6;
  transform: translate(-50%, -50%); mix-blend-mode: normal;
  transition: width .4s var(--ease), height .4s var(--ease), background .3s, opacity .3s;
  display: none;
}
.cursor.is-active { display: block; }
.cursor.is-link { width: 54px; height: 54px; background: var(--ll-white); mix-blend-mode: difference; }
.cursor.is-media { width: 92px; height: 92px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.85); backdrop-filter: blur(2px); mix-blend-mode: difference; }
.cursor__label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ll-white); opacity: 0; transition: opacity .3s; mix-blend-mode: normal; white-space: nowrap;
}
.cursor.is-media .cursor__label { opacity: 1; }

/* ---------- Reveal animations ------------------------------
   Fail-open: visible by default; hidden→animate only when <html>.anim
   is set (JS adds it, then removes it if animations don't actually run). */
html.anim .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
html.anim .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* line-clip reveal for big headlines */
.lines { display: block; }
.lines .ln { display: block; overflow: hidden; padding-bottom: 0.18em; }
.lines .ln + .ln { margin-top: -0.18em; }
.lines .ln > span { display: block; }
html.anim .lines .ln > span { transform: translateY(105%); transition: transform 1.05s var(--ease); }
html.anim .lines.in .ln > span { transform: translateY(0); }
html.anim .lines.in .ln:nth-child(2) > span { transition-delay: .09s; }
html.anim .lines.in .ln:nth-child(3) > span { transition-delay: .18s; }
html.anim .lines.in .ln:nth-child(4) > span { transition-delay: .27s; }

@media (prefers-reduced-motion: reduce) {
  html.anim .reveal, html.anim .lines .ln > span { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- Page transition veil --------------------------- */
.veil {
  position: fixed; inset: 0; z-index: 300; background: var(--ll-ink); pointer-events: none;
  transform: translateY(-100%);
}
.veil.cover { animation: veilCover .55s var(--ease) forwards; pointer-events: auto; }
.veil.reveal-out { transform: translateY(0); animation: veilReveal .7s var(--ease) forwards; }
@keyframes veilCover { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes veilReveal { from { transform: translateY(0); } to { transform: translateY(-100%); } }

/* ---------- Footer ----------------------------------------- */
.footer { background: var(--ll-ink); color: var(--ll-white); padding-block: clamp(64px, 9vh, 130px) 40px; }
.footer a { color: #fff; }
.footer__cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; padding-bottom: clamp(48px, 7vh, 96px); }
.footer__cta .display { color: #fff; }
.footer__big { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 6rem); line-height: 0.95; letter-spacing: -0.022em; color:#fff; }
.footer__rule { height: 1px; background: rgba(255,255,255,0.16); margin-block: clamp(40px, 6vh, 72px) clamp(32px, 4vh, 56px); }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer__col h4 { font-size: var(--fs-meta); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.5; font-weight: 600; margin: 0 0 20px; }
.footer__col a, .footer__col p { display: block; font-size: 0.95rem; opacity: 0.85; margin: 0 0 10px; line-height: 1.55; }
.footer__col a { transition: opacity .3s; position: relative; width: fit-content; padding-bottom: 2px; }
.footer__col a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.footer__col a:hover { opacity: 1; }
.footer__col a:hover::after { transform: scaleX(1); }
.footer__logo svg { height: 30px; color: #fff; }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: clamp(48px, 7vh, 88px); font-size: var(--fs-meta); letter-spacing: 0.04em; opacity: 0.55; }
/* Auxiliary legal links — same size as the copyright, Programmes-style underline wipe */
.footer__legal { display: inline-flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer__legal a { position: relative; color: inherit; text-decoration: none; padding-bottom: 2px; }
.footer__legal a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.footer__legal a:hover::after { transform: scaleX(1); }
/* Social icons — match the client-logo hover exactly (opacity .5 → .95, .4s ease) */
.footer__social { display: flex; gap: 14px; margin-top: 26px; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; opacity: 0.5; transition: opacity .4s var(--ease); margin: 0; padding: 0; }
.footer__social a::after { display: none; content: none; }
.footer__social a:hover { opacity: 0.95; }
.footer__social a:hover::after { transform: none; }

@media (max-width: 900px) {
  .footer__cta { grid-template-columns: 1fr; gap: 28px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 560px) { .footer__cols { grid-template-columns: 1fr; } }

/* ---------- Accent dot ------------------------------------- */
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }

/* ---------- Programmes index (hover-preview list) ---------- */
.idx { position: relative; }
.idx__row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: baseline;
  gap: clamp(16px, 3vw, 56px); padding: clamp(22px, 3vw, 40px) 0;
  border-top: 1px solid var(--rule); position: relative; isolation: isolate;
}
.idx__row:last-child { border-bottom: 1px solid var(--rule); }
.idx__row::before {
  content: ""; position: absolute; inset: 0; background: var(--row-accent, var(--ll-ink));
  opacity: 0; transition: opacity .5s var(--ease); z-index: -1; transform: scaleY(0.0); transform-origin: center;
}
.idx__num { font-size: var(--fs-meta); letter-spacing: 0.14em; color: var(--ll-ink-muted); font-weight: 500; padding-top: 0.7em; }
.idx__name { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 5.2vw, 4.6rem); line-height: 0.95; letter-spacing: -0.022em; transition: transform .55s var(--ease), color .4s; }
.idx__promise { font-size: clamp(1rem, 1.4vw, 1.35rem); color: var(--ll-ink-soft); font-weight: 300; align-self: center; max-width: 30ch; transition: color .4s; }
.idx__stage { font-size: var(--fs-meta); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ll-ink-muted); align-self: center; font-weight: 500; }
.idx__go { align-self: center; display: inline-flex; }
.idx__go .ico { width: 22px; height: 22px; transform: rotate(0) scale(0.6); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.idx__row:hover .idx__name { transform: translateX(18px); }
.idx__row:hover .idx__go .ico { transform: rotate(0) scale(1); opacity: 1; }
@media (hover: hover) {
  .idx__row:hover .idx__stage, .idx__row:hover .idx__promise { color: var(--ll-ink); }
}
.idx__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--row-accent); display: inline-block; margin-right: 14px; vertical-align: middle; }

.idx__preview {
  position: absolute; top: 0; left: 0; width: clamp(280px, 26vw, 440px); aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden; pointer-events: none; z-index: 5;
  opacity: 0; transform: translate(-50%, -50%) scale(0.92); transition: opacity .45s var(--ease), transform .55s var(--ease);
  box-shadow: 0 30px 80px rgba(43,43,43,0.22);
}
.idx__preview.show { opacity: 1; }
.idx__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .idx__row { grid-template-columns: auto 1fr auto; }
  .idx__promise { grid-column: 2 / 4; max-width: none; margin-top: 8px; }
  .idx__stage { display: none; }
  .idx__preview { display: none; }
}

/* ---------- Work grid / cards ------------------------------ */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px) clamp(24px, 3vw, 48px); }
.work-grid--stagger .wcard:nth-child(even) { margin-top: clamp(0px, 8vw, 120px); }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } .work-grid--stagger .wcard:nth-child(even) { margin-top: 0; } }
.wcard { display: block; }
.wcard__media { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; background: var(--ll-mist); }
.wcard--tall .wcard__media { aspect-ratio: 3 / 4; }
.wcard__media img, .wcard__media video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.wcard:hover .wcard__media img, .wcard:hover .wcard__media video { transform: scale(1.045); }
.wcard__tag {
  position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px); color: var(--ll-ink);
  font-size: var(--fs-meta); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 14px; border-radius: 100px;
}
.wcard__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 22px; font-size: var(--fs-small); color: var(--ll-ink-muted); }
.wcard__client { font-size: var(--fs-meta); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ll-ink-muted); font-weight: 600; margin: 22px 0 12px; }
.wcard__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.02; letter-spacing: -0.018em; max-width: 22ch; transition: color .4s; }
.wcard:hover .wcard__title { color: var(--ll-ink-soft); }

/* ---------- Marquee ---------------------------------------- */
.marquee { overflow: hidden; white-space: nowrap; display: flex; }
.marquee__track { display: inline-flex; gap: 0; will-change: transform; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 6rem); letter-spacing: -0.02em; padding: 0 0.4em; display: inline-flex; align-items: center; gap: 0.4em; }
.marquee__item .star { color: var(--ll-ink-muted); font-size: 0.5em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Client wall ------------------------------------ */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.clients__cell { background: var(--ll-white); aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 8% 14%; }
.clients__cell svg { width: 100%; height: auto; max-height: 56px; opacity: 0.38; filter: grayscale(1); transition: opacity .4s; }
.clients__cell:hover svg { opacity: 0.85; }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .clients { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Media blocks ----------------------------------- */
.media-fill { position: relative; width: 100%; overflow: hidden; background: #000; }
.media-fill > video, .media-fill > img { width: 100%; height: 100%; object-fit: cover; }
.aspect-21 { aspect-ratio: 21 / 9; }
.aspect-169 { aspect-ratio: 16 / 9; }
.aspect-43 { aspect-ratio: 4 / 3; }

/* utility */
.flow > * + * { margin-top: 1.1em; }
.maxw-60 { max-width: 60ch; }
.maxw-50 { max-width: 50ch; }
.maxw-42 { max-width: 42ch; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ============================================================
   DARK THEME — full #2B2B2B pages (programme.html + case studies)
   ------------------------------------------------------------
   Applied via <body class="theme-dark">. The light-theme classes
   read semantic tokens, so remapping the tokens flips most of the
   page automatically; the few ink-based rules are overridden
   explicitly. Footer + menu overlay already ship dark, untouched.
   Contrast on #2B2B2B: #fff 13.6:1 · rgba(255,255,255,.74) ~9:1 ·
   .56 ~6:1 — all clear AA. Accent tokens are lightened for legibility.
   ============================================================ */
body.theme-dark {
  background: #2B2B2B;
  color: var(--ll-white);
  --ll-ink-soft:  rgba(255,255,255,0.74);
  --ll-ink-muted: rgba(255,255,255,0.56);
  --rule:      rgba(255,255,255,0.18);
  --rule-soft: rgba(255,255,255,0.10);
  --ll-mist:   #2B2B2B;      /* light tint panels → seamless dark */
  --ll-blue:   #A8CBFF;      /* dark brand blue → legible on dark */
  --ll-magenta:#E879C4;      /* dark brand magenta → legible on dark */
}
body.theme-dark .eyebrow { color: var(--ll-white); }
body.theme-dark .eyebrow--muted { color: var(--ll-ink-muted); }
/* section rules drawn with the ink token */
body.theme-dark .stats,
body.theme-dark .achieve { border-top-color: rgba(255,255,255,0.85); }
/* buttons on dark → spectrum-stroke (shared definition further below) */
/* programme prev/next: white cards → dark cards */
body.theme-dark .pnav a { background: #333333; }
body.theme-dark .pnav a:hover { background: #3c3c3c; }
/* other-programmes chips */
body.theme-dark .otherprog a:hover { border-color: var(--ll-white); }
body.theme-dark .otherprog a.cur { background: var(--ll-white); color: var(--ll-ink); border-color: var(--ll-white); }
/* dynamic programme accent → lightened so accent TEXT + dots stay legible */
body.theme-dark .feat__n { color: color-mix(in srgb, var(--acc), #fff 46%); }
body.theme-dark .challenge__i,
body.theme-dark .achieve__dot { background: color-mix(in srgb, var(--acc), #fff 40%); }
body.theme-dark [data-acc-dot] {
  background: color-mix(in srgb, var(--acc), #fff 40%) !important;
  color: color-mix(in srgb, var(--acc), #fff 40%) !important;
}

/* Client-logo tile — replaces the round photo avatar in testimonials.
   White rounded tile so the full-colour brand mark reads on the dark page. */
.quote-block__logo {
  min-width: 150px; height: 118px; border-radius: 18px; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 22px 26px; flex: none;
}
.quote-block__logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.quote-block__logo--text { font-family: var(--font-display); font-weight: 500; font-size: 2rem; letter-spacing: -0.01em; color: var(--ll-ink); }
/* wide wordmark logos read small in the tile — scale them up 150% */
.quote-block__logo--150 img { transform: scale(1.5); }
@media (max-width: 760px) { .quote-block__logo { min-width: 0; width: 100%; max-width: 220px; } }

/* ---------- Spectrum-stroke button (on #2B2B2B backgrounds) ----------
   Gradient hairline border in place of the solid stroke; the wash animates
   on hover. Shared across the homepage dark sections, work-dark, footer,
   ondark nav, and every full-dark (theme-dark) page. */
@property --spec-x { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.btn--glass, .sec-dark .btn, .work-dark .btn, .footer .btn, .nav--ondark .btn, body.theme-dark .btn { border: none; color: #fff; background: transparent; transition: color .4s var(--ease); }
.btn--glass::before, .sec-dark .btn::before, .work-dark .btn::before, .footer .btn::before, .nav--ondark .btn::before, body.theme-dark .btn::before { display: none; }
.btn--glass::after, .sec-dark .btn::after, .work-dark .btn::after, .footer .btn::after, .nav--ondark .btn::after, body.theme-dark .btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: linear-gradient(90deg, #EA2AB4, #FFD008, #0FF48C, #13C0D3, #991176, #EA2AB4);
  background-size: 300% 100%; background-position: var(--spec-x) 0;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.45; transition: opacity .4s var(--ease); pointer-events: none;
}
.btn--glass:hover, .sec-dark .btn:hover, .work-dark .btn:hover, .footer .btn:hover, .nav--ondark .btn:hover, body.theme-dark .btn:hover { color: #fff; }
.btn--glass:hover::after, .sec-dark .btn:hover::after, .work-dark .btn:hover::after, .footer .btn:hover::after, .nav--ondark .btn:hover::after, body.theme-dark .btn:hover::after { opacity: 1; animation: specWash 2.6s linear infinite; }
@keyframes specWash { to { --spec-x: 300%; } }
@media (prefers-reduced-motion: reduce) { .btn--glass:hover::after, .footer .btn:hover::after, .nav--ondark .btn:hover::after, body.theme-dark .btn:hover::after { animation: none; } }

/* ---------- Legal / policy pages (dark) ------------------- */
.legal { padding-top: clamp(120px, 17vh, 200px); padding-bottom: clamp(60px, 9vh, 130px); }
.legal__head { max-width: 62ch; margin-bottom: clamp(44px, 6vh, 80px); }
.legal__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-meta); letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 600; }
.legal__eyebrow .tick { width: 7px; height: 7px; border-radius: 50%; background: var(--ll-white); display: inline-block; }
.legal__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 6vw, 6rem); line-height: 0.98; letter-spacing: -0.026em; color: var(--ll-white); margin: clamp(20px,3.4vh,34px) 0 0; }
.legal__meta { font-size: var(--fs-small); color: rgba(255,255,255,0.5); margin-top: clamp(18px,2.4vh,26px); letter-spacing: 0.02em; }
.legal__body { max-width: 74ch; }
.legal__body > * + * { margin-top: 1.15em; }
.legal__body h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2.4vw, 1.95rem); line-height: 1.08; letter-spacing: -0.018em; color: var(--ll-white); margin-top: clamp(48px, 6vh, 84px); }
.legal__body h3 { font-size: 1.05rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-top: clamp(30px,3.5vh,44px); }
.legal__body h2:first-child, .legal__body h3:first-child { margin-top: 0; }
.legal__body p, .legal__body li { font-size: clamp(1rem, 1.25vw, 1.12rem); font-weight: 300; line-height: 1.75; color: rgba(255,255,255,0.72); }
.legal__body ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 1.1em; }
.legal__body ul ul { margin-top: 10px; margin-left: 22px; }
.legal__body li { position: relative; padding-left: 26px; }
.legal__body li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: #BBDCFF; }
.legal__body a { color: #fff; text-decoration: none; position: relative; padding-bottom: 1px; }
.legal__body a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.legal__body a:hover::after { transform: scaleX(1); }
.legal__note { margin-top: clamp(40px,5vh,64px); padding: clamp(22px,3vw,32px); border: 1px solid var(--rule); border-radius: 14px; background: rgba(255,255,255,0.03); }
.legal__note p { margin: 0; }
