/* ==========================================================================
   Castore Consulting — site stylesheet
   Light, editorial layout. Brand from Castore's Instagram: navy + electric
   blue, Georgia for headlines and accents, Inter for reading.
   Order: tokens → base → layout → type → header → buttons → hero → collage
   → sections → components → page-specific → footer → motion → responsive
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #121a2e;          /* body text */
  --navy: #1a2f54;         /* brand navy: headlines, footer */
  --blue: #1f47eb;         /* brand electric blue: accents, buttons, feature block */
  --blue-dark: #1636c9;
  --blue-2: #6884ff;       /* consultant tint (from the recruiting posts) */
  --blue-3: #a0b1ff;       /* analyst tint */
  --tint: #eaeeff;         /* pale blue behind portraits */
  --wash: #f5f6fa;         /* quiet section background */
  --white: #ffffff;
  --line: rgba(18, 26, 46, 0.1);
  --line-2: rgba(18, 26, 46, 0.18);
  --fade: 0.64;            /* secondary text opacity (≥4.5:1 on white) */

  --serif: Georgia, Gelasio, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --max: 1432px;
  --pad: clamp(20px, 3vw, 32px);
  --gutter: 20px;
  --radius: 10px;
  --header-h: 68px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 300; padding: 0.6rem 1rem; border-radius: 8px; background: var(--blue); color: #fff; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.gc { grid-column: var(--s, auto) / span var(--w, 12); }
.center { text-align: center; }
.flow > * + * { margin-top: 1em; }

.section { padding-block: clamp(56px, 7vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--flush-top { padding-top: 0; }
.wash { background: var(--wash); }

/* ---------- Type ---------- */
.display, .h2, .serif-h {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display { font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.75rem); line-height: 1.03; }
.h2 { font-size: clamp(2rem, 1.35rem + 2vw, 3.1rem); line-height: 1.08; }
.h3 { font-family: var(--sans); font-weight: 600; font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem); line-height: 1.25; letter-spacing: -0.012em; }
.h4 { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem); line-height: 1.5; }
.small { font-size: 15px; line-height: 1.45; }
.fade { opacity: var(--fade); }
.kicker { font-size: 15px; font-weight: 600; color: var(--blue); margin-bottom: 14px; }
.hl { color: var(--blue); }

/* Statement: centred serif paragraph */
.statement {
  font-family: var(--serif); font-weight: 400; color: var(--navy);
  font-size: clamp(1.55rem, 1rem + 1.8vw, 2.5rem); line-height: 1.24; letter-spacing: -0.01em;
  max-width: 24em; margin-inline: auto; text-align: center; text-wrap: balance;
}

/* Brush highlight — the blue swipe from Castore's posts */
.brush {
  position: relative; color: #fff;
  padding: 0 0.16em; margin: 0 -0.02em;
  background: var(--blue);
  border-radius: 0.08em 0.22em 0.1em 0.26em / 0.24em 0.08em 0.26em 0.1em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
/* Hand-drawn underline — the squiggle from the posts */
.scribble {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 30 3, 55 11, 85 6 S 140 3, 198 7' fill='none' stroke='%231f47eb' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 0.32em no-repeat;
  padding-bottom: 0.14em;
}
.hand { font-family: var(--hand); font-weight: 500; font-size: 1.35em; line-height: 1; color: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled, .site-header.menu-open { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { width: 32px; transition: transform 0.6s var(--ease); }
.brand:hover img { transform: rotate(-8deg); }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
/* LSE mark beside the Castore logo, after a thin rule. The file is a white square with "LSE" cut out, so it's used as
   a mask: the square takes the navy and the letters show the header behind. Links to Castore's LSE SU page. */
.brand-group { display: flex; align-items: center; gap: 14px; flex: none; }
.brand-lse { position: relative; display: flex; align-items: center; padding-left: 14px; border-left: 1px solid var(--line); text-decoration: none; }
.brand-lse::after { content: ""; position: absolute; inset: -12px -12px -12px 0; }   /* a bigger hover/tap area than the 23px square */
.lse-mark { display: block; width: 23px; height: 23px; background: var(--navy);   /* same height as the beaver */
  -webkit-mask: url("../img/lse/lse-mark-white.png") center / contain no-repeat; mask: url("../img/lse/lse-mark-white.png") center / contain no-repeat;
  transition: background-color 0.25s ease; }
/* Hover: the square takes LSE's own red (#E0112B, from the logo on lse.ac.uk) and the beaver tips its hat to it (below) */
.brand-lse:hover .lse-mark, .brand-lse:focus-visible .lse-mark { background: #E0112B; }
@media (max-width: 480px) {   /* phones: keep the logo pair and the Menu button on one line */
  .header-inner { gap: 12px; }
  .brand-group { gap: 9px; }
  .brand { gap: 8px; }
  .brand img { width: 27px; }
  .brand span { font-size: 15.5px !important; }
  .brand-lse { padding-left: 9px; }
  .lse-mark { width: 19px; height: 19px; }
}
@media (max-width: 352px) { .brand-lse { display: none; } }   /* the smallest phones: Castore logo only */
.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav .nav-top { display: flex; align-items: center; gap: clamp(2px, 0.6vw, 10px); list-style: none; }
/* Hover / open: a soft grey pill behind the word, as on sanalabs.com */
.nav-link, .nav-trigger { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font: 500 15.5px var(--sans); color: var(--ink); text-decoration: none; opacity: 0.78; transition: opacity 0.2s, color 0.2s, background-color 0.2s; }
.nav-trigger { gap: 4px; border: 0; background: none; cursor: pointer; }
.nav-trigger .chev { transition: transform 0.3s var(--ease); }
.nav-link:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { opacity: 1; color: var(--navy); background: #f1f1ee; }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-item.is-current > .nav-link, .nav-item.is-current > .nav-trigger { opacity: 1; color: var(--blue); }
.site-nav .nav-mobile-only { display: none; }
/* Dropdown panels (after sanalabs.com): grouped links on the left, a featured card on the right */
.nav-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 28px 40px -28px rgba(18, 26, 46, 0.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s;
}
.nav-panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s; }
.nav-panel-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 64px); padding-block: 32px 40px; }
.nav-groups { display: grid; gap: 24px; align-content: start; }
.nav-group-title { margin-bottom: 12px; font-size: 13.5px; opacity: 0.5; }
.nav-group ul { display: grid; gap: 10px; list-style: none; }
.nav-group a { font-size: 18px; font-weight: 500; color: var(--navy); text-decoration: none; transition: color 0.2s; }
.nav-group a:hover, .nav-group a[aria-current="page"] { color: var(--blue); }
.nav-featured { position: relative; display: block; aspect-ratio: 16 / 9; max-height: 230px; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; }
.nav-featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.nav-featured::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 34, 0) 35%, rgba(10, 16, 34, 0.75)); }
.nav-featured:hover img { transform: scale(1.04); }
.nf-text { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: grid; gap: 2px; }
.nf-text strong { font-size: 16px; font-weight: 600; }
.nf-text span { font-size: 14px; opacity: 0.85; }
.header-right { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle { display: none; padding: 0.5em 0.9em; border: 0; border-radius: 999px; background: var(--wash); color: var(--ink); font: 500 15px var(--sans); cursor: pointer; }
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: inline; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.74em 1.2em 0.72em; border: 0; border-radius: 999px;
  background: var(--blue); color: #fff;
  font: 500 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--blue-dark); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--sm { font-size: 15px; padding: 0.6em 1em 0.58em; }
.btn--light { background: var(--tint); color: var(--blue); }
.btn--light:hover { background: #dce3ff; }
.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: #eef1ff; }
.btn--line-white { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.btn--line-white:hover { background: rgba(255, 255, 255, 0.1); }
/* A closed application form: looks like a button, isn't one */
.btn--closed, .btn--closed:hover { background: rgba(255, 255, 255, 0.14); color: #fff; cursor: default; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.center .btn-row { justify-content: center; }

.link { color: var(--blue); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link .arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.link:hover .arrow { transform: translateX(3px); }
.text-link { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero .display { max-width: 14.5em; margin-inline: auto; }
.hero .lead { max-width: 36em; margin: 24px auto 32px; }
/* Status pill, as on sanalabs.com: no dot, just a quiet label and the message on a soft grey pill */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; background: #f1f1ee; color: var(--ink);
  font-size: 14.5px; font-weight: 500; margin-bottom: 22px;
}
.status .st-label { flex: none; opacity: 0.6; }

/* Hero facts row (role pages) */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin: clamp(40px, 5vw, 64px) 0 0; text-align: left; }
.facts > div { border-top: 1px solid var(--line); padding-top: 14px; }
.facts dt { font-size: 14px; opacity: var(--fade); }
.facts dd { margin: 4px 0 0; font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.7rem); line-height: 1.15; }

/* ---------- Photo collage (hero) ---------- */
.collage-wrap { overflow: hidden; padding-top: 48px; margin-top: -24px; padding-bottom: clamp(24px, 4vw, 48px); }
.collage { position: relative; width: 100%; max-width: 1760px; height: 44vw; max-height: 780px; margin-inline: auto; }
/* People: the leadership faces sit in a narrower band (84% of the screen, same proportions) so the edge faces and their
   name tags keep clear of the screen edges. Phones keep the full-width, scaled-up collage. */
@media (min-width: 861px) {
  .collage--team { width: 84%; max-width: 1480px; height: calc(44vw * 0.84); max-height: 655px;
    margin-bottom: max(calc(8px - 5vw), -84px); }   /* the faces end above the box's bottom edge: close up the empty strip */
}
.collage figure {
  position: absolute; margin: 0;
  left: var(--x); top: var(--y); width: var(--w); aspect-ratio: var(--ar, 1);
  border-radius: var(--radius); overflow: hidden; background: var(--tint);
  opacity: 0; transform: translateY(24px) scale(0.96);
  animation: collage-in 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}
.collage figure.round { border-radius: 50%; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .portrait img { mix-blend-mode: multiply; }
@keyframes collage-in { to { opacity: 1; transform: none; } }

/* Leadership collage: hover a portrait to see who it is; everything drifts gently */
.collage figure { animation: collage-in 1s var(--ease) forwards calc(var(--i, 0) * 70ms + 120ms), collage-bob 7s ease-in-out calc(var(--i, 0) * -0.9s + 1.4s) infinite; }
.collage figure:nth-child(3n) { animation-duration: 1s, 8.5s; }
.collage figure:nth-child(3n + 1) { animation-duration: 1s, 6s; }
@keyframes collage-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-10px); } }
.collage--team figure.round { overflow: visible; }
.collage--team figure.round img { border-radius: 50%; transition: transform 0.6s var(--ease); }
.collage--team figure:hover { z-index: 3; }
.collage--team figure:hover img { transform: scale(1.05); }
.collage figcaption {
  position: absolute; left: 50%; top: calc(100% + 10px); z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 7px 12px; border-radius: 12px; background: var(--navy); color: #fff;
  font-size: 13.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; text-align: center;
  opacity: 0; transform: translate(-50%, 6px); pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.collage figcaption span { font-weight: 400; font-size: 12.5px; opacity: 0.75; }
.collage figure:hover figcaption { opacity: 1; transform: translate(-50%, 0); }

/* Leadership team cards */
.leaders--team .ph img { mix-blend-mode: multiply; }
/* Ian's photo was shot on light grey rather than white; lift it to match the others */
img[src$="leaders/ian-au.jpg"] { filter: brightness(1.1); }
.leader .chip { margin-top: 16px; }
.leaders--team .leader h3 { margin-top: 10px; }
.leader .deg { font-size: 15px; opacity: var(--fade); }
.leader .fun { margin-top: 10px; font-family: var(--hand); font-size: 21px; line-height: 1.12; color: var(--blue); }

/* ---------- Media ---------- */
.media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--wash); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 16 / 7.5; }
.caption { margin-top: 10px; font-size: 14px; opacity: var(--fade); }

/* Full-bleed photo with a quote over it */
.pquote { position: relative; display: flex; align-items: flex-end; min-height: clamp(460px, 74vh, 800px); color: #fff; overflow: hidden; margin: 0; }
.pquote > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pquote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 34, 0.05) 25%, rgba(10, 16, 34, 0.68)); }
.pquote .wrap { position: relative; z-index: 1; padding-bottom: clamp(32px, 4.5vw, 64px); }
.pquote blockquote { margin: 0 0 22px; max-width: 22em; font-family: var(--serif); font-size: clamp(1.45rem, 1rem + 1.5vw, 2.3rem); line-height: 1.24; text-wrap: balance; }
.who { display: flex; align-items: center; gap: 14px; }
.who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--tint); }
.who strong { display: block; font-weight: 600; font-size: 16px; }
.who span { font-size: 15px; opacity: 0.8; }

/* ---------- Section heads ---------- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.head > div { max-width: 40em; }
.head .lead { margin-top: 14px; }
.head-center { text-align: center; max-width: 42em; margin: 0 auto clamp(32px, 4vw, 56px); }
.head-center .lead { margin-top: 16px; }
.head-center .head-link { margin-top: 20px; font-size: 17px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--gutter); list-style: none; }
.stat { border-top: 1px solid var(--line); padding-top: 16px; }
.stat .n { display: block; font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(2.6rem, 1.6rem + 3vw, 4.4rem); line-height: 1; letter-spacing: -0.02em; }
.stat .n sup { font-size: 0.45em; vertical-align: 0.95em; color: var(--blue); margin-left: 0.04em; }
.stat .l { display: block; margin-top: 12px; font-size: 15px; opacity: var(--fade); max-width: 22ch; }

/* ---------- Values (two-column list with hairlines) ---------- */
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px var(--gutter); list-style: none; }
.values--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value { border-top: 1px solid var(--line); padding-top: 16px; }
.value h3 { font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.value p { margin-top: 8px; opacity: var(--fade); max-width: 54ch; font-size: 17px; }
.value .link { display: inline-block; margin-top: 12px; font-size: 16px; }

/* Partner cards (Partnerships page) */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); list-style: none; }
.partner { display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 18px; }
.partner h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; color: var(--navy); }
.partner-logo { display: flex; align-items: center; height: 76px; margin-bottom: 4px; }
.partner-logo img { width: auto; }
.partner-logo .is-wide { height: 30px; }      /* one-line wordmark */
.partner-logo .is-stacked { height: 76px; }   /* two-line wordmark, drawn with padding */
.partner p { max-width: 46ch; opacity: var(--fade); }
.partner .partner-perk { opacity: 1; font-weight: 600; color: var(--blue); }
.partner .link { margin-top: auto; padding-top: 8px; font-size: 16px; }
@media (max-width: 860px) { .partners { grid-template-columns: 1fr; } }
.value ul { margin-top: 12px; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Feature block (Castore blue, like Sana's neon section) ---------- */
.feature { background: var(--blue); color: #fff; padding-block: clamp(72px, 9vw, 128px) clamp(88px, 11vw, 160px); }
.feature .h2, .feature .display, .feature .serif-h, .feature .statement { color: #fff; }
.feature .kicker { color: #fff; opacity: 0.85; }
.feature .fade, .feature .value p, .feature .stat .l, .feature .step p { opacity: 0.84; }
.feature .value, .feature .stat, .feature .step { border-color: rgba(255, 255, 255, 0.3); }
.feature .stat .n, .feature .step-n { color: #fff; }
.feature .stat .n sup { color: #fff; }
.feature .link { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.feature .tag { background: rgba(255, 255, 255, 0.14); color: #fff; }
.feature ::selection { background: #fff; color: var(--blue); }

/* ---------- Tags & chips ---------- */
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--wash); font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.chip { display: inline-block; padding: 5px 8px 4px; border-radius: 3px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: var(--gutter); list-style: none; counter-reset: step; }
.step { border-top: 1px solid var(--line); padding-top: 16px; counter-increment: step; }
.step-n::before { content: counter(step, decimal-leading-zero); }
.step-n { display: block; margin-bottom: 28px; font-family: var(--serif); font-weight: 700; font-size: 1.6rem; color: var(--blue); line-height: 1; }
.step h3 { font-weight: 600; font-size: 19px; line-height: 1.3; }
.step p { margin-top: 8px; font-size: 16.5px; opacity: var(--fade); }

/* ---------- Horizontal strips ---------- */
.strip {
  display: flex; gap: var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(var(--pad), (100% - var(--max)) / 2);
  scroll-padding-inline: max(var(--pad), (100% - var(--max)) / 2);
  padding-bottom: 12px; scrollbar-width: none; cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging a { pointer-events: none; }
.strip > * { flex: 0 0 clamp(260px, 25vw, 340px); scroll-snap-align: start; }
.strip-nav { display: flex; align-items: center; gap: 8px; flex: none; }
.strip-nav button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--wash); color: var(--ink); font-size: 18px; cursor: pointer; transition: background-color 0.2s; }
.strip-nav button:hover { background: var(--tint); color: var(--blue); }
.strip-nav output { font-size: 14px; opacity: var(--fade); min-width: 3.2em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- Project cards (current cycle) ---------- */
.proj { display: flex; flex-direction: column; gap: 14px; color: inherit; text-decoration: none; }
.proj .ph { aspect-ratio: 1; border-radius: var(--radius); background: var(--tint); overflow: hidden; }
.proj .ph img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; transition: transform 0.8s var(--ease); }
.proj:hover .ph img { transform: scale(1.04); }
.proj .chip { align-self: flex-start; }
.proj h3 { font-weight: 600; font-size: 19px; line-height: 1.28; letter-spacing: -0.01em; }
.proj p { font-size: 16px; opacity: var(--fade); }
.proj .by { font-size: 15px; }
.proj .by strong { font-weight: 600; }
.proj .by .prev { display: block; margin-top: 3px; }

.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px) var(--gutter); list-style: none; }
.project { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: start; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.project .ph { aspect-ratio: 1; border-radius: 50%; background: var(--tint); overflow: hidden; }
.project .ph img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.project h3 { margin-top: 10px; font-weight: 600; font-size: 19px; line-height: 1.28; }
.project p { margin-top: 8px; font-size: 16px; opacity: var(--fade); }
.project .pm { margin-top: 12px; font-size: 15px; line-height: 1.4; }
.project .pm strong { font-weight: 600; display: block; }
.project .pm .prev { opacity: var(--fade); }
.projects--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.serif-lead { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.6rem); line-height: 1.3; }

/* Small two-column date list (project cycles) */
.cal { margin: 12px 0 0; }
.cal > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 16.5px; }
.cal dt { font-weight: 600; color: var(--blue); }
.cal dd { margin: 0; }

.case { padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); align-items: start; row-gap: 24px; }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case .media { grid-column: 1 / span 6; aspect-ratio: 4 / 3; position: sticky; top: calc(var(--header-h) + 24px); }
.case-body { grid-column: 8 / span 5; }
.case-body .meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 14px; }
.case-body .meta span { opacity: var(--fade); }
.case-body .serif-h { margin: 14px 0 18px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); line-height: 1.15; }
.case-body > p { opacity: 0.82; }
.case-body > p + p { margin-top: 1em; }
.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); margin: 28px 0 22px; list-style: none; }
.case-facts li { border-top: 1px solid var(--line); padding-top: 12px; }
.case-facts strong { display: block; font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(1.45rem, 1.1rem + 1vw, 2rem); line-height: 1.05; }
.case-facts span { display: block; margin-top: 6px; font-size: 14px; opacity: var(--fade); }

/* Earlier engagements (Work page): compact cards without photos; "Scope" opens the detail */
.past-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 3.5vw, 48px) var(--gutter); align-items: start; list-style: none; }
.past { border-top: 1px solid var(--line); padding-top: 18px; }
.past .meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13.5px; }
.past .meta span:not(.chip) { opacity: var(--fade); }
.past .serif-h { margin: 14px 0 8px; font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.5rem); line-height: 1.2; }
.past-q { opacity: 0.82; font-size: 16.5px; }
.past .tags { margin-top: 14px; }
.past details { margin-top: 14px; }
.past summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--blue); }
.past summary::-webkit-details-marker { display: none; }
.past summary::after { content: "+"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tint); font-weight: 500; line-height: 1; transition: transform 0.2s var(--ease); }
.past details[open] summary::after { transform: rotate(45deg); }
.past summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.past .answer { margin-top: 10px; font-size: 15.5px; opacity: 0.82; }
.past .answer p + p { margin-top: 0.7em; }
@media (max-width: 1100px) { .past-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .past-grid { grid-template-columns: 1fr; } }

/* ---------- Team dots (roles within a project team) ---------- */
.team { display: grid; gap: clamp(28px, 4vw, 44px); justify-items: center; text-align: center; }
.team .dots { display: flex; justify-content: center; gap: clamp(10px, 2vw, 22px); margin-bottom: 14px; }
.team .dots span { width: clamp(30px, 4vw, 48px); aspect-ratio: 1; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.team .t-con .dots span { background: var(--blue-2); }
.team .t-ana .dots span { background: var(--blue-3); }
.team .t-pri .dots span { background: var(--navy); }
.team.is-visible .dots span { transform: none; }
.team h3 { font-weight: 700; font-size: 19px; color: var(--navy); }
.team p { margin-top: 4px; opacity: var(--fade); font-size: 16.5px; }

/* ---------- Role cards ---------- */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); list-style: none; }
.role { position: relative; display: flex; flex-direction: column; height: 100%; padding: clamp(24px, 2.6vw, 34px); border-radius: 16px; background: var(--wash); color: inherit; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform 0.5s var(--ease); }
a.role:hover { transform: translateY(-4px); }
.role::after { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: var(--c, var(--blue)); opacity: 0.16; transition: transform 0.8s var(--ease); }
a.role:hover::after { transform: scale(1.15); }
.role--pm { --c: var(--blue); }
.role--con { --c: var(--blue-2); }
.role--ana { --c: var(--blue-3); }
.role .hours { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); line-height: 1; color: var(--navy); }
.role .hours small { display: block; margin-top: 6px; font-family: var(--sans); font-weight: 500; font-size: 14px; opacity: var(--fade); }
.role h3 { margin-top: 36px; font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2rem); color: var(--navy); line-height: 1.1; }
.role .tagline { margin-top: 6px; font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--navy); }
.role ul { margin: 18px 0 22px; list-style: none; display: grid; gap: 8px; font-size: 16px; }
.role ul li { padding-left: 18px; position: relative; }
.role ul li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.role .role-req { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.role .role-req b { font-weight: 600; }
.role .link { margin-top: 16px; }

/* ---------- Timeline (how to apply) ---------- */
/* How to apply (careers): tabs, after Sana's product rows. Each tab sits under a thin grey track; the current tab's
   navy fill runs over --delay, then the next step takes over (main.js). The panel below shows the current step large. */
.apply-tabs-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: clamp(16px, 2vw, 24px); }
.apply-tab { position: relative; padding: 18px 0 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; opacity: 0.5; transition: opacity 0.3s; }
.apply-tab:hover, .apply-tab[aria-selected="true"] { opacity: 1; }
.apply-tab::before, .apply-tab::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: rgba(18, 26, 46, 0.12); }
.apply-tab::after { background: var(--navy); transform: scaleX(0); transform-origin: left; }
.apply-tab[aria-selected="true"]::after, .apply-tab.is-done::after { transform: none; }
.apply-tab.is-run::after { animation: apply-fill var(--delay, 5s) linear both; }
.apply-tabs:hover .apply-tab.is-run::after { animation-play-state: paused; }   /* hold while someone reads */
@keyframes apply-fill { from { transform: scaleX(0); } to { transform: none; } }
.apply-tab-date { display: block; font-size: 14px; font-weight: 600; color: var(--blue); }
.apply-tab-title { display: block; margin-top: 6px; font-size: 17px; font-weight: 600; line-height: 1.25; color: var(--navy); }
.apply-panel { display: none; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; min-height: 260px; margin-top: 32px; padding: clamp(32px, 4vw, 56px); border-radius: 24px; background: #fff; }
.apply-panel.is-current, html:not(.js) .apply-panel { display: grid; }
html:not(.js) .apply-tabs-row { display: none; }
.apply-big { display: flex; align-items: center; gap: 14px; }
.apply-day { font-family: var(--serif); font-weight: 700; font-size: 112px; line-height: 0.9; letter-spacing: -0.03em; color: var(--blue); }
.apply-mon { font-size: 16px; line-height: 1.35; opacity: var(--fade); }
.apply-panel h3 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem); line-height: 1.1; color: var(--navy); }
.apply-panel p { max-width: 30em; margin-top: 12px; font-size: 18px; line-height: 1.5; opacity: var(--fade); }
.apply-panel .status { margin: 20px 0 0; font-size: 14.5px; opacity: 1; }
@media (max-width: 1000px) { .apply-panel { grid-template-columns: 190px 1fr; } .apply-day { font-size: 84px; } }
@media (max-width: 700px) {
  .apply-tabs-row { display: none; }
  .apply-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-height: 0; margin-top: 16px; padding: 28px; }
  .apply-day { font-size: 64px; }
  .apply-panel p { font-size: 16px; }
}

/* ---------- Voices (testimonials) ---------- */
.voices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 64px) var(--gutter); list-style: none; }
.voice { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.voice blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem); line-height: 1.35; color: var(--navy); text-indent: -0.42em; }
.voice .who span { opacity: var(--fade); }

/* ---------- Firms grid ---------- */
.firms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--line); }
.firms li { padding: 22px 12px 22px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-weight: 700; font-size: clamp(1.05rem, 0.9rem + 0.4vw, 1.3rem); color: var(--navy); opacity: 0.85; }
.dest { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); list-style: none; margin-bottom: clamp(36px, 5vw, 56px); }

/* ---------- Alumni logos: floating rows that drift in opposite directions ---------- */
.logo-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(18px, 2.6vw, 30px); }
.logo-row { min-width: 0; }
.logo-label { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 15px; }
.logo-label strong { font-weight: 600; color: var(--navy); }
.logo-label span { opacity: var(--fade); }
.logo-marquee {
  overflow: hidden; padding-block: 14px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track { display: flex; width: max-content; animation: logo-scroll var(--dur, 60s) linear infinite; }
.logo-row--rev .logo-track { animation-direction: reverse; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-list { display: flex; list-style: none; }
.logo {
  flex: none; display: grid; place-items: center;
  height: 84px; padding: 0 28px; margin-right: 16px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(18, 26, 46, 0.05), 0 12px 28px -16px rgba(18, 26, 46, 0.28);
  animation: logo-bob 6s ease-in-out infinite;
}
.logo:nth-child(3n + 1) { animation-duration: 5.2s; animation-delay: -1.4s; }
.logo:nth-child(3n + 2) { animation-duration: 6.6s; animation-delay: -3.2s; }
.logo:nth-child(4n) { animation-delay: -4.5s; }
.logo img { display: block; width: var(--w); height: var(--h); max-width: none; filter: grayscale(1); opacity: 0.7; transition: filter 0.3s, opacity 0.3s, transform 0.5s var(--ease); }
.logo:hover img { filter: none; opacity: 1; transform: scale(1.06); }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
@keyframes logo-bob { 50% { transform: translateY(-8px); } }

/* ---------- Impact report viewer ---------- */
.chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; list-style: none; }
.chapters button, .report-tools button {
  padding: 8px 14px; border: 0; border-radius: 999px; background: var(--wash); color: var(--ink);
  font: 500 15px/1.2 var(--sans); cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.chapters button:hover, .report-tools button:hover { background: var(--tint); color: var(--blue); }
.chapters button.is-active { background: var(--blue); color: #fff; }
.report-viewer {
  position: relative; overflow: hidden; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(18, 26, 46, 0.45);
}
.report-viewer:fullscreen { display: grid; place-items: center; border-radius: 0; background: #0b1226; }
.report-viewer:fullscreen .report-slides { width: min(100vw, 177.78vh); }
.report-slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; scrollbar-width: none; overscroll-behavior-x: contain; }
.report-slides::-webkit-scrollbar { display: none; }
.report-slides:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.report-slides > li { flex: 0 0 100%; aspect-ratio: 16 / 9; scroll-snap-align: start; background: #fff; }
.report-slides img { width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.report-viewer .nav-btn {
  position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; margin-top: -24px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: var(--navy);
  font-size: 20px; cursor: pointer; box-shadow: 0 6px 20px -8px rgba(18, 26, 46, 0.45);
  opacity: 0; transition: opacity 0.25s, transform 0.25s var(--ease);
}
.report-viewer .nav-btn.prev { left: 14px; }
.report-viewer .nav-btn.next { right: 14px; }
.report-viewer:hover .nav-btn, .report-viewer:focus-within .nav-btn { opacity: 1; }
.report-viewer .nav-btn:hover { transform: scale(1.06); color: var(--blue); }
.report-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 16px; }
.report-bar output { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.report-bar .hint { font-size: 15px; opacity: var(--fade); }
.report-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.report-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px var(--gutter); margin-top: clamp(40px, 5vw, 64px); list-style: none; }
.report-thumbs button { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; }
.report-thumbs img { width: 100%; aspect-ratio: 16 / 9; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.2s, transform 0.4s var(--ease); }
.report-thumbs button:hover img { transform: translateY(-3px); }
.report-thumbs button.is-current img { box-shadow: 0 0 0 2px var(--blue); }
.report-thumbs span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.3; }
.report-thumbs span b { color: var(--blue); font-weight: 600; margin-right: 4px; }
.report-teaser { align-items: center; row-gap: 32px; }
.report-teaser .media { grid-column: 1 / span 7; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(18, 26, 46, 0.45); transition: transform 0.6s var(--ease); }
.report-teaser a.media:hover { transform: translateY(-4px) rotate(-0.4deg); }
.report-teaser .copy { grid-column: 9 / span 4; }
.report-teaser .copy .lead { margin: 14px 0 26px; }

.badge { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; vertical-align: 1px; }
.badge--blue { background: var(--blue); color: #fff; }
/* Project Managers promoted after being named Best Consultant */
.promo { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--tint); color: var(--blue); font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: 1px; }
.promo-line { margin-top: 8px; }
.promo-line .promo, .proj .by .promo { margin-left: 0; }
.proj .by .promo { margin-top: 8px; }   /* own line under "Previously at…" */

/* ---------- GTM Track: strategy and execution lanes (Capabilities) ----------
   Two bars, with the links between the workstreams in .lane-links: is-down = strategy shapes
   execution, is-up = execution feeds back into strategy. */
.lanes { display: grid; gap: 0; margin-top: clamp(36px, 5vw, 56px); }
.lane, .lane-links-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); column-gap: 28px; align-items: center; }
.lane-label strong { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--navy); line-height: 1.15; }
.lane-label span { font-size: 15px; opacity: var(--fade); }
.lane-bar {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  min-height: 74px; padding: 16px 22px; border-radius: 14px; color: #fff;
  transform-origin: left; transform: scaleX(1); transition: transform 1.1s var(--ease);
}
.lane-bar b { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.lane-bar span { font-size: 15.5px; opacity: 0.9; }
.lane--consult .lane-bar { background: var(--navy); }
.lane--gtm .lane-bar { background: var(--blue); transition-delay: 0.25s; }
.lane-links { grid-column: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; min-height: 104px; padding: 0; list-style: none; }
.lane-links li { display: flex; transition: opacity 0.5s; transition-delay: calc(0.9s + var(--k, 0) * 140ms); }
.lane-links span { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 16px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.lane-links i { font-style: normal; font-size: 16px; line-height: 1; }
.lane-links .is-down span { background: var(--blue); color: #fff; }
.lane-links .is-up span { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.js .lanes .lane-bar { transform: scaleX(0); }
.js .lanes.is-visible .lane-bar { transform: scaleX(1); }
.js .lanes .lane-links li { opacity: 0; }
.js .lanes.is-visible .lane-links li { opacity: 1; }
@media (max-width: 1279px) {
  /* Too narrow for three links side by side: stack them */
  .lane-links { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 18px 0 22px; }
}

/* GTM dots in the team diagram */
.team .t-gtm .dots span { background: #fff; box-shadow: inset 0 0 0 3px var(--blue); }
.team .t-gtm { padding-top: clamp(20px, 3vw, 32px); border-top: 1px dashed var(--blue-3); }

/* Homepage "new" banner inside the blue feature block */
.new-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin-top: clamp(36px, 5vw, 56px); padding: 16px 20px; border-radius: 14px;
  background: #fff; color: var(--ink); text-decoration: none;
  transition: transform 0.4s var(--ease);
}
.new-banner:hover { transform: translateY(-3px); }
.new-banner strong { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.new-banner .link, .feature .new-banner .link { margin-left: auto; color: var(--blue); text-decoration: none; }

/* Homepage "What we do": the "01 Strategy" / "02 Execution" labels above each group */
.track-label { margin: 0 0 16px; font-size: 15px; font-weight: 500; }
.track-label b { margin-right: 4px; font-weight: 700; }
.values + .track-label { margin-top: clamp(48px, 6vw, 72px); }
.track-label + .new-banner { margin-top: 0; }

/* ---------- Capabilities page ---------- */
.practice { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); align-items: start; row-gap: 32px; }
.practice:first-of-type { border-top: 0; padding-top: 0; }
.practice .values { grid-column: 6 / span 7; }

/* ---------- People ---------- */
.leaders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px var(--gutter); list-style: none; }
.leader .ph { aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--tint); }
.leader .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transition: transform 0.8s var(--ease); }
.leader:hover .ph img { transform: scale(calc(var(--zoom, 1) * 1.05)); }
.leader h3 { margin-top: 16px; font-weight: 600; font-size: 18px; }
.leader .role-name { font-size: 15px; opacity: var(--fade); }
.leader .prev { margin-top: 6px; font-size: 14.5px; }
.leaders--pms { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.leaders--pms .ph img { mix-blend-mode: multiply; }

.archive { border-top: 1px solid var(--line); }
.archive-row { padding-block: 22px; border-bottom: 1px solid var(--line); align-items: baseline; row-gap: 12px; }
.archive-year { grid-column: 1 / span 3; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--navy); }
.archive-list { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px var(--gutter); list-style: none; }
.archive-list a { color: inherit; text-decoration: none; }
.archive-list strong { display: block; font-weight: 600; font-size: 17px; }
.archive-list a:hover strong { color: var(--blue); }
.archive-list span { display: block; font-size: 15px; opacity: var(--fade); }

/* ---------- About ---------- */
.name-block { align-items: center; row-gap: 32px; }
.name-word { grid-column: 1 / span 6; }
.name-word .serif-h { font-size: clamp(3.4rem, 2rem + 6vw, 7.5rem); line-height: 0.95; }
.name-word .gloss { margin-top: 18px; font-size: 16px; opacity: var(--fade); }
.name-word img { width: min(280px, 60%); margin-top: 32px; transition: transform 0.8s var(--ease); }
.name-word img:hover { transform: rotate(-6deg) translateY(-6px); }
.name-text { grid-column: 8 / span 5; }
.name-text p + p { margin-top: 1em; }

.letter { grid-column: 4 / span 6; }
.letter .opening { font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem); line-height: 1.32; color: var(--navy); }
.letter h3 { margin: 32px 0 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.letter p + p { margin-top: 1em; }
.letter .sign { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Role pages ---------- */
.role-content { grid-column: 4 / span 6; }
.role-content h2 { margin: 48px 0 14px; font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 1.3rem + 0.9vw, 2.1rem); color: var(--navy); line-height: 1.15; }
.role-content h2:first-child { margin-top: 0; }
.role-content p + p { margin-top: 1em; }
.role-content ul { list-style: none; margin-top: 8px; border-top: 1px solid var(--line); }
.role-content ul li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; }
.role-content ul li::before { content: ""; position: absolute; left: 2px; top: 1.15em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.role-content .fine { margin-top: 32px; font-size: 15px; opacity: var(--fade); }

.apply-block { border-radius: 20px; background: var(--blue); color: #fff; padding: clamp(36px, 5vw, 64px); text-align: center; }
.apply-block .serif-h { color: #fff; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); line-height: 1.1; }
.apply-block p { margin: 14px auto 26px; max-width: 34em; opacity: 0.88; }
.apply-block .status { background: rgba(255, 255, 255, 0.14); color: #fff; }
.apply-block .others { margin-top: 26px; font-size: 15px; opacity: 0.9; }
.apply-block .others a { color: #fff; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 18.5px; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--blue); font-weight: 500; font-size: 20px; line-height: 1; transition: transform 0.4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 22px; max-width: 64ch; opacity: 0.8; }
.faq .answer > * + * { margin-top: 0.8em; }
.faq .answer ul { padding-left: 1.2em; }

/* ---------- DE&I charts ---------- */
.demo { padding-block: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line); align-items: start; row-gap: 24px; }
.demo-text { grid-column: 1 / span 5; }
.demo-text p { margin-top: 10px; opacity: 0.8; }
.demo-text .fine { font-size: 15px; opacity: var(--fade); }
.demo-chart { grid-column: 7 / span 6; }
/* Each chart is a real <table>: screen readers get the data, sighted readers get bars. */
.bar-chart { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.bar-chart caption { text-align: left; font-size: 14px; opacity: var(--fade); margin-bottom: 12px; }
.bar-chart thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.bar-chart th { width: 44%; padding: 6px 14px 6px 0; font-weight: 400; text-align: left; vertical-align: middle; line-height: 1.3; }
.bar-chart td { padding: 6px 0; vertical-align: middle; }
.bar-chart .bar { display: flex; align-items: center; gap: 8px; }
.bar-chart .bar::before {
  content: ""; display: block; flex: none;
  width: calc(var(--v) * var(--scale, 1) * 1%); max-width: calc(100% - 3.25rem); min-width: 2px;
  height: 18px; border-radius: 0 4px 4px 0; background: var(--blue);
  transform-origin: left; transition: transform 0.9s var(--ease);
}
.js .demo .bar::before { transform: scaleX(0); }
.js .demo.is-visible .bar::before { transform: none; }
.bar-chart .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-chart tbody tr { transition: opacity 0.2s; }
.bar-chart tbody:hover tr { opacity: 0.4; }
.bar-chart tbody tr:hover { opacity: 1; }

/* ---------- Contact ---------- */
.contact-info { grid-column: 1 / span 4; }
.contact-info dl { margin: 0; display: grid; gap: 26px; }
.contact-info dt { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 6px; }
.contact-info dd { margin: 0; }
.contact-info dd a { color: inherit; text-decoration: none; }
.contact-info dd a:hover { color: var(--blue); }
.contact-info ul { list-style: none; display: grid; gap: 4px; }
.contact-form { grid-column: 6 / span 7; }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label, .field legend { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.field fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.req { color: var(--blue); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 17px; color: var(--ink);
  background: var(--wash); border: 1px solid transparent; border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 71, 235, 0.14); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #d0342c; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; cursor: pointer; font-weight: 500; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; background: var(--wash); font-size: 15px; transition: background-color 0.2s, color 0.2s; }
.chips label:hover span { background: var(--tint); }
.chips input:checked + span { background: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.form-note { font-size: 14px; opacity: var(--fade); }
.form-status { display: none; padding: 14px 16px; border-radius: 10px; font-size: 16px; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e8f6ee; color: #11643a; }
.form-status.is-error { background: #fdecea; color: #9b1c1c; }
.form-status.is-info { background: var(--tint); color: var(--blue); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding-top: clamp(56px, 7vw, 96px); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 40px var(--gutter); padding-bottom: clamp(40px, 5vw, 64px); }
.footer-brand .serif-h { color: #fff; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); line-height: 1.1; max-width: 12em; }
.footer-brand .btn-row { margin-top: 24px; }
.footer-col h2 { font-size: 14px; font-weight: 600; opacity: 0.6; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: #fff; text-decoration: none; opacity: 0.88; font-size: 16px; }
.footer-col a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-mark { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.footer-mark .meta { font-size: 14px; opacity: 0.7; text-align: right; }
/* Endorsement under the wordmark, as on sanalabs.com ("A Workday company"): quiet until hovered */
.footer-endorse { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 13.5px; text-decoration: none; opacity: 0.6; transition: opacity 0.4s var(--ease); }
.footer-endorse:hover { opacity: 1; }
.footer-endorse img { width: 28px; height: 28px; }
.footer-mark .meta a { color: #fff; }
.footer-legal { padding-bottom: 32px; font-size: 13px; line-height: 1.55; opacity: 0.62; max-width: 110ch; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .collage figure { animation: none; opacity: 1; transform: none; }
  .team .dots span { transform: none; transition: none; }
  .js .demo .bar::before { transform: none; }
  .js .lanes .lane-bar { transform: none; }
  .js .lanes .lane-links li { opacity: 1; }
  .logo-track { animation: none; width: auto; }
  .logo-list { flex-wrap: wrap; justify-content: center; row-gap: 16px; padding-inline: var(--pad); }
  .logo-list[aria-hidden] { display: none; }
  .logo { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Capabilities: jump links, founder/fund panels, GTM on the blue block ---------- */
.jump { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--wash); color: var(--navy); font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s; }
.jump a b { font-family: var(--serif); color: var(--blue); }
.jump a:hover { background: var(--tint); color: var(--blue); }
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); align-items: stretch; }
.panel { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 40px); border-radius: 20px; background: var(--wash); }
.panel h3 { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); line-height: 1.1; }
.panel > p:not(.kicker) { margin-top: 12px; opacity: var(--fade); }
.panel .kicker { margin-bottom: 10px; }
.panel-rows { margin: 26px 0 28px; list-style: none; border-top: 1px solid var(--line); }
.panel-rows > li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.panel-rows h4 { font-weight: 600; font-size: 18px; color: var(--navy); }
.panel-rows ul { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.panel-rows .tag { background: #fff; }
.feature .lane-label strong { color: #fff; }
.feature .lane-label span { opacity: 0.8; }
.feature .lane--gtm .lane-bar { background: #fff; color: var(--blue); }
.feature .lane-links .is-down span { background: #fff; color: var(--blue); }
.feature .lane-links .is-up span { background: var(--blue); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

/* ---------- Case-study carousel (Capabilities) ---------- */
.case-strip { --h: clamp(300px, 34vw, 480px); list-style: none; padding-bottom: 4px; }
.strip > .case-slide { flex: 0 0 auto; width: min(calc(var(--h) * var(--ar, 1)), 86vw); }
.case-slide a { display: block; color: inherit; text-decoration: none; }
.case-slide .media { height: var(--h); border-radius: 24px; }
.case-slide .media img { transition: transform 0.8s var(--ease); user-select: none; }
.case-slide a:hover .media img { transform: scale(1.03); }
.case-slide .media::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 50%; background: linear-gradient(rgba(10, 18, 40, 0.55), rgba(10, 18, 40, 0)); pointer-events: none; }
.case-slide .over { position: absolute; z-index: 2; top: clamp(18px, 2.2vw, 30px); left: clamp(18px, 2.2vw, 30px); right: 18px; font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.1; color: #fff; }
.case-slide .cap { margin-top: 16px; max-width: 36ch; font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem); line-height: 1.4; }
.case-slide .cap strong { font-weight: 600; color: var(--navy); }
.carousel-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: clamp(28px, 3.5vw, 44px); padding-inline: var(--pad); }
.carousel-dots { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-radius: 999px; background: var(--wash); }
.carousel-dots button { position: relative; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: rgba(18, 26, 46, 0.2); cursor: pointer; transition: width 0.45s var(--ease); }
.carousel-dots button::before { content: ""; position: absolute; inset: -10px -4px; }
.carousel-dots button.is-current { width: 56px; }
.carousel-dots button.is-current::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--navy); transform-origin: left; }
.carousel-dots button.is-run::after { animation: carousel-fill var(--delay, 6s) linear both; }
@keyframes carousel-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carousel-toggle { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--wash); color: var(--ink); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.carousel-toggle:hover { background: var(--tint); color: var(--blue); }
.carousel-toggle svg { fill: currentColor; }
.carousel-toggle .i-play, .carousel-toggle[data-paused="true"] .i-pause { display: none; }
.carousel-toggle[data-paused="true"] .i-play { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-nav, .header-right .btn { display: none; }
  .nav-toggle { display: inline-block; }
  .header-inner { justify-content: space-between; }
  .site-nav.is-open {
    display: block; position: fixed; top: var(--header-h); left: 0; right: 0; height: calc(100dvh - var(--header-h));
    padding: 24px var(--pad) 40px; background: #fff; overflow-y: auto;
  }
  .site-nav.is-open .nav-top { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.is-open .nav-item { border-bottom: 1px solid var(--line); }
  .site-nav.is-open .nav-link, .site-nav.is-open .nav-trigger {
    display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 14px 0; border-radius: 0; background: none;
    font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.6rem); color: var(--navy); opacity: 1;
  }
  .site-nav.is-open .nav-item.is-current > .nav-link, .site-nav.is-open .nav-item.is-current > .nav-trigger { color: var(--blue); }
  .site-nav.is-open .nav-trigger .chev { width: 22px; height: 22px; }
  .site-nav .nav-panel, .site-nav .nav-panel.is-open { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; transition: none; }
  .site-nav .nav-panel.is-open { display: block; }
  .site-nav .nav-panel-inner { display: block; padding: 0 0 18px; }
  .site-nav .nav-groups { grid-template-columns: 1fr; gap: 16px; }
  .site-nav .nav-featured { display: none; }
  .site-nav .nav-group a { font-size: 19px; }
  .site-nav .nav-mobile-only { display: list-item; }
  body.nav-open { overflow: hidden; }

  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leaders { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .leaders--pms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .firms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .roles { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; }
  .practice .values { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .panels { grid-template-columns: 1fr; }
  body { font-size: 17px; }
  .gc { grid-column: 1 / -1; }
  .collage-wrap { height: calc(66vw + 24px); }
  .collage { height: 44vw; transform: scale(1.5); transform-origin: 50% 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .values, .values--3 { grid-template-columns: 1fr; gap: 28px; }
  .voices { grid-template-columns: 1fr; }
  .projects--2 { grid-template-columns: 1fr; }
  .dest { grid-template-columns: 1fr; gap: 24px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .head { flex-direction: column; align-items: flex-start; }
  .case .media { grid-column: 1 / -1; position: static; }
  .case-body { grid-column: 1 / -1; }
  .name-word, .name-text { grid-column: 1 / -1; }
  .letter, .role-content { grid-column: 1 / -1; }
  .demo-text, .demo-chart { grid-column: 1 / -1; }
  .contact-info, .contact-form { grid-column: 1 / -1; }
  .contact-info { margin-bottom: 40px; }
  .lane, .lane-links-row { grid-template-columns: 1fr; row-gap: 10px; }
  .lane-links { grid-column: 1; }
  .new-banner .link { margin-left: 0; }
  .report-thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-viewer .nav-btn { display: none; }
  .report-teaser .media, .report-teaser .copy { grid-column: 1 / -1; }
  .archive-year, .archive-list { grid-column: 1 / -1; }
  .archive-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-mark { flex-direction: column; align-items: flex-start; }
  .footer-mark .meta { text-align: left; }
}

@media (max-width: 600px) {
  .projects, .projects--2 { grid-template-columns: 1fr; }
  .project { grid-template-columns: 84px 1fr; }
  .leaders, .leaders--pms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .firms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .archive-list { grid-template-columns: 1fr; }
  .brand span { font-size: 17px; }
  .logo { height: 68px; padding: 0 20px; margin-right: 12px; border-radius: 14px; }
  .logo img { width: calc(var(--w) * 0.8); height: calc(var(--h) * 0.8); }
}

/* ---------- Home hero: rotating sector word + live project pill ---------- */
.hero--rotate { padding-bottom: clamp(56px, 7vw, 96px); }
.hero--rotate .display { max-width: none; }
.status--live { max-width: 100%; text-decoration: none; transition: background-color 0.2s; }
.status--live:hover { background: #e8e8e3; }
.status--live .st-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.3s; }
.status--live:hover .st-text { text-decoration: underline; text-underline-offset: 3px; }
.status--live.is-swapping .st-text { opacity: 0; }

/* ---------- Home hero: floating cards, after Sana's Summer 2026 hero. A smaller headline sits in the middle of a
   stage; tilted cards around it each lead somewhere. Screens 1200px and wider only. Each card's tilt (--r), drift (translate, set by
   main.js from the pointer) and idle bob (transform) are separate properties, so they combine. ---------- */
.float-stage { position: relative; }
.float-layer { display: none; }
@media (min-width: 1200px) {
  /* the hero, cards and the logo row fill one screen, so the logos show on landing */
  .hero--float { display: flex; flex-direction: column; min-height: calc(100svh - var(--header-h)); padding: 0 0 clamp(16px, 3vh, 32px); }
  .float-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin-inline: auto; padding: clamp(76px, 13vh, 170px) 0 clamp(60px, 9vh, 140px); }
  .float-center { max-width: 900px; }
  .hero--float .display { font-size: clamp(3.1rem, 1.6rem + 3vw, 4.5rem); max-width: 12.5em; margin-inline: auto; }
  .hero--float .br-wide { display: none; }
  .hero--float .lead { max-width: 30em; font-size: 20px; }
  .hero--float .status--live { font-size: 15.5px; }
  .hero--float .logo-wall { margin-top: 0; }
  .hero--float .logo-wall-caption { margin-bottom: 6px; }
  .hero--float .logo-wall-slots li { height: 52px; }
  .float-layer { display: block; position: absolute; inset: 0 var(--pad); pointer-events: none; --s: 0.84; }
}
.fl { position: absolute; top: var(--t); left: var(--l, auto); right: var(--rt, auto); pointer-events: auto; }
.fl {
  display: flex; flex-direction: column; gap: 5px; padding: 12px; border-radius: 16px; background: #fff;
  box-shadow: 0 0 0 1px rgba(18, 26, 46, 0.06), 0 8px 24px -8px rgba(18, 26, 46, 0.14);
  color: var(--ink); text-align: left; text-decoration: none; font-size: 14px; line-height: 1.3;
  opacity: 0.3; filter: grayscale(1);   /* grey and see-through at rest so the headline leads; full colour on hover */
  scale: var(--s, 1);   /* --s shrinks every card on short screens */
  rotate: var(--r, 0deg); transition: translate 0.9s var(--ease), scale 0.4s var(--ease), rotate 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.35s, filter 0.35s;
  animation: fl-in 1s var(--ease) backwards, fl-bob 7s ease-in-out infinite alternate;
  animation-delay: calc(0.5s + var(--i, 0) * 70ms), calc(var(--i, 0) * -0.9s);
}
.fl:hover, .fl:focus-visible { z-index: 2; opacity: 1; filter: none; scale: calc(var(--s, 1) * 1.1); rotate: 0deg;
  box-shadow: 0 0 0 1px rgba(18, 26, 46, 0.08), 0 22px 44px -12px rgba(18, 26, 46, 0.28); }
.fl:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
@keyframes fl-in { from { opacity: 0; scale: calc(var(--s, 1) * 0.88); } }
@keyframes fl-bob { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
.fl svg { width: 16px; height: 16px; flex: none; color: var(--blue); }
.fl-kicker { font-size: 12px; font-weight: 600; color: var(--blue); }
.fl-title { font-weight: 600; color: var(--navy); }
.fl-sub { font-size: 13px; opacity: var(--fade); }
/* the card types. A card's title is its page's name, or a playful title with the page's name as a small blue label. */
.fl-doc { width: 192px; }
.fl-doc img { width: 100%; height: 112px; object-fit: cover; border-radius: 10px; margin-bottom: 4px; }
.fl-report { width: 176px; }
.fl-report img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 2px; }
.fl-chip { flex-direction: row; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px; font-size: 15.5px; font-weight: 600; color: var(--navy); white-space: nowrap; }
.fl-chip-sub { font-size: 13.5px; font-weight: 500; opacity: var(--fade); }
.fl-chip--two { padding: 11px 18px 11px 14px; }
.fl-chip--two svg { width: 22px; height: 22px; }
.fl-chip--two > span:not(.fl-app) { display: flex; flex-direction: column; gap: 1px; }
.fl-app { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--navy); }
.fl-app img { width: 16px; height: auto; }
.fl-partners { width: 168px; align-items: flex-start; gap: 6px; padding: 16px; }
.fl-partners .fl-title { margin-bottom: 6px; }
.fl-partners img:nth-of-type(1) { width: 104px; height: auto; }
.fl-partners img:nth-of-type(2) { width: 62px; height: auto; margin-top: 4px; }
.fl-people { width: 200px; padding: 16px; }
.fl-faces { display: flex; margin-bottom: 6px; }
.fl-faces img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.fl-faces img + img { margin-left: -9px; }
.fl-blue { width: 196px; gap: 4px; padding: 18px; border-radius: 22px; background: var(--blue); color: #fff; box-shadow: 0 16px 36px -12px rgba(31, 71, 235, 0.55); }
.fl-blue .fl-kicker { margin-top: 10px; color: rgba(255, 255, 255, 0.75); }
.fl-blue .fl-title { font-family: var(--serif); font-size: 21px; line-height: 1.15; color: #fff; }
.fl-blue .fl-sub { opacity: 0.85; }
.fl-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.fl-icon img { width: 22px; height: auto; }
.fl-ask { flex-direction: row; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; font-size: 15px; }
.fl-ask-text { display: flex; flex-direction: column; gap: 1px; margin-right: 18px; }
.fl-plus { font-size: 20px; line-height: 1; opacity: 0.5; }
.fl-send { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); }
.fl-send svg { color: #fff; }
.fl-cal { align-items: center; gap: 0; width: 84px; padding: 12px 0 16px; border-radius: 18px; }
.fl-mon { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.fl-day { font-size: 36px; font-weight: 700; line-height: 1.05; color: var(--navy); }
.fl-tag { position: absolute; left: 50%; bottom: -13px; translate: -50% 0; padding: 4px 10px; border-radius: 8px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.fl-tag span { opacity: 0.7; font-weight: 500; }
/* 1200 to 1399px wide: the same cards, a size down, so they keep clear of the headline */
@media (max-width: 1399px) {
  .fl { font-size: 13px; padding: 10px; }
  .fl-doc { width: 164px; }
  .fl-doc img { height: 92px; }
  .fl-report { width: 148px; }
  .fl-chip { padding: 10px 14px; font-size: 14px; gap: 8px; }
  .fl-chip-sub { font-size: 12.5px; }
  .fl-chip--two svg { width: 19px; height: 19px; }
  .fl-partners { width: 148px; padding: 13px; }
  .fl-partners img:nth-of-type(1) { width: 88px; }
  .fl-partners img:nth-of-type(2) { width: 52px; }
  .fl-people { width: 176px; padding: 13px; }
  .fl-faces img { width: 31px; height: 31px; }
  .fl-blue { width: 172px; padding: 15px; }
  .fl-blue .fl-title { font-size: 18.5px; }
  .fl-icon { width: 34px; height: 34px; }
  .fl-ask { font-size: 14px; }
  .fl-send { width: 34px; height: 34px; }
  .fl-cal { width: 74px; }
  .fl-day { font-size: 31px; }
}
/* short screens (under 760px tall): smaller cards and a tighter headline, so the logo row still shows on landing */
@media (min-width: 1200px) and (max-height: 760px) {
  .float-layer { --s: 0.74; }
  .float-stage { padding: 60px 0 52px; }
  .hero--float .display { font-size: 3.3rem; }
  .hero--float .lead { margin: 16px auto 22px; }
  .hero--float .status { margin-bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) { .fl { animation: none; transition: none; } }
/* Alumni logo row under the hero buttons: one logo swaps every 2s (7 shown, 3 on phones) */
.logo-wall { margin: clamp(48px, 6vw, 80px) auto 0; max-width: 1100px; }
.logo-wall-caption { margin-bottom: 18px; font-size: 14px; opacity: 0.6; }
.logo-wall-slots { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); column-gap: 24px; list-style: none; }
.logo-wall-slots li { display: flex; align-items: center; justify-content: center; height: 64px; transition: opacity 1s ease; }
.logo-wall-slots li.is-hidden { opacity: 0; }
.logo-wall-slots img { width: calc(var(--w) * 0.9); height: calc(var(--h) * 0.9); max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: 0.7; }
@media (max-width: 860px) {
  .logo-wall-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logo-wall-slots li:nth-child(n + 4) { display: none; }
}
.rot { display: inline-block; vertical-align: bottom; white-space: nowrap; overflow: hidden; transition: width 0.5s var(--ease); }
.rot-word { display: inline-block; transition: transform 0.35s var(--ease), opacity 0.35s; }
.rot.is-out .rot-word { transform: translateY(-60%); opacity: 0; }
.rot.is-in .rot-word { transform: translateY(60%); opacity: 0; transition: none; }
.br-narrow { display: none; }
@media (max-width: 860px) {
  .br-wide { display: none; }
  .br-narrow { display: inline; }   /* the word gets its own line on phones, so the headline never reflows */
}
@media (prefers-reduced-motion: reduce) { .rot, .rot-word, .status--live .st-text, .logo-wall-slots li { transition: none; } }

/* ---------- People: collage header + fun facts as hover bubbles ---------- */
.collage figure > a { display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; }
.collage--team figure:focus-within { z-index: 3; }
.collage--team figure:focus-within figcaption { opacity: 1; transform: translate(-50%, 0); }
.collage--team figure a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 50%; }
.hover-hint { display: none; margin-top: 18px; font-size: 26px; }
@media (hover: hover) and (pointer: fine) {
  .hover-hint { display: block; }
  .leaders--team .leader { position: relative; container-type: inline-size; outline: none; }
  .leaders--team .leader .fun {
    position: absolute; left: 8%; right: 8%; top: 74cqw; z-index: 2; margin: 0;
    padding: 10px 14px 11px; border-radius: 16px; background: #fff; font-size: 19px;
    box-shadow: 0 14px 30px -14px rgba(18, 26, 46, 0.4), 0 0 0 1px var(--line);
    opacity: 0; transform: translateY(10px) rotate(-1.5deg); pointer-events: none;
    transition: opacity 0.25s, transform 0.4s var(--ease);
  }
  .leaders--team .leader .fun::before {
    content: ""; position: absolute; top: -7px; left: 30px; width: 14px; height: 14px; background: #fff;
    transform: rotate(45deg); box-shadow: -1px -1px 0 0 var(--line);
  }
  .leaders--team .leader:hover .fun, .leaders--team .leader:focus-visible .fun, .leaders--team .leader.is-flash .fun { opacity: 1; transform: translateY(0) rotate(-1.5deg); }
  .leaders--team .leader:focus-visible .ph { outline: 2px solid var(--blue); outline-offset: 4px; }
}
.leaders--team .leader .ph { transition: box-shadow 0.4s; }
.leaders--team .leader.is-flash .ph { box-shadow: 0 0 0 4px var(--blue); }
@media (prefers-reduced-motion: reduce) { .leaders--team .leader .fun { transition: none; } }


/* ---------- Events (About): Instagram posters as 4:5 cards, newest first ---------- */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2vw, 24px); list-style: none; }
.event a { display: block; color: inherit; text-decoration: none; }
.event-media { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--tint); }
.event-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }   /* hairline edge so white posters don't melt into the page */
.event-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.event a:hover .event-media img { transform: scale(1.03); }
.event-date { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--blue); }
.event h3 { margin-top: 6px; font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--navy); }
.event a:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.event-line { margin-top: 6px; font-size: 15px; line-height: 1.5; opacity: var(--fade); }
@media (max-width: 700px) {
  .events { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .event { scroll-snap-align: start; }
}

/* ---------- Beaver cursor ----------
   Navy beaver everywhere; blue beaver over anything clickable; normal text cursor in text fields.
   The click point (30 8) is the beaver's nose. image-set serves the sharper @2x image on Retina screens;
   browsers that don't support it keep the plain url() line. Touch screens never show a cursor. */
html {
  cursor: url("../img/cursor-beaver.png") 30 8, auto;
  cursor: -webkit-image-set(url("../img/cursor-beaver.png") 1x, url("../img/cursor-beaver@2x.png") 2x) 30 8, auto;
  cursor: image-set(url("../img/cursor-beaver.png") 1x, url("../img/cursor-beaver@2x.png") 2x) 30 8, auto;
}
html body :is(a[href], button, summary, label, select, [role="button"], input[type="radio"], input[type="checkbox"], input[type="submit"]) {
  cursor: url("../img/cursor-beaver-link.png") 30 8, pointer;
  cursor: -webkit-image-set(url("../img/cursor-beaver-link.png") 1x, url("../img/cursor-beaver-link@2x.png") 2x) 30 8, pointer;
  cursor: image-set(url("../img/cursor-beaver-link.png") 1x, url("../img/cursor-beaver-link@2x.png") 2x) 30 8, pointer;
}
html body :is(input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]), textarea) { cursor: text; }
/* Paw-print trail (drawn by main.js): above everything, never catches clicks */
.paw-trail { position: fixed; inset: 0; z-index: 250; width: 100%; height: 100%; pointer-events: none; }
@media print { .paw-trail { display: none; } }

/* ---------- Back to top: a reading ring (added by main.js) ----------
   Bottom-right. The blue ring fills as you read down the page; at the end the arrow turns into the beaver. Springs in
   (Sana-style overshoot) once you're a screen down; on hover it lifts, turns navy and shows a "Back to top" tag. */
.to-top {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 90;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--navy); text-decoration: none;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px -12px rgba(18, 26, 46, 0.35);
  opacity: 0; scale: 0.6; translate: 0 16px; pointer-events: none;
  transform: translateY(var(--kick, 0px));   /* main.js nudges this while you scroll; the spring brings it back */
  transition: opacity 0.25s, scale 0.6s var(--spring), translate 0.6s var(--spring), transform 0.8s var(--spring), background-color 0.25s, color 0.25s;
}
.to-top.is-shown { opacity: 1; scale: 1; translate: 0 0; pointer-events: auto; animation: to-top-in 0.9s backwards; }
@keyframes to-top-in {   /* a Sana-style bounce: overshoot, dip, settle */
  0% { opacity: 0; scale: 0.4; translate: 0 34px; }
  40% { opacity: 1; scale: 1.14; translate: 0 -8px; }
  60% { scale: 0.93; translate: 0 3px; }
  78% { scale: 1.04; translate: 0 -1px; }
  100% { scale: 1; translate: 0 0; }
}
.to-top.is-shown:hover { translate: 0 -3px; background: var(--navy); color: #fff; }
.to-top:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.to-top-ring circle { fill: none; stroke-width: 2.5; transition: stroke 0.25s; }
.to-top-track { stroke: rgba(18, 26, 46, 0.1); }
.to-top-fill { stroke: var(--blue); stroke-linecap: round; stroke-dasharray: 131.95; stroke-dashoffset: 131.95; }
.to-top:hover .to-top-track { stroke: rgba(255, 255, 255, 0.2); }
.to-top:hover .to-top-fill { stroke: #8fa6ff; }
.to-top-arrow { width: 17px; height: 17px; transition: opacity 0.3s, transform 0.45s var(--spring); }
.to-top:hover .to-top-arrow { transform: translateY(-2px); }
.to-top-beaver { position: absolute; width: 24px; height: auto; opacity: 0; transform: translateY(8px) rotate(-20deg) scale(0.7); transition: opacity 0.3s, transform 0.55s var(--spring); }
.to-top.is-done .to-top-arrow { opacity: 0; transform: translateY(-8px); }
.to-top.is-done .to-top-beaver { opacity: 1; transform: rotate(-20deg); }
.to-top:hover .to-top-beaver { filter: brightness(0) invert(1); }
.to-top-label {
  position: absolute; right: calc(100% + 10px); top: 50%; padding: 4px 10px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; pointer-events: none;
  opacity: 0; scale: 0.85; translate: 6px -50%; transform-origin: right center; transition: opacity 0.2s, scale 0.45s var(--spring), translate 0.45s var(--spring);
}
.to-top.is-shown:hover .to-top-label, .to-top.is-shown:focus-visible .to-top-label { opacity: 1; scale: 1; translate: 0 -50%; }
@media (prefers-reduced-motion: reduce) { .to-top, .to-top * { transition: none; animation: none; } }
@media print { .to-top { display: none; } }

/* ---------- 404: a page the beavers have gnawed ----------
   A sheet with bites taken out of its right edge (mask: each radial-gradient punches one bite), the beaver chewing at
   it, and a few wood chips falling. The sheet lists the pages that are "still standing". */
.gnawed { display: flex; align-items: center; min-height: 66vh; overflow: hidden; }
.gnawed-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.gnawed .display { max-width: 8.5em; margin-inline: 0; }
.gnawed .lead { max-width: 30em; margin: 24px 0 32px; }
.gnawed-scene { position: relative; justify-self: center; margin-right: 70px; }
.gnawed-shadow { filter: drop-shadow(0 18px 28px rgba(18, 26, 46, 0.14)) drop-shadow(0 0 1px rgba(18, 26, 46, 0.3)); rotate: -3deg; }
.gnawed-sheet {
  width: min(320px, 72vw); padding: 28px 34px 26px 30px; border-radius: 18px; background: #fff;
  -webkit-mask:
    radial-gradient(circle 30px at 100% 54px, #0000 97%, #000),
    radial-gradient(circle 22px at calc(100% - 2px) 104px, #0000 97%, #000),
    radial-gradient(circle 17px at calc(100% - 10px) 142px, #0000 97%, #000),
    radial-gradient(circle 24px at calc(100% - 52px) 0, #0000 97%, #000);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 30px at 100% 54px, #0000 97%, #000),
    radial-gradient(circle 22px at calc(100% - 2px) 104px, #0000 97%, #000),
    radial-gradient(circle 17px at calc(100% - 10px) 142px, #0000 97%, #000),
    radial-gradient(circle 24px at calc(100% - 52px) 0, #0000 97%, #000);
  mask-composite: intersect;
}
.gnawed-title { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--blue); }
.gnawed-sheet ul { margin-top: 10px; list-style: none; }
.gnawed-sheet li + li { border-top: 1px solid var(--line); }
.gnawed-sheet a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px 12px 0; color: var(--navy); font-size: 17px; font-weight: 600; text-decoration: none; }
.gnawed-sheet a span { color: var(--blue); transition: translate 0.4s var(--ease); }
.gnawed-sheet a:hover { color: var(--blue); }
.gnawed-sheet a:hover span { translate: 4px 0; }
.gnawed-beaver { position: absolute; top: 36px; right: -86px; width: 96px; height: auto; transform: scaleX(-1); transform-origin: 30% 70%;
  animation: gnaw 2.4s ease-in-out infinite; }
@keyframes gnaw {   /* a few quick chomps, then a pause */
  0%, 46%, 100% { rotate: 0deg; } 8%, 24%, 40% { rotate: -7deg; } 16%, 32% { rotate: 2deg; }
}
.gnawed-chip { position: absolute; right: var(--x); top: var(--y); width: 11px; height: 6px; border-radius: 2px; background: #c3cde4; rotate: var(--r);
  animation: chip-fall 2.4s ease-in infinite; }
.gnawed-chip:nth-of-type(2) { animation-delay: 0.6s; } .gnawed-chip:nth-of-type(3) { animation-delay: 1.2s; } .gnawed-chip:nth-of-type(4) { animation-delay: 1.8s; }
@keyframes chip-fall { 0% { opacity: 0; translate: 0 -12px; } 20% { opacity: 1; } 100% { opacity: 0; translate: 6px 26px; } }
@media (max-width: 860px) {
  .gnawed-grid { grid-template-columns: minmax(0, 1fr); }
  .gnawed-scene { justify-self: start; margin: 8px 70px 24px 0; }
}
@media (prefers-reduced-motion: reduce) { .gnawed-beaver, .gnawed-chip { animation: none; } }

/* ---------- Small delights (main.js, "Small delights") ---------- */
/* Burst: paw prints and twigs fly out from a point and fade (contact form send, high-five) */
.delight-bit { position: fixed; z-index: 260; width: 14px; height: 14px; margin: -7px 0 0 -7px; color: #8a96b4; pointer-events: none;
  animation: delight-fly 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) forwards; }
.delight-bit svg { display: block; width: 100%; height: 100%; }
.delight-bit--twig { width: 16px; height: 4px; margin: -2px 0 0 -8px; border-radius: 2px; background: #b9c6e6; }
@keyframes delight-fly { 0% { opacity: 0; transform: scale(0.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); } }

/* High-five the team: a paw button at the end of each case study */
.high-five { --spring: cubic-bezier(0.34, 1.56, 0.64, 1); display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; padding: 8px 15px 8px 9px;
  border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--navy); font: 600 14px/1 Inter, system-ui, sans-serif; cursor: pointer;
  transition: box-shadow 0.25s, transform 0.45s var(--spring); }
.high-five:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(31, 71, 235, 0.35), 0 8px 18px -10px rgba(18, 26, 46, 0.35); }
.high-five:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.high-five-paw { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--blue); }
.high-five-paw svg { width: 15px; height: 15px; }
.high-five.is-done .high-five-paw { background: var(--blue); color: #fff; }
.high-five.is-pop .high-five-paw { animation: high-five-pop 0.6s var(--spring); }
@keyframes high-five-pop { 0% { transform: scale(1); } 30% { transform: scale(1.35) rotate(-14deg); } 100% { transform: scale(1); } }
.high-five-plus { position: fixed; z-index: 261; translate: -50% -50%; color: var(--blue); font: 700 15px/1 Inter, system-ui, sans-serif; pointer-events: none;
  animation: high-five-plus 0.9s ease-out forwards; }
@keyframes high-five-plus { 0% { opacity: 0; transform: translateY(4px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-34px); } }

@media (prefers-reduced-motion: reduce) { .high-five, .high-five.is-pop .high-five-paw { transition: none; animation: none; } }

/* Smooth page-to-page transitions (cross-document view transitions; browsers without them load pages as before).
   The header stays put while the page underneath cross-fades. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.22s ease both; }
::view-transition-new(root) { animation: vt-in 0.38s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@media print { .high-five { display: none !important; } }

/* Home hero: hover (or tab to) the "Now advising" pill for a small card showing who leads that project (main.js) */
.status--live { position: relative; }
.pm-peek {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 5;
  display: flex; align-items: center; gap: 12px; width: max-content; padding: 10px 18px 10px 10px; border-radius: 16px; background: #fff;   /* sized to its content, not to half the pill */
  box-shadow: 0 0 0 1px var(--line), 0 16px 36px -14px rgba(18, 26, 46, 0.35); white-space: nowrap; text-align: left; pointer-events: none;
  opacity: 0; visibility: hidden; translate: -50% 6px; scale: 0.92;
  transition: opacity 0.2s, visibility 0s 0.25s, translate 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), scale 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.status--live.has-peek:hover .pm-peek, .status--live.has-peek:focus-visible .pm-peek { opacity: 1; visibility: visible; translate: -50% 0; scale: 1; transition-delay: 0s; }
.pm-peek img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--tint); }
.pm-peek > span { display: flex; flex-direction: column; gap: 2px; }
.pm-peek-label { font-size: 12px; font-weight: 600; color: var(--blue); }
.pm-peek strong { font-size: 15px; font-weight: 600; color: var(--navy); }
.pm-peek-prev { font-size: 13px; color: var(--ink); opacity: var(--fade); }
@media (prefers-reduced-motion: reduce) { .pm-peek { transition: none; } }
.pm-peek .pm-peek-promo { align-self: flex-start; margin: 4px 0 0; }

/* ---------- More small delights (main.js) ---------- */
/* Selected text: white on Castore blue (and blue on white where the background is already blue) */
::selection { background: var(--blue); color: #fff; }
.apply-block ::selection, .brush::selection, .fl-blue ::selection, .btn::selection { background: #fff; color: var(--blue); }

/* "Email copied" note */
.copied-note { position: fixed; z-index: 270; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px;
  background: var(--navy); color: #fff; font: 600 12.5px/1 Inter, system-ui, sans-serif; pointer-events: none; translate: -50% -100%;
  animation: copied-note 1.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.copied-note svg { width: 13px; height: 13px; color: #8fa6ff; }
@keyframes copied-note { 0% { opacity: 0; scale: 0.6; } 14% { opacity: 1; scale: 1; } 78% { opacity: 1; } 100% { opacity: 0; translate: -50% -140%; } }

/* Footer: London time and what the beavers are up to */
.beaver-clock { display: inline-block; margin-top: 8px; font-size: 13px; opacity: 0.75; }

/* The logo beaver's seasonal outfit (the beaver is wrapped so the outfit tilts with it on hover) */
.brand-mark { position: relative; display: inline-flex; flex: none; transition: transform 0.6s var(--ease); }
.brand-mark img { transform: none !important; }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-outfit { position: absolute; pointer-events: none; }
.brand-outfit svg { display: block; width: 100%; height: auto; }
.brand-outfit--santa { left: 18px; top: -11px; width: 15px; transform: scaleX(-1); rotate: 6deg; }   /* flipped so the tip flops back; the brim rests on the crown */
.brand-outfit--grad { left: 18px; top: -8px; width: 15px; rotate: 8deg; }
.brand-outfit--scarf { left: 17px; top: 5px; width: 13px; rotate: -8deg; }
/* Hover the LSE mark and the beaver bows towards it, lifting its hat if it has one (the scarf stays put) */
.brand-outfit--santa { --hat-rot: 6deg; }
.brand-outfit--grad { --hat-rot: 8deg; }
/* main.js adds .is-tipping on hover (not on phones or with reduced motion) and removes it when the bow is done */
.brand-group.is-tipping .brand > img,
.brand-group.is-tipping .brand-mark { animation: brand-bow 1.1s var(--ease) both; }
.brand-group.is-tipping .brand-outfit--santa,
.brand-group.is-tipping .brand-outfit--grad { animation: brand-doff 1.1s var(--ease) both; }
@keyframes brand-bow { 0% { rotate: 0deg; } 30%, 55% { rotate: 14deg; translate: 2px 2px; } 100% { rotate: 0deg; } }
@keyframes brand-doff { 0% { translate: 0 0; rotate: var(--hat-rot); } 30%, 55% { translate: 5px -9px; rotate: calc(var(--hat-rot) + 28deg); } 100% { translate: 0 0; rotate: var(--hat-rot); } }
@media (max-width: 480px) {
  .brand-outfit--santa { left: 14px; top: -9px; width: 13px; }   /* phones: a smaller beaver */
  .brand-outfit--grad { left: 15px; top: -7px; width: 13px; }
  .brand-outfit--scarf { left: 14px; top: 4px; width: 11px; }
}

/* Stats: a springy bounce when re-counted on hover, and five stars that fill one by one */
.stat .n.is-bounce { animation: stat-bounce 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes stat-bounce { 0% { scale: 1; } 30% { scale: 1.08; } 100% { scale: 1; } }
.stat-stars { display: flex; gap: 3px; margin-top: 10px; font-size: 17px; line-height: 1; }
.stat-stars i { font-style: normal; color: rgba(18, 26, 46, 0.14); transition: color 0.2s; }
.stat-stars.is-lit i { color: var(--blue); animation: star-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; animation-delay: calc(var(--i) * 110ms); transition-delay: calc(var(--i) * 110ms); }
@keyframes star-pop { 0% { scale: 0.4; } 60% { scale: 1.25; } 100% { scale: 1; } }

/* "Which role fits you?" quiz on Careers, after Sana's feature rows: progress lines across the top, a big question,
   and the answers as tiles (bold title, one line, an arrow that slides on hover). The result sits on a white panel. */
.role-quiz { --spring: cubic-bezier(0.34, 1.56, 0.64, 1); margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--wash); text-align: left; }
.role-quiz[hidden] { display: none; }
.rq-title { margin-top: 6px; font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); font-weight: 700; line-height: 1.1; color: var(--navy); }
.rq-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: clamp(24px, 3vw, 36px); list-style: none; }
.rq-steps li { position: relative; padding-top: 12px; font-size: 13px; font-weight: 600; color: rgba(18, 26, 46, 0.4); transition: color 0.3s; }
.rq-steps li::before, .rq-steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: rgba(18, 26, 46, 0.12); }
.rq-steps li::after { background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.rq-steps li.is-done { color: var(--navy); }
.rq-steps li.is-done::after { transform: none; }
.rq-steps li.is-current { color: var(--blue); }
.rq-steps li.is-current::after { background: var(--blue); transform: scaleX(0.35); }
.rq-stage { margin-top: clamp(26px, 3vw, 40px); animation: rq-in 0.5s var(--spring); }
@keyframes rq-in { from { opacity: 0; translate: 0 12px; } }
.rq-q { font-family: var(--serif); font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 700; line-height: 1.2; color: var(--navy); }
.rq-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: 22px; }
.rq-option { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 128px; padding: 22px 22px 20px; border: 0; border-radius: 20px;
  background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-align: left; font: inherit; cursor: pointer;
  transition: transform 0.45s var(--spring), box-shadow 0.3s; }
.rq-option:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(31, 71, 235, 0.3), 0 18px 34px -18px rgba(18, 26, 46, 0.45); }
.rq-option:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.rq-option-title { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-weight: 600; color: var(--navy); }
.rq-option-sub { font-size: 15px; line-height: 1.45; opacity: var(--fade); }
.rq-option-arrow { margin-top: auto; padding-top: 14px; color: var(--blue); font-size: 18px; transition: translate 0.45s var(--spring); }
.rq-option:hover .rq-option-arrow { translate: 6px 0; }
.rq-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 56px); align-items: end; padding: clamp(26px, 3.5vw, 44px); border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.rq-label { font-size: 13px; font-weight: 600; color: var(--blue); }
.rq-role { margin-top: 4px; font-family: var(--serif); font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); font-weight: 700; line-height: 1.02; color: var(--navy); }
.rq-line { max-width: 34em; margin-top: 12px; font-size: 17px; line-height: 1.5; opacity: var(--fade); }
.rq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.rq-chip { padding: 6px 12px; border-radius: 999px; background: #f1f1ee; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.rq-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.rq-again { padding: 4px 2px; border: 0; background: none; color: var(--ink); font: 500 15px/1.2 Inter, system-ui, sans-serif; text-decoration: underline; text-decoration-color: rgba(18, 26, 46, 0.3); text-underline-offset: 4px; cursor: pointer; opacity: 0.75; }
.rq-again:hover { opacity: 1; text-decoration-color: currentColor; }
@media (max-width: 860px) {
  .rq-options { grid-template-columns: minmax(0, 1fr); }
  .rq-option { min-height: 0; }
  .rq-option-arrow { position: absolute; right: 20px; top: 50%; margin: 0; padding: 0; translate: 0 -50%; }
  .rq-option:hover .rq-option-arrow { translate: 6px -50%; }
  .rq-result { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .rq-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .copied-note, .stat .n.is-bounce, .stat-stars.is-lit i, .rq-stage { animation: none; }
  .brand-mark, .rq-option, .rq-option-arrow, .rq-steps li::after { transition: none; }
}

/* ---------- Statements that light up word by word as you scroll (data-scroll-words; main.js wraps the words) ----------
   Each word fades from faint to full as the paragraph scrolls up the screen, then the hand-drawn underline draws itself.
   Larger screens only: phones (short screens whose address bar resizes as you scroll) keep the plain fade-in.
   Browsers without scroll-driven animations, and visitors who prefer reduced motion, see the statement in full. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 861px) {
    .statement.is-split { view-timeline-name: --statement; opacity: 1 !important; transform: none !important; }
    .statement.is-split .sw {
      animation: sw-light linear both; animation-timeline: --statement;
      animation-range: cover calc(16% + var(--i) / var(--n) * 30%) cover calc(22% + var(--i) / var(--n) * 30%);
    }
    .statement.is-split .scribble { animation: sw-scribble linear both; animation-timeline: --statement; animation-range: cover 46% cover 54%; }
  }
}
@keyframes sw-light { from { opacity: 0.16; } to { opacity: 1; } }
@keyframes sw-scribble { from { background-size: 0% 0.32em; } to { background-size: 100% 0.32em; } }
