/* ==========================================================================
   TWA website, design v2 (26 November 2026)
   Brand from Tom's brief: Trade Gothic Next (Heavy / Regular / Light) and the
   official palette. Archivo stands in for Trade Gothic Next until TWA supplies
   the web font: swap the @font-face below and --font, nothing else changes.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin-wdth.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* Official palette */
  --deep: #02403d;
  --volt: #d0f711;
  --ash: #dde1e2;
  --midnight: #124675;
  --lumen: #7b7bdb;
  --ember: #ff6c39;

  /* Softer versions, as Tom asked */
  --deep-soft: #2c6560;
  --deep-ink: #012a28;
  --paper: #f2f3ef;
  --ash-soft: #e8ebea;
  --ember-soft: #ff8a5e;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --heavy: 800;
  --heavy-stretch: 88%;
  --light: 300;

  --container: 1440px;
  --gutter: clamp(20px, 4.5vw, 72px);
  --section: clamp(88px, 12vw, 176px);
  --radius: 2px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Section themes ---------------------------------------------------------- */
[data-theme="paper"] { --bg: var(--paper); --fg: var(--deep); --muted: #3f5f5c; --line: rgb(2 64 61 / 0.16); --accent: var(--deep); }
[data-theme="ash"]   { --bg: var(--ash-soft); --fg: var(--deep); --muted: #3f5f5c; --line: rgb(2 64 61 / 0.16); --accent: var(--deep); }
[data-theme="deep"]  { --bg: var(--deep); --fg: #f2f3ef; --muted: #b8cbc8; --line: rgb(242 243 239 / 0.18); --accent: var(--volt); }

/* Base -------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--deep);
  font-family: var(--font);
  font-weight: var(--light);
  font-size: clamp(17px, 1.05vw + 10px, 19px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[data-theme] { background: var(--bg); color: var(--fg); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: var(--heavy); font-stretch: var(--heavy-stretch); }
ul, ol { margin: 0; padding: 0; }
figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent, var(--deep)); outline-offset: 4px; }
::selection { background: var(--volt); color: var(--deep); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: var(--volt); color: var(--deep); font-weight: 600; transform: translateY(-160%); transition: transform 0.3s var(--ease-out); }
.skip-link:focus { transform: none; }
main:focus { outline: none; }
section[id], .change-track { scroll-margin-top: 67px; }
section[id]:focus { outline: none; }
.volt { color: var(--volt); }

/* Type -------------------------------------------------------------------- */
.display { font-size: clamp(56px, 10.5vw, 176px); line-height: 0.9; letter-spacing: -0.035em; }
.h1 { font-size: clamp(38px, 5.2vw, 84px); line-height: 0.98; letter-spacing: -0.03em; }
.lead { font-size: clamp(19px, 1.4vw + 8px, 26px); line-height: 1.45; font-weight: var(--light); max-width: 34ch; }
.text-link { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 500; text-decoration: none; padding-block: 6px; border-bottom: 1px solid currentColor; }
.text-link .icon { transition: transform 0.4s var(--ease-out); }
.text-link:hover .icon { transform: translateX(4px); }
.icon { flex: none; }

.btn { display: inline-flex; align-items: center; gap: 0.6em; padding: 16px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.btn--volt { background: var(--volt); color: var(--deep); }
.btn .icon { transition: transform 0.4s var(--ease-out); }
.btn:hover .icon { transform: translateX(4px); }

/* Tinted imagery: every photo is washed in the brand green ---------------- */
.tint { position: relative; overflow: hidden; background: var(--deep-soft); isolation: isolate; }
.tint img, .tint video { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(1.02); mix-blend-mode: luminosity; }
.tint::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(2 64 61 / 0) 40%, rgb(2 64 61 / 0.45)); mix-blend-mode: multiply; pointer-events: none; }
.tint--soft { background: #4f8a82; }

/* Header ------------------------------------------------------------------ */
.site-header { position: absolute; inset: 0 0 auto; z-index: 50; color: #f2f3ef; }
.site-header.is-fixed { position: fixed; background: rgb(2 64 61 / 0.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgb(242 243 239 / 0.08); animation: bar-in 0.7s var(--ease-out) both; }
.site-header.is-fixed .site-header__inner { height: 68px; }
@keyframes bar-in { from { transform: translateY(-100%); } to { transform: none; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; transition: height 0.5s var(--ease-out); }
.site-header__brand { display: block; width: 92px; color: inherit; transition: opacity 0.4s, transform 0.6s var(--ease-out); }
.site-header__brand .logo { width: 100%; height: auto; }
.site-header:not(.is-fixed) .site-header__brand { opacity: 0; pointer-events: none; }
.site-nav__list { display: flex; gap: clamp(18px, 2.4vw, 40px); list-style: none; }
.site-nav__link { text-decoration: none; font-weight: 500; font-size: 15px; letter-spacing: 0.01em; position: relative; }
.site-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.site-nav__link:hover::after, .site-nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.site-header__actions { display: flex; align-items: center; gap: 20px; }
.site-header__login { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 15px; font-weight: 500; }
.pill { display: inline-flex; padding: 10px 18px; border: 1px solid currentColor; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; transition: background-color 0.3s, color 0.3s; }
.pill:hover { background: #f2f3ef; color: var(--deep); }
.menu-toggle { display: none; align-items: center; gap: 10px; font-weight: 500; }
.menu-toggle__bars { display: grid; gap: 5px; width: 22px; }
.menu-toggle__bars span { height: 1.5px; background: currentColor; }
@media (max-width: 1099px) {
  .site-nav, .site-header__login, .site-header .pill { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header__inner { height: 72px; }
}

.mobile-menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.mobile-menu__top .site-header__brand { width: 84px; }
.menu-close { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.mobile-menu__nav { flex: 1; padding-block: 32px; }
.mobile-menu__nav ul { list-style: none; display: grid; gap: 6px; }
.mobile-menu__nav a { font-size: clamp(34px, 9vw, 56px); font-weight: var(--heavy); font-stretch: var(--heavy-stretch); text-decoration: none; letter-spacing: -0.02em; line-height: 1.15; }
.mobile-menu__foot { display: grid; gap: 12px; padding-block: 32px; border-top: 1px solid var(--line); }
.mobile-menu__foot a { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; }

/* 1. Hero ------------------------------------------------------------------ */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; display: grid; }
.hero__media { position: absolute; inset: 0; }
.hero__video { position: absolute; inset: 0; transform-origin: 50% 55%; }
.hero__shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse 70% 60% at 50% 52%, rgb(2 64 61 / 0.05), rgb(2 64 61 / 0.55)),
  linear-gradient(180deg, rgb(2 64 61 / 0.55) 0%, rgb(2 64 61 / 0) 22%, rgb(2 64 61 / 0) 70%, rgb(2 64 61 / 0.7) 100%); }
.hero__center { position: relative; z-index: 2; align-self: center; justify-self: center; width: min(78vw, 1180px); display: grid; justify-items: center; gap: clamp(28px, 4vw, 56px); padding-top: 40px; }
.hero__title { width: 100%; }
.hero__mark { display: block; color: var(--volt); }
.hero__mark .logo { width: 100%; height: auto; }

.hero__loop { font-weight: var(--heavy); font-stretch: var(--heavy-stretch); text-transform: uppercase; font-size: clamp(22px, 2.8vw, 46px); line-height: 1.05; letter-spacing: 0.005em; text-align: center; }
.hero__loop-visual { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.22em 0.28em; }
.hl { display: inline-block; background: var(--deep); color: var(--volt); padding: 0.14em 0.3em 0.1em; }
.hl--word { color: var(--ember); }
.loop__words { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.loop__word { grid-area: 1 / 1; text-align: center; visibility: hidden; }
.loop__word.is-active { visibility: visible; }

.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding-bottom: 28px; margin-inline: auto; }
.hero__cue { width: 1px; height: 56px; background: rgb(242 243 239 / 0.3); position: relative; overflow: hidden; }
.hero__cue span { position: absolute; inset: 0; background: var(--volt); transform: translateY(-100%); animation: cue 2.4s var(--ease-inout) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.media-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(242 243 239 / 0.45); border-radius: 50%; color: #f2f3ef; transition: background-color 0.3s; }
.media-toggle:hover { background: rgb(242 243 239 / 0.12); }
.media-toggle__icon { grid-area: 1 / 1; display: grid; }
.media-toggle__icon--play { display: none; }
.media-toggle.is-paused .media-toggle__icon--play { display: grid; }
.media-toggle.is-paused .media-toggle__icon--pause { display: none; }

/* 2. Intersection: Venn on a stage ------------------------------------------ */
.intersection { overflow: hidden; }
.intersection__stage { display: grid; justify-items: center; text-align: center; gap: clamp(20px, 3vh, 40px); }
.intersection__text { display: grid; justify-items: center; gap: 16px; }
.intersection .h1 { max-width: 22ch; font-size: clamp(32px, 4vw, 64px); }
.intersection .lead { max-width: 40ch; color: var(--muted); }
.venn { position: relative; width: min(100%, 820px, 84vh); }
.venn__svg { width: 100%; height: auto; overflow: visible; }
.venn__fill { fill: rgb(2 64 61 / 0.06); }
.venn__fill--b { fill: rgb(18 70 117 / 0.07); }
.venn__overlap { fill: var(--deep); }
.venn__ring { fill: none; stroke: var(--deep); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.venn__label { font-family: var(--font); font-weight: 700; font-stretch: 92%; font-size: 21px; fill: var(--deep); letter-spacing: 0.01em; }
.venn__dots circle { fill: var(--deep); }
.venn__dots--b circle { fill: var(--midnight); }
/* Before the script runs, hide the finished centre so it never flashes up */
.motion [data-venn-overlap], .motion [data-venn-mark], .motion [data-venn-title] { opacity: 0; }
.venn__glow { opacity: 0; }
.venn__mark { position: absolute; left: 50%; top: 50%; width: 17%; transform: translate(-50%, -50%); color: var(--volt); }
.venn__mark .logo { width: 100%; height: auto; }

/* 3. Split panels (copy one side, image fills the other) ------------------- */
.split { display: grid; grid-template-columns: 1fr; min-height: 100svh; }
.split > * { min-height: 50svh; }
.split__panel { display: grid; align-items: center; padding: clamp(88px, 11vh, 150px) var(--gutter) clamp(56px, 8vh, 120px); }
.split__inner { display: grid; gap: clamp(24px, 3vw, 40px); justify-items: start; max-width: 600px; }
.split__title { max-width: 11ch; }
.split__media { min-height: 70svh; }
.split__media img { position: absolute; inset: -8% 0; height: 116%; }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split__panel { padding-inline: clamp(48px, 7vw, 120px); }
  .split--reverse .split__media { order: -1; }
  .split__media { min-height: 0; }
}

.quote__text { font-weight: var(--heavy); font-stretch: var(--heavy-stretch); font-size: clamp(26px, min(3vw, 5.2vh), 48px); line-height: 1.08; letter-spacing: -0.02em; }
.quote__cite { margin-top: 20px; font-size: 15px; color: var(--muted); font-weight: 400; }
.steps { list-style: none; width: 100%; border-top: 1px solid var(--line); }
.steps__item { display: flex; gap: 20px; align-items: baseline; padding-block: clamp(12px, 2vh, 18px); border-bottom: 1px solid var(--line); font-size: clamp(18px, 1.3vw + 8px, 23px); font-weight: 400; }
.steps__num { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* How TWA drives change (pinned) -------------------------------------------- */
/* On large screens the section sticks while its track scrolls past (motion only) */
@media (min-width: 900px) and (min-height: 600px) {
  .motion .change-track { height: 260vh; }
  .motion .change-track > .change { position: sticky; top: 0; height: 100vh; }
}
.change { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; }
.change__media { position: absolute; inset: 0; background: #1f5a54; }
.change__media video { position: absolute; inset: 0; }

.change__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(2 64 61 / 0.88) 0%, rgb(2 64 61 / 0.6) 55%, rgb(2 64 61 / 0.25) 100%); }
.change__inner { position: relative; z-index: 1; padding-block: var(--section); display: grid; gap: clamp(32px, 4vw, 56px); }
.change__title { font-size: 15px; font-weight: 600; font-stretch: 100%; letter-spacing: 0.02em; color: var(--muted); }
.change__lines { list-style: none; display: grid; gap: clamp(20px, 3vw, 40px); max-width: 980px; }
.change__line { font-size: clamp(26px, 3.4vw, 56px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 400; color: rgb(242 243 239 / 0.32); transition: color 0.6s var(--ease-out); }
.change__line strong { font-weight: var(--heavy); font-stretch: var(--heavy-stretch); transition: color 0.6s var(--ease-out); }
.change__line.is-active { color: #f2f3ef; }
.change__line.is-active strong { color: var(--ember-soft); }
html:not(.motion) .change__line { color: #f2f3ef; }
html:not(.motion) .change__line strong { color: var(--ember-soft); }

/* 4. IMPACT Polling ---------------------------------------------------------- */
.impact__head { display: grid; gap: 32px; align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
@media (min-width: 960px) { .impact__head { grid-template-columns: 1.4fr 1fr; } }
.impact__aside { max-width: 30ch; }
.impact__hl { background: var(--volt); padding: 0.02em 0.08em 0; margin-left: -0.08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* The quote on its own --------------------------------------------------------- */
.big-quote__inner { max-width: 1180px; display: grid; gap: 28px; }
.big-quote__text { font-weight: var(--heavy); font-stretch: var(--heavy-stretch); font-size: clamp(34px, 4.6vw, 76px); line-height: 1.02; letter-spacing: -0.025em; max-width: 24ch; }
.big-quote__cite { color: var(--muted); font-weight: 400; }
.impact__media { height: clamp(320px, 52vw, 760px); }
.impact__media img { position: absolute; inset: -8% 0; height: 116%; }
.pillars { list-style: none; display: grid; gap: 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, 1fr); } .pillar + .pillar { border-left: 1px solid var(--line); } }
.pillar { display: grid; align-content: start; gap: 16px; padding: 32px clamp(0px, 2.4vw, 40px) 32px 0; }
@media (min-width: 900px) { .pillar + .pillar { padding-left: clamp(20px, 2.4vw, 40px); } }
.pillar__num { font-size: 13px; font-weight: 600; color: var(--muted); }
.pillar__title { font-size: clamp(24px, 2vw, 32px); line-height: 1.05; letter-spacing: -0.015em; }
.pillar__list { list-style: none; display: grid; gap: 8px; color: var(--muted); }
.pillar__list li { padding-left: 18px; position: relative; }
.pillar__list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: currentColor; }

/* 5. Team -------------------------------------------------------------------- */
.team__title { max-width: 20ch; margin-bottom: clamp(36px, 5vh, 64px); }
.people { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 48px) clamp(16px, 2.4vw, 40px); }
@media (min-width: 1000px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person { display: grid; align-content: start; gap: 16px; }
.person__photo { aspect-ratio: 4 / 5; max-height: 46vh; }
@media (min-width: 1000px) { .person__photo { aspect-ratio: auto; height: min(40vh, 30vw); } }
.person__photo img { height: 100%; transition: transform 1.2s var(--ease-out); }
.person:hover .person__photo img { transform: scale(1.04); }
.person__body { display: grid; gap: 4px; }
.person__name { font-size: clamp(20px, 1.7vw, 28px); letter-spacing: -0.015em; line-height: 1.05; }
.person__role { color: var(--muted); font-weight: 400; font-size: 15px; }
.person__bio { margin-top: 8px; font-size: 15px; color: var(--muted); }
@media (max-width: 759px) { .person__bio { display: none; } }

/* Testimonial -------------------------------------------------------------- */
.testimonial { padding-bottom: 0; }
.testimonial__track { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.testimonial__track::-webkit-scrollbar { display: none; }
.testimonial__track:focus-visible { outline-offset: 8px; }
.testimonial__slide { scroll-snap-align: start; scroll-snap-stop: always; }
.testimonial__fig { display: grid; gap: 32px; max-width: 1100px; }
.testimonial__controls { display: flex; align-items: center; gap: 20px; margin-top: clamp(32px, 4vw, 56px); }
.slider-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--fg); font-size: 20px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.slider-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.slider-btn:disabled { opacity: .35; pointer-events: none; }
.slider-dots { list-style: none; display: flex; gap: 10px; }
.slider-dots button { display: block; box-sizing: content-box; width: 28px; height: 3px; padding: 10px 0; border: 0; background: var(--line) content-box; cursor: pointer; transition: width .5s var(--ease-out), background-color .3s; }
.slider-dots button[aria-current="true"] { width: 56px; background-color: var(--fg); }
.testimonial__quote { font-weight: var(--heavy); font-stretch: var(--heavy-stretch); font-size: clamp(30px, 3.8vw, 64px); line-height: 1.04; letter-spacing: -0.025em; }
.testimonial__fig figcaption { display: grid; gap: 2px; color: var(--muted); }
.testimonial__fig figcaption strong { color: var(--fg); font-weight: 600; }

/* 6. Thinking list ------------------------------------------------------------ */
.work__head { display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: clamp(40px, 5vw, 72px); padding-top: clamp(64px, 8vw, 120px); border-top: 1px solid var(--line); }
.cards { list-style: none; display: grid; gap: clamp(32px, 3vw, 48px); }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card__link { display: grid; gap: 14px; text-decoration: none; }
.card__media { aspect-ratio: 3 / 2; }
.card__media img { height: 100%; transition: transform 1.2s var(--ease-out); }
.card__link:hover .card__media img { transform: scale(1.05); }
.card__title { font-size: clamp(22px, 1.7vw, 28px); line-height: 1.08; letter-spacing: -0.015em; margin-top: 6px; }
.card__text { color: var(--muted); }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
.card__more .icon { transition: transform 0.4s var(--ease-out); }
.card__link:hover .card__more .icon { transform: translateX(4px); }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--deep-ink); padding-block: clamp(72px, 9vw, 128px) 32px; }
.site-footer__mark { color: var(--volt); }
.site-footer__mark .logo { width: 100%; height: auto; }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; margin-top: clamp(40px, 5vw, 72px); padding-block: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-footer__nav { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.site-footer__nav a, .site-footer__top { text-decoration: none; font-weight: 500; font-size: 15px; }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__top { display: inline-flex; gap: 6px; align-items: center; }
.site-footer__base { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: baseline; margin-top: clamp(40px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-footer__email { font-size: clamp(22px, 2.4vw, 36px); font-weight: var(--heavy); font-stretch: var(--heavy-stretch); letter-spacing: -0.015em; color: #f2f3ef; text-decoration: none; }
.site-footer__email:hover { color: var(--volt); }
.site-footer__base a { color: inherit; }

/* Motion: start states only apply when JS runs and motion is allowed ------ */
.motion [data-split] { visibility: hidden; }
.motion [data-fade], .motion [data-stagger] { opacity: 0; transform: translateY(28px); }
.motion [data-reveal] { clip-path: inset(12% 0 12% 0); }
.motion [data-reveal-wide] { clip-path: inset(0 10% 0 10%); }
.motion [data-reveal] img { transform: scale(1.14); }
.split-line { padding-bottom: 0.06em; }

@media (prefers-reduced-motion: reduce) {
  html:not(.motion) *, html:not(.motion) *::before, html:not(.motion) *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* Contact pop-up ------------------------------------------------------------ */
.contact { width: min(640px, calc(100vw - 32px)); max-height: calc(100svh - 32px); margin: auto; padding: 0; border: 0; border-radius: 4px; overflow: auto; overscroll-behavior: contain; }
.contact::backdrop { background: rgb(1 42 40 / 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.contact[open] { animation: contact-in 0.5s var(--ease-out) both; }
.contact[open]::backdrop { animation: fade-in 0.4s ease both; }
@keyframes contact-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.contact__inner { position: relative; padding: clamp(28px, 5vw, 56px); }
.contact__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; }
.contact__close:hover { background: rgb(242 243 239 / 0.1); }
.contact__title { font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -0.025em; color: var(--volt); padding-right: 48px; }
.contact__lead { margin-top: 12px; color: var(--muted); }
.contact__form { display: grid; gap: 22px; margin-top: 32px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; letter-spacing: 0.01em; }
.field__opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; font: inherit; font-weight: 400; color: var(--fg); background: rgb(242 243 239 / 0.06); border: 0; border-bottom: 1px solid rgb(242 243 239 / 0.35); border-radius: 2px 2px 0 0; padding: 12px 14px; transition: border-color 0.3s, background-color 0.3s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--volt); background: rgb(242 243 239 / 0.1); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--ember-soft); }
.field--trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact__error { color: var(--ember-soft); font-size: 15px; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.contact__email { font-size: 15px; color: var(--fg); text-underline-offset: 4px; }
.contact__email:hover { color: var(--volt); }
.contact__done { display: grid; gap: 20px; justify-items: start; outline: none; }
.contact__done .text-link { color: var(--fg); }
html.contact-open { overflow: hidden; }

/* Inner pages: Our thinking and articles ------------------------------------ */
.page-head { padding-block: clamp(140px, 18vh, 220px) clamp(64px, 8vw, 112px); }
.page-head .lead { margin-top: 24px; color: var(--muted); max-width: 46ch; }
.page-head .display { color: var(--volt); }
.thinking-grid { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .thinking-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .thinking-grid { grid-template-columns: repeat(3, 1fr); } }
.t-card { border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .t-card { border-right: 1px solid var(--line); } }
.t-card__link { display: grid; align-content: start; gap: 16px; height: 100%; padding: 32px clamp(0px, 2vw, 32px) 36px; text-decoration: none; transition: background-color 0.4s; }
.t-card__link:hover { background: rgb(2 64 61 / 0.04); }
.t-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.t-card__meta span:first-child { color: var(--fg); }
.t-card__title { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.1; letter-spacing: -0.015em; }
.t-card__summary { color: var(--muted); }
.t-card__more, .card__more { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-weight: 600; font-size: 15px; }
.card__meta { font-weight: 400; color: var(--muted); font-size: 13px; }
.t-card__more .icon { transition: transform 0.4s var(--ease-out); }
.t-card__link:hover .t-card__more .icon { transform: translate(3px, -3px); }
.article__narrow { max-width: 820px; }
.article__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.article__back:hover { color: var(--fg); }
.article__title { color: var(--volt); margin-top: 16px; }
.article__byline { margin-top: 20px; font-size: 15px; color: var(--muted); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -0.02em; margin-top: 1.8em; }
.prose h3 { font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; margin-top: 1.6em; }
.prose h4 { font-size: 19px; font-weight: 700; font-stretch: 95%; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; display: grid; gap: 0.5em; }
.prose a { color: var(--fg); text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--deep); padding: 4px 0 4px 24px; font-size: clamp(20px, 1.6vw, 24px); line-height: 1.4; }
.prose blockquote cite { display: block; margin-top: 10px; font-size: 15px; font-style: normal; color: var(--muted); }
.prose figure { margin-block: 2em; }
.prose figure img { width: 100%; height: auto; border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.prose--legal { font-size: 17px; }
.prose--legal h2 { font-size: clamp(24px, 2vw, 32px); }
.prose strong { font-weight: 600; }
.pos-values { object-position: 58% 50%; }
