/* The Living Intelligence (2026-10-16, local slice). Design System 2.0 tokens
   come from theme.css (--sr-*). Desktop: story left, sticky object right.
   Phone: the object sits sticky at the top, the story scrolls beneath it. */
html.sr-night .li { position: relative; background: transparent; }
html.sr-night .li-grid {
  width: var(--sr-box); margin-inline: auto; display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 4vw, 64px);
}
html.sr-night .li-story { grid-column: 1; grid-row: 1; position: relative; z-index: 1; }
html.sr-night .li-stage {
  grid-column: 2; grid-row: 1; position: sticky; top: 76px; height: calc(100svh - 76px); align-self: start;
}
html.sr-night .li-canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .9s cubic-bezier(.22, 1, .36, 1); }
html.sr-night .li.li-ready .li-canvas { opacity: 1; }
html.sr-night .li-ch { min-height: 92svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(48px, 8vh, 96px); }
html.sr-night .li-ch-hero { min-height: calc(100svh - 76px); padding-top: clamp(32px, 6vh, 72px); }
html.sr-night main .li-h1, html.sr-night .li-h1 {
  font-family: var(--sr-serif) !important; font-weight: 400 !important; font-size: clamp(52px, 6.6vw, 104px) !important;
  line-height: .98 !important; letter-spacing: -.04em !important; color: var(--sr-ink) !important; margin: 18px 0 28px !important; max-width: 9ch !important;
}
html.sr-night main .li-h2, html.sr-night .li-h2 {
  font-family: var(--sr-serif) !important; font-weight: 400 !important; font-size: clamp(40px, 4.6vw, 68px) !important;
  line-height: 1.02 !important; letter-spacing: -.035em !important; color: var(--sr-ink) !important; margin: 16px 0 24px !important; max-width: 13ch !important;
}
html.sr-night .li-lead { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--sr-muted); max-width: 34ch; margin: 0 0 36px; }
html.sr-night .li-p { font-size: 17px; line-height: 1.7; color: var(--sr-body); max-width: 40ch; margin: 0; }
html.sr-night .li-actions { display: flex; flex-wrap: wrap; gap: 12px; }
html.sr-night .li-magnetic { transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .2s ease !important; will-change: transform; }
html.sr-night .li-pillars { display: flex; gap: 14px; margin: 40px 0 0; font: 500 12px/1 var(--sr-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sr-muted); }
html.sr-night .li-pillars span + span::before { content: "|"; margin-right: 14px; color: var(--sr-rule); }
html.sr-night .li-price { margin: 18px 0 0; font-size: 14px; color: var(--sr-muted); max-width: 46ch; }
html.sr-night .li-price a { color: var(--sr-ink); text-decoration: underline; text-decoration-color: var(--sr-rule); text-underline-offset: 4px; }
html.sr-night .li-scroll { margin-top: auto; padding-top: 32px; font: 500 11px/1 var(--sr-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sr-faint, #807b73); }
html.sr-night .li-scroll::after { content: ""; display: block; width: 1px; height: 40px; margin-top: 12px; background: linear-gradient(var(--sr-accent), transparent); animation: li-drip 2.4s cubic-bezier(.22, 1, .36, 1) infinite; transform-origin: top; }
@keyframes li-drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
html.sr-night .li-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
html.sr-night .li-tags li { font: 500 12px/1 var(--sr-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sr-ink); border: 1px solid var(--sr-rule); border-radius: 999px; padding: 9px 12px; background: rgba(255, 255, 255, .6); }
html.sr-night .li-stages { list-style: none; padding: 0; margin: 28px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; max-width: 420px; }
html.sr-night .li-stages button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: 10px; align-items: baseline; width: 100%;
  padding: 10px 12px; border-radius: 8px; font: 500 15px/1.3 var(--sr-sans); color: var(--sr-ink); transition: background-color .2s ease, color .2s ease;
}
html.sr-night .li-stages button span { font: 500 11px/1 var(--sr-mono); color: var(--sr-muted); letter-spacing: .06em; }
html.sr-night .li-stages button:hover, html.sr-night .li-stages button[aria-pressed="true"] { background: var(--sr-soft); }
html.sr-night .li-stages button[aria-pressed="true"], html.sr-night .li-stages button[aria-pressed="true"] span { color: var(--sr-accent); }
html.sr-night .li-stages button:focus-visible { outline: 3px solid var(--sr-ink); outline-offset: 2px; }
/* text reveal: line by line as each chapter scrolls in (transform only, never hidden) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.sr-night .li-ch > * { animation: li-rise both cubic-bezier(.22, 1, .36, 1); animation-timeline: view(); animation-range: entry 5% entry 55%; }
  }
}
@keyframes li-rise { from { transform: translate3d(0, 16px, 0); } to { transform: none; } }
@media (max-width: 900px) {
  html.sr-night .li-grid { grid-template-columns: 1fr; }
  html.sr-night .li-stage { grid-column: 1; grid-row: 1; top: 64px; height: 44svh; z-index: 2; background: linear-gradient(var(--sr-paper) 80%, rgba(247, 245, 240, 0)); }
  html.sr-night .li-story { grid-column: 1; grid-row: 2; }
  html.sr-night .li-ch { min-height: 70svh; padding-block: 40px 56px; }
  html.sr-night .li-ch-hero { min-height: auto; padding-top: 8px; }
  html.sr-night main .li-h1, html.sr-night .li-h1 { max-width: none !important; }
  html.sr-night .li-stages { grid-template-columns: 1fr 1fr; }
}

/* ---- inner-page openings (one chapter, the object gathers on arrival) ---- */
html.sr-night .li-opening .li-stage { position: relative; top: auto; height: auto; min-height: min(72svh, 680px); }
html.sr-night .li-opening .li-ch-hero { min-height: min(78svh, 760px); padding-block: clamp(40px, 7vh, 88px); }
html.sr-night main .li-opening .li-h1, html.sr-night .li-opening .li-h1 { font-size: clamp(44px, 5.4vw, 84px) !important; line-height: 1.02 !important; max-width: 14ch !important; }
html.sr-night .li-opening .li-lead { max-width: 42ch; }
html.sr-night .li-opening :is(.sv-actions, .ed-cta-row, .li-actions) { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
html.sr-night .li-opening .li-extra { margin-top: 28px; }
/* ---- dot bands (public/li-bands.js): the photos became dot scenes ---- */
/* round 12: a full-screen scroll scene. The band is tall; its stage sticks to the
   screen while the dots morph through three shapes, then the page moves on. */
html.sr-night .li-band {
  position: relative; width: 100vw; margin-left: calc(50% - 50vw); height: 260svh;
  background: var(--sr-paper); border-block: 1px solid var(--sr-rule);
}
html.sr-night .li-band-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
html.sr-night .li-band-label {
  position: absolute; left: max(var(--sr-gutter, 24px), calc((100vw - var(--sr-w, 1280px)) / 2)); bottom: clamp(24px, 5vh, 48px); margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 12px/1.2 var(--sr-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--sr-faint, #807b73);
}
html.sr-night .li-band-label span { transition: color .4s ease; }
html.sr-night .li-band-label span.on { color: var(--sr-accent); }
html.sr-night .li-band-label span.on::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 760px) { html.sr-night .li-band { height: 220svh; } html.sr-night .li-band-label { font-size: 11px; gap: 6px 14px; right: 16px; } }
@media (prefers-reduced-motion: reduce) { html.sr-night .li-band { height: auto; } html.sr-night .li-band-stage { position: relative; height: 70svh; } }
html.sr-night .li-band-stage > canvas, html.sr-night .li-statement > canvas.li-band-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s cubic-bezier(.22, 1, .36, 1);
}
html.sr-night :is(.li-band, .li-statement).li-band-on canvas { opacity: 1; }
html.sr-night .li-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the homepage statement: same text, dots instead of the photo */
html.sr-night:not(#sr) .sr-art.li-statement { background: var(--sr-paper) !important; }
html.sr-night:not(#sr) .sr-art.li-statement::before { display: none !important; }
html.sr-night:not(#sr) .sr-art.li-statement::after { background: linear-gradient(90deg, rgba(247,245,240,.96) 0%, rgba(247,245,240,.85) 34%, rgba(247,245,240,0) 56%) !important; z-index: 0; }
html.sr-night .sr-art.li-statement > canvas.li-band-canvas { z-index: -1; }
@media (max-width: 760px) {
  html.sr-night:not(#sr) .sr-art.li-statement::after { background: linear-gradient(180deg, rgba(247,245,240,0) 30%, rgba(247,245,240,.9) 50%, rgba(247,245,240,.98) 64%) !important; }
}
/* the artwork band under an opening: full width, no text, no veil */
html.sr-night .sr-art.sr-art-band { min-height: clamp(280px, 52svh, 620px) !important; padding: 0 !important; }
html.sr-night:not(#sr) .sr-art.sr-art-band::after { background: linear-gradient(180deg, rgba(247,245,240,.0) 70%, rgba(247,245,240,.35)) !important; }
@media (max-width: 900px) {
  html.sr-night .li-opening .li-stage { min-height: 0; height: 40svh; position: relative; top: auto; }
  html.sr-night .li-opening .li-ch-hero { min-height: auto; padding-block: 16px 48px; }
  html.sr-night .sr-art.sr-art-band { min-height: 36svh !important; }
}
/* an opening inside a container (pricing, blog) uses the container's width */
html.sr-night main :is(.srp-wrap, .container, .sv-wrap) .li .li-grid { width: 100%; }
html.sr-night main .li-opening .news-topics { margin-top: 28px; }
html.sr-night main .li-opening .srp-trust { margin-top: 8px; }

/* ---- the companion: the same object follows the reader down the page ---- */
/* inside the content box, on its right: the empty space beside every section heading */
html.sr-night .li-follow {
  position: fixed; z-index: -1; pointer-events: none; top: 76px; height: calc(100vh - 76px);
  right: max(var(--sr-gutter, 24px), calc((100vw - var(--sr-w, 1280px)) / 2));
  width: min(40vw, 560px);
}
html.sr-night .li-follow .li-stage { position: absolute; inset: 0; height: 100%; }
html.sr-night .li-follow .li-canvas { opacity: 0; transition: opacity .5s ease; }
@media (max-width: 900px) { html.sr-night .li-follow { top: 64px; left: 0; width: 100vw; height: calc(100vh - 64px); } }

/* client logos (16 Oct): transparent 480px files; the grey look is kept but deeper,
   so light logos (Saffrons yellow, De Hall gold) stay readable; colour on hover */
html.sr-night:not(#sr) .sv-home .sv-logos img { filter: grayscale(1) brightness(.7) contrast(1.35) !important; opacity: .9 !important; mix-blend-mode: normal !important; transition: filter .3s ease, opacity .3s ease; }
html.sr-night:not(#sr) .sv-home .sv-logos .sv-client:hover img { filter: none !important; opacity: 1 !important; }
html.sr-night:not(#sr) .sv-home .sv-logo { padding: 12px !important; }

/* ---- round 13 (16 Oct): bigger client logos + one tidy mobile system ---- */
/* logo wall: 4 per row (2 on phone), tight-cropped logos sized by shape (--lh from
   the component), deep ink so every mark reads; colour on hover */
html.sr-night:not(#sr) .sv-home .sv-logos {
  display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 0 !important;
  border-top: 1px solid var(--sr-rule); border-left: 1px solid var(--sr-rule);
}
html.sr-night:not(#sr) .sv-home .sv-logos .sv-client {
  flex: none !important; margin: 0 !important; border-right: 1px solid var(--sr-rule); border-bottom: 1px solid var(--sr-rule);
  display: flex; align-items: center; justify-content: center;
}
html.sr-night:not(#sr) .sv-home .sv-logo {
  aspect-ratio: auto !important; width: 100%; height: 156px; padding: 22px 20px !important;
  display: flex !important; align-items: center; justify-content: center;
}
html.sr-night:not(#sr) .sv-home .sv-logos img {
  width: auto !important; height: var(--lh, 64px) !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain !important;
  filter: grayscale(1) brightness(.5) contrast(1.6) !important; opacity: .92 !important; mix-blend-mode: normal !important;
  transition: filter .35s ease, opacity .35s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}
html.sr-night:not(#sr) .sv-home .sv-logos .sv-client:hover img { filter: none !important; opacity: 1 !important; transform: scale(1.04); }
html.sr-night:not(#sr) main .sv-home .sv-client-name, html.sr-night:not(#sr) .sv-home .sv-client-name {
  font-family: var(--sr-serif) !important; font-size: 26px !important; line-height: 1.05 !important; letter-spacing: -.02em; color: var(--sr-ink) !important; text-align: center;
}
html.sr-night:not(#sr) .sv-home .sv-logos img { height: calc(var(--lh, 64px) * .8) !important; }
html.sr-night:not(#sr) .sv-home .sv-client-next .sv-logo { flex-direction: column; gap: 8px; text-decoration: none; transition: background-color .3s ease; }
html.sr-night:not(#sr) .sv-home .sv-client-next .sv-logo:hover { background: var(--sr-soft); }
html.sr-night:not(#sr) .sv-home .sv-client-next .sv-client-name { color: var(--sr-accent) !important; }
html.sr-night .sv-client-next-k { font: 500 11px/1 var(--sr-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sr-muted); }
html.sr-night:not(#sr) .sv-home .sv-client-next figcaption { display: none; }
@media (max-width: 1100px) { html.sr-night:not(#sr) .sv-home .sv-logos { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) {
  html.sr-night:not(#sr) .sv-home .sv-logos { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html.sr-night:not(#sr) .sv-home .sv-logo { height: 116px; padding: 16px 18px !important; }
  html.sr-night:not(#sr) .sv-home .sv-logos img { height: calc(var(--lh, 64px) * .72) !important; }
  html.sr-night:not(#sr) main .sv-home .sv-client-name, html.sr-night:not(#sr) .sv-home .sv-client-name { font-size: 21px !important; }
}

/* mobile type scale: ONE system on every page (was 4 unrelated heading sizes,
   a section heading bigger than the page title, one heading squeezed to 13ch) */
@media (max-width: 760px) {
  html.sr-night:not(#sr) main :is(h1, .li-h1, .sv-h1, .ed-h1) { font-size: 44px !important; line-height: 1.02 !important; letter-spacing: -.035em !important; max-width: none !important; }
  html.sr-night:not(#sr) main :is(h2, .li-h2, .sv-h2, .sr-art-h, .srp-h2, .ed-h2) { font-size: 33px !important; line-height: 1.06 !important; letter-spacing: -.03em !important; max-width: none !important; }
  html.sr-night:not(#sr) main .sr-art h2.sr-art-h, html.sr-night:not(#sr) .sv.sv-home > section.sr-art h2.sr-art-h { font-size: 33px !important; max-width: none !important; }
  html.sr-night:not(#sr) main h3 { font-size: 21px !important; line-height: 1.25 !important; }
  html.sr-night:not(#sr) main :is(.li-lead, .sv-lead, .sr-art-lead, .ed-lead) { font-size: 17px !important; line-height: 1.6 !important; }
  html.sr-night:not(#sr) main :is(.sv-kicker, .ed-kicker, .eyebrow) { font-size: 11px !important; letter-spacing: .1em !important; margin-bottom: 12px !important; }
  html.sr-night:not(#sr) main p { overflow-wrap: anywhere; }
  /* buttons: full width, same height, stacked with one gap */
  html.sr-night:not(#sr) main :is(.li-actions, .sv-actions, .sr-art-actions, .ed-cta-row) { flex-direction: column; align-items: stretch; gap: 12px !important; }
  html.sr-night:not(#sr) main :is(.li-actions, .sv-actions, .sr-art-actions, .ed-cta-row) > :is(a, button) { justify-content: center; text-align: center; min-height: 48px; }
  /* the pause control becomes a small round icon, so it never covers content */
  .uxm-toggle { width: 40px !important; height: 40px !important; padding: 0 !important; border-radius: 50% !important; justify-content: center !important; }
  .uxm-toggle span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* the homepage statement: dots on top, text below, never on top of each other */
  html.sr-night:not(#sr) .sr-art.li-statement { padding-top: calc(42svh + 24px) !important; padding-bottom: 56px !important; min-height: 0 !important; align-items: flex-start !important; }
  html.sr-night .sr-art.li-statement > canvas.li-band-canvas { bottom: auto !important; height: 42svh !important; }
  html.sr-night:not(#sr) .sr-art.li-statement::after { display: none !important; }
}

/* 16 logos + the "Your business" tile spanning 2 columns = full rows at 6 / 3 / 2 */
html.sr-night:not(#sr) .sv-home .sv-logos .sv-client-next { grid-column: span 2; }
