/* TRS 2026
   1 Fonts and tokens   2 Base   3 Type   4 Links and buttons   5 Header and footer
   6 Sections   7 Home   8 Cards and blog   9 Post and page   10 Roles   11 About   12 Salaries   13 Dialog   14 Motion */

/* 1 Fonts and tokens ---------------------------------------------------------------- */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1b211e;
  --muted: #58605b;
  --line: #e3e1db;
  --accent: #0f5a3c;
  --stone: #f5f4f0;
  --soft: #e6efe9;
  --deep: #0c3f2b;
  --mint: #8fd3ae;
  --dim: rgba(255, 255, 255, .8);
  --hair: rgba(255, 255, 255, .18);
  --green: radial-gradient(70% 90% at 12% 18%, #2e7656 0%, transparent 60%), radial-gradient(60% 80% at 92% 88%, #1f6a4a 0%, transparent 60%), #0c3f2b;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", Arial, Helvetica, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --sec: clamp(80px, 9vw, 120px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 2 Base ---------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
a:active, button:active { opacity: .64; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.green :focus-visible, .ft :focus-visible, .band :focus-visible { outline-color: #fff; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: calc(1280px + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; }
.skip:focus { left: 16px; }
.muted { color: var(--muted); }

/* 3 Type ---------------------------------------------------------------------------- */

.h1, .h2, .h3, .serif, .pos-line, .pos-tag, .stat-n, .case-title, .case-time, .card-t, .acc-t, .quote, .odo, .big, .nf, .stack-line, .facts dd, .jobs-co, .ft-say, .ft-city, .calc-n, .calc-range, .step-n, .case-quote blockquote, .prose h2, .prose h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  letter-spacing: -.015em;
}
.h1 { font-size: clamp(42px, 4.6vw, 64px); line-height: 1.05; }
.h1-xl { font-size: clamp(48px, 5.4vw, 80px); line-height: 1; }
.h2 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; }
.h3 { font-size: 24px; line-height: 1.25; }
.lead { margin-top: 20px; max-width: 620px; color: var(--muted); font-size: 19px; }

/* 4 Links and buttons --------------------------------------------------------------- */

/* Brand link: Forest, 500, no underline at rest, a 1px line draws in under the words on hover and focus. */
.lk, .ul { text-decoration: none; }
.lk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); font-weight: 500; }
.lk.w { color: #fff; }
.lt { background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; padding-bottom: 1px; transition: background-size .3s ease; }
.lk.w .lt, .ft .lt, .band .lt { background-image: linear-gradient(var(--mint), var(--mint)); }
a:hover .lt, a:focus-visible .lt, .lt.on { background-size: 100% 1px; }
.lk svg { flex: none; transition: transform .2s ease; }
.lk:hover svg, .lk:focus-visible svg { transform: translateX(3px); }
.lk.back:hover svg, .lk.back:focus-visible svg { transform: translateX(-3px); }
.prose a { color: var(--accent); font-weight: 500; text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease; }
.prose a:hover, .prose a:focus-visible { background-size: 100% 1px; }

.btn, .btn-o, .btn-w { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font: 500 17px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover, .btn:focus-visible { background: var(--deep); border-color: var(--deep); }
.btn-o { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-o:hover, .btn-o:focus-visible { border-color: var(--accent); color: var(--accent); }
.btn-w { background: #fff; color: var(--accent); font-size: 15px; }
.btn-w:hover, .btn-w:focus-visible { background: var(--soft); }
.rnd { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.rnd:hover, .rnd:focus-visible { border-color: var(--accent); color: var(--accent); }
.rnd.d { border-color: rgba(255, 255, 255, .4); color: #fff; }
.rnd.d:hover, .rnd.d:focus-visible { border-color: #fff; background: rgba(255, 255, 255, .1); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .chip-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; color: var(--ink); }
.chip-btn { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.chip-btn:hover { border-color: var(--accent); }
.chip-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-d { min-height: 32px; border: 0; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 500; }

/* Footnote star with tooltip */
.fn { position: relative; display: inline-block; }
.fn-btn { position: relative; display: inline-flex; align-items: flex-start; min-width: 10px; min-height: 20px; margin-left: 2px; padding: 0; border: 0; background: none; font-size: 19px; line-height: 1; color: var(--accent); }
.fn-btn::after { content: ""; position: absolute; inset: -6px -10px; }
.fn-tip { position: absolute; left: 50%; top: calc(100% + 6px); z-index: 5; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 15px; line-height: 1.3; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, -4px); transition: opacity .2s ease, transform .2s ease; }
.fn:hover .fn-tip, .fn-btn:focus-visible + .fn-tip, .fn.open .fn-tip { opacity: 1; transform: translate(-50%, 0); }

/* 5 Header and footer --------------------------------------------------------------- */

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.bar { height: 92px; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; min-height: 44px; color: var(--accent); }
.logo-svg { width: 136px; height: 56px; }
.lg-m { fill: currentColor; }
.lg-t { fill: var(--ink); }
.nav { flex: 1 1 auto; display: flex; justify-content: center; gap: 36px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.menu-btn { display: none; min-height: 44px; align-items: center; margin-left: auto; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; transition: border-color .2s ease, color .2s ease; }
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.mobile-menu { padding-bottom: 16px; }
.mobile-menu a.ul { display: flex; align-items: center; min-height: 48px; border-top: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 12px; }
.pos { background: var(--stone); border-top: 1px solid var(--line); }
.pos-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px; padding-top: clamp(22px, 2.6vw, 34px); padding-bottom: clamp(22px, 2.6vw, 34px); }
.pos-line, .pos-tag { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.pos-line { flex: 1 1 520px; min-width: 0; }
.pos-tag { display: flex; align-items: center; gap: 14px; color: var(--accent); white-space: nowrap; }
.pos-tag svg { width: 34px; height: 34px; flex: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-cta { margin-left: auto; }
  .menu-btn { margin-left: 0; }
}
@media (max-width: 600px) {
  .pos-line { white-space: nowrap; font-size: min(26px, calc((100vw - 40px) / 14.6)); }
  .pos-tag { font-size: 26px; }
}
@media (max-width: 520px) {
  .header-cta { display: none; }
  .menu-btn { margin-left: auto; }
}

.ft { background: var(--deep); color: #fff; }
.ft a { text-decoration: none; }
.ft-in { padding-top: 72px; padding-bottom: 40px; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, .9fr); gap: 48px; }
.ft .logo { color: #fff; }
.ft .logo-svg { width: 120px; height: 50px; }
.ft .lg-t { fill: #fff; }
.ft-say { margin-top: 32px; max-width: 520px; font-size: 30px; line-height: 1.2; }
.ft-say span { color: var(--dim); }
.ft-nav { display: flex; flex-direction: column; }
.ft-nav a { display: flex; align-items: center; min-height: 40px; }
.ft-label { margin-bottom: 16px; color: var(--dim); font-size: 15px; }
.ft-soc { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 36px; }
.ft-soc a { display: flex; flex-direction: column; gap: 8px; min-height: 44px; transition: opacity .2s ease; }
.ft-soc a:hover { opacity: .78; }
.ft-stars { color: var(--dim); font-size: 15px; }
.ft-stars span { letter-spacing: 1px; }
.ft-offices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(255, 255, 255, .16); }
.ft-city { font-size: 24px; line-height: 1.2; }
.ft-addr { margin-top: 10px; color: var(--dim); font-size: 15px; line-height: 1.5; }
.ft-cont { margin-top: 12px; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.ft-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); color: var(--dim); font-size: 15px; }
@media (max-width: 860px) {
  .ft-in { padding-top: 48px; padding-bottom: 32px; }
  .ft-top { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .ft-brand { grid-column: 1 / -1; }
  .ft-say { margin-top: 24px; font-size: min(24px, calc((100vw - 40px) / 14.6)); white-space: nowrap; }
  .ft-nav a { min-height: 36px; }
  .ft-soc { flex-direction: column; gap: 20px; }
  .ft-offices { grid-template-columns: 1fr; gap: 24px; margin-top: 36px; padding-top: 32px; }
  .ft-city { font-size: 20px; }
  .ft-legal { margin-top: 36px; }
}

/* 6 Sections ------------------------------------------------------------------------ */

.sec { padding-top: var(--sec); padding-bottom: var(--sec); }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-tight { padding-top: clamp(56px, 6vw, 80px); }
.stone { background: var(--stone); }
.sec.stone + .sec, .sec + .sec.stone { border-top: 0; }
.green, .band { background: var(--green); color: #fff; }
.band-in { padding-top: clamp(56px, 6vw, 80px); padding-bottom: clamp(56px, 6vw, 80px); }
.band-lead { margin-top: 18px; max-width: 620px; color: var(--dim); font-size: 19px; }
.band-date { margin-top: 24px; color: var(--dim); font-size: 15px; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 44px; }
.sec-head .lead { margin-top: 14px; }
.close { background: var(--stone); }
.close-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding-top: clamp(72px, 8vw, 104px); padding-bottom: clamp(72px, 8vw, 104px); }
.close-sub { margin-top: 12px; color: var(--muted); font-size: 19px; }
.close + .sec { border-top: 0; }

/* Accordion (FAQ, roles) */
.acc-list { border-bottom: 1px solid var(--line); }
.acc { border-top: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; padding: 24px 0; list-style: none; cursor: pointer; transition: color .2s ease; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.acc-t { font-size: 24px; line-height: 1.25; }
.acc-n { margin-left: 12px; color: var(--muted); font-family: var(--sans); font-size: 15px; letter-spacing: 0; white-space: nowrap; }
.acc-ic { flex: 0 0 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); transition: border-color .2s ease; }
.acc summary:hover .acc-ic { border-color: var(--accent); }
.acc-ic svg { transform: rotate(90deg); transition: transform .3s ease; }
.acc[open] .acc-ic svg { transform: rotate(-90deg); }
.acc-body { padding: 0 72px 30px 0; color: var(--muted); }
.acc-body p + p { margin-top: 14px; }
.faq-h { margin-bottom: clamp(28px, 3vw, 40px); }

/* 7 Home ---------------------------------------------------------------------------- */

.hero { position: relative; height: clamp(520px, 56vw, 820px); overflow: hidden; background: var(--stone); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 75%; }

.intro { text-align: center; }
.intro .h2 { max-width: 860px; margin: 0 auto; }
.intro .lead { margin: 20px auto 0; }
.intro-chips { justify-content: center; gap: 10px; margin-top: 28px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; max-width: 1120px; margin: 64px auto 0; padding-top: 48px; border-top: 1px solid var(--line); }
.stat-n { font-size: clamp(40px, 3.9vw, 56px); line-height: 1; white-space: nowrap; }
.stat-l { margin-top: 12px; color: var(--muted); }
.intro-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; margin-top: 52px; }

/* Cases */
.cases-in { padding-top: clamp(72px, 8vw, 112px); padding-bottom: clamp(48px, 5vw, 64px); }
.cases .sec-head { align-items: baseline; margin-bottom: clamp(48px, 5vw, 72px); }
.cases .back { margin-bottom: 32px; }
.slide { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 80px; }
.slide + .slide { margin-top: 96px; padding-top: 72px; border-top: 1px solid var(--hair); }
.slide-main { flex: 3 1 480px; min-width: 0; }
.slide-side { flex: 2 1 340px; min-width: 0; }
.case-brand { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 24px; }
.case-logo { width: auto; max-width: 200px; max-height: 44px; }
.case-title { margin-top: 26px; font-size: clamp(42px, 4.6vw, 64px); line-height: 1.05; }
.case-about { margin-top: 16px; max-width: 560px; color: var(--dim); font-size: 19px; }
.case-time { margin-top: 44px; font-size: clamp(72px, 7.4vw, 108px); line-height: .9; }
.case-time-l { margin-top: 12px; color: var(--dim); font-size: 19px; }
.case-go { margin-top: 36px; }
.case-label { color: var(--dim); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tags li { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 15px; }
.case-quote { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hair); }
.case-quote blockquote { font-size: 24px; line-height: 1.3; }
.case-quote figcaption { margin-top: 10px; color: var(--dim); font-size: 15px; }
.slider-nav { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 32px; }
.slider-count { margin-right: 10px; color: var(--dim); font-size: 15px; }
.js [data-slider] .slide + .slide { margin-top: 0; padding-top: 0; border-top: 0; }
.js [data-slider] .slides { display: grid; }
/* Slide change: the outgoing case moves away and fades, the incoming one slides in from the side it comes from;
   inside it the logo, title, time to fill and the right column arrive one after another. */
.js [data-slider] .slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateX(calc(var(--dir, 1) * 64px)); transition: opacity .45s ease, transform .8s var(--ease), visibility 0s .8s; }
.js [data-slider] .slide.out { transform: translateX(calc(var(--dir, 1) * -64px)); }
.js [data-slider] .slide.on { visibility: visible; opacity: 1; transform: none; transition: opacity .6s ease .12s, transform .8s var(--ease) .12s; }
.js [data-slider] .slide-main > *, .js [data-slider] .slide-side > * { transition: opacity .6s ease, transform .8s var(--ease); }
.js [data-slider] .slide:not(.on) .slide-main > *, .js [data-slider] .slide:not(.on) .slide-side > * { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)); }
.js [data-slider] .slide.on .slide-main > :nth-child(1) { transition-delay: .15s; }
.js [data-slider] .slide.on .slide-main > :nth-child(2) { transition-delay: .22s; }
.js [data-slider] .slide.on .slide-main > :nth-child(3) { transition-delay: .29s; }
.js [data-slider] .slide.on .slide-main > :nth-child(4), .js [data-slider] .slide.on .slide-main > :nth-child(5) { transition-delay: .36s; }
.js [data-slider] .slide.on .slide-main > :nth-child(n+6) { transition-delay: .43s; }
.js [data-slider] .slide.on .slide-side > :nth-child(1) { transition-delay: .3s; }
.js [data-slider] .slide.on .slide-side > :nth-child(2) { transition-delay: .38s; }
.js [data-slider] .slide.on .slide-side > :nth-child(n+3) { transition-delay: .46s; }
.js [data-slider] .slides { overflow: hidden; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }

/* Salary teaser */
.calc-in { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 88px; }
.calc-copy { flex: 1 1 420px; min-width: 0; }
.calc-copy .lead { margin-top: 24px; max-width: 540px; color: var(--ink); }
.calc-n { margin-top: 32px; font-size: 34px; line-height: 1.15; color: var(--accent); }
.calc-list { margin-top: 8px; color: var(--muted); font-size: 15px; }
.calc-go { margin-top: 36px; }
.calc-card { flex: 1 1 480px; min-width: 0; max-width: 600px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 16px 40px rgba(15, 90, 60, .08); }
.calc-card .h3 { margin-bottom: 20px; }
.calc-card .chips + .chips { margin-top: 14px; }
.calc-out { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.calc-range { font-size: clamp(40px, 3.9vw, 56px); line-height: 1; white-space: nowrap; }
.ladder { display: grid; gap: 6px; margin-top: 20px; }
.ladder button { display: grid; grid-template-columns: 64px minmax(0, 1fr) 112px; align-items: center; gap: 16px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; font-size: 15px; color: var(--muted); text-align: left; transition: background-color .2s ease, color .2s ease; }
.ladder button:hover { background: var(--stone); }
.ladder button.on { background: var(--soft); color: var(--ink); }
.ladder .track { position: relative; height: 10px; border-radius: 999px; background: rgba(27, 33, 30, .08); }
.ladder .fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: #9db9aa; transition: left .45s var(--ease), width .45s var(--ease); }
.ladder button.on .fill { background: var(--accent); }
.ladder .val { text-align: right; white-space: nowrap; }
.ladder button.on .val { font-weight: 500; }
.note { margin-top: 28px; color: var(--muted); font-size: 15px; line-height: 1.45; }

/* Team */
.team-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px 64px; align-items: center; }
.team .h2 .muted { color: var(--muted); }
.team .lead { max-width: 460px; color: var(--ink); }
.jobs { display: flex; flex-wrap: wrap; gap: 16px 40px; margin-top: 24px; }
.jobs-co { display: block; font-size: 24px; line-height: 1.25; }
.jobs-role { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; }
.team-more { margin-top: 28px; }
.team-people { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.team-stage { position: relative; width: 640px; max-width: 100%; height: 380px; overflow: hidden; }
.orb { position: absolute; left: var(--x, 0); top: var(--y, 0); z-index: var(--z, 1); width: var(--s, 72px); height: var(--s, 72px); padding: 0; overflow: hidden; border: 0; border-radius: 50%; background: var(--soft); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); filter: blur(var(--b, 0)); opacity: var(--o, 1); transition: left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .6s var(--ease), filter .6s ease, opacity .6s ease; }
.orb img { width: 100%; height: 100%; object-fit: cover; }
.orb.founder { box-shadow: 0 0 0 1.5px var(--accent), 0 10px 30px rgba(0, 0, 0, .08); }
/* Without JavaScript: a simple row of photos */
html:not(.js) .team-stage { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; height: auto; overflow: visible; }
html:not(.js) .orb { position: static; width: 96px; height: 96px; }
html:not(.js) .team-caption, html:not(.js) .team-nav { display: none; }
.team-caption { text-align: center; }
.team-name { margin-top: 6px; font-weight: 500; }
.team-spec { margin: 2px 0 14px; color: var(--muted); font-size: 15px; }
.team-nav { display: flex; gap: 10px; }
@media (max-width: 1080px) { .team-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 701px) and (max-width: 1080px) {
  .team-copy { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 56px; align-items: start; }
  .team-copy > .h2 { grid-column: 1 / -1; }
  .team-copy > .lead { grid-column: 1; margin: 0; max-width: none; }
  .team-copy > .jobs { grid-column: 2; grid-row: 2 / span 2; flex-direction: column; margin: 4px 0 0; }
  .team-copy > .team-more { grid-column: 1; margin: 0; }
}
@media (max-width: 700px) {
  .team-stage { width: 100%; height: 240px; }
  .orb { left: calc(50% + var(--mx, 0px) - var(--ms, 96px) / 2); top: var(--my, 68px); width: var(--ms, 96px); height: var(--ms, 96px); filter: blur(var(--mb, 0)); opacity: var(--mo, 1); }
}

/* 8 Cards and blog ------------------------------------------------------------------ */

.card { display: flex; flex-direction: column; gap: 20px; color: inherit; text-decoration: none; }
.card-cv { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--soft); }
.card-cv img { width: 100%; height: 100%; object-fit: cover; transform-origin: 100% 100%; transition: transform .45s var(--ease); }
.card:hover .card-cv img, .card:focus-visible .card-cv img { transform: scale(1.06); }
.card-body { display: block; }
.card-meta { display: block; color: var(--muted); font-size: 15px; }
.card-t { display: block; margin-top: 8px; font-size: 24px; line-height: 1.25; transition: color .2s ease; }
.card-t-l { margin-top: 10px; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; }
.card-ex { display: block; margin-top: 16px; color: var(--muted); }
.card:hover .card-t, .card:focus-visible .card-t { color: var(--accent); }
.card-dark .card-meta { color: var(--dim); }
.card-dark:hover .card-t, .card-dark:focus-visible .card-t { color: var(--mint); }
.card-dark .card-cv::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
.cover-ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px; background: var(--soft); }
.cover-ph span { font-family: var(--serif); font-size: 24px; color: var(--accent); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.green .cards3 { gap: 32px; }
.card-feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 32px; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.grid2-top { margin-top: 0; padding-top: 0; border-top: 0; }

/* Home: blog teaser */
.bt { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; }
.bt-list { align-self: start; }
.bt-row { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); }
.bt-row:last-child { border-bottom: 1px solid var(--line); }
.bt-main .card-t-l { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.bt-main .card-ex { max-width: 560px; margin-top: 12px; }
.bt-row .card-cv { border-radius: 12px; }

.pager { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); }
.pager ul { display: flex; justify-content: center; align-items: center; gap: 8px; }
.pager a, .pager span.pg-cur, .pager .pg-nav, .pager .pg-dots { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; font-size: 15px; text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.pager a:hover, .pager a:focus-visible { border-color: var(--accent); color: var(--accent); }
.pager .pg-cur { background: var(--ink); color: #fff; }
.pager .pg-nav { padding: 0 16px; border-color: var(--line); }
.pager .off { color: var(--muted); opacity: .5; }

@media (max-width: 960px) {
  .cards3, .grid2, .card-feat, .bt { grid-template-columns: 1fr; }
  .card-feat { gap: 24px; }
  .grid2 { gap: 40px; }
  .bt-row { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 20px 0; }
  .pager .lbl { display: none; }
  .pager .pg-nav { width: 44px; padding: 0; }
}

/* 9 Post and page ------------------------------------------------------------------- */

.band-post .band-in { padding-bottom: clamp(56px, 6vw, 80px); }
.band-post.has-cover .band-in { padding-bottom: 200px; }
.band-post .lift { max-width: 1000px; }
.back { margin-bottom: 28px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; color: var(--dim); font-size: 15px; }
.post-body { padding-bottom: var(--sec); }
.post-cover { position: relative; aspect-ratio: 2.1 / 1; margin-top: -140px; overflow: hidden; border-radius: 24px; background: var(--soft); box-shadow: 0 24px 64px rgba(12, 63, 43, .18); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body .reading { margin-top: 80px; }
.band-post:not(.has-cover) + .post-body .reading { margin-top: clamp(56px, 6vw, 80px); }

.reading { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: space-between; gap: 48px 80px; }
.reading.no-toc { grid-template-columns: minmax(0, 720px); justify-content: end; }
.reading > * { min-width: 0; }
.toc { position: sticky; top: 32px; align-self: start; }
.toc-title { margin-bottom: 12px; color: var(--muted); font-size: 15px; }
.toc ol { display: grid; gap: 10px; }
.toc .lk { display: inline; min-height: 0; font-size: 15px; line-height: 1.4; }
.toc .lk.on { color: var(--ink); }
.toc .lk.on .lt { background-size: 100% 1px; background-image: linear-gradient(var(--mint), var(--mint)); }

.prose { font-size: 19px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 56px; font-size: 34px; line-height: 1.2; scroll-margin-top: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; font-size: 24px; line-height: 1.3; }
.prose h2 + *, .prose h3 + * { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { padding-left: 6px; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--muted); }
.prose code { padding: 1px 8px; border-radius: 6px; background: var(--stone); font: inherit; }
.prose pre { padding: 20px 24px; border-radius: 16px; background: var(--deep); color: var(--mint); font: inherit; white-space: pre-wrap; }
.prose pre code { padding: 0; background: none; }
.prose blockquote { padding-left: 24px; border-left: 2px solid var(--mint); font-family: var(--serif); font-size: 24px; line-height: 1.35; }
.prose img { border-radius: 16px; }
.prose figure figcaption, .prose .wp-caption-text { margin-top: 8px; color: var(--muted); font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 17px; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .alignleft { float: left; margin: 0 24px 16px 0; }
.prose .alignright { float: right; margin: 0 0 16px 24px; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.page-text { max-width: 720px; margin-top: 56px; }
.role-text { max-width: 720px; margin-top: 40px; }

.more { overflow: hidden; }
.more .wrap { padding-top: var(--sec); padding-bottom: var(--sec); }
.nf { font-family: var(--serif); font-size: clamp(64px, 9vw, 108px); line-height: 1; color: var(--mint); }
.band-404 .h1 { margin-top: 20px; }
.band-404 .band-in { padding-top: clamp(72px, 9vw, 136px); padding-bottom: clamp(72px, 9vw, 136px); }

@media (max-width: 960px) {
  .reading, .reading.no-toc { grid-template-columns: 1fr; }
  .toc { display: none; }
  .post-cover { aspect-ratio: 4 / 3; margin-top: -80px; }
  .band-post.has-cover .band-in { padding-bottom: 120px; }
  .post-body .reading { margin-top: 48px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 24px; }
  .acc-body { padding-right: 0; }
}

/* 10 Roles -------------------------------------------------------------------------- */

.role-list { display: grid; gap: 2px 48px; padding: 0 0 28px; }
.role-list a, .role-list span { display: inline-flex; align-items: center; min-height: 40px; }
.role-list a { color: var(--accent); font-weight: 500; text-decoration: none; }
.roles-note { margin-top: 40px; color: var(--muted); }
.roles-note .lk { min-height: 44px; }

.role-hero { padding-bottom: clamp(64px, 7vw, 96px); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 15px; }
.crumb a { color: var(--ink); }
.role-head { display: flex; align-items: center; gap: 48px; }
.role-tile { flex: none; width: 168px; height: 168px; }
.role-icon { width: 100%; height: 100%; }
.role-head .lead { margin-top: 18px; }
.stack-line { max-width: 1100px; margin-top: 32px; font-size: clamp(28px, 3vw, 40px); line-height: 1.3; }
.stack-line .dot { color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 48px; }
.facts dt { margin-bottom: 6px; color: var(--muted); font-size: 15px; font-weight: 500; }
.facts dd { font-size: 24px; line-height: 1.35; }

.steps-h { margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.steps li { padding-top: 24px; border-top: 1px solid var(--line); }
.step-n { font-size: 34px; line-height: 1; color: var(--accent); }
.steps .h3 { margin-top: 20px; }
.steps .muted { margin-top: 10px; }

@media (max-width: 1080px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .role-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .facts, .steps { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
}

/* 11 About -------------------------------------------------------------------------- */

.story { position: relative; background: #fff; }
.story-stage { position: relative; overflow: hidden; padding: clamp(56px, 6vw, 96px) 0; }
.story-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px 80px; align-items: center; }
.story .lead { margin-top: 16px; }
.odo { display: flex; margin-top: 24px; font-size: clamp(150px, 19vw, 290px); line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.odo .col { display: inline-block; height: 1em; overflow: hidden; }
.odo .strip { display: flex; flex-direction: column; will-change: transform; }
.odo .strip span { display: block; height: 1em; line-height: 1; }
.chapters { display: grid; gap: 48px; }
.kick { color: var(--accent); font-size: 15px; font-weight: 500; }
.chapters .h2 { margin-top: 8px; }
.chapters .lead { margin-top: 14px; max-width: 560px; }
.story-prog { position: relative; margin-top: 48px; }
.story-prog .bar { position: relative; height: 2px; background: var(--line); }
.story-prog .fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(1); }
.ticks { display: flex; justify-content: space-between; margin-top: 14px; color: var(--muted); font-size: 15px; font-weight: 500; }
.ticks li.on { color: var(--accent); }
.story-blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.story-blob.a { right: -140px; top: -120px; width: 560px; height: 560px; background: var(--soft); }
.story-blob.b { left: 28%; bottom: -200px; width: 420px; height: 420px; background: rgba(143, 211, 174, .3); }
/* Scroll story (JavaScript sets .is-scroll and --p from 0 to 1) */
.story.is-scroll { height: 360vh; }
.story.is-scroll .story-stage { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 0; }
.story.is-scroll .chapters { position: relative; display: block; height: 380px; }
.story.is-scroll .chapters li { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateY(56px); transition: opacity .35s ease, transform .35s ease; }
.story.is-scroll .chapters li.on { opacity: 1; transform: none; }
.story.is-scroll .chapters li.past { transform: translateY(-56px); }
.story.is-scroll .story-prog .fill { transform: scaleX(var(--p, 0)); }
.story.is-scroll .story-blob.a { transform: translate(calc(var(--p, 0) * -70%), calc(-20% + var(--p, 0) * 100%)); }
.story.is-scroll .story-blob.b { transform: translate(calc(-30% + var(--p, 0) * 110%), calc(40% - var(--p, 0) * 160%)); }

.quote { max-width: 980px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; }
.quote-by { margin-top: 32px; color: var(--muted); }
.quote-by span { display: block; color: var(--ink); font-weight: 500; }
.do { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px 64px; }
.do-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.do-items article { padding-top: 28px; border-top: 1px solid var(--line); }
.do-items .muted { margin-top: 10px; max-width: 520px; }
.do-go { margin-top: 12px; }
@media (max-width: 860px) {
  .story-in, .do, .do-items { grid-template-columns: 1fr; }
  .odo { margin-top: 16px; font-size: 112px; }
  .story.is-scroll .story-stage { justify-content: flex-start; padding-top: 32px; }
  .story.is-scroll .story-in { gap: 12px; }
  .story.is-scroll .chapters { height: 370px; }
  .story-prog { margin-top: 8px; }
  .chapters .h2 { font-size: 34px; }
}

/* 12 Salaries ----------------------------------------------------------------------- */

.salary-in { padding-top: clamp(56px, 6vw, 96px); padding-bottom: var(--sec); }
.salary-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.salary .chip-btn { min-height: 40px; padding: 0 16px; border-color: var(--hair); background: transparent; color: #fff; }
.salary .chip-btn:hover { border-color: var(--mint); color: #fff; }
.salary .chip-btn.on:hover { color: var(--deep); }
.salary .chip-btn.on { background: #fff; border-color: #fff; color: var(--deep); }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: 15px; color: var(--dim); transition: background-color .2s ease, color .2s ease; }
.seg button:hover { color: #fff; }
.seg button.on { background: #fff; color: var(--deep); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.salary-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px 64px; align-items: start; margin-top: 56px; }
.salary-res { position: sticky; top: 24px; }
.big { font-size: clamp(64px, 6.6vw, 104px); line-height: .95; letter-spacing: -.03em; color: var(--mint); white-space: nowrap; }
.big .per { margin-left: 10px; font-size: .32em; letter-spacing: 0; color: var(--dim); }
.salary-text { margin-top: 18px; max-width: 420px; font-size: 19px; line-height: 1.5; }
.salary-vs { margin-top: 20px; color: var(--mint); font-weight: 500; }
.salary-src { margin-top: 32px; max-width: 380px; color: var(--dim); font-size: 15px; line-height: 1.5; }
.rank { display: grid; gap: 6px; }
.rank-group { display: grid; gap: 6px; }
.rank-group.ee { position: relative; margin-top: 6px; padding-left: 52px; margin-left: -52px; }
.bracket { position: absolute; left: 30px; top: 10px; bottom: 10px; width: 8px; border: 2px solid var(--mint); border-right: 0; }
.bracket span { position: absolute; left: -30px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font-size: 15px; font-weight: 500; color: var(--mint); white-space: nowrap; }
.rank-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: #fff; text-align: left; }
.rank-row .n { white-space: nowrap; }
.rank-row.on .n { font-weight: 500; }
.rank-row .t { position: relative; height: 32px; }
.rank-row .b { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center; justify-content: flex-end; min-width: 64px; padding-right: 12px; border-radius: 8px; background: rgba(255, 255, 255, .14); font-size: 15px; font-variant-numeric: tabular-nums; transition: width .5s var(--ease), background-color .2s ease; }
.rank-row:hover .b { background: rgba(255, 255, 255, .24); }
.rank-row.on .b { background: var(--mint); color: var(--deep); font-weight: 500; }
@media (max-width: 960px) {
  .salary-grid { grid-template-columns: 1fr; }
  .salary-res { position: static; }
  .rank-row { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
  .rank { padding-left: 40px; }
  .rank-group.ee { padding-left: 40px; margin-left: -40px; }
  .bracket { left: 18px; }
  .bracket span { left: -22px; }
}

/* 13 Dialog ------------------------------------------------------------------------- */

.dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(12, 63, 43, .28); }
.dialog::backdrop { background: rgba(12, 63, 43, .55); }
.dialog:target:not([open]) { display: block; position: fixed; inset: 16px; margin: auto; z-index: 60; overflow: auto; }
.role-form { padding: clamp(24px, 4vw, 40px); }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-close { text-decoration: none; }
.dialog-sub { margin-top: 10px; color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; margin-top: 28px; }
.field-wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px; transition: border-color .2s ease; }
.field textarea { resize: vertical; min-height: 112px; }
.field input:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 90, 60, .15); }
.field.err input, .field.err textarea { border-color: #b3261e; }
.field-msg { margin-top: 6px; color: #b3261e; font-size: 15px; }
.hp { position: absolute; left: -9999px; }
.form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.form-status { color: var(--muted); }
.dialog[data-state="sent"] .fields, .dialog[data-state="sent"] .form-end .btn { display: none; }
.dialog[data-state="sent"] .form-status { color: var(--accent); font-size: 19px; }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } }

/* 15 Cases: ledger, case page, quote source ------------------------------------------- */

/* Quote source in two lines: company, then the Clutch rating as a link. */
.qb-n { display: block; }
.qb-l { position: relative; z-index: 1; display: inline-block; margin-top: 2px; padding: 4px 0; color: var(--accent); font-weight: 500; }
.qb-l.w { color: #fff; }
.qb-l.w .lt { background-image: linear-gradient(var(--mint), var(--mint)); }

/* /cases/: open rows split by hairlines; the whole row opens the case. */
.ledger-in { padding-top: clamp(56px, 6vw, 96px); padding-bottom: clamp(56px, 6vw, 96px); }
.ledger { display: grid; margin-top: clamp(40px, 5vw, 64px); }
.lr { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(min-content, 2fr); gap: 32px 48px; align-items: start; margin: 0 calc(-1 * clamp(20px, 2.4vw, 32px)); padding: clamp(36px, 4vw, 56px) clamp(20px, 2.4vw, 32px); border-radius: 24px; transition: background-color .3s ease; }
.lr + .lr::before { content: ""; position: absolute; left: clamp(20px, 2.4vw, 32px); right: clamp(20px, 2.4vw, 32px); top: 0; height: 1px; background: var(--hair); transition: opacity .3s ease; }
.lr:hover { background: rgba(255, 255, 255, .06); }
.lr:hover::before, .lr:hover + .lr::before { opacity: 0; }
.lr-t { margin-top: 20px; font-family: var(--serif); font-size: 34px; line-height: 1.15; font-weight: 400; letter-spacing: -.015em; }
.lr-ab { margin-top: 10px; color: var(--dim); }
.lr .tags { margin-top: 12px; }
.lr-tm { text-align: right; }
.lr-tm b { display: block; font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; letter-spacing: -.015em; color: var(--mint); white-space: nowrap; }
.lr-tm > span { display: block; margin-top: 8px; color: var(--dim); font-size: 15px; }
.lr-go { margin-top: 16px; }
.lr-go::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.lr:hover .lr-go .lt { background-size: 100% 1px; }
.lr:hover .lr-go svg { transform: translateX(3px); }
@media (max-width: 960px) {
  .lr { grid-template-columns: 1fr; }
  .lr-tm { text-align: left; }
  .lr-tm b { font-size: 48px; }
}

/* One case: facts in the green band; story left, what we searched for and the quote right. */
.cs-title { margin-top: 24px; }
.cs-facts { display: flex; flex-wrap: wrap; gap: 24px 56px; margin-top: 48px; }
.cs-facts dt { color: var(--dim); font-size: 15px; }
.cs-facts dd { margin-top: 8px; font-family: var(--serif); font-size: 34px; line-height: 1.1; letter-spacing: -.015em; }
.cs-facts dd.big { color: var(--mint); }
.green .fn-btn, .band .fn-btn { color: var(--mint); font-size: 15px; }
.green .fn-tip, .band .fn-tip { background: #fff; color: var(--ink); }
.fn.l .fn-tip { left: -8px; transform: translate(0, -4px); }
.fn.l:hover .fn-tip, .fn.l .fn-btn:focus-visible + .fn-tip, .fn.l.open .fn-tip { transform: translate(0, 0); }
.cs-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 80px; align-items: start; }
.cs-sec + .cs-sec { margin-top: 56px; }
.cs-sec .kick { margin-bottom: 12px; }
.cs-lead { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.3; letter-spacing: -.015em; text-wrap: pretty; }
.cs-text { max-width: 680px; font-size: 19px; line-height: 1.65; }
.cs-lead > * + *, .cs-text > * + * { margin-top: 16px; }
.cs-side { display: grid; gap: 20px; }
.cs-card { padding: 28px; border-radius: 24px; background: var(--soft); }
.tags-l li { border: 0; background: #fff; color: var(--ink); }
.cs-q { margin: 0; padding: 4px 0 4px 28px; border-left: 2px solid var(--accent); }
.cs-q blockquote { font-family: var(--serif); font-size: 24px; line-height: 1.3; color: var(--accent); text-wrap: pretty; }
.cs-q figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) {
  .cs-grid { grid-template-columns: 1fr; }
  .cs-text { font-size: 17px; line-height: 1.6; }
}
@media (max-width: 520px) {
  .cs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .cs-facts dd { font-size: 24px; }
  .fn.l .fn-tip { width: 200px; white-space: normal; }
}

/* 16 Market data and reports ------------------------------------------------------------ */

.card-cv > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-cv .bl-zoom { transform-box: view-box; transform-origin: 100% 100%; transition: transform .45s var(--ease); }
.card:hover .bl-zoom, .card:focus-visible .bl-zoom { transform: scale(1.06); }
.rp-feat { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.rp-latest { display: block; color: var(--accent); font-size: 15px; font-weight: 500; }
.rp-go { margin-top: 16px; }
.rp-feat:hover .rp-go .lt { background-size: 100% 1px; }
.rp-head { align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.chip-btn:hover { color: var(--accent); }
.chip-btn.on:hover { color: #fff; }
.lead-go { margin-top: 24px; }
.band-rp.has-kf .band-in { padding-bottom: 160px; }
.kf { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: -120px; margin-bottom: 80px; }
.kf > div { padding: clamp(24px, 3vw, 36px); border-radius: 24px; background: #fff; box-shadow: 0 24px 64px rgba(12, 63, 43, .14); }
.kf b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 4.6vw, 64px); line-height: 1; letter-spacing: -.015em; color: var(--accent); white-space: nowrap; }
.kf span { display: block; margin-top: 12px; color: var(--muted); }
.band-rp:not(.has-kf) + .post-body .reading { margin-top: clamp(56px, 6vw, 80px); }
.rp-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 40px; padding: 28px; border-radius: 24px; background: var(--stone); }
.rp-dl p { flex: 1 1 280px; }
@media (max-width: 960px) {
  .rp-feat { grid-template-columns: 1fr; gap: 28px; }
  .kf { grid-template-columns: 1fr; margin-top: -80px; margin-bottom: 48px; }
  .band-rp.has-kf .band-in { padding-bottom: 120px; }
}

/* 17 Tables in posts and reports -------------------------------------------------------- */
/* Numbers right-aligned in tabular figures, no word breaks, rows grouped by label rows, never by colour.
   On phones the table scrolls sideways inside its frame with the first column pinned. */

.tw { margin: 28px 0; }
.prose .tw + * { margin-top: 20px; }
.tw .sc { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table.tbl, table.tbl { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.tbl th, .tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; text-align: left; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl thead th { color: var(--muted); font-size: 15px; font-weight: 500; }
.tbl tbody th { font-weight: 400; }
.tbl tr.grp th { padding: 28px 0 8px; text-align: left; color: var(--muted); font-size: 15px; font-weight: 500; border-bottom: 1px solid var(--ink); }
.tbl tbody tr.grp:first-child th { padding-top: 12px; }
.tbl caption { padding-bottom: 12px; color: var(--muted); font-size: 15px; text-align: left; }
.tw-hint { display: none; margin-top: 10px; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) {
  .tbl { min-width: 560px; }
  .prose table.tbl { font-size: 15px; }
  .tbl th:first-child, .tbl td:first-child { position: sticky; left: 0; z-index: 1; padding-right: 12px; background: #fff; box-shadow: 8px 0 8px -8px rgba(27, 33, 30, .18); }
  .tbl tr.grp th { position: static; box-shadow: none; }
  .tbl tr.grp th span { position: sticky; left: 0; display: inline-block; }
  .tw-hint { display: block; }
}

/* 18 Figures in posts ([trs_figure]) ------------------------------------------------------ */

.prose .fig { margin: 36px 0; padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--stone); font-size: 15px; line-height: 1.45; }
.fig-h { font-family: var(--serif); font-size: 24px; line-height: 1.25; letter-spacing: -.015em; }
.prose .fig figcaption { margin-top: 20px; }
.fig-bars { display: grid; gap: 10px; margin-top: 20px; }
.fig-r { display: grid; grid-template-columns: minmax(96px, 30%) minmax(0, 1fr); gap: 16px; align-items: center; }
.fig-l { color: var(--muted); }
.fig-t { display: flex; align-items: center; gap: 2px; min-height: 28px; }
.fig-b { display: block; height: 28px; border-radius: 4px 6px 6px 4px; background: var(--accent); }
.fig-b + .fig-b { border-radius: 0 6px 6px 0; }
.fig-t .fig-b:first-child:not(:last-of-type) { border-radius: 4px 0 0 4px; }
.fig-soft { background: var(--soft); box-shadow: inset 0 0 0 1px var(--accent); }
.fig-v { flex: none; margin-left: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig-g { margin-top: 24px; font-weight: 500; }
.fig-g + .fig-bars { margin-top: 10px; }
.fig-h + .fig-g { margin-top: 20px; }
.fig-cols { display: flex; align-items: flex-end; gap: clamp(16px, 4vw, 48px); height: 240px; margin-top: 24px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.fig-c { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; max-width: 120px; }
.fig-c .fig-b { width: 100%; border-radius: 6px 6px 2px 2px; }
.fig-c .fig-v { margin: 0 0 8px; }
.fig-cl { display: flex; gap: clamp(16px, 4vw, 48px); margin-top: 10px; }
.fig-cl .fig-l { flex: 1 1 0; max-width: 120px; text-align: center; }
.fig-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 36%); gap: 24px 40px; align-items: center; }
.fig-stat .fig-n { display: block; font-family: var(--serif); font-size: 56px; line-height: 1; letter-spacing: -.015em; color: var(--accent); }
.fig-stat > span:last-child { display: block; margin-top: 8px; color: var(--muted); }
.fig-ui { display: grid; gap: 16px; margin-top: 20px; }
.fig-form { display: grid; gap: 10px; padding: 20px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.fig-f { display: grid; grid-template-columns: minmax(88px, 28%) minmax(0, 1fr); gap: 12px; align-items: center; }
.fig-fl { color: var(--muted); }
.fig-fv { min-height: 40px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.fig-chips, .fig-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.fig-chips span, .fig-sort span + span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.fig-chips .on, .fig-sort .on { background: var(--accent); box-shadow: none; color: #fff; }
.fig-sort { align-items: center; }
.fig-sort span:first-child { margin-right: 6px; color: var(--muted); }
.fig-adv { display: grid; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.fig-advl { color: var(--accent); font-weight: 500; }
.fig-q { padding: 16px 20px; border-radius: 16px; background: var(--deep); color: #fff; }
.fig-ql { display: block; margin-bottom: 6px; color: var(--dim); }
.prose .fig-q code { padding: 0; background: none; color: var(--mint); overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .fig-split { grid-template-columns: 1fr; }
  .fig-r { grid-template-columns: 1fr; gap: 6px; }
  .fig-f { grid-template-columns: 1fr; gap: 6px; }
  .fig-cols { height: 200px; }
}

/* 19 Long text on phones ----------------------------------------------------------------- */
/* Article style: 19/1.7 with 20px between paragraphs; on phones 17/1.6 with 16px. Links in text never push lines apart. */
.prose a { display: inline; min-height: 0; }
@media (max-width: 960px) {
  .prose { line-height: 1.6; }
  .prose > * + * { margin-top: 16px; }
}
/* Footnote tooltips stay inside a 320px screen. */
@media (max-width: 520px) {
  .fn:not(.l) .fn-tip { left: auto; right: -8px; transform: translate(0, -4px); }
  .fn:not(.l):hover .fn-tip, .fn:not(.l) .fn-btn:focus-visible + .fn-tip, .fn:not(.l).open .fn-tip { transform: translate(0, 0); }
}

/* 14 Motion ------------------------------------------------------------------------- */

/* Blog post: the band title lifts away while you scroll, "More from the blog" cards ride in from the right. */
.js [data-lift] .lift { transform: translateY(calc(var(--p, 0) * -120px)); opacity: calc(1 - var(--p, 0) * .85); }
.js [data-ride] > * { opacity: 0; transform: translateX(var(--from, 30%)); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.js [data-ride] > :nth-child(2) { --from: 60%; transition-delay: .08s; }
.js [data-ride] > :nth-child(3) { --from: 90%; transition-delay: .16s; }
.js [data-ride].in > * { opacity: 1; transform: none; }
@media (max-width: 960px) { .js [data-ride] > * { --from: 30% !important; transition-delay: 0s !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-ride] > * { opacity: 1; transform: none; }
  .js [data-lift] .lift { transform: none; opacity: 1; }
}

/* 20 Cookie banner (WebToffee GDPR Cookie Consent) --------------------------------------
   Colours come from the banner settings; shape and type follow the site: 16px corners, pill buttons, 15px text. */
.wcc-consent-container .wcc-consent-bar, .wcc-modal .wcc-preference-center { border-radius: 16px !important; border-color: var(--line) !important; box-shadow: 0 12px 40px rgba(27, 33, 30, .14) !important; }
.wcc-consent-container .wcc-consent-bar { padding: 24px !important; }
.wcc-notice .wcc-title, .wcc-preference-title { font-family: var(--serif) !important; font-size: 24px !important; font-weight: 400 !important; line-height: 1.25 !important; }
.wcc-notice-des, .wcc-notice-des p, .wcc-preference-content-wrapper, .wcc-preference-content-wrapper p { font-size: 15px !important; line-height: 1.55 !important; }
.wcc-btn { min-height: 44px !important; padding: 0 20px !important; border-radius: 999px !important; font-size: 15px !important; font-weight: 500 !important; line-height: 1 !important; transition: background-color .2s ease, border-color .2s ease, color .2s ease !important; }
.wcc-btn:hover { opacity: 1 !important; }
.wcc-btn-accept:hover { background-color: var(--deep) !important; border-color: var(--deep) !important; }
.wcc-btn-reject:hover, .wcc-btn-customize:hover, .wcc-btn-preferences:hover { border-color: var(--accent) !important; color: var(--accent) !important; }
.wcc-btn:focus-visible, .wcc-btn-revisit-wrapper:focus-within { outline: 2px solid var(--accent) !important; outline-offset: 3px !important; }
.wcc-btn-revisit-wrapper { border-radius: 50% !important; box-shadow: 0 6px 20px rgba(27, 33, 30, .16) !important; }
.wcc-consent-container .wcc-policy, .wcc-modal .wcc-policy { color: var(--accent) !important; font-weight: 500 !important; text-decoration: none !important; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 1px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .3s ease; }
.wcc-policy:hover, .wcc-policy:focus-visible { background-size: 100% 1px; }
.wcc-accordion-btn, .wcc-accordion-title { font-weight: 500 !important; }
.wcc-accordion-btn, .wcc-accordion-title { font-size: 17px !important; color: var(--ink) !important; }
.wcc-always-active { color: var(--accent) !important; font-weight: 500 !important; }
.wcc-modal .wcc-preference-center p, .wcc-accordion-header-des, .wcc-accordion-header-des p { color: var(--muted) !important; font-size: 15px !important; line-height: 1.55 !important; }
