/* Self-hosted fonts (SIL OFL 1.1, licences in assets/fonts/). Onest is variable: one file per subset covers weights 100–700.
   Order matters for overlapping ranges: the last matching face wins, so latin comes last. */
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("assets/fonts/onest-symbols.woff2") format("woff2"); unicode-range: U+0001-000C, U+000E-001F, U+007F-009F, U+20DD-20E0, U+20E2-20E4, U+2150-218F, U+2190, U+2192, U+2194-2199, U+21AF, U+21E6-21F0, U+21F3, U+2218-2219, U+2299, U+22C4-22C6, U+2300-243F, U+2440-244A, U+2460-24FF, U+25A0-27BF, U+2800-28FF, U+2921-2922, U+2981, U+29BF, U+29EB, U+2B00-2BFF, U+4DC0-4DFF, U+FFF9-FFFB, U+10140-1018E, U+10190-1019C, U+101A0, U+101D0-101FD, U+102E0-102FB, U+10E60-10E7E, U+1D2C0-1D2D3, U+1D2E0-1D37F, U+1F000-1F0FF, U+1F100-1F1AE, U+1F1E6-1F1FF, U+1F30D-1F30F, U+1F315, U+1F31C, U+1F31E, U+1F320-1F32C, U+1F336, U+1F378, U+1F37D, U+1F382, U+1F393-1F39F, U+1F3A7-1F3A8, U+1F3AC-1F3AF, U+1F3C2, U+1F3C4-1F3C6, U+1F3CA-1F3CE, U+1F3D4-1F3E0, U+1F3ED, U+1F3F1-1F3F3, U+1F3F5-1F3F7, U+1F408, U+1F415, U+1F41F, U+1F426, U+1F43F, U+1F441-1F442, U+1F444, U+1F446-1F449, U+1F44C-1F44E, U+1F453, U+1F46A, U+1F47D, U+1F4A3, U+1F4B0, U+1F4B3, U+1F4B9, U+1F4BB, U+1F4BF, U+1F4C8-1F4CB, U+1F4D6, U+1F4DA, U+1F4DF, U+1F4E3-1F4E6, U+1F4EA-1F4ED, U+1F4F7, U+1F4F9-1F4FB, U+1F4FD-1F4FE, U+1F503, U+1F507-1F50B, U+1F50D, U+1F512-1F513, U+1F53E-1F54A, U+1F54F-1F5FA, U+1F610, U+1F650-1F67F, U+1F687, U+1F68D, U+1F691, U+1F694, U+1F698, U+1F6AD, U+1F6B2, U+1F6B9-1F6BA, U+1F6BC, U+1F6C6-1F6CF, U+1F6D3-1F6D7, U+1F6E0-1F6EA, U+1F6F0-1F6F3, U+1F6F7-1F6FC, U+1F700-1F80B, U+1F810-1F847, U+1F850-1F859, U+1F860-1F887, U+1F890-1F8AD, U+1F8B0-1F8BB, U+1F8C0-1F8C1, U+1F8D0-1F8D8, U+1F900-1F90B, U+1F93B, U+1F946, U+1F984, U+1F996, U+1F9E9, U+1FA00-1FA6F, U+1FA70-1FA7C, U+1FA80-1FAC6, U+1FAC8, U+1FACC-1FADD, U+1FADF-1FAEB, U+1FAEF-1FAFA, U+1FB00-1FBFF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("assets/fonts/onest-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("assets/fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/playfair-display-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================
   Design tokens — mirror the Figma "Foundations" and
   "Portfolio — Dimensions" collections (same CSS names).
   ========================================================== */
:root {
  --background-page: #FFFFFF;
  --background-surface: #E8ECFA;
  --background-surface-subtle: #F7F7F7;
  --text-primary: #1D1B1B;
  --text-secondary: #555555;
  --text-muted: #858585;
  --text-hero-emphasis: #1C4DF0;
  --brand-primary: #2048D8;
  --brand-on-primary: #FFFFFF;
  --border-default: #D9D9D9;
  --border-strong: #707070;
  --status-available: #2048D8;
  --banner-overlay: rgba(26, 67, 203, 0.8);

  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --radius-button: 999px;
  --radius-card: 12px;
  --radius-badge: 4px;

  --font-sans: "Onest", system-ui, -apple-system, sans-serif;
  --font-logo: "Playfair Display", Georgia, serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --gutter: var(--space-96);
  --nav-h: 61px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --background-page: #1A43CB;
  --background-surface: #1C2F74;
  --background-surface-subtle: #1636A5;
  --text-primary: #FFFFFF;
  --text-secondary: #A9BDFB;
  --text-muted: #A9BDFB;
  --text-hero-emphasis: #FFFFFF;
  --brand-primary: #FFFFFF;
  --brand-on-primary: #1A43CB;
  --border-default: #4665D8;
  --border-strong: #A9BDFB;
  --status-available: #7CF04A;
  color-scheme: dark;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--background-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color .6s var(--ease-out), color .6s var(--ease-out);
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--brand-primary); color: var(--brand-on-primary); }
:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(1440px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: var(--space-96); }
.section--surface { background: var(--background-surface); transition: background-color .6s var(--ease-out); }

/* Text styles — mirror Figma text styles */
.display-hero { font-size: clamp(44px, 6.2vw, 84px); font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.heading-h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; }
.heading-h3 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 400; line-height: 1.2; letter-spacing: -0.02em; }
.heading-h4 { font-size: 16px; font-weight: 600; line-height: 1.5; }
.display-statement { font-size: clamp(30px, 3.6vw, 48px); font-weight: 100; line-height: 1.2; letter-spacing: -0.02em; }
.display-statement strong { font-weight: 600; }
.body-large { font-size: 18px; line-height: 1.5; }
.body-regular { font-size: 14px; line-height: 1.5; }
.label-small { font-size: 12px; line-height: 1.5; }
.label-link { font-size: 14px; font-weight: 700; line-height: 1.5; }
.eyebrow--lg { font-size: 16px; line-height: 1.5; }
.eyebrow { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.logo, .nav__logo { font-family: var(--font-logo); font-weight: 700; font-size: 18px; }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.accent { color: var(--text-hero-emphasis); }

/* ==========================================================
   Background pattern (plus on page, cross on banner) — drawn by main.js
   ========================================================== */
.pattern { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pattern--page { position: fixed; z-index: 0; }
main, .footer { position: relative; z-index: 1; }

/* ==========================================================
   Loader
   ========================================================== */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--brand-primary); color: var(--brand-on-primary);
  display: grid; place-items: end stretch;
  padding: var(--space-48) var(--gutter);
  transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.loader__inner { display: flex; justify-content: space-between; align-items: flex-end; width: 100%; overflow: hidden; }
.loader__name { font-family: var(--font-logo); font-size: clamp(36px, 8vw, 120px); line-height: 1; animation: rise 1s var(--ease-out) both; }
.loader__count { font-size: clamp(24px, 4vw, 56px); font-weight: 100; font-variant-numeric: tabular-nums; animation: rise 1s .1s var(--ease-out) both; }
.loader__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--brand-on-primary) 25%, transparent); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--brand-on-primary); transition: width .2s linear; }
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes rise { from { transform: translateY(110%); } to { transform: none; } }

/* ==========================================================
   Cursor & progress
   ========================================================== */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 90; display: none; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } body, a, button { cursor: none; } }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--brand-primary); }
.cursor__ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1px solid var(--brand-primary);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor__label { font-size: 12px; font-weight: 600; color: var(--brand-on-primary); opacity: 0; transition: opacity .2s; text-transform: uppercase; letter-spacing: .04em; }
.cursor.is-hover .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: color-mix(in srgb, var(--brand-primary) 12%, transparent); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--brand-primary); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }

.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60; background: var(--brand-primary); transform-origin: 0 50%; transform: scaleX(0); }

/* ==========================================================
   Scroll ruler — a tape of ticks that scrolls with the page,
   a fixed marker that reads the scroll %, and section bands.
   ========================================================== */
.ruler { display: none; }
@media (min-width: 901px) {
  .scroll-progress { display: none; }
  .ruler {
    --ruler-w: 72px;
    display: block; position: fixed; top: var(--ruler-top, 61px); right: 0; bottom: var(--ruler-bottom, 0px); width: var(--ruler-w); z-index: 45;
    overflow: hidden; cursor: ns-resize; user-select: none; touch-action: none;
    color: var(--text-primary);
  }
  .ruler::before {
    content: ""; position: absolute; inset: 0;
    background: color-mix(in srgb, var(--background-page) 55%, transparent);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    mask-image: linear-gradient(to left, #000 35%, transparent);
    -webkit-mask-image: linear-gradient(to left, #000 35%, transparent);
    clip-path: var(--ruler-clip, none); /* holes cut over dark sections (set in main.js) */
  }
  body .ruler { cursor: ns-resize; }
}
.ruler__tape { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.ruler__tick { position: absolute; right: 0; height: 1px; background: currentColor; transform: translateY(-.5px); }
.ruler__tick--minor { width: 8px; opacity: .28; }
.ruler__tick--mid { width: 12px; opacity: .4; }
.ruler__tick--major { width: 20px; opacity: .75; }
.ruler__num { position: absolute; right: 26px; transform: translateY(-50%); font-size: 10px; line-height: 1; font-variant-numeric: tabular-nums; opacity: .6; }
.ruler__band { position: absolute; left: 14px; right: 0; }
/* bands over dark/blue sections: no backing, white lines with a faint shadow */

.ruler__tick.is-dark { color: #FFFFFF; box-shadow: 0 0 3px rgba(0, 0, 0, .35); }
.ruler__num.is-dark { color: #FFFFFF; opacity: .85; text-shadow: 0 0 4px rgba(0, 0, 0, .45); }
.ruler__band.is-dark .ruler__label { text-shadow: 0 0 4px rgba(0, 0, 0, .45); }
.ruler__band.is-dark .ruler__label { color: rgba(255, 255, 255, .6); }
.ruler__band.is-dark.is-active .ruler__label { color: #FFFFFF; }
.ruler__label {
  position: absolute; left: 14px; top: max(10px, min(100px, calc(100% - 160px))); /* ~100px below the section top, kept inside short bands */
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  color: var(--text-muted); transition: color .4s;
}
.ruler__band.is-active .ruler__label { color: var(--brand-primary); }
.ruler__marker { position: absolute; left: 0; right: 0; top: 0; height: 0; will-change: transform; pointer-events: none; }
.ruler__marker::before { content: ""; position: absolute; left: 30px; right: 0; top: -.5px; height: 1px; background: var(--brand-primary); box-shadow: 0 0 6px color-mix(in srgb, var(--brand-primary) 60%, transparent); }
.ruler__readout {
  position: absolute; right: 4px; top: 5px; display: flex; align-items: flex-start;
  padding: 2px 4px; border-radius: 3px; background: var(--brand-primary); color: var(--brand-on-primary);
  font-size: 10px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums;
}
.ruler__odo { display: inline-flex; height: 1.2em; overflow: hidden; }
.ruler__digit { display: block; transition: transform .45s var(--ease-out); }
.ruler__digit span { display: block; height: 1.2em; text-align: center; }
.ruler__left { position: absolute; right: 4px; bottom: 5px; padding: 2px 4px; border-radius: 3px; background: var(--background-page); border: 1px solid var(--border-default); font-size: 9px; line-height: 1.2; white-space: nowrap; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* ==========================================================
   Navigation
   ========================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--background-page) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border-default);
  transition: transform .5s var(--ease-out), background-color .6s;
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: var(--space-16) var(--gutter); max-width: calc(1440px + var(--gutter) * 2); margin-inline: auto; }
.nav__logo { display: inline-block; }
.nav__links { display: flex; align-items: center; gap: var(--space-32); font-weight: 500; }
.nav__links a { position: relative; display: inline-block; overflow: hidden; height: 1.5em; }
.nav__links a::before, .nav__links a::after { display: block; transition: transform .5s var(--ease-out); }
.nav__links a { color: transparent; }
.nav__links a::before { content: attr(data-hover-text); color: var(--text-primary); }
.nav__links a::after { content: attr(data-hover-text); color: var(--brand-primary); position: absolute; left: 0; top: 100%; }
.nav__links a:hover::before, .nav__links a:hover::after { transform: translateY(-100%); }
.nav__burger { display: none; width: 32px; height: 32px; position: relative; }
.nav__burger span { position: absolute; left: 6px; right: 6px; height: 1.5px; background: var(--text-primary); transition: transform .4s var(--ease-out); }
.nav__burger span:first-child { top: 12px; } .nav__burger span:last-child { top: 19px; }
.nav.is-open .nav__burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.theme-toggle__track { display: block; width: 40px; height: 22px; border-radius: var(--radius-button); border: 1px solid var(--border-strong); position: relative; }
.theme-toggle__thumb { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand-primary); transition: transform .5s var(--ease-out); }
:root[data-theme="dark"] .theme-toggle__thumb { transform: translateX(18px); background: var(--status-available); }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 50px; min-width: 160px; padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-button); overflow: hidden; isolation: isolate;
  font-size: 14px; line-height: 1.5; white-space: nowrap;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease-out); }
.btn__label { display: block; overflow: hidden; height: 1.5em; }
.btn__label > span { display: block; color: var(--btn-fg); text-shadow: 0 1.5em var(--btn-fg-hover); transition: transform .5s var(--ease-out); }
.btn:hover .btn__label > span { transform: translateY(-1.5em); }
.btn--primary { background: var(--brand-primary); box-shadow: 0 6px 6px 1px rgba(0, 0, 0, .25); }
.btn--primary { --btn-fg: var(--brand-on-primary); --btn-fg-hover: var(--background-page); }
.btn--primary::before { background: var(--text-primary); }
.btn--primary:hover { box-shadow: 0 14px 30px -6px color-mix(in srgb, var(--brand-primary) 60%, transparent); }
:root[data-theme="dark"] .btn--primary::before { background: var(--status-available); }
.btn--secondary { background: var(--background-page); border: 1px solid var(--border-strong); }
.btn--secondary { --btn-fg: var(--text-primary); --btn-fg-hover: var(--text-primary); }
.btn--secondary::before { background: color-mix(in srgb, var(--border-default) 45%, var(--background-page)); }
.btn:hover::before { transform: none; }

.text-link { display: inline-flex; align-items: center; gap: 6px; height: 30px; font-weight: 700; color: var(--brand-primary); }
.text-link span { display: inline-block; transition: transform .45s var(--ease-out); }
.text-link:hover span { transform: translateX(6px); }

/* ==========================================================
   Hero
   ========================================================== */
.hero { padding-block: var(--space-96); overflow: hidden; }
.hero__blob {
  position: absolute; width: 640px; height: 640px; right: -120px; top: -160px; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand-primary) 22%, transparent), transparent);
  filter: blur(20px);
  animation: blob 14s ease-in-out infinite alternate;
}
@keyframes blob {
  0% { transform: translate(0, 0) scale(1); border-radius: 40% 60% 55% 45%; }
  50% { transform: translate(-80px, 60px) scale(1.15); }
  100% { transform: translate(40px, 120px) scale(.95); }
}
.hero__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-48); }
.hero__copy { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-16); padding-right: var(--space-48); }
.hero__actions { display: flex; flex-direction: column; gap: var(--space-32); }
.hero__buttons { display: flex; flex-wrap: wrap; gap: var(--space-8); }

.display-hero .accent { position: relative; }
.display-hero .accent .w__in { background: linear-gradient(100deg, var(--text-hero-emphasis) 0%, var(--text-hero-emphasis) 40%, color-mix(in srgb, var(--text-hero-emphasis) 40%, #8fb0ff) 50%, var(--text-hero-emphasis) 60%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s 2.4s ease-in-out infinite; }
@keyframes shimmer { 0%, 60% { background-position: 100% 0; } 100% { background-position: -150% 0; } }

.availability {
  display: flex; align-items: center; gap: var(--space-8);
  min-height: 50px; padding: 2px var(--space-8);
  border: 1px solid var(--border-default); border-radius: var(--radius-badge);
  background: var(--background-page);
}
.availability__dot { position: relative; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--status-available); }
.availability__dot img { display: none; }
:root:not([data-theme="dark"]) .availability__dot img { display: block; }
.availability__dot::before, .availability__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--status-available); animation: ping 2.4s var(--ease-out) infinite; }
.availability__dot::after { animation-delay: 1.2s; }
@keyframes ping { from { transform: scale(1); opacity: .6; } to { transform: scale(3.2); opacity: 0; } }

.hero__visual { position: relative; flex: none; width: 433px; aspect-ratio: 1; transform-style: preserve-3d; transition: transform .8s var(--ease-out); }
.hero__portrait {
  position: absolute; inset: 0; border-radius: 250px; overflow: hidden;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.4s var(--ease-in-out);
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transform: scale(1.25); transition: transform 1.8s var(--ease-out); }
.is-ready .hero__portrait { clip-path: circle(50% at 50% 50%); }
.is-ready .hero__portrait img { transform: scale(1); }
.hero__visual:hover .hero__portrait img { transform: scale(1.05); }
.hero__ring { position: absolute; inset: -34px; width: calc(100% + 68px); height: calc(100% + 68px); animation: spin 60s linear infinite; opacity: 0; transition: opacity 1s .9s; }
.is-ready .hero__ring { opacity: 1; }
.hero__ring text { fill: var(--text-secondary); font-size: 13.6px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Orbiting dots — two small dots travelling slowly behind a block */
.orbit-host { position: relative; isolation: isolate; }
.orbit { position: absolute; top: 0; left: 0; z-index: -1; border-radius: 50%; pointer-events: none; offset-anchor: center; offset-rotate: 0deg; }
.orbit--a { width: 14px; height: 14px; background: var(--brand-primary); opacity: .9; offset-path: var(--orbit-a); animation: orbit var(--orbit-a-speed, 22s) linear infinite; }
.orbit--b { width: 8px; height: 8px; background: var(--status-available); opacity: .8; offset-path: var(--orbit-b); animation: orbit var(--orbit-b-speed, 16s) linear infinite reverse; }
@supports not (offset-path: ellipse(10px 10px)) { .orbit { display: none; } }
.hero__headline { --orbit-a: ellipse(52% 58% at 46% 50%); --orbit-b: ellipse(38% 44% at 40% 52%); }
/* portrait: paths sit outside the rotating text ring so they never cross it */
.hero__visual { --orbit-a: circle(calc(50% + 54px)); --orbit-b: circle(calc(50% + 42px)); --orbit-a-speed: 30s; --orbit-b-speed: 20s; }
.orbit--portrait { z-index: 0; }
.orbit-host--split { --orbit-a: ellipse(56% 72% at 48% 55%); --orbit-b: ellipse(42% 56% at 42% 58%); --orbit-a-speed: 26s; --orbit-b-speed: 18s; }
.orbit-host--center { --orbit-a: ellipse(54% 62% at 50% 50%); --orbit-b: ellipse(38% 48% at 50% 46%); --orbit-a-speed: 28s; --orbit-b-speed: 19s; }
@keyframes orbit { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.roles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-32);
  margin-top: var(--space-48); padding-block: var(--space-48) var(--space-16);
  border-top: 1px solid var(--border-default);
}
.role { display: flex; gap: var(--space-8); align-items: flex-start; }
.role__avatar {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--background-surface); color: var(--brand-primary);
  transition: transform .6s var(--ease-out), background-color .6s;
}
.role:hover .role__avatar { transform: scale(1.06); }
/* Capability icons: one line style, each with one slow, low-amplitude motion.
   Parts animate around their own centre. */
.role__avatar svg * { transform-box: fill-box; transform-origin: center; }
.i-route { stroke-dasharray: 2 2.4; animation: i-march 2.6s linear infinite; }
.i-flag { transform-origin: left center; animation: i-wave 3.2s ease-in-out infinite; }
.i-rise { animation: i-rise 2.8s ease-in-out infinite; }
.i-node { animation: i-pulse 3.2s ease-in-out infinite; }
.i-node:nth-of-type(3) { animation-delay: .8s; } .i-node:nth-of-type(4) { animation-delay: 1.6s; } .i-node:nth-of-type(5) { animation-delay: 2.4s; }
.i-spark { animation: i-breathe 3.4s ease-in-out infinite; }
.i-spark-sm { animation: i-twinkle 3.4s ease-in-out infinite 1.1s; }
.i-scan { animation: i-scan 4s ease-in-out infinite; }
.i-layer-top { animation: i-lift 3.2s ease-in-out infinite; }
.i-layer-mid { animation: i-lift-half 3.2s ease-in-out infinite; }
.i-venn-a { animation: i-venn-a 3.6s ease-in-out infinite; }
.i-venn-b { animation: i-venn-b 3.6s ease-in-out infinite; }
.i-venn-c { animation: i-venn-c 3.6s ease-in-out infinite; }
.i-dot { animation: i-travel 2.8s ease-in-out infinite; }
.i-dot--late { animation-delay: 1.4s; }
@keyframes i-march { to { stroke-dashoffset: -8.8; } }
@keyframes i-wave { 0%, 100% { transform: skewY(0); } 50% { transform: skewY(-8deg); } }
@keyframes i-rise { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-1.5px); } }
@keyframes i-pulse { 0%, 70%, 100% { opacity: .45; } 20% { opacity: 1; } }
@keyframes i-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes i-twinkle { 0%, 100% { transform: scale(.7); opacity: .4; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes i-scan { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(1.4px, -.8px); } 66% { transform: translate(-1.2px, .4px); } }
@keyframes i-lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.6px); } }
@keyframes i-lift-half { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.8px); } }
@keyframes i-venn-a { 0%, 100% { transform: translate(-.9px, -.4px); } 50% { transform: translate(.3px, .2px); } }
@keyframes i-venn-b { 0%, 100% { transform: translate(.9px, -.4px); } 50% { transform: translate(-.3px, .2px); } }
@keyframes i-venn-c { 0%, 100% { transform: translateY(.9px); } 50% { transform: translateY(-.3px); } }
@keyframes i-travel { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 75% { opacity: 1; } 100% { transform: translateX(9px); opacity: 0; } }

/* ==========================================================
   Ticker
   ========================================================== */
.ticker {
  overflow: hidden; padding-block: var(--space-8);
  background: var(--background-surface-subtle);
  border-block: 1px solid var(--border-default);
  transition: background-color .6s;
}
.ticker__track { display: flex; gap: var(--space-48); width: max-content; will-change: transform; }
.ticker__item { white-space: nowrap; font-size: 14px; }
.ticker__item strong { font-weight: 700; }
.ticker__item::after { content: "✦"; margin-left: var(--space-48); color: var(--brand-primary); }

/* ==========================================================
   Selected Work — pinned horizontal scroll
   ========================================================== */
/* Section title row: eyebrow + heading on the left, intro on the right */
.title-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-48); }
.title-row__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }

/* ==========================================================
   About: roles + current role card
   ========================================================== */
.about .roles { margin: 0 0 var(--space-48); }
.role-card {
  /* the card is a dark surface: reuse the dark-mode token values inside it */
  --text-primary: #FFFFFF; --text-secondary: #A9BDFB; --text-hero-emphasis: #FFFFFF;
  --background-page: #1A43CB; --border-default: #4665D8; --border-strong: #A9BDFB; --status-available: #7CF04A;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; gap: var(--space-48); padding: var(--space-48);
  border: 1px solid #2048D8; color: var(--text-primary);
  box-shadow: 0 14px 40px 20px rgba(2, 32, 139, .17);
}
/* "space travel": triangles stream out of a vanishing point (main.js);
   the glow sits on that point and breathes slowly */
.role-card { --vx: 38%; --vy: 50%;
  background:
    radial-gradient(ellipse 70% 120% at var(--vx) var(--vy), transparent 35%, rgba(0, 30, 139, .38) 100%),
    #2048D8;
}
.role-card::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(ellipse 34% 60% at var(--vx) var(--vy), rgba(0, 251, 255, .26), rgba(0, 251, 255, .08) 45%, transparent 75%);
  animation: warp-glow 7s ease-in-out infinite alternate;
}
@keyframes warp-glow { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
.role-card__warp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.role-card__body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-16); align-items: flex-start; }
.role-card__head { display: flex; flex-direction: column; gap: var(--space-8); }
.role-card__status { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); }
.role-card__dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--status-available); }
.role-card__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--status-available); animation: ping 2.4s var(--ease-out) infinite; }
.role-card__stats { display: flex; width: 100%; background: var(--background-page); }
.role-card__stat { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-16); border-right: 1px solid var(--border-default); }
.role-card__stat:last-child { border-right: 0; }
.role-card__photo { position: relative; flex: none; align-self: stretch; width: clamp(260px, 31%, 420px); overflow: hidden; }
.role-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.6s ease-in-out; will-change: transform, opacity; }
/* slideshow with a Ken Burns move: the incoming photo fades in while it slowly
   zooms in (or out, alternating) towards its focus point, then fades into the next */
.role-card__slide { opacity: 0; }
.role-card__slide.is-active { opacity: 1; }
.role-card__slide.kb-in { animation: kb-in 7.5s linear forwards; }
.role-card__slide.kb-out { animation: kb-out 7.5s linear forwards; }
@keyframes kb-in { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes kb-out { from { transform: scale(1.14); } to { transform: scale(1); } }
/* the button inside keeps its light look */
.role-card .btn--secondary { --background-page: #FFFFFF; --text-primary: #1D1B1B; --border-strong: #707070; --border-default: #D9D9D9; }

/* ==========================================================
   Selected Work — bordered row, drag sideways
   ========================================================== */
.work { padding-bottom: var(--space-48); }
.work__frame { border: 1px solid var(--border-default); background: var(--background-page); }
.section-head { display: flex; flex-direction: column; gap: var(--space-8); }
.section-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-48); align-items: start; margin-bottom: var(--space-48); }
.section-head--split > div { display: flex; flex-direction: column; gap: var(--space-8); }
.section-head--center { align-items: center; text-align: center; margin: 0 auto var(--space-48); max-width: 760px; }
.section-head--center .body-large { max-width: 645px; }
.work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: var(--space-16); min-width: 0; padding: var(--space-48) var(--space-32); background: var(--background-page); border-right: 1px solid var(--border-default); transition: transform .6s var(--ease-out); }
.card__photo {
  position: relative; height: 250px; overflow: hidden; background: var(--background-surface);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0 round 0);
  transition: clip-path .8s var(--ease-out), background-color .6s;
}
.card__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card:hover .card__photo { clip-path: inset(8px 8px 8px 8px round var(--radius-card)); }
.card:hover .card__photo img { transform: scale(1.08) rotate(-1deg); }
.card__text { display: flex; flex-direction: column; gap: var(--space-8); }
.card__context { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.pillar__sub { font-size: 16px; font-weight: 600; line-height: 1.4; }
.pills { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.pills li {
  display: inline-flex; align-items: center; height: 30px; padding: 4px var(--space-12);
  border: 1px solid var(--border-default); border-radius: var(--radius-button);
  color: var(--text-secondary); transition: border-color .3s, color .3s, transform .4s var(--ease-out);
}
.card:hover .pills li { border-color: var(--brand-primary); color: var(--brand-primary); }
.card:hover .pills li:nth-child(odd) { transform: translateY(-3px); }
.card:nth-child(3n) { border-right: 0; }
/* rows of three (work page): every card draws its own bottom line, so a short
   last row still closes the row above it; the last row sits on the frame border */
@media (min-width: 1101px) {
  .card { border-bottom: 1px solid var(--border-default); }
  .card:nth-child(3n + 1):nth-last-child(-n + 3), .card:nth-child(3n + 1):nth-last-child(-n + 3) ~ .card { border-bottom: 0; }
}

/* Work page: page title row, project count, Inquire row */
.work-hero { padding-bottom: 0; }
.work-hero .cs-back { display: inline-flex; margin-bottom: var(--space-48); }
.work-hero .title-row { margin-bottom: 0; }
.work-hero .title-row__cols { align-items: start; }
.work--all { padding-top: var(--space-64); }
.work__count { margin-bottom: var(--space-16); font-variant-numeric: tabular-nums; }
.work-cta { padding-top: 0; }
.work-cta .cs-tiles { margin-top: 0; }
.work-cta .cs-next__cta { justify-content: center; }
.work__foot { display: flex; justify-content: center; margin-top: var(--space-48); }
.card .text-link { margin-top: auto; }
/* no case study yet: a muted, non-clickable label in place of the link */
.card__soon { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; height: 30px; padding: 4px var(--space-12); border: 1px dashed var(--border-default); border-radius: var(--radius-button); font-size: 14px; color: var(--text-muted); cursor: default; }

/* ==========================================================
   Team banner
   ========================================================== */
.banner { position: relative; height: 800px; overflow: hidden; color: #FFFFFF; display: flex; }
.banner__media { position: absolute; inset: 0; }
.banner__media img { position: absolute; inset: -15% 0; width: 100%; height: 130%; object-fit: cover; will-change: transform; }
.banner__overlay { position: absolute; inset: 0; background: var(--banner-overlay); }
.banner__overlay::after {
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background: radial-gradient(600px circle at var(--mx, 70%) var(--my, 40%), rgba(255, 255, 255, .55), transparent 60%);
  transition: background-position .2s;
}
.banner__inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding-block: var(--space-96); padding-inline: var(--space-64); }
.banner__top { display: flex; flex-direction: column; gap: var(--space-8); max-width: 500px; }
.banner__bottom { align-self: flex-end; text-align: right; max-width: 500px; }
[data-scrub] .w { opacity: .18; transition: opacity .25s linear; }
[data-scrub] .w.is-on { opacity: 1; }

/* ==========================================================
   Pillars & strands
   ========================================================== */
.pillars, .strands { display: grid; border: 1px solid var(--border-default); }
.pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillar, .strand {
  position: relative; display: flex; flex-direction: column; gap: var(--space-16); align-items: flex-start;
  padding: var(--space-48) var(--space-32);
  background: var(--background-page);
  border-right: 1px solid var(--border-default);
  overflow: hidden; isolation: isolate;
  transition: background-color .6s;
}
.pillar:last-child, .strand:last-child { border-right: 0; }
.pillar { padding-bottom: 128px; } /* room for the outlined index number */
.strand { padding: var(--space-32); }
.strand .btn, .strand__link { margin-top: auto; }
[data-spotlight]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--brand-primary) 12%, transparent), transparent 70%);
}
[data-spotlight]:hover::before { opacity: 1; }
[data-spotlight]::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--brand-primary); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out);
}
[data-spotlight]:hover::after { transform: scaleX(1); }
.pillar__index {
  position: absolute; right: var(--space-24); bottom: var(--space-16);
  font-size: 96px; font-weight: 100; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--border-default);
  transition: transform .8s var(--ease-out), -webkit-text-stroke-color .4s;
}
.pillar:hover .pillar__index { transform: translateY(-6px) rotate(-4deg); -webkit-text-stroke-color: var(--brand-primary); }
.strand__head { display: flex; flex-direction: column; gap: var(--space-8); }
.bullets li, .steps li { position: relative; padding-left: 21px; }
.bullets li::before { content: ""; position: absolute; left: 7px; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.steps { display: flex; flex-direction: column; gap: var(--space-16); counter-reset: s; }
.steps li { counter-increment: s; padding-left: 28px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 11px; display: grid; place-items: center; }
.bullets li { transition: transform .4s var(--ease-out), color .3s; }
[data-spotlight]:hover .bullets li { transform: translateX(4px); }
[data-spotlight]:hover .bullets li:nth-child(2) { transition-delay: .04s; }
[data-spotlight]:hover .bullets li:nth-child(3) { transition-delay: .08s; }
[data-spotlight]:hover .bullets li:nth-child(4) { transition-delay: .12s; }

/* ==========================================================
   Offer: accordion + stats
   ========================================================== */
.offer { padding-block: var(--space-48) var(--space-96); }
.offer__row { display: flex; gap: var(--space-48); align-items: stretch; }
.accordion { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--space-16); }
.accordion__item { background: var(--brand-primary); color: var(--brand-on-primary); border: 1px solid transparent; transition: background-color .6s var(--ease-out), color .6s var(--ease-out), border-color .6s; }
.accordion__item.is-open { background: var(--background-page); color: var(--text-primary); border-color: var(--border-default); }
.accordion__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); padding: var(--space-32); text-align: left; }
.accordion__icon { position: relative; flex: none; width: 20px; height: 20px; transition: transform .6s var(--ease-out); }
.accordion__icon::before, .accordion__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; }
.accordion__icon::after { transform: rotate(90deg); transition: transform .6s var(--ease-out); }
.accordion__item.is-open .accordion__icon { transform: rotate(180deg); }
.accordion__item.is-open .accordion__icon::after { transform: rotate(0deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out); }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding: 0 var(--space-32) var(--space-32); }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__item:not(.is-open):hover { background: color-mix(in srgb, var(--brand-primary) 88%, #000); }

.stats { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border-default); }
.stat { display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-8); padding: var(--space-32); border-right: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n + 2) { border-bottom: 0; }
.stat__num { font-size: clamp(48px, 5.5vw, 84px); font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: var(--text-hero-emphasis); font-variant-numeric: tabular-nums; }

/* ==========================================================
   Footer
   ========================================================== */
.footer { border-top: 1px solid var(--border-default); }
.footer__cta { display: block; overflow: hidden; padding-block: var(--space-48); background: var(--brand-primary); color: var(--brand-on-primary); }
.footer__marquee { display: flex; width: max-content; font-size: clamp(48px, 9vw, 140px); font-weight: 100; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; animation: marquee 30s linear infinite; }
.footer__cta:hover .footer__marquee { animation-duration: 12s; font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-16); padding-block: var(--space-24); flex-wrap: wrap; }

/* ==========================================================
   Reveal primitives (driven by main.js)
   ========================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s), filter 1s var(--ease-out) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .22em; margin-bottom: -.22em; }
/* gradient-clipped words need their paint box to cover descenders too */
[data-split] .accent .w__in { padding-bottom: .22em; margin-bottom: -.22em; }
.js [data-split] .w__in { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 45ms + var(--d, 0s)); }
.js [data-split].is-in .w__in { transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), background-color .6s; transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-stagger].is-in > * { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .work__grid { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid var(--border-default); }
  .card:last-child { border-bottom: 0; }
}
@media (max-width: 1200px) {
  :root { --gutter: var(--space-48); }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__visual { width: 340px; }
  .strands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strand:nth-child(2) { border-right: 0; }
  .strand:nth-child(-n + 2) { border-bottom: 1px solid var(--border-default); }
}
@media (min-width: 901px) and (max-width: 1200px) {
  :root { --gutter: 88px; }
}
@media (max-width: 900px) {
  :root { --gutter: var(--space-24); }
  .nav__burger { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: flex-start; gap: var(--space-24);
    padding: var(--space-32) var(--gutter); background: var(--background-page); border-bottom: 1px solid var(--border-default);
    font-size: 24px; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-in-out);
  }
  .nav.is-open .nav__links { clip-path: inset(0 0 0 0); }
  .hero__row { flex-direction: column-reverse; align-items: flex-start; }
  .hero__copy { padding-right: 0; }
  .hero__visual { width: min(300px, 70vw); margin: var(--space-32) auto 0; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .title-row__cols { grid-template-columns: 1fr; gap: var(--space-16); }
  .role-card { flex-direction: column; padding: var(--space-32) var(--space-24); }
  .role-card__photo { align-self: auto; width: 100%; aspect-ratio: 4 / 3; }

  .role-card__stats { flex-direction: column; }
  .role-card__stat { border-right: 0; border-bottom: 1px solid var(--border-default); }
  .role-card__stat:last-child { border-bottom: 0; }
  .section-head--split { grid-template-columns: 1fr; align-items: start; gap: var(--space-16); }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--border-default); }
  .pillar:last-child { border-bottom: 0; }
  .banner { height: auto; min-height: 560px; }
  .banner__inner { padding-inline: var(--gutter); gap: var(--space-64); }
  .offer__row { flex-direction: column; }
}
@media (max-width: 600px) {
  .section { padding-block: var(--space-64); }
  .roles, .strands { grid-template-columns: 1fr; }
  .strand { border-right: 0; border-bottom: 1px solid var(--border-default); }
  .strand:last-child { border-bottom: 0; }
  .hero__buttons .btn { flex: 1 1 140px; min-width: 0; }
  .pillar__index { font-size: 64px; }
  .loader { padding-inline: var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}

/* ruler marker over dark sections */
.ruler__marker.is-dark::before { background: #FFFFFF; box-shadow: 0 0 6px rgba(255, 255, 255, .6); }
.ruler__marker.is-dark .ruler__readout { background: #FFFFFF; color: #1A43CB; }

/* ==========================================================
   Case study pages (work/*): homepage layout and width —
   title rows (eyebrow · heading left · text right), joined tiles
   ========================================================== */
.cs-hero { padding-block: var(--space-48) var(--space-64); }
.cs-back { margin-bottom: var(--space-32); }
.cs-title { font-size: clamp(40px, 5.6vw, 76px); font-weight: 500; line-height: 1.02; letter-spacing: -0.04em; }
.orbit-host--cs { --orbit-a: ellipse(30% 70% at 26% 50%); --orbit-b: ellipse(22% 56% at 22% 54%); --orbit-a-speed: 24s; --orbit-b-speed: 17s; }
.cs-text { display: flex; flex-direction: column; gap: var(--space-16); }
.cs-row { margin-top: var(--space-64); }
.cs-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--border-default); }
.cs-meta > div { padding: var(--space-16) var(--space-16) var(--space-16) 0; }
.cs-meta > div + div { padding-left: var(--space-16); border-left: 1px solid var(--border-default); }
.cs-meta dt { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.cs-meta dd { margin-top: 4px; font-size: 16px; font-weight: 500; }
.cs-badge { display: inline-flex; align-items: center; gap: var(--space-8); margin-top: var(--space-16); padding: 4px var(--space-12); border: 1px solid var(--border-default); border-radius: var(--radius-button); font-size: 12px; color: var(--text-secondary); background: var(--background-page); }
.cs-badge span { color: var(--status-available); font-size: 10px; }
.cs-closing { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -0.02em; color: var(--text-hero-emphasis); margin-top: var(--space-8); }
.cs-statement { margin-top: var(--space-48); max-width: 980px; font-size: clamp(20px, 2vw, 26px); line-height: 1.45; letter-spacing: -0.01em; }

/* figures: full content width, straight corners */
.cs-figure { margin-top: var(--space-48); }
.cs-figure__frame { display: block; overflow: hidden; border: 1px solid var(--border-default); background: #FFFFFF; padding: var(--space-16); }
.cs-figure__frame--photo { padding: 0; background: var(--background-surface); }
.cs-figure__frame img { width: 100%; height: auto; transition: transform 1s var(--ease-out); }
a.cs-figure__frame:hover img { transform: scale(1.015); }
.cs-figure figcaption { margin-top: var(--space-12); font-size: 13px; color: var(--text-secondary); text-align: center; }

/* information-architecture diagram (inline SVG) */
.cs-figure__frame--diagram { padding: var(--space-24); }
.ia-diagram { display: block; width: 100%; height: auto; font-family: var(--font-sans); }
.ia-line { fill: none; stroke: #8A8A8A; stroke-width: 1; }
.ia-node rect { stroke-width: 1; transition: stroke-width .2s; }
.ia-node:hover rect { stroke-width: 2; }
.ia-node text { font-size: 8.2px; text-anchor: middle; dominant-baseline: middle; fill: #1D1B1B; }
.ia-node--root rect { fill: #1D1B1B; stroke: #1D1B1B; } .ia-node--root text { fill: #FFFFFF; font-weight: 600; }
.ia-node--blue rect { fill: #2B8CF0; stroke: #1F74D0; } .ia-node--blue text { fill: #FFFFFF; font-weight: 600; }
.ia-node--grey rect { fill: #6E6E6E; stroke: #5A5A5A; } .ia-node--grey text { fill: #FFFFFF; font-weight: 600; }
.ia-node--orange rect { fill: #FF9A3C; stroke: #E5822A; } .ia-node--orange text { font-weight: 600; }
.ia-node--green rect { fill: #5FCF6A; stroke: #45B652; } .ia-node--green text { font-weight: 600; }
.ia-node--blue-2 rect { fill: #CFE6FF; stroke: #67B0FF; }
.ia-node--blue-3 rect { fill: #E6F2FF; stroke: #9FCBFF; }
.ia-node--orange-2 rect { fill: #FFE7D1; stroke: #F3A865; }
.ia-node--orange-3 rect { fill: #FFF1E4; stroke: #F6C08F; }
.ia-node--green-2 rect { fill: #DCF6DC; stroke: #7FD681; }
.ia-node--green-3 rect { fill: #EDFAED; stroke: #A8E6A9; }

/* joined tiles: like the homepage Work / Leadership rows — one outer border,
   dividers between tiles, straight corners, no gaps */
.cs-tiles { display: grid; margin-top: var(--space-48); border: 1px solid var(--border-default); background: var(--background-page); }
.cs-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cs-tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cs-tiles > * { position: relative; isolation: isolate; overflow: hidden; border-right: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); background: var(--background-page); }
.cs-tiles--2 > :nth-child(2n), .cs-tiles--3 > :nth-child(3n), .cs-tiles--5 > :nth-child(5n) { border-right: 0; }
.cs-tiles--2 > :nth-last-child(-n + 2), .cs-tiles--3 > :nth-last-child(-n + 3), .cs-tiles--5 > :nth-last-child(-n + 5) { border-bottom: 0; }

.cs-stat { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-32); }
.cs-stat__num { white-space: nowrap; font-size: clamp(28px, 4vw, 56px); font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: var(--text-hero-emphasis); }

.cs-quote { margin: var(--space-64) 0 0; padding-left: var(--space-32); border-left: 3px solid var(--brand-primary); max-width: 980px; }
.cs-quote p { font-size: clamp(26px, 3.2vw, 40px); font-weight: 300; line-height: 1.2; letter-spacing: -0.02em; }

.cs-persona { display: flex; flex-direction: column; gap: var(--space-12); padding: var(--space-48) var(--space-32); }
.cs-persona__avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--background-surface); color: var(--brand-primary); font-weight: 600; font-size: 18px; letter-spacing: .02em; margin-bottom: var(--space-8); }
.cs-persona__q { margin-top: auto; padding-top: var(--space-12); border-top: 1px solid var(--border-default); font-size: 16px; font-weight: 500; color: var(--text-hero-emphasis); }

.cs-checks { display: grid; gap: var(--space-12); }
.cs-checks li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.5; }
.cs-checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--background-page); }
.cs-checks li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 6px); width: 8px; height: 4px; border: solid var(--brand-primary); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.cs-zones { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.cs-zones li { padding: 6px var(--space-16); border-radius: var(--radius-button); background: var(--brand-primary); color: var(--brand-on-primary); font-size: 14px; font-weight: 600; }

.cs-target { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-32) var(--space-24); font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.cs-target__big { font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; color: var(--text-hero-emphasis); }

.cs-next { padding-top: 0; }
.cs-next .cs-tiles { margin-top: 0; }
.cs-next__card { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-48) var(--space-32); }
.cs-next__card .heading-h3 span { display: inline-block; transition: transform .45s var(--ease-out); }
.cs-next__card:hover .heading-h3 span { transform: translateX(6px); }
.cs-next__cta { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--space-24); padding: var(--space-48) var(--space-32); background: var(--background-surface) !important; }

@media (max-width: 1100px) {
  .cs-tiles--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cs-tiles--5 > :nth-child(n) { border-right: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
  .cs-tiles--5 > :nth-child(3n) { border-right: 0; }
  .cs-tiles--5 > :nth-child(n + 4) { border-bottom: 0; }
}
@media (max-width: 900px) {
  .cs-tiles--2, .cs-tiles--3, .cs-tiles--5 { grid-template-columns: 1fr; }
  .cs-tiles > * { border-right: 0 !important; border-bottom: 1px solid var(--border-default) !important; }
  .cs-tiles > :last-child { border-bottom: 0 !important; }
  .cs-tiles--3:has(.cs-stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-tiles--3:has(.cs-stat) > :nth-child(odd) { border-right: 1px solid var(--border-default) !important; }
  .cs-tiles--3:has(.cs-stat) > :nth-last-child(-n + 2) { border-bottom: 0 !important; }
  .cs-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-meta > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .cs-meta > div:nth-child(n + 3) { border-top: 1px solid var(--border-default); }
  .cs-row { margin-top: var(--space-48); }
  /* wide figures stay legible and scroll sideways */
  .cs-figure__frame--scroll { overflow-x: auto; }
  .cs-figure__frame--scroll img { width: 860px; max-width: none; }
  .cs-figure__frame--scroll .ia-diagram { width: 900px; max-width: none; }
}
@media (max-width: 600px) {
  .cs-meta { grid-template-columns: 1fr; }
  .cs-meta > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--border-default); }
  .cs-stat { padding: var(--space-24) var(--space-16); }
  .cs-quote { padding-left: var(--space-16); }
}

/* Thoughts page: empty state until the first post */
.thoughts__empty { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-64) var(--space-32); }
.thoughts__empty .heading-h3 { max-width: 760px; }
.thoughts__suggest { align-self: flex-start; margin-top: var(--space-16); }

/* Thoughts: typographic covers (title on a panel tinted by tag; tokens only) */
.t-cover { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: var(--space-16); padding: var(--space-24); background: var(--background-surface); color: var(--text-primary); text-align: left; }
.card__photo.t-cover { display: flex; place-items: initial; }
.t-cover__tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.t-cover__title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 500; line-height: 1.2; letter-spacing: -0.02em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; transition: transform .8s var(--ease-out); }
.card:hover .t-cover__title { transform: translateY(-4px); }
.t-cover--design { background: var(--background-surface); }
.t-cover--leadership { background: var(--brand-primary); color: var(--brand-on-primary); }
.t-cover--career { background: var(--background-surface-subtle); }
.t-cover--ai { background: var(--text-primary); color: var(--background-page); }
.t-cover--philosophy { background: color-mix(in srgb, var(--brand-primary) 14%, var(--background-page)); }
/* portrait covers: shown whole on the tag tint, not cropped */
.card__photo--contain img { width: auto; height: 100%; aspect-ratio: auto; max-width: 100%; object-fit: contain; padding: var(--space-16) 0; }
.card__photo--contain img { height: 250px; padding: var(--space-12) 0; }

/* ==========================================================
   Homepage additions (from the v2 preview)
   ========================================================== */
/* Hero badge row (replaces the availability paragraph) */
.hero-badges { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-top: var(--space-24); }
.hero-badges li { display: inline-flex; align-items: center; height: 30px; padding: 4px var(--space-12); border: 1px solid var(--border-default); border-radius: var(--radius-button); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-secondary); background: var(--background-page); }
.hero-badges li:first-child::before { content: ""; width: 8px; height: 8px; margin-right: var(--space-8); border-radius: 50%; background: var(--status-available); }

/* Work cards: one big result number over the image */
.card--result .card__photo { position: relative; }
.card__num { position: absolute; left: var(--space-16); bottom: var(--space-16); display: flex; flex-direction: column; padding: var(--space-12) var(--space-16); border-radius: var(--radius-badge); background: var(--brand-primary); color: var(--brand-on-primary); }
.card__big { font-size: clamp(28px, 2.6vw, 40px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.card__label { margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

/* Testimonials carousel: one quote per slide */
.voices__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-24); margin-bottom: var(--space-32); }
.voices__head .title-row { margin-bottom: 0; }
.voices__controls { display: flex; align-items: center; gap: var(--space-12); }
.voices__controls .eyebrow { margin-right: var(--space-12); font-variant-numeric: tabular-nums; }
.voices__arrow { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border-strong); border-radius: var(--radius-button); background: var(--background-page); font-size: 18px; transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s; }
.voices__arrow:hover { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--brand-on-primary); }
.voices__track { display: flex; gap: var(--space-24); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; outline-offset: 4px; }
.voices__track::-webkit-scrollbar { display: none; }
.quote-card { flex: 0 0 min(620px, 85%); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-32); margin: 0; padding: var(--space-48) var(--space-32); border: 1px solid var(--border-default); background: var(--background-page); }

.quote-card__who { display: flex; align-items: center; gap: var(--space-16); }
.quote-card__who .cs-persona__avatar { margin: 0; flex: none; }
.quote-card__who > span:last-child { display: flex; flex-direction: column; }
.voices__more { display: inline-flex; margin-top: var(--space-24); }

/* Latest thoughts: 3 cards */
.v2-latest { margin-top: 0; }
.v2-latest .cs-next__card { justify-content: flex-start; gap: var(--space-12); }
.v2-latest .text-link { margin-top: auto; padding-top: var(--space-16); }

@media (max-width: 900px) {
  .voices__head { flex-direction: column; align-items: flex-start; }
  .quote-card { padding: var(--space-32) var(--space-24); }
  .v2-latest { grid-template-columns: 1fr; }
  .v2-latest > * { border-right: 0 !important; border-bottom: 1px solid var(--border-default) !important; }
  .v2-latest > :last-child { border-bottom: 0 !important; }
}
@media (prefers-reduced-motion: reduce) { .voices__track { scroll-behavior: auto; } }

/* Back link: same distance below the navbar on every page (listings and detail pages) */
main > .work-hero, main > .a-post-hero { padding-top: var(--space-48); }
@media (max-width: 600px) { main > .work-hero, main > .a-post-hero { padding-top: var(--space-32); } }

/* Subtext beside a title: top-aligned, with its first line level with the
   title's cap height (Onest: cap top sits lh/2 - 0.372em below the line top;
   body-large 18/27 puts it 6.8px down). Stacked layouts need no offset. */
@media (min-width: 901px) {
  .title-row__cols > .heading-h2 ~ .body-large { margin-top: max(0px, calc(clamp(32px, 3.6vw, 48px) * 0.228 - 6.8px)); }
  .title-row__cols > .display-hero ~ .body-large { margin-top: max(0px, calc(clamp(44px, 6.2vw, 84px) * 0.128 - 6.8px)); }
  /* split head: skip the eyebrow (14px × 1.5 = 21px) and its 8px gap, then match the H2 */
  .section-head--split > .body-large { margin-top: calc(21px + var(--space-8) + clamp(32px, 3.6vw, 48px) * 0.228 - 6.8px); }
}

/* footer: LinkedIn + Behance side by side */
.footer__links { display: inline-flex; gap: var(--space-24); }
/* "How I can help": a direct ask under each item */
.accordion__panel .offer__ask { margin: calc(var(--space-16) * -1) var(--space-32) var(--space-32); }

/* six nav links: a little tighter on small desktops so they never touch the logo */
@media (min-width: 901px) and (max-width: 1100px) { .nav__links { gap: var(--space-24); } }

/* ==========================================================
   Shared components (reused across pages)
   ========================================================== */
/* grey "In practice" / "Proof" box: Ways of Working, Leadership */
.note-box { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12); padding: var(--space-24); border-radius: var(--radius-badge); background: var(--background-surface-subtle); }
.section--surface .note-box { background: var(--background-page); }
/* pillars with four cards */
.pillars--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .pillars--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars--4 > :nth-child(2n) { border-right: 0; }
  .pillars--4 > :nth-child(-n + 2) { border-bottom: 1px solid var(--border-default); }
}
@media (max-width: 900px) { .pillars--4 { grid-template-columns: 1fr; } .pillars--4 > * { border-right: 0; } }
.pillars + .note-box, .pillars + .work__foot { margin-top: var(--space-32); }
/* role card: label + line rows (Leadership scope on v3 and /leadership/) */
.role-card__rows { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-32) var(--space-48); }
.role-card__rows > div { display: flex; flex-direction: column; gap: var(--space-8); padding-top: var(--space-16); border-top: 1px solid var(--border-default); }
.role-card__rows dd { margin: 0; }
.role-card .text-link { color: var(--text-primary); }
@media (max-width: 900px) { .role-card__rows { grid-template-columns: minmax(0, 1fr); gap: var(--space-24); } }
/* stat tiles and device frames (case studies, v3 flagship) */
.cs-tiles > li > .cs-stat { height: 100%; }
.cs-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cs-tiles--4 > :nth-child(4n) { border-right: 0; }
.cs-tiles--4 > :nth-last-child(-n + 4) { border-bottom: 0; }
.cs-figure__frame--device { padding: var(--space-48); }
@media (max-width: 900px) {
  .cs-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-tiles--4 > * { border-bottom: 1px solid var(--border-default); }
  .cs-tiles--4 > :nth-child(2n) { border-right: 0; }
  .cs-tiles--4 > :nth-last-child(-n + 2) { border-bottom: 0; }
}
/* work grid with two cards */
.work__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .work__grid--2 { grid-template-columns: 1fr; } }

/* footer: dark grey strip under the blue marquee (same in light and dark mode) */
.footer { border-top: 0; background: #262626; }
.footer__bottom { --text-primary: #FFFFFF; --text-secondary: #B8B8B8; --brand-primary: #A9BDFB; color: var(--text-primary); }
.footer__bottom .logo { color: var(--text-primary); }
/* button rows can hold more than one button */
.work__foot { flex-wrap: wrap; gap: var(--space-16); }
/* 404: keep the footer at the bottom of the window */
.error-page main { min-height: calc(100vh - 340px); }
