/* ==========================================================================
   AB Consulting
   ========================================================================== */

:root {
  /* palette: "Encre & Papier", the brand colours from charte-graphique/: warm ink black
     (#1C1A17) on paper white, never pure black on pure white, and no greys. Light mode:
     the sections the layout calls "dark" (hero, contact, footer…) are paper too, and the
     "brand" sections (testimonials, call-to-action bands) are solid ink; see the
     [data-mode="light"] rules at the end of this file. */
  --white: oklch(1 0 0);
  --surface: oklch(0.962 0.009 85);     /* blanc papier #F5F2EC */
  --ink: oklch(0.219 0.007 78);         /* noir encre #1C1A17 */
  --muted: oklch(0.396 0.011 78);       /* soft black for secondary text */
  --rule: color-mix(in oklch, var(--ink) 14%, transparent);

  --brand: oklch(0.219 0.007 78);       /* rules and icons on light backgrounds */
  --brand-deep: oklch(0.219 0.007 78);  /* the solid ink sections */

  --night: oklch(0.976 0.007 89);       /* the hero, contact and footer: a brighter paper #F9F7F2 */
  --on-dark: oklch(0.219 0.007 78);
  --on-dark-muted: oklch(0.396 0.011 78);
  --rule-dark: color-mix(in oklch, var(--on-dark) 16%, transparent);

  --accent: oklch(0.219 0.007 78);      /* highlights: ink */
  --accent-2: oklch(0.354 0.009 81);
  --wall: oklch(0.219 0.007 78);

  /* type */
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-hero: clamp(3.1rem, 1.2rem + 7.4vw, 6rem);
  --t-h2: clamp(2.35rem, 1.3rem + 4.2vw, 4.5rem);
  --t-h3: clamp(1.6rem, 1.1rem + 2vw, 2.75rem);
  --t-lead: clamp(1.5rem, 1rem + 1.9vw, 2.6rem);
  --t-body: 1.0625rem;
  --t-small: 0.875rem;

  /* space */
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --section: clamp(6rem, 3rem + 10vw, 11rem);
  --max: 1440px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* z scale */
  --z-cursor: 60;
  --z-menu: 30;
  --z-nav: 40;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[data-theme="light"] :focus-visible { outline-color: var(--brand); }
::selection { background: var(--brand); color: var(--white); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: .75rem 1rem; background: var(--white); color: var(--ink);
  transform: translateY(-200%); transition: transform .2s;
}
.skip:focus { transform: none; }

/* ---------- shared type ---------- */
.h2 {
  font-family: var(--f-display);
  font-size: var(--t-h2);
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* split words (added by JS) */
.w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > .wi { display: inline-block; will-change: transform; }

/* ---------- buttons & links ---------- */
.btn {
  --bg: var(--ink); --fg: var(--white);
  position: relative;
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 1.05rem 1.6rem;
  background: var(--bg); color: var(--fg);
  font-weight: 500; font-size: .98rem; letter-spacing: .005em;
  border-radius: 999px;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, var(--brand));
  border-radius: inherit;
  clip-path: circle(0% at var(--mx, 50%) var(--my, 50%));
  transition: clip-path .6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.btn--light { --bg: var(--on-dark); --fg: var(--night); --fill: var(--accent); }
.btn--accent { --bg: var(--accent); --fg: var(--night); --fill: var(--white); }
.btn--pill { padding: .7rem 1.15rem; font-size: .9rem; }
.btn__arrow { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-under {
  position: relative; display: inline-block; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-under:hover { background-position: 100% 100%; background-size: 0% 1px; }

/* ---------- home title, written out on load (writeTitle in js/main.js) ---------- */
/* The real text stays in place (for layout, search and screen readers) but is hidden
   while an SVG copy is drawn over it; the failsafe reveals it if the script never runs. */
.js .hero__title[data-write] {
  position: relative; color: transparent;
  animation: write-failsafe .01s 4.5s forwards;
  transition: color .7s var(--ease-out);
}
.js .hero__title[data-write].is-written { color: var(--on-dark); animation: none; }
@keyframes write-failsafe { to { color: var(--on-dark); } }
.write { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.write text {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 96;
  fill: var(--on-dark); stroke: var(--accent); stroke-linejoin: round; stroke-linecap: round;
}
.write__nib {
  fill: var(--white);
  filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 12px color-mix(in oklch, var(--accent) 70%, transparent));
}

/* ---------- cursor (fine pointers only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: grid; place-items: center;
    position: fixed; left: 0; top: 0; z-index: var(--z-cursor);
    width: 10px; height: 10px; margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    mix-blend-mode: difference;
    transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), opacity .3s;
    opacity: 0;
  }
  .cursor.is-on { opacity: 1; }
  .cursor.is-link { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
  .cursor.is-label {
    width: 96px; height: 96px; margin: -48px 0 0 -48px;
    mix-blend-mode: normal; background: var(--accent);
  }
  .cursor__label { font-size: .75rem; font-weight: 600; color: var(--night); opacity: 0; transition: opacity .3s; }
  .cursor.is-label .cursor__label { opacity: 1; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: var(--z-nav);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  color: var(--on-dark);
  transition: color .5s var(--ease-out), transform .6s var(--ease-out), background-color .5s var(--ease-out);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--nav-bg, transparent);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.nav.is-scrolled::before { opacity: 1; }
.nav.is-hidden { transform: translateY(-100%); }
.nav[data-theme="light"] { color: var(--ink); --nav-bg: color-mix(in oklch, var(--surface) 92%, transparent); }
.nav[data-theme="dark"] { --nav-bg: color-mix(in oklch, var(--night) 90%, transparent); }
.nav[data-theme="brand"] { --nav-bg: color-mix(in oklch, var(--brand-deep) 92%, transparent); }
.nav.is-scrolled::before { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.brand { display: flex; align-items: center; gap: .8rem; }
.brand__mark { display: block; height: 2.45rem; width: auto; fill: currentColor; }
.brand__name { font-size: .72rem; line-height: 1.2; letter-spacing: .01em; opacity: .8; padding-left: .8rem; border-left: 1px solid currentColor; }

.nav__links { display: flex; gap: clamp(1rem, 2vw, 2.25rem); font-size: .93rem; }
.nav__links a { position: relative; padding: .3rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__links { align-items: center; }

/* expertise dropdown */
.nav__dd { position: relative; }
.nav__dd-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem 0; position: relative; }
.nav__dd-btn::after {
  content: ""; position: absolute; left: 0; right: 1.1rem; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__dd-btn:hover::after, .nav__dd-btn.is-current::after, .nav__dd-btn[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__chev { width: .75rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .4s var(--ease-out); }
.nav__dd-btn[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.dd {
  position: absolute; top: calc(100% + .9rem); left: -1.25rem;
  min-width: 17rem;
  display: grid; padding: .5rem;
  background: var(--white); color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -16px color-mix(in oklch, var(--ink) 30%, transparent);
  opacity: 0; transform: translateY(-6px);
  transition: opacity .3s var(--ease-out), transform .45s var(--ease-out);
}
.dd::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; } /* hover bridge */
.dd.is-open { opacity: 1; transform: none; }
.dd a { padding: .8rem 1rem; border-radius: 9px; font-size: .95rem; transition: background-color .25s, color .25s; }
.dd a::after { display: none; }
.dd a:hover, .dd a:focus-visible { background: var(--surface); color: var(--brand); }
.dd a[aria-current="page"] { color: var(--brand); font-weight: 600; }

.nav__right { display: flex; align-items: center; gap: 1rem; }
.lang { display: flex; font-size: .8rem; font-weight: 600; letter-spacing: .04em; }
.lang__btn { padding: .4rem .45rem; opacity: .5; transition: opacity .3s; min-width: 32px; min-height: 32px; }
.lang__btn[aria-pressed="true"] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang__btn:hover { opacity: 1; }

.nav[data-theme="dark"] .nav__cta, .nav[data-theme="brand"] .nav__cta { --bg: var(--on-dark); --fg: var(--night); --fill: var(--accent); }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger__line { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.burger__line:nth-of-type(1) { top: 18px; }
.burger__line:nth-of-type(2) { top: 25px; }
.burger[aria-expanded="true"] .burger__line:nth-of-type(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-of-type(2) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: var(--z-menu); overflow-y: auto;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2.5rem;
  padding: 6rem var(--gutter) 2.5rem;
  background: var(--brand); color: var(--on-dark);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-io);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--f-display); font-variation-settings: "opsz" 96;
  font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.12; letter-spacing: -0.02em;
}
.menu__foot { font-size: .95rem; color: var(--accent-2); }
.menu__group { margin-top: .6rem; font-size: .85rem; color: var(--accent-2); }
.menu__subs { display: flex; flex-direction: column; padding: .35rem 0 .6rem 1rem; border-left: 1px solid var(--rule-dark); margin-bottom: .4rem; }
.menu nav a.menu__sub { font-size: clamp(1.35rem, 6vw, 1.8rem); line-height: 1.35; }
.menu nav a[aria-current="page"] { color: var(--accent); }

@media (max-width: 1120px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
}
@media (max-width: 420px) {
  .brand__name { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; align-items: end;
  padding: 7rem var(--gutter) clamp(2rem, 5vw, 3.5rem);
  background: var(--night); color: var(--on-dark);
  overflow: clip;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero__title {
  font-family: var(--f-display);
  font-size: var(--t-hero);
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  line-height: .98;
  letter-spacing: -0.03em;
}
/* the firm's name fits on one line, so the home title can be set larger than other pages' */
[data-page="home"] .hero__title { font-size: clamp(3.3rem, 0.4rem + 12vw, 11rem); }
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 2rem 4rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-dark);
}
.hero__lede { max-width: 44ch; color: var(--on-dark-muted); font-size: 1.08rem; line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; }

/* ---------- inner page hero ---------- */
.hero--page { min-height: clamp(26rem, 62svh, 40rem); padding-top: 9rem; }
.page-lede { margin-top: clamp(1.25rem, 3vw, 2rem); max-width: 52ch; }

/* ---------- expertise pages ---------- */
/* photos toned in the brand gold; hovering reveals the original colours */
.tinted { position: relative; overflow: hidden; background: var(--brand); }
.tinted::after { content: ""; position: absolute; inset: 0; background: var(--brand); mix-blend-mode: color; opacity: .9; transition: opacity 1.2s var(--ease-out); }
.tinted:hover::after { opacity: 0; }

/* intro: photo + commitment */
.intro {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: var(--section) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 7vw, 8rem); align-items: center;
}
.intro__text .h2 { font-size: clamp(2.1rem, 1.2rem + 2.9vw, 3.6rem); }
.intro__img { aspect-ratio: 3 / 2; margin: 0; }
.intro__img img { width: 100%; height: 118%; object-fit: cover; }
.intro__text p {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.6;
  color: var(--muted); max-width: 40ch; text-wrap: pretty;
}
.intro__text strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* duo: two kinds of mission, side by side */
.duo { padding: var(--section) var(--gutter); background: var(--surface); }
.duo__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 6rem);
}
.duo__col { border-top: 1px solid var(--ink); padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.duo__title {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72;
  font-size: var(--t-h3); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance;
}
.duo__lead { margin-top: 1rem; color: var(--muted); max-width: 52ch; }
.duo .checks { margin-top: 1.75rem; }
.duo .checks li { max-width: none; }
.duo .checks__icon { background: var(--white); }
@media (max-width: 860px) { .duo__grid { grid-template-columns: 1fr; } }

/* catalog: sticky heading, open list of services */
.catalog { padding: 0 var(--gutter) var(--section); }
.catalog__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2.5rem, 7vw, 8rem);
}
.catalog__side { position: sticky; top: 7rem; align-self: start; }
.catalog__side .h2 { font-size: clamp(2.1rem, 1.2rem + 2.4vw, 3.3rem); }
.catalog__list { border-top: 1px solid var(--ink); }
.catalog__item {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: .75rem 2.5rem; align-items: baseline;
  padding: clamp(1.4rem, 2.6vw, 2rem) 0;
  border-bottom: 1px solid var(--rule);
}
.catalog__item dt {
  font-family: var(--f-display); font-variation-settings: "opsz" 72;
  font-size: clamp(1.45rem, 1.1rem + 1.1vw, 2.1rem); line-height: 1.1; letter-spacing: -0.015em;
  text-wrap: balance;
  transition: color .4s, transform .6s var(--ease-out);
}
.catalog__item dd { margin: 0; color: var(--muted); }
.catalog__item:hover dt { color: var(--brand); transform: translateX(.5rem); }
@media (max-width: 1100px) { .catalog__item { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .catalog__grid { grid-template-columns: 1fr; }
  .catalog__side { position: relative; top: 0; }
}

/* statement: a large sentence that lights up as you read, over a faint ledger */
.statement {
  position: relative; isolation: isolate; overflow: clip;
  padding: var(--section) var(--gutter);
  background: var(--night); color: var(--on-dark);
}
.statement__bg { position: absolute; inset: 0; z-index: -1; }
.statement__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; mix-blend-mode: luminosity; }
.statement__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in oklch, var(--night) 72%, transparent), color-mix(in oklch, var(--night) 95%, transparent) 70%); }
.statement__inner { max-width: var(--max); margin: 0 auto; }
.statement__title {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72;
  font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1.15; color: var(--accent);
}
.statement__lead {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-family: var(--f-display); font-variation-settings: "opsz" 96;
  font-size: clamp(2rem, 1.1rem + 3.3vw, 4.1rem); line-height: 1.1; letter-spacing: -0.025em;
  max-width: 24ch; text-wrap: pretty;
}
.statement__cols {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--on-dark-muted); line-height: 1.7;
}
.statement__cols p { max-width: 52ch; }
@media (max-width: 760px) { .statement__cols { grid-template-columns: 1fr; } }
.statement--brand { background: linear-gradient(165deg, var(--brand-deep), color-mix(in oklch, var(--brand-deep) 62%, var(--night))); }
.statement--brand .statement__title { color: var(--accent-2); }
.statement--brand .statement__cols { color: color-mix(in oklch, var(--on-dark) 86%, var(--brand-deep)); }

/* index: service names on the left, the hovered/selected one explained on the right */
.index { padding: var(--section) var(--gutter); background: var(--surface); }
.index__head {
  max-width: var(--max); margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 4rem;
}
.index__head p { max-width: 44ch; color: var(--muted); }
.index__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(2.5rem, 7vw, 7rem);
  border-top: 1px solid var(--ink);
}
.index__item { display: contents; }
.index__h { grid-column: 1; margin: 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 861px) {
  .index__item:nth-child(1) .index__h { grid-row: 1; }
  .index__item:nth-child(2) .index__h { grid-row: 2; }
  .index__item:nth-child(3) .index__h { grid-row: 3; }
  .index__item:nth-child(4) .index__h { grid-row: 4; }
  .index__item:nth-child(5) .index__h { grid-row: 5; }
  .index__item:nth-child(6) .index__h { grid-row: 6; }
  .index__item:nth-child(7) .index__h { grid-row: 7; }
  .index__item:nth-child(8) .index__h { grid-row: 8; }
}
.index__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) 0;
  text-align: left;
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72;
  font-size: clamp(1.5rem, 1rem + 1.6vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em;
  color: var(--muted);
  transition: color .35s;
}
.index__btn:hover { color: var(--ink); }
.index__item.is-active .index__btn { color: var(--brand); }
.index__arrow {
  flex: none; width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.4;
  opacity: 0; transform: translateX(-10px);
  transition: opacity .35s, transform .5s var(--ease-out);
}
.index__item.is-active .index__arrow { opacity: 1; transform: none; }
.index__desc {
  grid-column: 2; grid-row: 1 / span 8; align-self: start;
  padding-top: clamp(1.4rem, 2.6vw, 2rem);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .35s, transform .6s var(--ease-out), visibility 0s .35s;
}
.index__item.is-active .index__desc { opacity: 1; visibility: visible; transform: none; transition: opacity .45s .1s, transform .7s .1s var(--ease-out); }
.index__desc::before { content: ""; display: block; width: 3rem; height: 2px; background: var(--brand); margin-bottom: 1.5rem; }
.index__desc p { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); line-height: 1.5; max-width: 30ch; text-wrap: pretty; }
@media (max-width: 860px) {
  .index__grid { grid-template-columns: 1fr; }
  .index__h, .index__desc { grid-column: 1; grid-row: auto; }
  .index__h { border-bottom: 0; }
  .index__btn, .index__item.is-active .index__btn { color: var(--ink); cursor: default; padding-bottom: .5rem; }
  .index__arrow { display: none; }
  .index__desc { opacity: 1; visibility: visible; transform: none; padding: 0 0 1.4rem; border-bottom: 1px solid var(--rule); }
  .index__desc::before { display: none; }
  .index__desc p { font-size: 1rem; color: var(--muted); max-width: none; }
}

/* rail: services laid out side by side; on desktop the section pins and they slide past */
.rail { padding: var(--section) 0; background: var(--surface); overflow: clip; }
.rail__head {
  width: min(100%, calc(var(--max) + 2 * var(--gutter))); margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem;
}
.rail__progress { flex: 0 0 min(16rem, 30vw); height: 2px; background: var(--rule); overflow: hidden; margin-bottom: .6rem; }
.rail__progress i { display: block; height: 100%; background: var(--brand); transform: scaleX(var(--rail, 0)); transform-origin: left; }
.rail:not(.is-pinned) .rail__progress { display: none; }
.rail__viewport {
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: var(--edge);
  padding: 0 var(--edge) 1.25rem;
}
.rail__track { display: flex; gap: clamp(1.5rem, 3vw, 3rem); width: max-content; margin: 0; }
.rail__panel {
  flex: none; width: clamp(18rem, 29vw, 27rem);
  display: flex; flex-direction: column; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid var(--ink);
  scroll-snap-align: start;
}
.rail__n { font-size: .8rem; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.rail__t {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72;
  font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em;
  min-height: 2.2em; text-wrap: balance;
}
.rail__panel p { color: var(--muted); }
.rail.is-pinned { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 7rem 0 4rem; }
.rail.is-pinned .rail__viewport { overflow: visible; scroll-snap-type: none; }
.rail.is-pinned .rail__track { will-change: transform; }
@media (max-width: 860px) {
  .rail__viewport { overflow: visible; padding-bottom: 0; }
  .rail__track { flex-direction: column; width: auto; gap: 2rem; }
  .rail__panel { width: auto; }
  .rail__t { min-height: 0; }
}

/* flow: a real sequence, drawn as a line that fills as you scroll */
.flow { padding: var(--section) var(--gutter); background: var(--night); color: var(--on-dark); }
.flow__inner { max-width: var(--max); margin: 0 auto; }
.flow__title {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 96;
  font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4rem); line-height: 1.05; letter-spacing: -0.025em;
  max-width: 20ch; text-wrap: balance;
}
.flow__steps {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem);
  margin-top: clamp(3.5rem, 7vw, 6rem);
}
.flow__steps::before, .flow__steps::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; }
.flow__steps::before { background: var(--rule-dark); }
.flow__steps::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--flow, 1)); }
.flow__step { position: relative; padding-top: 2.5rem; }
.flow__step::before {
  content: ""; position: absolute; left: 0; top: -5px; z-index: 1;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--night); border: 1px solid var(--accent);
  transition: background-color .4s;
}
.flow__step.is-active::before { background: var(--accent); }
.flow__n { display: block; font-size: .85rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: .75rem; }
.flow__t {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72;
  font-size: var(--t-h3); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1rem;
}
.flow__step p { color: var(--on-dark-muted); max-width: 36ch; }
@media (max-width: 860px) {
  .flow__steps { grid-template-columns: 1fr; padding-left: 2.25rem; }
  .flow__steps::before, .flow__steps::after { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .flow__steps::after { transform-origin: top; transform: scaleY(var(--flow, 1)); }
  .flow__step { padding-top: 0; }
  .flow__step::before { left: calc(-2.25rem); top: .2rem; }
}

/* ---------- about page ---------- */
/* two cities, side by side; the hovered one widens */
.cities { position: relative; background: var(--night); color: var(--on-dark); }
.cities__row { display: flex; height: clamp(24rem, 72svh, 46rem); }
.city {
  position: relative; flex: 1 1 0; margin: 0;
  transition: flex-grow .9s var(--ease-out);
}
.city__media { position: absolute; inset: 0; overflow: hidden; }
.city img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ease-out), filter .9s; filter: saturate(.85) brightness(.82); }
.city__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in oklch, var(--night) 10%, transparent) 40%, color-mix(in oklch, var(--night) 78%, transparent)); pointer-events: none; }
.city__name {
  position: absolute; left: clamp(1.25rem, 3vw, 3rem); bottom: clamp(1.25rem, 3vw, 2.75rem); z-index: 1;
  font-family: var(--f-display); font-variation-settings: "opsz" 96;
  font-size: clamp(2.4rem, 1.4rem + 4vw, 5.5rem); line-height: 1; letter-spacing: -0.03em;
}
.city + .city { border-left: 1px solid var(--rule-dark); }
@media (hover: hover) {
  .cities__row:hover .city { flex-grow: .75; }
  .cities__row .city:hover { flex-grow: 1.35; }
  .city:hover img { transform: scale(1); filter: saturate(1) brightness(.92); }
}
.cities__since {
  position: absolute; right: 0; top: 50%; z-index: 2; transform: translate(50%, -50%); /* rides the seam between the two cities */
  width: clamp(7rem, 11vw, 9.5rem); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: var(--night); border: 1px solid var(--accent);
  font-size: .85rem; color: var(--on-dark-muted); line-height: 1.2;
  pointer-events: none;
}
.cities__since strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.8rem, 1.2rem + 1.4vw, 2.5rem); color: var(--on-dark); letter-spacing: -0.02em; }
@media (max-width: 760px) {
  .cities__row { flex-direction: column; height: auto; }
  .city { height: 46svh; }
  .city + .city { border-left: 0; border-top: 1px solid var(--rule-dark); }
  .cities__since { top: auto; bottom: 0; right: 50%; transform: translate(50%, 50%); }
}

/* range: from simple bookkeeping to strategic advice */
.range { padding: var(--section) var(--gutter); }
.range__inner { max-width: var(--max); margin: 0 auto; }
.range__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2rem clamp(2.5rem, 6vw, 6rem); align-items: end; }
.range__head .h2 { max-width: 18ch; }
.range__head p { color: var(--muted); max-width: 40ch; }
.range__scale { --p: 1; position: relative; margin-top: clamp(4rem, 8vw, 6.5rem); }
.range__ends { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.range__ends span:last-child { color: var(--brand); }
.range__line { height: 2px; background: var(--rule); position: relative; }
.range__line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--brand)); transform-origin: left; transform: scaleX(var(--p)); }
.range__points { position: relative; height: 7.5rem; margin: 0; }
.range__points li {
  position: absolute; top: 0; left: calc(var(--at) * 100%); width: 11rem; margin-left: -5.5rem;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .9rem;
  font-family: var(--f-display); font-variation-settings: "opsz" 72; font-size: clamp(1.05rem, .9rem + .45vw, 1.3rem); line-height: 1.2;
}
.range__points li::before {
  content: ""; width: 13px; height: 13px; margin-top: -7.5px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--brand);
}
.range__foot { margin-top: 1.5rem; color: var(--muted); max-width: 60ch; }
@media (max-width: 860px) {
  .range__head { grid-template-columns: 1fr; }
  .range__ends { display: none; }
  .range__scale { display: grid; grid-template-columns: 2px 1fr; gap: 0 1.5rem; }
  .range__line { height: auto; width: 2px; }
  .range__line i { background: linear-gradient(180deg, var(--accent), var(--brand)); transform-origin: top; transform: scaleY(var(--p)); }
  .range__points { height: auto; display: flex; flex-direction: column; gap: 1.6rem; padding: .3rem 0; }
  .range__points li { position: relative; left: 0; margin-left: 0; width: auto; flex-direction: row; text-align: left; }
  .range__points li::before { flex: none; margin: 0 0 0 calc(-1.5rem - 8.5px); }
}

/* founder */
.founder { padding: var(--section) var(--gutter); background: var(--surface); }
.founder__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 8vw, 9rem); align-items: start;
}
.founder__id { position: sticky; top: 7rem; }
.founder__kicker { font-size: 1rem; font-weight: 600; color: var(--brand); }
.founder__name {
  margin-top: 1rem;
  font-family: var(--f-display); font-variation-settings: "opsz" 96;
  font-size: clamp(3rem, 1.5rem + 5vw, 6rem); line-height: .95; letter-spacing: -0.03em;
}
.founder__creds { margin-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--ink); }
.founder__creds li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem; align-items: baseline; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.founder__creds strong { font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72; font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem); }
.founder__creds span { color: var(--muted); font-size: .95rem; }
.founder__story article + article { margin-top: clamp(2.5rem, 5vw, 4rem); }
.founder__story h3 {
  display: flex; align-items: center; gap: 1rem;
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72;
  font-size: var(--t-h3); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.25rem;
}
.founder__story h3::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.founder__story p { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); line-height: 1.7; color: var(--ink); max-width: 58ch; }
@media (max-width: 860px) {
  .founder__grid { grid-template-columns: 1fr; }
  .founder__id { position: relative; top: 0; }
}

/* ---------- content slot (temporary, until real content lands) ---------- */
.todo { padding: clamp(4rem, 8vw, 7rem) var(--gutter); }
.todo__box {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1.5px dashed color-mix(in oklch, var(--brand) 45%, transparent); border-radius: 16px;
  background: var(--surface); color: var(--muted);
}
.todo__label { font-weight: 600; color: var(--brand); margin-bottom: .5rem; }
.todo__box ul { margin: 1rem 0 0; padding-left: 1.2rem; color: var(--ink); }
.todo__box li + li { margin-top: .35rem; }

/* ---------- other expertises ---------- */
.others { padding: 0 var(--gutter) clamp(4rem, 8vw, 7rem); }
.others__title { max-width: var(--max); margin: 0 auto 1.25rem; font-size: 1rem; font-weight: 500; color: var(--muted); }
.others__list { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); border-top: 1px solid var(--ink); }
.others__link {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.4rem .25rem; border-bottom: 1px solid var(--rule);
  font-family: var(--f-display); font-variation-settings: "opsz" 72; font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.02em;
  transition: color .3s;
}
.others__link:hover { color: var(--brand); }
.others__link .btn__arrow { flex: none; width: 1.4rem; height: 1.4rem; }
.others__link:hover .btn__arrow { transform: translateX(6px); }
@media (min-width: 900px) { .others__link + .others__link { padding-left: 1.5rem; border-left: 1px solid var(--rule); } }

/* ---------- CTA band ---------- */
.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(4rem, 8vw, 6.5rem) max(var(--gutter), calc((100% - var(--max)) / 2));
  background: var(--brand-deep); color: var(--on-dark);
}

/* ---------- manifesto ---------- */
.manifesto { padding: var(--section) var(--gutter); }
.manifesto__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 8rem); align-items: start;
}
.manifesto__figure { position: sticky; top: 7rem; }
.manifesto__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--brand); }
.manifesto__img::after { content: ""; position: absolute; inset: 0; background: var(--brand); mix-blend-mode: color; opacity: .9; transition: opacity 1.2s var(--ease-out); }
.manifesto__img:hover::after { opacity: 0; }
.manifesto__img img { width: 100%; height: 118%; object-fit: cover; }
.manifesto__lead {
  font-family: var(--f-display);
  font-variation-settings: "opsz" 72;
  font-size: var(--t-lead);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.manifesto__lead .word { transition: color .2s linear; }
.manifesto__body {
  margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.manifesto__intro { max-width: 62ch; color: var(--muted); text-wrap: pretty; }
.checks { margin: 2rem 0 0; }
.checks li {
  display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  max-width: 62ch;
}
.checks li:first-child { border-top: 1px solid var(--rule); }
.checks__icon {
  width: 2rem; height: 2rem; padding: .4rem;
  border-radius: 50%; background: var(--surface);
  fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  margin-top: -.2rem;
}
.manifesto__cta { margin-top: 2.25rem; }
@media (max-width: 860px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__figure { position: relative; top: 0; max-width: 420px; }
}

/* ---------- services ---------- */
.services { padding: 0 var(--gutter) var(--section); }
.services__head, .svc { max-width: var(--max); margin-inline: auto; }
.services__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.services__intro { color: var(--muted); max-width: 30ch; }
.svc { border-top: 1px solid var(--ink); }
.svc__item { position: relative; border-bottom: 1px solid var(--rule); }
.svc__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--surface);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .6s var(--ease-out);
}
.svc__item:hover::before, .svc__item.is-open::before { transform: scaleY(1); }
.svc__item { isolation: isolate; }
.svc__btn {
  width: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto 3rem; align-items: center; gap: 1.5rem;
  padding: clamp(1.3rem, 2.6vw, 2.1rem) clamp(0rem, 1.5vw, 1.5rem);
  text-align: left;
}
.svc__title {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72;
  font-size: var(--t-h3); line-height: 1.05; letter-spacing: -0.02em;
  transition: transform .6s var(--ease-out), color .4s;
}
.svc__btn:hover .svc__title, .svc__item.is-open .svc__title { transform: translateX(clamp(.5rem, 1.5vw, 1.25rem)); color: var(--brand); }
.svc__short { font-size: .95rem; color: var(--muted); text-align: right; }
.svc__icon { position: relative; justify-self: end; width: 2.75rem; height: 2.75rem; border: 1px solid var(--rule); border-radius: 50%; transition: background-color .4s, border-color .4s, transform .6s var(--ease-out); }
.svc__icon::before, .svc__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px;
  background: currentColor; transition: transform .5s var(--ease-out);
}
.svc__icon::after { transform: rotate(90deg); }
.svc__item.is-open .svc__icon { background: var(--brand); border-color: var(--brand); color: var(--white); transform: rotate(180deg); }
.svc__item.is-open .svc__icon::after { transform: rotate(0); }
.svc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.svc__item.is-open .svc__panel { grid-template-rows: 1fr; }
.svc__panel-inner {
  overflow: hidden; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 4rem;
  padding: 0 clamp(0rem, 1.5vw, 1.5rem);
}
.svc__item.is-open .svc__panel-inner { padding-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.svc__panel-inner > p { max-width: 52ch; padding-left: clamp(.5rem, 1.5vw, 1.25rem); }
.svc__tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; align-content: start; }
.svc__tags li { padding: .45rem .85rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .88rem; background: var(--white); }
@media (max-width: 760px) {
  .svc__btn { grid-template-columns: minmax(0, 1fr) 2.75rem; gap: .75rem; }
  .svc__short { grid-column: 1; grid-row: 2; text-align: left; font-size: .88rem; }
  .svc__icon { grid-row: 1 / span 2; grid-column: 2; }
  .svc__panel-inner { grid-template-columns: 1fr; }
  .svc__panel-inner > p { padding-left: 0; }
}

/* ---------- testimonials (brand drench over the lit red wall) ---------- */
.voices {
  position: relative; isolation: isolate;
  padding: var(--section) var(--gutter);
  background: var(--brand-deep); color: var(--on-dark);
  overflow: clip;
}
.voices__bg { position: absolute; inset: 0; z-index: -1; }
.voices__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; mix-blend-mode: luminosity; }
.voices__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in oklch, var(--wall) 55%, transparent), color-mix(in oklch, var(--brand-deep) 92%, transparent) 60%); }
.voices__inner { max-width: var(--max); margin: 0 auto; }
.voices__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.voices__pause {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid var(--rule-dark); border-radius: 50%;
  transition: background-color .3s, border-color .3s;
}
.voices__pause:hover { background: oklch(1 0 0 / .08); border-color: var(--on-dark-muted); }
.voices__pause svg { width: 14px; height: 14px; fill: currentColor; }
.voices__icon-play, .voices__pause[aria-pressed="true"] .voices__icon-pause { display: none; }
.voices__pause[aria-pressed="true"] .voices__icon-play { display: block; }
.voices.is-static .voices__pause { display: none; }

.voices__body {
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(2.5rem, 6vw, 7rem);
  margin-top: clamp(3rem, 6vw, 5rem); align-items: start;
}
.voices__stage { display: grid; }
.voices__quote { margin: 0; }
.voices__quote + .voices__quote { margin-top: 3rem; } /* no-JS: quotes simply stack */
.js .voices__quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transition: opacity .01s .5s, visibility 0s .5s; }
.js .voices__quote.is-active { opacity: 1; visibility: visible; transition: none; }
.voices__quote p {
  font-family: var(--f-display); font-variation-settings: "opsz" 72;
  font-size: clamp(1.6rem, 1rem + 2.2vw, 2.9rem); line-height: 1.22; letter-spacing: -0.015em;
  max-width: 30ch; text-wrap: pretty;
}
.voices__cite { margin-top: 1.5rem; color: var(--on-dark-muted); }
.js .voices__cite { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .voices__tabs, html:not(.js) .voices__pause { display: none; }

.voices__tabs { border-top: 1px solid var(--rule-dark); }
.voices__tab {
  position: relative; display: block; width: 100%; text-align: left;
  padding: 1.15rem 0 1.25rem;
  border-bottom: 1px solid var(--rule-dark);
  color: var(--on-dark-muted);
  transition: color .3s;
}
.voices__tab:hover, .voices__tab[aria-selected="true"] { color: var(--on-dark); }
.voices__who { display: block; font-weight: 600; }
.voices__what { display: block; font-size: .92rem; opacity: .8; }
.voices__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.voices__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.voices__tab[aria-selected="true"] .voices__bar i { animation: voice-progress var(--voice-dur, 9s) linear forwards; }
.voices.is-paused .voices__bar i { animation-play-state: paused; }
.voices.is-static .voices__tab[aria-selected="true"] .voices__bar i { animation: none; transform: scaleX(1); }
@keyframes voice-progress { to { transform: scaleX(1); } }
@media (max-width: 900px) {
  .voices__body { grid-template-columns: 1fr; }
}

/* ---------- method ---------- */
.method {
  max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding: var(--section) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 8vw, 9rem);
}
.method__side { position: sticky; top: 7rem; align-self: start; }
.method__img { margin-top: clamp(2rem, 4vw, 3.5rem); aspect-ratio: 3 / 2; overflow: hidden; max-width: 460px; }
.method__img img { width: 100%; height: 120%; object-fit: cover; }
.steps { position: relative; padding-left: clamp(2.5rem, 4vw, 4rem); }
.steps::before, .steps::after { content: ""; position: absolute; left: .6rem; top: .6rem; bottom: .6rem; width: 1px; }
.steps::before { background: var(--rule); }
.steps::after { background: var(--brand); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.step { position: relative; padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: calc(-1 * clamp(2.5rem, 4vw, 4rem) + .6rem - 5px); top: .55rem;
  width: 11px; height: 11px; border-radius: 50%; background: var(--white); border: 1px solid var(--brand);
  transition: background-color .4s;
}
.step.is-active::before { background: var(--brand); }
.step__n { display: block; font-size: .85rem; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; margin-bottom: .6rem; }
.step__t { font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72; font-size: var(--t-h3); line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1rem; }
.step p { color: var(--muted); max-width: 46ch; }
@media (max-width: 860px) {
  .method { grid-template-columns: 1fr; }
  .method__side { position: relative; top: 0; }
  .method__img { display: none; }
}

/* ---------- firm ---------- */
.firm {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--section) 0 0;
  background: var(--night); color: var(--on-dark);
  overflow: clip;
}
.firm__media { position: absolute; inset: 0; z-index: -1; }
.firm__media img { width: 100%; height: 100%; object-fit: cover; object-position: 22% 35%; transform-origin: 50% 40%; }
.firm__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--night) 55%, transparent) 0%, transparent 55%),
    linear-gradient(180deg, color-mix(in oklch, var(--night) 15%, transparent) 0%, color-mix(in oklch, var(--night) 10%, transparent) 35%, color-mix(in oklch, var(--night) 88%, transparent) 78%, var(--night) 100%);
}
.firm__content { max-width: var(--max); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.firm__title { max-width: 16ch; }
.firm__cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem;
  margin-top: clamp(2rem, 4vw, 3rem); max-width: 58rem;
  color: var(--on-dark-muted); line-height: 1.7;
}
@media (max-width: 760px) { .firm__cols { grid-template-columns: 1fr; } }

.sectors { margin-top: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--rule-dark); padding: 1.6rem 0; overflow: hidden; }
.sectors__track {
  display: flex; width: max-content; gap: 0;
  animation: marquee 48s linear infinite;
}
.sectors__track span {
  display: inline-flex; align-items: center;
  font-family: var(--f-display); font-variation-settings: "opsz" 72;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem); white-space: nowrap;
}
.sectors__track span::after { content: ""; width: .35em; height: .35em; margin: 0 1.1em; border-radius: 50%; background: var(--accent); }
.sectors:hover .sectors__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- contact ---------- */
.contact { background: var(--night); color: var(--on-dark); padding: var(--section) var(--gutter); }
.contact__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 8vw, 9rem);
}
.contact__title {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 96;
  font-size: var(--t-hero); line-height: .98; letter-spacing: -0.03em;
}
.contact__heading {
  font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 96;
  font-size: var(--t-h2); line-height: 1; letter-spacing: -0.025em; max-width: 12ch;
}
.contact__heading + .contact__lede { margin-top: 1.25rem; font-size: 1.15rem; }
.contact__lede { color: var(--on-dark-muted); max-width: 34ch; }
.contact__title + .contact__lede { margin-top: 1.5rem; }
.contact__details { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; gap: 0; }
.contact__details > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--rule-dark); }
.contact__details dt { font-size: .85rem; color: var(--on-dark-muted); padding-top: .15rem; }
.contact__details dd { overflow-wrap: anywhere; }
.contact__details a { background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat; transition: background-size .5s var(--ease-out); }
.contact__details a:hover { background-size: 100% 1px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; align-content: start; }
.field { position: relative; grid-column: 1 / -1; }
.field--half { grid-column: span 1; }
.field input, .field textarea {
  width: 100%;
  padding: 1.55rem 0 .7rem;
  background: transparent; color: var(--on-dark);
  border: 0; border-bottom: 1px solid var(--rule-dark); border-radius: 0;
  font: inherit; font-size: 1.08rem;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 7.5rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }
.field--area::after { bottom: 7px; }
.field label {
  position: absolute; left: 0; top: 1.5rem;
  color: var(--on-dark-muted); font-size: 1.05rem;
  transform-origin: left top; pointer-events: none;
  transition: transform .45s var(--ease-out), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.35rem) scale(.8); color: var(--accent-2);
}
.field__err { display: none; margin-top: .45rem; font-size: .85rem; color: oklch(0.8 0.12 35); }
.field.is-invalid .field__err { display: block; }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: oklch(0.72 0.15 30); }


.form__submit { justify-self: start; margin-top: .5rem; }
.form__status { grid-column: 1 / -1; min-height: 1.5rem; color: var(--accent-2); }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
}

/* ---------- footer ---------- */
.footer { background: var(--night); color: var(--on-dark); padding: clamp(3rem, 6vw, 5rem) var(--gutter) 1.5rem; border-top: 1px solid var(--rule-dark); overflow: clip; }
.footer__top, .footer__bottom { max-width: var(--max); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer__top p { color: var(--on-dark-muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer__links a:hover { color: var(--accent); }
.footer__mark {
  position: relative;
  margin: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  cursor: crosshair;
}
.footer__word {
  font-family: var(--f-display); font-variation-settings: "opsz" 96; font-style: italic;
  font-size: clamp(4rem, 19.5vw, 20rem);
  line-height: .9; letter-spacing: -0.04em;
  text-align: center; color: var(--brand);
  white-space: nowrap;
  user-select: none;
}
.footer__canvas { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; pointer-events: none; }
.footer.has-canvas .footer__word { color: transparent; }
.footer__bottom { font-size: .82rem; color: var(--on-dark-muted); padding-top: 1.25rem; border-top: 1px solid var(--rule-dark); }

/* ---------- direction artistique (studio page) ---------- */
.hero--studio { min-height: clamp(30rem, 82svh, 50rem); }
.studio-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/* the concept */
.pp { padding: var(--section) var(--gutter); }
.pp__inner { max-width: var(--max); margin: 0 auto; }
.pp__lead {
  font-family: var(--f-display); font-variation-settings: "opsz" 72;
  font-size: var(--t-lead); line-height: 1.18; letter-spacing: -0.015em;
  max-width: 34ch; text-wrap: pretty;
}
.pp__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--ink); }
.pp__item { padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.25rem, 2.5vw, 2.25rem) 0 0; }
.pp__item + .pp__item { padding-left: clamp(1.25rem, 2.5vw, 2.25rem); border-left: 1px solid var(--rule); }
.pp__item h3 { font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72; font-size: var(--t-h3); line-height: 1.05; letter-spacing: -0.02em; margin: 1.5rem 0 .9rem; }
.pp__item p { color: var(--muted); max-width: 38ch; }
.pp__visual { height: clamp(7rem, 12vw, 9rem); border-radius: 10px; overflow: hidden; }
.pp__visual--fil {
  background:
    radial-gradient(circle at 70% 40%, color-mix(in oklch, var(--accent) 40%, transparent), transparent 55%),
    repeating-linear-gradient(90deg, color-mix(in oklch, var(--on-dark) 20%, transparent) 0 1px, transparent 1px 9px),
    var(--night);
}
.pp__visual--lettre { display: grid; place-items: center; background: var(--surface); }
.pp__visual--lettre span { font-family: var(--f-display); font-variation-settings: "opsz" 96; font-size: clamp(4rem, 3rem + 3vw, 6rem); line-height: 1; letter-spacing: -0.03em; border-bottom: 2px solid var(--brand); }
.pp__visual--registre { display: flex; flex-direction: column; justify-content: center; gap: .85rem; padding: 0 1.25rem; border: 1px solid var(--rule); }
.pp__visual--registre i { display: block; height: 1px; background: var(--rule); }
.pp__visual--registre i:nth-child(2) { width: 70%; }
.pp__visual--registre b { display: block; border-top: 3px double var(--ink); margin-top: .35rem; }
@media (max-width: 860px) {
  .pp__list { grid-template-columns: 1fr; }
  .pp__item, .pp__item + .pp__item { padding: 1.75rem 0 0; border-left: 0; }
  .pp__item + .pp__item { margin-top: 1.75rem; border-top: 1px solid var(--rule); }
}

/* typography */
.type { padding: var(--section) var(--gutter); background: var(--surface); }
.type__inner { max-width: var(--max); margin: 0 auto; }
.type__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 4rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.type__head p { max-width: 40ch; color: var(--muted); }
.type__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 6rem); }
.type__spec { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.type__aa { font-size: clamp(5rem, 3rem + 7vw, 9rem); line-height: .9; letter-spacing: -0.03em; margin-bottom: 1.5rem; }
.type__aa--display { font-family: var(--f-display); font-variation-settings: "opsz" 96; }
.type__aa--body { font-family: var(--f-body); font-weight: 500; }
.type__spec h3 { font-size: 1rem; font-weight: 600; color: var(--brand); margin-bottom: .75rem; }
.type__sample { margin-bottom: 1rem; }
.type__sample--display { font-family: var(--f-display); font-variation-settings: "opsz" 72; font-size: var(--t-h3); line-height: 1.1; letter-spacing: -0.02em; }
.type__sample--body { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); line-height: 1.4; }
.type__spec p:last-child { color: var(--muted); max-width: 44ch; }
@media (max-width: 760px) { .type__grid { grid-template-columns: 1fr; } }

/* motion */
.motion { padding: var(--section) var(--gutter); background: var(--night); color: var(--on-dark); }
.motion__inner { max-width: var(--max); margin: 0 auto; }
.motion__intro { margin-top: 1.5rem; max-width: 60ch; color: var(--on-dark-muted); }
.motion__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.motion__list div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem; align-items: baseline; padding: 1.3rem 0; border-top: 1px solid var(--rule-dark); }
.motion__list dt { font-family: var(--f-display); font-variation-settings: "opsz" 72; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.8rem); color: var(--accent); }
.motion__list dd { margin: 0; color: var(--on-dark-muted); }
@media (max-width: 860px) { .motion__list { grid-template-columns: 1fr; } .motion__list div { grid-template-columns: 1fr; gap: .4rem; } }

/* palette gallery */
.palettes { padding: var(--section) var(--gutter); }
.palettes__inner { max-width: var(--max); margin: 0 auto; }
.palettes__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 4rem; }
.palettes__head p { max-width: 52ch; color: var(--muted); }
.palettes__filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: clamp(2rem, 4vw, 3rem) 0 clamp(1.75rem, 3vw, 2.5rem); }
.chip { padding: .6rem 1.05rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .92rem; transition: background-color .3s, color .3s, border-color .3s; }
.chip small { margin-left: .25rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip[aria-pressed="true"] small { color: color-mix(in oklch, var(--white) 70%, transparent); }
.palettes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 2rem); }
.palettes__foot { margin-top: clamp(2.5rem, 5vw, 4rem); color: var(--muted); }

.pal {
  display: flex; flex-direction: column;
  border: 1px solid var(--rule); border-radius: 14px; overflow: hidden;
  background: var(--white); color: var(--ink);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .3s;
}
.pal[hidden] { display: none; }
.pal:hover, .pal:focus-visible { transform: translateY(-6px); box-shadow: 0 28px 50px -28px color-mix(in oklch, var(--ink) 45%, transparent); border-color: color-mix(in oklch, var(--ink) 30%, transparent); }
.pal.is-current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pal__mock { aspect-ratio: 16 / 11; display: grid; grid-template-rows: 1.2fr .62fr 1fr; font-size: 1rem; }
.pal__hero {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  padding: .8rem 1rem .9rem;
  color: var(--p-ondark);
  background:
    radial-gradient(circle at 78% 26%, color-mix(in oklch, var(--p-accent) 38%, transparent), transparent 48%),
    linear-gradient(to top, color-mix(in oklch, var(--p-deep) 80%, transparent), transparent 75%),
    repeating-linear-gradient(90deg, color-mix(in oklch, var(--p-ondark) 9%, transparent) 0 1px, transparent 1px 8px),
    var(--p-night);
}
.pal__nav { display: flex; align-items: center; gap: .4rem; }
.pal__nav b { font-family: var(--f-display); font-weight: 400; font-size: .7rem; margin-right: .3rem; }
.pal__nav i { width: 1.3rem; height: 2px; background: color-mix(in oklch, var(--p-ondark) 40%, transparent); }
.pal__nav em { margin-left: auto; width: 2.4rem; height: .75rem; border-radius: 999px; background: var(--p-ondark); }
.pal__title { font-family: var(--f-display); font-variation-settings: "opsz" 96; font-size: clamp(1.05rem, .85rem + .55vw, 1.4rem); line-height: 1; letter-spacing: -0.02em; }
.pal__rule { width: 2.4rem; height: 2px; background: var(--p-accent); }
.pal__light { display: flex; flex-direction: column; justify-content: center; gap: .4rem; padding: .6rem 1rem; background: var(--p-surface); }
.pal__h { font-family: var(--f-display); font-size: .85rem; color: var(--p-ink); margin-bottom: .1rem; }
.pal__row { display: flex; align-items: center; gap: .5rem; }
.pal__tick { width: .6rem; height: .6rem; border-radius: 50%; border: 1.5px solid var(--p-brand); flex: none; }
.pal__line { height: 3px; flex: 1; background: color-mix(in oklch, var(--p-ink) 18%, transparent); border-radius: 2px; }
.pal__line--short { flex: 0 0 55%; }
.pal__deep { position: relative; display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: .55rem 1rem; background: var(--p-deep); color: var(--p-ondark); }
.pal__quote { font-family: var(--f-display); font-size: .82rem; max-width: 70%; line-height: 1.2; }
.pal__bar { width: 40%; height: 2px; background: color-mix(in oklch, var(--p-ondark) 22%, transparent); }
.pal__bar i { display: block; width: 55%; height: 100%; background: var(--p-accent); }
.pal__btn { position: absolute; right: 1rem; top: 50%; width: 3rem; height: .9rem; margin-top: -.45rem; border-radius: 999px; background: var(--p-accent); }
.pal__info { display: flex; flex-direction: column; gap: .4rem; padding: 1.2rem 1.25rem 1.4rem; flex: 1; }
.pal__family { font-size: .8rem; color: var(--muted); }
.pal__now { color: var(--brand); font-weight: 600; }
.pal__name { font-family: var(--f-display); font-weight: 400; font-variation-settings: "opsz" 72; font-size: 1.65rem; line-height: 1.1; letter-spacing: -0.015em; }
.pal__mood { font-size: .98rem; }
.pal__story { font-size: .9rem; color: var(--muted); }
.pal__swatches { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin: .5rem 0 .25rem; list-style: none; padding: 0; }
.pal__swatches li { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--muted); }
.pal__swatches i { width: 1rem; height: 1rem; border-radius: 50%; border: 1px solid var(--rule); }
.pal__go { margin-top: auto; padding-top: .5rem; font-size: .9rem; font-weight: 600; color: var(--brand); }
.pal__go span { display: inline-block; transition: transform .5s var(--ease-out); }
.pal:hover .pal__go span { transform: translateX(5px); }

/* the transition into a palette */
.transport { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: var(--gutter); background: var(--t-night); color: var(--t-ondark); text-align: center; }
.transport__inner { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.transport.is-named .transport__inner { opacity: 1; transform: none; }
.transport__rule { display: block; width: 3rem; height: 2px; margin: 0 auto 1.5rem; background: var(--t-accent); }
.transport__name { font-family: var(--f-display); font-variation-settings: "opsz" 96; font-size: clamp(2.6rem, 1.5rem + 5vw, 5.5rem); line-height: 1; letter-spacing: -0.03em; }
.transport__mood { margin-top: 1rem; color: color-mix(in oklch, var(--t-ondark) 72%, transparent); }

/* ---------- palette preview bar (shown on the site while a palette is being previewed) ---------- */
.dock {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: .2rem;
  padding: .35rem;
  border-radius: 999px; border: 1px solid var(--rule-dark);
  background: color-mix(in oklch, var(--night) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--on-dark); font-size: .85rem;
  box-shadow: 0 20px 44px -20px rgba(0, 0, 0, .55);
  transform: translate(-50%, 160%);
  transition: transform .8s var(--ease-out), background-color .6s;
}
.dock.is-in { transform: translate(-50%, 0); }
.dock__back { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border-radius: 999px; transition: background-color .3s; }
.dock__nav, .dock__close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.25rem; line-height: 1; transition: background-color .3s; }
.dock__back:hover, .dock__nav:hover, .dock__close:hover { background: color-mix(in oklch, var(--on-dark) 10%, transparent); }
.dock__close { color: var(--on-dark-muted); }
.dock__now { display: flex; align-items: center; gap: .7rem; padding: 0 .55rem; min-width: 12.5rem; }
.dock__sw { display: flex; }
.dock__sw i { width: .9rem; height: .9rem; border-radius: 50%; border: 1.5px solid var(--night); }
.dock__sw i + i { margin-left: -.3rem; }
.dock__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.dock__name { font-family: var(--f-display); font-weight: 400; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__count { font-size: .7rem; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .dock { left: 1rem; right: 1rem; transform: translateY(160%); justify-content: space-between; }
  .dock.is-in { transform: none; }
  .dock__back-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dock__now { min-width: 0; flex: 1; gap: .5rem; padding: 0 .25rem; }
  .dock__nav, .dock__close { width: 2.25rem; height: 2.25rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .sectors__track { animation: none; flex-wrap: wrap; width: auto; padding: 0 var(--gutter); row-gap: .5rem; }
}

/* monochrome palettes (data-photos="mono", set by js/palettes.js): photos in crisp black and white */
[data-photos="mono"] main img, [data-photos="mono"] .voices__bg img { filter: grayscale(1) contrast(1.12); }
[data-photos="mono"] .city img { filter: grayscale(1) brightness(.82); }
@media (hover: hover) { [data-photos="mono"] .city:hover img { filter: grayscale(1) brightness(.92); } }

/* light palettes (data-mode="light", set by js/palettes.js): the hero and the "brand" sections
   are solid ink with paper text, so the page alternates black and white with nothing grey between */
[data-mode="light"] :is(.hero, .voices, .cta-band, .statement--brand),
[data-mode="light"] .nav[data-theme="brand"] {
  --night: var(--ink);
  --on-dark: var(--surface);
  --on-dark-muted: color-mix(in oklch, var(--surface) 78%, var(--ink));
  --rule-dark: color-mix(in oklch, var(--surface) 20%, transparent);
  --accent: var(--surface);
  --accent-2: var(--surface);
}
[data-mode="light"] .voices__bg { display: none; }
/* the cursor inverts what it covers: it has to be light for that to show on paper and on ink */
[data-mode="light"] .cursor { background: var(--surface); }
[data-mode="light"] .cursor.is-label { background: var(--ink); color: var(--surface); }
[data-mode="light"] .statement--brand { background: var(--brand-deep); }
/* the firm's photo fades into paper, so ink text stays legible over it */
[data-mode="light"] .firm__media::after {
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--night) 82%, transparent) 0%, color-mix(in oklch, var(--night) 30%, transparent) 75%),
    linear-gradient(180deg, color-mix(in oklch, var(--night) 15%, transparent) 0%, color-mix(in oklch, var(--night) 72%, transparent) 55%, var(--night) 88%);
}
