/* RAiN Chartered Accountants: brand system.
   Follows the RAiN Brand Guide (11 July 2024): the six brand colours only, purple
   grounds, Poppins with Galada as the accent script, pill-shaped buttons and the
   torn "rain blocks" from the logo at 16% opacity on the edges (brand layer at the
   end of this file). The token names predate the rebrand: "navy" means the RAiN
   purples and "amber" the primary button, now Turquoise Petrichor. */

:root {
  --paper: #FFFFFF;
  --mist: #E9E8F5;            /* lilac ground, a tint of #7C7CBB */
  --rule: #D9D8EB;
  --navy-900: #291E54;        /* brand dark purple: headings and ink */
  --navy-700: #291E54;        /* brand dark purple: dark grounds */
  --navy-500: #5B58A1;        /* Pantone 7669 C: links and accents on light grounds */
  --deep: #291E54;            /* footer and night scenes */
  --slate: #403A66;
  --muted: #5C5880;
  --rain: #5B58A1;            /* accent on light grounds */
  --rain-on-navy: #65CADD;    /* Turquoise Petrichor, Pantone 0821 C */
  --on-navy: #E1DEF2;
  --sky: #6FA4D6;             /* Pantone 7453 C */
  --orchid: #A85AA3;          /* Pantone 7655 C */
  --violet: #5B58A1;          /* Pantone 7669 C: mid-purple grounds */
  --grape: #7C7CBB;           /* Pantone 272 C */
  --stripe: linear-gradient(90deg, var(--rain-on-navy) 0 25%, var(--sky) 25% 50%, var(--violet) 50% 75%, var(--orchid) 75%);
  --amber: #65CADD;           /* primary button: Turquoise Petrichor */
  --amber-h: #8AD7E5;
  --script: "Galada", "Poppins", cursive;
  --serif: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Poppins", system-ui, sans-serif;
  --frame: 1240px;
  --side: clamp(16px, 4vw, 64px);
  --navh: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);       /* strong ease-out for UI (Emil Kowalski) */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);  /* on-screen movement */
}

/* ------------------------------------------------------------ base */
::selection { background: var(--rain-on-navy); color: var(--deep); }
html { scrollbar-color: var(--violet) var(--mist); accent-color: var(--navy-700); caret-color: var(--navy-500); }
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--slate); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--frame); margin: 0 auto; padding: 0 var(--side); }
[id] { scroll-margin-top: calc(var(--navh) + 64px); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); font-size: 15px; }

h2 { margin: 0; font: 600 clamp(29px, 4.2vw, 50px)/1.05 var(--serif); letter-spacing: -0.02em; color: var(--navy-900); text-wrap: balance; }
h3 { margin: 0; color: var(--navy-900); }
p { margin: 0 0 16px; }

/* review markers */
.rv { background: #F5E663; color: #1a1600; font: 500 12px/1.3 var(--sans); padding: 1px 6px; border-radius: 3px; vertical-align: 2px; letter-spacing: 0; text-transform: none; font-style: normal; white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
body.hide-review .rv { display: none; }
.rv-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: #F5E663; color: #1a1600; border: 0; border-radius: 999px; padding: 10px 16px; font: 500 13px var(--sans); cursor: pointer; box-shadow: 0 6px 24px rgba(41, 30, 84, .2); }
.prop { display: inline-block; margin-left: 8px; font: 500 13px/1.4 var(--sans); color: var(--muted); border: 1px solid var(--rule); border-radius: 99px; padding: 1px 7px; vertical-align: 2px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.note { margin: 20px 0 0; }

/* buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent; font: 500 15px var(--sans); text-decoration: none; text-align: center; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-amber { background: var(--amber); color: var(--navy-900); }
.btn-amber:hover { background: var(--amber-h); }
.btn-line { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-line:hover { background: var(--navy-900); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, .5); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--navy-900); }
.btn-off { opacity: .55; cursor: not-allowed; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.textlink { font: 500 15px var(--sans); color: var(--navy-900); text-decoration: none; border-bottom: 1px solid var(--navy-900); padding-bottom: 2px; }
.textlink:hover { color: var(--navy-500); border-color: var(--navy-500); }
.textlink.light { color: #fff; border-color: rgba(255, 255, 255, .6); }
.textlink.light:hover { border-color: #fff; color: #fff; }

/* ------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.nav-bar { display: flex; align-items: stretch; gap: 36px; height: var(--navh); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-900); font: 600 20px var(--sans); letter-spacing: -.01em; flex: none; }
.brand img { display: block; width: auto; height: 42px; }
.foot-logo { display: block; width: auto; height: 51px; margin: 0 0 18px; }
.nav nav { display: flex; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.has-menu { display: flex; align-items: center; }
.nav-trigger { font: 500 14px var(--sans); color: var(--slate); background: none; border: 0; padding: 8px 12px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-trigger::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { color: var(--navy-900); }
.nav-trigger[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.nav-trigger[aria-current="true"] { color: var(--navy-900); box-shadow: inset 0 -2px 0 var(--navy-500); border-radius: 0; }
.menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 24px 48px rgba(41, 30, 84, .08); }
.has-menu.open .menu { display: block; }
.menu-inner { display: grid; grid-template-columns: 3fr 9fr; gap: 48px; padding-top: 36px; padding-bottom: 44px; }
.menu-title { font: 600 29px/1.1 var(--serif); color: var(--navy-900); margin: 0 0 18px; }
.menu-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-900); }
.menu-list.cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.menu-list a { display: block; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.menu-list a > span:first-child { display: block; font: 500 15px var(--sans); color: var(--navy-900); }
.menu-list a > span:last-child { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.menu-list a:hover > span:first-child, .menu-list a:focus-visible > span:first-child { color: var(--navy-500); text-decoration: underline; text-underline-offset: 3px; }
.nav-cta { margin-left: auto; align-self: center; }
.menu-btn { display: none; }
.mnav { border-top: 1px solid var(--rule); background: var(--paper); max-height: calc(100svh - var(--navh)); overflow-y: auto; }
.mnav ul { list-style: none; margin: 0; padding: 0; }
.mnav > .wrap { padding-top: 8px; padding-bottom: 24px; }
.mnav > .wrap > ul > li { border-bottom: 1px solid var(--rule); }
.mnav > .wrap > ul > li > a, .mnav summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font: 500 17px var(--sans); color: var(--navy-900); text-decoration: none; cursor: pointer; list-style: none; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: "+"; font-weight: 400; font-size: 20px; color: var(--muted); }
.mnav details[open] summary::after { content: "\2212"; }
.mnav details ul { padding: 0 0 12px 12px; }
.mnav details a { display: block; padding: 8px 0; color: var(--slate); text-decoration: none; font-size: 15px; }
.mnav .btn { margin-top: 20px; width: 100%; }

/* ------------------------------------------------------------ home: hero */
.hero { padding: clamp(72px, 12vh, 128px) 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 8fr 4fr; gap: 64px; align-items: end; }
.headlines { margin: 0; display: grid; align-items: start; font: 600 clamp(34px, min(5.4vw, 9vh), 72px)/1.02 var(--serif); letter-spacing: -0.022em; color: var(--navy-900); }
.headlines .opt { display: block; grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity .7s var(--ease), transform .7s var(--ease); text-wrap: balance; }
.headlines .opt.on { opacity: 1; transform: none; }
.picker { display: flex; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.hero-purpose { margin: 28px 0 0; font: 300 clamp(20px, 1.9vw, 26px)/1.35 var(--sans); color: rgba(255,255,255,.86); max-width: 30ch; }
.picker .lbl { font-size: 13px; color: var(--muted); margin-right: 6px; }
.picker button { font: 500 13px var(--sans); color: var(--slate); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; height: 32px; padding: 0 14px; cursor: pointer; position: relative; overflow: hidden; }
.picker button[aria-pressed="true"] { color: var(--navy-900); border-color: var(--navy-900); }
.picker button[data-opt][aria-pressed="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--navy-900); width: 0; animation: prog var(--dur, 6s) linear forwards; }
.picker.paused button::after { animation-play-state: paused; }
@keyframes prog { to { width: 100%; } }
.picker .pause { border-style: dashed; }
.hero-side p { margin: 0 0 28px; font-size: 18px; color: var(--slate); }

/* credentials row */

/* the shift */
.shift { padding: 160px 0 144px; }
.shift .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.shift p { margin: 0; font-size: 22px; line-height: 1.55; color: var(--slate); max-width: 52ch; }
.shift .stat-missing, .shift .stat { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* monsoon band: the file settles */
.settle { background: var(--navy-700); color: var(--on-navy); position: relative; height: 200vh; }
.settle__stage { position: sticky; top: var(--navh); height: calc(100svh - var(--navh)); display: flex; align-items: center; overflow: clip; }
.settle .wrap { display: grid; grid-template-columns: 6fr 6fr; gap: 64px; align-items: center; width: 100%; }
.settle h2 { color: #fff; font-size: clamp(30px, 3vw, 44px); }
.settle .intro { margin: 22px 0 32px; font-size: 18px; color: var(--on-navy); max-width: 46ch; }
.settle ol { list-style: none; margin: 0 0 36px; padding: 0; counter-reset: s; border-top: 1px solid rgba(255, 255, 255, .14); }
.settle li { counter-increment: s; display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: 16px; color: #fff; }
.settle li::before { content: counter(s); font: 400 13px/1.9 var(--mono); color: var(--rain-on-navy); width: 14px; }
.settle .adv { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.settle .adv li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--rain-on-navy); }
.eyebrow-l { margin: 0 0 14px; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--rain-on-navy); }
.settle .actions { gap: 24px; }
.sheet-wrap { position: relative; }
.sheet { background: #fff; color: var(--navy-900); border-radius: 4px; padding: 30px 32px 28px; box-shadow: 0 30px 80px rgba(16, 3, 56, .45);
  transform: rotate(calc((1 - var(--s)) * -4deg)) translate(calc((1 - var(--s)) * 40px), calc((1 - var(--s)) * 30px)) scale(calc(.9 + var(--s) * .1));
  transform-origin: 40% 60%; --s: 0; }
.sheet .lh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 14px; margin-bottom: 16px; }
.sheet .lh strong { font: 500 20px var(--serif); }
.sheet .lh span { font: 400 13px var(--mono); color: var(--muted); white-space: nowrap; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.sheet td { padding: 9px 0; border-bottom: 1px solid #ECEBF5; }
.sheet td.n, .sheet th.n { text-align: right; font-variant-numeric: tabular-nums; }
.sheet td.n { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.sheet .mark { background: rgba(252, 239, 217, calc(var(--hl, 0))); box-shadow: 0 0 0 1px rgba(232, 163, 61, calc(var(--hl, 0))); border-radius: 2px; padding: 1px 4px; }
.sheet .sig { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.sheet .sig b { color: var(--navy-900); font-weight: 500; }
.srccard { position: absolute; right: 0; top: calc(100% + 32px); width: min(260px, 48%); background: #F4F3FA; border: 1px solid var(--rule); border-radius: 6px; padding: 14px 16px; font-size: 13px; color: var(--navy-900); box-shadow: 0 16px 40px rgba(16, 3, 56, .35); opacity: var(--src, 0); transform: translateY(calc((1 - var(--src, 0)) * 10px)); }
.srccard code { display: block; font: 400 13px var(--mono); color: var(--muted); margin-bottom: 6px; word-break: break-all; }
.thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.thread path { fill: none; stroke: var(--rain-on-navy); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--th, 0)); }
.caption { max-width: 46%; margin: 32px 0 0; font: 300 italic 20px/1.4 var(--serif); color: #fff; opacity: var(--src, 0); }

/* practices (home + overview) */
.help { padding: 160px 0; }
.help .head, .head2 { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; margin-bottom: 64px; align-items: end; }
.help .head p, .head2 p { margin: 0; font-size: 20px; max-width: 46ch; }
.practices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.practice { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.practice:hover { border-color: #C9C7E0; box-shadow: 0 10px 30px -18px rgba(47, 33, 80, .35); }
.practice-pic { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-700); }
.practice-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.practice:hover .practice-pic img { transform: scale(1.03); }
.practice-body { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding: 24px 24px 26px; }
.practice h3 { align-self: end; font: 600 22px/1.2 var(--serif); }
.practice-body > p { margin: 8px 0 18px; font-size: 15px; color: var(--muted); }
.practice-svc { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--rule); align-self: start; }
.practice-svc li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--rule); }
.practice-svc a { flex: 1; padding: 11px 0; font: 500 15px/1.35 var(--sans); color: var(--navy-900); text-decoration: none; }
.practice-svc a:hover { color: var(--navy-500); text-decoration: underline; text-underline-offset: 3px; }
.practice-svc .tag { font: 500 12px var(--sans); color: var(--muted); border: 1px solid var(--rule); border-radius: 99px; padding: 1px 7px; white-space: nowrap; }
.practice-body > .textlink { justify-self: start; align-self: end; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ruled link rows */
.linkrows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.split-body > .linkrows { border-top-color: var(--navy-900); }
.linkrows a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.linkrows a > span:first-child { font: 500 15px var(--sans); color: var(--navy-900); }
.linkrows a > span:last-child { font-size: 14px; color: var(--muted); text-align: right; }
.linkrows.lg a { padding: 18px 0; align-items: center; }
.linkrows.lg a > span:first-child { font: 500 22px/1.25 var(--serif); }
.linkrows.lg a > span:last-child { font-size: 15px; }
.linkrows a:hover > span:first-child { color: var(--navy-500); text-decoration: underline; text-underline-offset: 3px; }
.linkrows li.prop-row a > span:first-child::after { content: "Proposed"; margin-left: 8px; font: 500 13px var(--sans); color: var(--muted); border: 1px solid var(--rule); border-radius: 99px; padding: 1px 7px; vertical-align: 2px; white-space: nowrap; }

/* ------------------------------------------------------------ generic sections */
.sec { padding: 112px 0; }
.sec.mist { background: var(--mist); }
.sec:not(.mist):not(.closing):not(.ground-violet):not(.ground-dark) + .sec:not(.mist):not(.ground-violet):not(.ground-dark) { padding-top: 0; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.split-head h2 { font-size: clamp(30px, 3.2vw, 46px); }
.split-head .big { margin-top: 20px; }
.split-head .btn { margin-top: 8px; }
.big { font-size: 20px; line-height: 1.55; color: var(--slate); max-width: 60ch; }
.big:last-child { margin-bottom: 0; }

/* ruled lists: bold title + line */
.rules { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-900); }
.rules li { padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 17px; color: var(--navy-900); }
.rules li b { display: block; font: 500 17px/1.4 var(--sans); color: var(--navy-900); }
.rules li > span { display: block; margin-top: 4px; color: var(--slate); font-size: 16px; }
.rules.cols2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
ol.rules { counter-reset: st; }
ol.rules li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; }
ol.rules li::before { content: counter(st); font: 400 15px/1.7 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
ol.rules li > span { grid-column: 2; }
.caps li { padding: 24px 0; }
.caps li b { font: 500 22px/1.2 var(--serif); }

/* home extras */
.badges { list-style: none; margin: 28px 0; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-block; border: 1px solid var(--navy-900); color: var(--navy-900); border-radius: 4px; padding: 8px 14px; font: 500 14px var(--sans); }
.photo-slot { aspect-ratio: 4 / 3; border: 1px solid var(--rule); background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--muted); }
.closing .form { background: var(--mist); padding: 32px; border-radius: 6px; }

/* articles */
.arts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-900); }
.arts a { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 24px 0; border-bottom: 1px solid var(--rule); text-decoration: none; align-items: start; }
.arts img { width: 200px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; background: var(--mist); }
.art-text { display: block; }
.art-meta { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.art-title { display: block; font: 500 22px/1.2 var(--serif); color: var(--navy-900); margin-bottom: 8px; }
.art-ex { display: block; font-size: 16px; color: var(--slate); max-width: 64ch; }
.arts a:hover .art-title, .feature:hover .feature-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.feature { display: grid; grid-template-columns: 6fr 6fr; gap: 48px; align-items: center; text-decoration: none; padding: 40px 0 64px; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.feature-title { display: block; font: 600 clamp(26px, 3.4vw, 40px)/1.08 var(--serif); color: var(--navy-900); margin: 4px 0 16px; letter-spacing: -.015em; }
.feature .art-ex { margin-bottom: 14px; font-size: 18px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.topics ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics li { border: 1px solid var(--rule); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--slate); }
.label { font: 600 17px var(--sans); color: var(--navy-900); margin: 0 0 16px; }
.arts-h { margin-top: 8px; }

/* ------------------------------------------------------------ inner pages */
.phero { background: var(--navy-700); color: var(--on-navy); padding: 40px 0 88px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 56px; padding: 0; font-size: 14px; color: #BDB5DA; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--on-navy); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: #fff; }
.eyebrow { font: 500 13px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--rain-on-navy); margin: 0 0 18px; }
.eyebrow .prop { color: var(--on-navy); border-color: rgba(255, 255, 255, .35); }
.phero h1 { margin: 0; font: 600 clamp(34px, 5.2vw, 65px)/1.04 var(--serif); letter-spacing: -.022em; color: #fff; max-width: 20ch; text-wrap: balance; }
.phero .lede { margin: 28px 0 0; font-size: 20px; max-width: 58ch; color: var(--on-navy); }

.ctastrip { background: var(--mist); border-bottom: 1px solid var(--rule); }
.ctastrip-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; padding-bottom: 24px; flex-wrap: wrap; }
.ctastrip p { margin: 0; font: 500 17px/1.35 var(--serif); color: var(--navy-900); }

.onpage { position: sticky; top: var(--navh); z-index: 30; background: #fff; border-bottom: 1px solid var(--rule); }
.onpage .wrap { display: flex; align-items: center; gap: 28px; }
.onpage-lbl { flex: none; font: 500 14px var(--sans); color: var(--muted); }
.onpage ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.onpage ul::-webkit-scrollbar { display: none; }
.onpage a { display: block; padding: 16px 0 14px; font: 500 14px var(--sans); color: var(--slate); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.onpage a:hover { color: var(--navy-900); }
.onpage a.active { color: var(--navy-900); border-bottom-color: var(--navy-500); }

.cw { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--navy-900); }
.cw > div { padding: 32px 48px 0 0; }
.cw > div + div { border-left: 1px solid var(--rule); padding: 32px 0 0 48px; }
.serif-lg { font: 400 clamp(20px, 2vw, 23px)/1.4 var(--serif); color: var(--navy-900); margin: 0; }

/* Powered by Monsoon card */
.mcard { background: var(--navy-700); color: var(--on-navy); border-radius: 6px; padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 6fr 5fr; gap: 56px; align-items: center; }
.mcard h2 { color: #fff; font-size: clamp(30px, 3.2vw, 46px); }
.mcard-text { margin: 20px 0 32px; font-size: 18px; max-width: 52ch; }
.rail { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: r; }
.rail li { counter-increment: r; position: relative; padding: 22px 16px 0 0; border-top: 1px solid rgba(255, 255, 255, .25); color: #fff; font-size: 14px; line-height: 1.45; }
.rail li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--rain-on-navy); }
.frag { margin: 0; background: #fff; color: var(--navy-900); border-radius: 4px; padding: 26px 28px 22px; box-shadow: 0 24px 60px rgba(16, 3, 56, .4); }
.frag-lh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.frag-lh strong { font: 500 17px var(--serif); }
.frag-lh span { font: 400 13px var(--mono); color: var(--muted); white-space: nowrap; }
.frag-name { margin: 14px 0 8px; font: 500 14px var(--sans); }
.frag dl { margin: 0; }
.frag dl div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #ECEBF5; font-size: 14px; }
.frag dt { color: var(--muted); }
.frag dd { margin: 0; font: 400 13px var(--mono); text-align: right; }
.frag .mark { background: #FCEFD9; box-shadow: 0 0 0 1px var(--amber); border-radius: 2px; padding: 1px 4px; }
.frag figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }

.proof-empty { margin: 0; font-size: 17px; }
.proof-slot { border: 1px dashed #C9C7E0; border-radius: 6px; padding: clamp(24px, 4vw, 40px); }
.proof-slot .serif-lg { color: var(--muted); margin-bottom: 16px; }
.proof-q { margin: 0; font: 300 italic 30px/1.35 var(--serif); color: var(--navy-900); }

.related { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-900); }
.related a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font: 500 22px/1.25 var(--serif); color: var(--navy-900); }
.related .arrow { font: 400 22px var(--sans); color: var(--navy-500); transition: transform .2s var(--ease); }
.related a:hover .arrow { transform: translateX(6px); }
.related a:hover > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.cband { background: var(--mist); border-top: 1px solid var(--rule); padding: 96px 0; }
.cband-in { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: end; }
.cband p { margin: 18px 0 0; font-size: 20px; max-width: 52ch; }
.cband .actions { justify-content: flex-end; }

/* blocks */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-900); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); color: var(--navy-900); }
.timeline .yr { font: 600 26px/1.1 var(--serif); color: var(--navy-700); }
.values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-900); }
.values li { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.vname { font: 600 28px/1.1 var(--serif); color: var(--navy-900); }
.vname a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.vbody { color: var(--slate); }
.vbody .ex { display: block; margin-top: 8px; font-size: 14px; color: var(--muted); }
.valwords { font: 600 clamp(29px, 4vw, 45px)/1.1 var(--serif); color: var(--navy-900); margin: 0 0 16px; letter-spacing: -.015em; }
.docs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-900); }
.docs li { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--rule); color: var(--navy-900); }
.doc-act { text-align: right; font-size: 14px; }
.kv { margin: 0; border-top: 1px solid var(--navy-900); }
.kv div { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.kv dt { color: var(--muted); font-size: 15px; }
.kv dd { margin: 0; color: var(--navy-900); }
.disclaimer { font-size: 14px; color: var(--muted); border-left: 2px solid var(--rule); padding-left: 16px; max-width: 70ch; margin: 0; }
.signature { font: 300 italic clamp(40px, 5vw, 64px)/1.1 var(--serif); color: var(--navy-900); margin: 0; }
.vacancies { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-900); }
.vacancies li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.vacancies h3 { font: 500 22px/1.2 var(--serif); }
.vac-meta { margin: 6px 0 10px; font-size: 14px; color: var(--muted); }
.holding { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }

.offices { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy-900); }
.offices li { display: grid; grid-template-columns: 220px 1fr; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.offices h3 { font: 600 26px/1.1 var(--serif); grid-row: span 2; }
.office-addr { margin: 0; color: var(--navy-900); }
.office-more { margin: 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.map-note { margin-top: 20px; }

/* forms */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field label { font: 500 14px var(--sans); color: var(--navy-900); }
.field input, .field select, .field textarea { font: 400 16px var(--sans); color: var(--navy-900); background: #fff; border: 1px solid #C9C7E0; border-radius: 6px; padding: 11px 12px; width: 100%; min-height: 46px; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy-500); outline-offset: 1px; border-color: var(--navy-500); }
.consent { flex-direction: row; align-items: flex-start; gap: 10px; }
.consent input { width: 20px; min-height: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--navy-700); }
.consent label { font-weight: 400; font-size: 14px; color: var(--slate); }
.form-foot { flex-direction: row; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------ footer */
.foot { background: var(--deep); color: #BDB5DA; padding: 80px 0 40px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1.2fr 1.6fr; gap: 48px; }
.foot .sig { font: 300 italic 34px/1.1 var(--serif); color: #fff; margin: 0 0 16px; }
.foot h2 { margin: 0 0 14px; font: 500 13px var(--sans); color: #fff; letter-spacing: 0; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot a { color: #DAD5EA; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-brand p { max-width: 40ch; }
.foot-monsoon { font-weight: 500; }
.foot-creds { margin-bottom: 14px !important; }
.foot-base { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ------------------------------------------------------------ home: patterns from the audit-firm research */
/* utility bar above the header (Nexia SAB&T: verify, B-BBEE, profile) */
.util { background: var(--deep); color: #BDB5DA; font-size: 13px; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 36px; }
.util-reg { margin: 0; white-space: nowrap; }
.util .rv { font-size: 10.5px; padding: 0 5px; }
.util li { white-space: nowrap; }
.util ul { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 20px; list-style: none; margin: 0; padding: 0; }
.util a { color: #DAD5EA; text-decoration: none; }
.util a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* hero: light display weight, second tone in RAiN blue */
.headlines { font-weight: 300; font-size: clamp(36px, min(5.2vw, 9vh), 72px); letter-spacing: -0.03em; line-height: 1.04; }
.headlines .tone, .tone { font-style: normal; color: var(--rain); }

/* "Now": three timely stories in one white card over the bottom edge of the hero */
.brief { position: relative; z-index: 2; padding: 0 0 88px; }
/* the card floats over the hero's edge; without the shadow its lower half dissolves into the white page */
.now { display: grid; grid-template-columns: 180px repeat(3, minmax(0, 1fr)); margin-top: -96px; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px -24px rgba(41, 30, 84, .45); } /* taste-skill-ignore */
.now-lbl { margin: 0; padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 6px; background: var(--navy-700); }
.now-word { font: 400 38px/1 var(--script); color: var(--rain-on-navy); }
.now-sub { font-size: 13px; line-height: 1.45; color: var(--on-navy); }
.now ul { display: contents; list-style: none; }
.now li { display: flex; }
.now li + li { box-shadow: inset 1px 0 0 var(--rule); }
.now a { position: relative; flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 28px 28px 56px; text-decoration: none; transition: background-color .2s var(--ease-out); }
.now a:hover { background: var(--mist); }
.now-tag { font: 500 13px var(--sans); color: var(--navy-500); }
.now-title { font: 500 17px/1.4 var(--sans); color: var(--navy-900); }
.now-go { position: absolute; left: 28px; bottom: 22px; font-size: 18px; color: var(--navy-500); transition: transform .2s var(--ease-out); }
.now a:hover .now-go { transform: translateX(4px); }
.hero.ground-violet { padding-bottom: 168px; }
.hero + .brief { padding-top: 0; }

/* "What changes when you can see everything": a band of dots (every dot a transaction, six flagged) over six picture tiles.
   Drawn in its finished state; main.js adds .play once the section is in view, and the sweep and drawings run once. */
.capfield .head2 { margin-bottom: 40px; }
.dotband { margin: 0 0 20px; }
.dots { display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); gap: 10px; padding: 30px 32px; border-radius: 24px; background: var(--mist); }
.dots i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--violet); }
.dots i.x { background: var(--orchid); outline: 4px solid rgba(168, 90, 163, .25); }
.dotband figcaption { display: flex; align-items: center; gap: 24px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.dotband .key { display: inline-flex; align-items: center; gap: 8px; }
.dotband .key::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); }
.dotband .key.flagged::before { background: var(--orchid); outline: 3px solid rgba(168, 90, 163, .25); }
.dotband .note { margin-left: auto; }
.cap-tiles { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 24px; background: var(--mist); color: var(--slate); transition: transform .22s var(--ease-out); }
.tile:hover { transform: translateY(-4px); }
.tile .vis { width: 160px; height: 58px; margin-bottom: 18px; overflow: visible; }
.tile-t { font: 500 20px/1.3 var(--sans); color: var(--navy-900); }
.tile-l { font-size: 15px; line-height: 1.5; }
.tone-dark { background: var(--navy-700); color: var(--on-navy); }
.tone-violet { background: var(--violet); color: var(--on-navy); }
.tone-dark .tile-t, .tone-violet .tile-t { color: #fff; }
.tone-turquoise { background: var(--rain-on-navy); color: var(--navy-900); }
/* drawings */
.vis * { transform-box: fill-box; }
.v-dots circle { fill: var(--rain-on-navy); transform-origin: center; }
.v-flag .base { stroke: #C9C7E0; stroke-width: 2; }
.v-flag .tick { fill: var(--violet); }
.v-flag .f { fill: var(--orchid); }
.v-ring .pt { fill: var(--sky); }
.v-ring .o { fill: var(--orchid); transform-origin: center; }
.v-ring .r { fill: none; stroke: var(--orchid); stroke-width: 2; }
.v-strike .paid { fill: var(--navy-900); }
.v-strike .dup { fill: none; stroke: var(--navy-900); stroke-width: 2; }
.v-strike .s { stroke: var(--navy-900); stroke-width: 2; }
.v-lines rect { fill: #C9C7E0; transform-origin: left center; }
.v-lines .total { fill: var(--violet); }
.v-bars rect { fill: var(--on-navy); transform-origin: center bottom; }
.v-bars .hi { fill: var(--rain-on-navy); }
/* the one-time play */
@keyframes cf-lit { from { background: #CFCDE6; transform: scale(.6); } 60% { background: var(--sky); transform: scale(1.15); } to { background: var(--violet); transform: scale(1); } }
@keyframes cf-flag { 0% { background: var(--violet); outline-color: rgba(168, 90, 163, 0); outline-width: 0; } 40% { background: var(--orchid); outline-color: rgba(168, 90, 163, .35); outline-width: 10px; } 100% { background: var(--orchid); outline-color: rgba(168, 90, 163, .25); outline-width: 4px; } }
@keyframes cf-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cf-pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes cf-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes cf-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes cf-growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes cf-growy { from { transform: scaleY(0); } to { transform: scaleY(1); } }
/* main.js arms the section on load, so it waits in its "before" state instead of showing the finish first */
.capfield.armed:not(.play) .dots i { background: #CFCDE6; transform: scale(.6); outline-color: transparent; }
.capfield.armed:not(.play) .tile { opacity: 0; transform: translateY(16px); }
.capfield.play .dots i { animation: cf-lit 420ms var(--ease-out) calc(var(--c) * 18ms + var(--r) * 8ms) both; }
.capfield.play .dots i.x { animation: cf-lit 420ms var(--ease-out) calc(var(--c) * 18ms + var(--r) * 8ms) both, cf-flag 700ms var(--ease-out) calc(1000ms + var(--k) * 120ms) both; }
.capfield.play .tile { --d: calc(1300ms + var(--n) * 120ms); animation: cf-rise 560ms var(--ease-out) var(--d) both; }
.capfield.play .v-dots circle { animation: cf-pop 380ms var(--ease-out) calc(var(--d) + 260ms + var(--i) * 32ms) both; }
.capfield.play .v-flag .f { animation: cf-up 520ms var(--ease-out) calc(var(--d) + 420ms) both; }
.capfield.play .v-ring .o { animation: cf-pop 360ms var(--ease-out) calc(var(--d) + 300ms) both; }
.capfield.play .v-ring .r { stroke-dasharray: 1; animation: cf-draw 600ms var(--ease-in-out) calc(var(--d) + 420ms) both; }
.capfield.play .v-strike .s { stroke-dasharray: 1; animation: cf-draw 320ms var(--ease-out) calc(var(--d) + 480ms + var(--i) * 140ms) both; }
.capfield.play .v-lines rect { animation: cf-growx 520ms var(--ease-out) calc(var(--d) + 300ms + var(--i) * 110ms) both; }
.capfield.play .v-bars rect { animation: cf-growy 560ms var(--ease-out) calc(var(--d) + 300ms + var(--i) * 90ms) both; }
@media (max-width: 860px) {
  .dots { grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 7px; padding: 20px; }
  .capfield.play .dots i, .capfield.play .dots i.x { animation-delay: calc(var(--m) * 30ms + var(--q) * 6ms), calc(1000ms + var(--k, 0) * 120ms); }
  .cap-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cap-tiles { grid-template-columns: 1fr; }
  .dotband .note { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .capfield.play *, .capfield.play .dots i { animation: none !important; }
  .tile:hover { transform: none; }
}

/* "I am a…": pick a role and the sentence completes. Without JavaScript every role shows as its own card. */
.rolepick h2 { margin-bottom: 36px; }
.rp-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rp-lead { margin-right: 8px; font: 300 22px var(--sans); color: var(--navy-900); }
.rp-role { min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--mist); color: var(--navy-900); font: 500 15px var(--sans); cursor: pointer; transition: background-color .2s var(--ease-out), color .2s var(--ease-out); }
.rp-role:hover { background: #DCDAF0; }
.rp-role[aria-pressed="true"] { background: var(--navy-900); color: #fff; }
.rp-panels { display: grid; gap: 12px; margin-top: 28px; }
.rp-panel { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding: 40px 44px; border-radius: 24px; background: var(--mist); }
.rp-who { grid-column: 1 / -1; font: 500 18px var(--sans); }
.rp-want { margin: 0; font: 300 clamp(24px, 2.6vw, 36px)/1.25 var(--sans); letter-spacing: -.02em; color: var(--navy-900); }
.rp-want span { color: var(--muted); }
.rp-go { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.rp-go .muted { margin: 0; }
.rp-svc { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 22px/1.3 var(--sans); color: var(--navy-900); text-decoration: none; }
.rp-svc:hover { color: var(--navy-500); text-decoration: underline; text-underline-offset: 4px; }
.rp-go .btn { margin-top: 8px; }
.rolepick:not(.js) .rp-pick { display: none; }
.rolepick.js .rp-who { display: none; }
.rolepick.js .rp-panel:not(.on) { display: none; }
@keyframes rp-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rolepick.js .rp-panel.on { animation: rp-in .3s var(--ease-out); }

/* home: six offices as six city pictures; each opens that office on the Offices page, where the map lives */
.city-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.city-strip a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; background: var(--navy-700); text-decoration: none; }
.city-pic { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.city-strip a:hover .city-pic { transform: scale(1.04); }
/* a scrim over the photograph so the city name reads */
.city-name { position: absolute; inset: auto 0 0 0; padding: 48px 16px 16px; background: linear-gradient(transparent, rgba(41, 30, 84, .88)); color: #fff; font: 500 17px/1.3 var(--sans); } /* taste-skill-ignore */
.city-area { display: block; font: 400 13px/1.4 var(--sans); color: var(--on-navy); }
.findus-foot { display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.findus-foot .muted { margin: 0; font-size: 13px; }
@media (max-width: 1080px) { .city-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .rp-panel { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; } }
@media (max-width: 560px) { .city-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .rolepick.js .rp-panel.on { animation: none; } .city-strip a:hover .city-pic { transform: none; } }

/* credentials as cards in the trust section; MSI Global Alliance leads */
.creds-grid { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 16px; }
.cred { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .07); }
.cred-tag { font: 500 13px var(--sans); color: var(--rain-on-navy); }
.cred-text { font: 400 18px/1.35 var(--sans); color: #fff; }
.cred.lead { grid-row: span 2; justify-content: space-between; gap: 24px; padding: 32px; background: var(--violet); }
.cred-main { display: flex; flex-direction: column; gap: 14px; }
.cred.lead .cred-text { font: 300 clamp(26px, 2.6vw, 36px)/1.15 var(--sans); letter-spacing: -.02em; }
.cred-body { font-size: 16px; line-height: 1.55; color: var(--on-navy); }
.cred-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cred-logo { display: inline-flex; padding: 10px 16px; border-radius: 12px; background: #fff; }
.cred-logo img { width: 132px; height: auto; }
#trust .head2 { grid-template-columns: 5fr 7fr; align-items: start; margin-bottom: 48px; }
#trust .head2 p { font-size: 17px; line-height: 1.65; max-width: 62ch; }

/* "I am a…": role-based entry (EY) */
.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.roles a { background: var(--mist); border-radius: 6px; overflow: hidden; }
.roles a { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 200px; padding: 24px 20px 56px; text-decoration: none; transition: background .2s; }
.roles a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--stripe); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.roles a:hover { background: #DCDAF0; }
.roles a:hover::before, .roles a:focus-visible::before { transform: scaleX(1); }
.role-name { font: 600 20px/1.25 var(--sans); color: var(--navy-900); letter-spacing: -.01em; }
.role-line { font-size: 14px; color: var(--slate); }
.roles .arrow { position: absolute; left: 20px; bottom: 20px; color: var(--navy-500); font-size: 20px; transition: transform .2s var(--ease); }
.roles a:hover .arrow { transform: translateX(6px); }

/* selected work: cases titled by their result (Grant Thornton, PwC) */
.cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { position: relative; overflow: hidden; display: flex; flex-direction: column; background: var(--navy-700); color: var(--on-navy); border-radius: 6px; padding: 28px 28px 32px; min-height: 420px; }
.case::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--stripe); }
.case::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(101, 202, 221, .25); box-shadow: 0 0 0 28px rgba(101, 202, 221, .05), 0 0 0 56px rgba(101, 202, 221, .03); }
.case-meta { order: 9; display: flex; gap: 6px; margin: 18px 0 0; font: 500 14px var(--sans); color: var(--rain-on-navy); }
.case-meta span + span::before { content: "\00b7"; margin-right: 6px; }
.case-fig { margin: auto 0 0; padding-top: 56px; font: 300 60px/1 var(--sans); letter-spacing: -.03em; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.case-fig span { display: block; margin-top: 8px; font: 400 14px var(--sans); letter-spacing: 0; color: var(--on-navy); }
.case h3 { margin: 22px 0 10px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font: 600 20px/1.35 var(--sans); color: #fff; }
.case-what { margin: 0; font-size: 14px; }
.case-pic { position: absolute; inset: 0 0 auto 0; height: 58%; z-index: 0; }
.case-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43, 30, 84, .05) 30%, var(--navy-700)); }
.case.has-pic > :not(.case-pic) { position: relative; z-index: 1; }
.case.has-pic::after { display: none; }
.case.has-pic::before { z-index: 2; }
.case.has-pic .case-fig { padding-top: 200px; text-shadow: 0 2px 18px rgba(16, 3, 56, .6); }

/* insights: type tag, photos graded in RAiN purple (Grant Thornton) */
.art-meta .type { display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 99px; background: var(--mist); color: var(--navy-500); font-weight: 500; }
.duo { display: block; width: 200px; border-radius: 3px; overflow: hidden; background: var(--navy-700); }
.duo img { width: 100%; border-radius: 0; mix-blend-mode: luminosity; opacity: .92; transition: opacity .3s, mix-blend-mode .3s; }
.arts a:hover .duo img { mix-blend-mode: normal; opacity: 1; }

/* "Every transaction is a raindrop": pinned canvas scene (main.js draws it) */
.rainfield { position: relative; height: 260vh; background: var(--deep); color: var(--on-navy); }
.rf-stage { position: sticky; top: var(--navh); height: calc(100svh - var(--navh)); overflow: clip; background: linear-gradient(180deg, rgba(16, 3, 56, .3), rgba(16, 3, 56, .78)), url(/assets/gen/rain-skyline.webp) 70% center / cover no-repeat var(--deep); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(40px, 8vh, 88px) 0 clamp(28px, 5vh, 48px); }
.rf-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--stripe); }
.rf-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rf-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(70% 55% at 18% 22%, rgba(16, 3, 56, .92), rgba(16, 3, 56, .55) 55%, transparent 80%); }
.rf-copy, .rf-foot { position: relative; z-index: 1; width: 100%; }
.rf-copy h2 { color: #fff; max-width: 20ch; font-weight: 300; font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -.03em; }
.rf-copy p { max-width: 44ch; margin: 22px 0 0; font-size: 18px; color: var(--on-navy); }
.rf-copy .stat-missing { font-size: 14px; }
.rf-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.rf-caps { list-style: none; margin: 0; padding: 0; display: grid; max-width: 34ch; }
.rf-caps li { grid-area: 1 / 1; font: 400 clamp(17px, 1.6vw, 22px)/1.45 var(--sans); color: #fff; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.rf-caps li.on { opacity: 1; transform: none; }
.rf-tally { display: flex; gap: 40px; text-align: right; }
.rf-tally p { margin: 0; }
.rf-tally b { display: block; font: 300 clamp(40px, 5vw, 64px)/1 var(--sans); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.rf-tally p + p b { color: var(--rain-on-navy); }
.rf-tally span { display: block; margin-top: 6px; font-size: 14px; color: var(--on-navy); }
.rf-note { position: absolute; z-index: 1; right: var(--side); top: 16px; max-width: 30ch; margin: 0; text-align: right; font-size: 15px; line-height: 1.45; color: var(--on-navy); }  /* the caveat at body contrast */
.rainfield.static { height: auto; }
.rainfield.static .rf-stage { position: relative; top: 0; height: auto; min-height: 640px; gap: 280px; }
.rainfield.static .rf-caps li { opacity: 0; }
.rainfield.static .rf-caps li[data-step="2"] { opacity: 1; transform: none; }

/* six offices, one firm: list and map highlight each other */
.where-in { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.where .big { margin: 20px 0 28px; }
.oc-list { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--navy-900); }
.oc-list button { display: grid; grid-template-columns: 140px 1fr; gap: 16px; width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--rule); text-align: left; cursor: pointer; font: inherit; color: inherit; }
.oc-city { font: 600 16px var(--sans); color: var(--navy-900); }
.oc-addr { font-size: 14px; color: var(--muted); }
.oc-list button:hover .oc-city, .oc-list button.on .oc-city { color: var(--navy-500); }
.za-map { width: 100%; height: auto; overflow: visible; }
.za-nb { fill: #F3F4F8; stroke: #E2E3EE; stroke-width: 1; }
.za-land { fill: var(--navy-700); stroke: #fff; stroke-width: 1; }
.za-route { fill: none; stroke: var(--rain-on-navy); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .9; }
.za-map.in .za-route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease); }
.za-map.in .za-route:nth-of-type(2) { transition-delay: .15s; } .za-map.in .za-route:nth-of-type(3) { transition-delay: .3s; }
.za-map.in .za-route:nth-of-type(4) { transition-delay: .45s; } .za-map.in .za-route:nth-of-type(5) { transition-delay: .6s; }
.za-dot { fill: var(--rain-on-navy); stroke: var(--navy-700); stroke-width: 2.5; transition: r .2s, fill .2s; }
.za-office.hq .za-dot { fill: var(--amber); }
.za-pulse { fill: none; stroke: var(--rain-on-navy); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.za-map.in .za-pulse { animation: zapulse 3.2s var(--ease-out) 3; }
.za-office:nth-child(2n) .za-pulse { animation-delay: 1.1s; }
.za-office:nth-child(3n) .za-pulse { animation-delay: 2.1s; }
@keyframes zapulse { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(3.2); } }
.za-office text { font: 600 22px var(--sans); fill: #fff; paint-order: stroke; stroke: var(--navy-700); stroke-width: 6px; stroke-linejoin: round; }
.za-office.on .za-dot { r: 13; fill: #fff; }
/* home: the land fills with the city pointed at (images clipped to the map in build.py) */
.za-photo { opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-out); }
.za-photo.on { opacity: 1; }
.za-tint { fill: var(--navy-700); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease-out); }
.where.has-photo .za-tint { opacity: .28; }
.za-edge { fill: none; stroke: #fff; stroke-width: 1; pointer-events: none; }
.oc-caps { position: relative; min-height: 2.8em; margin-top: 12px; }
.oc-cap { position: absolute; inset: 0 auto auto 0; margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); opacity: 0; transition: opacity .3s var(--ease-out); }
.oc-cap.on { opacity: 1; }
.oc-cap a { color: inherit; }
.map-note .za-map { max-width: 720px; margin-top: 32px; }

/* city photos (openly licensed, credited, graded in RAiN purple); the credit sits under the picture */
.where-map { position: relative; }
.office-pic .pic { display: block; border-radius: 6px; overflow: hidden; background: var(--navy-700); }
.office-pic img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.office-pic figcaption { margin-top: 0; padding: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); background: var(--paper); }
.office-pic figcaption a { color: inherit; }
.offices li:has(.office-pic) { grid-template-columns: 210px minmax(0, 1fr) 220px; }
.office-pic { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
.office-pic img { aspect-ratio: 3 / 2; }
@media (max-width: 860px) {
  .offices li:has(.office-pic) { grid-template-columns: 1fr; }
  .office-pic { grid-column: auto; grid-row: auto; max-width: 420px; }
}


/* inner pages: light two-tone headings on the purple hero */
.phero h1 { font-weight: 300; letter-spacing: -0.03em; }
.phero .tone { color: var(--rain-on-navy); }
.split .cases { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.split .case { min-height: 360px; }

/* chip filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.filters button { font: 500 14px var(--sans); color: var(--slate); background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; min-height: 38px; padding: 0 16px; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.filters button:hover { border-color: var(--navy-900); color: var(--navy-900); }
.filters button[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 32px; }
.cases > [hidden], .arts > [hidden], .feature[hidden] { display: none !important; }
.feature .duo { width: 100%; border-radius: 4px; }
.feature .duo img { aspect-ratio: 16 / 9; object-fit: cover; }
.feature:hover .duo img { mix-blend-mode: normal; opacity: 1; }

@media (max-width: 1080px) {
  .practices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roles { grid-template-columns: 1fr 1fr; }
  .roles li + li { border-left: 0; }
  .roles li { border-bottom: 1px solid var(--rule); }
  .roles li:nth-child(even) { border-left: 1px solid var(--rule); }
  .cases { grid-template-columns: 1fr; }
  .case { min-height: 0; }
  .util-reg { display: none; }
}
@media (max-width: 860px) {
  .util { display: none; }
  .roles { grid-template-columns: 1fr; }
  .roles li:nth-child(even) { border-left: 0; }
  .roles a { min-height: 0; padding: 20px 0 20px; flex-direction: row; flex-wrap: wrap; }
  .roles .arrow { position: static; margin-left: auto; }
  .role-line { flex-basis: 100%; order: 3; }
  .duo { width: 100%; }
  .case-fig { font-size: 48px; padding-top: 36px; }
  .rainfield { height: auto; }
  .rf-stage { position: relative; top: 0; height: auto; min-height: 760px; gap: 300px; padding: 64px 0 40px; }
  .rf-foot { flex-direction: column; align-items: flex-start; gap: 24px; }
  .rf-tally { text-align: left; gap: 28px; }
  .rf-stage { padding-bottom: 120px; }
  .rf-note { top: auto; bottom: 28px; left: var(--side); max-width: none; text-align: left; }
  .where-in { grid-template-columns: 1fr; gap: 40px; }
  .oc-list button { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .practice:hover .practice-pic img { transform: none; }
  .rainfield { height: auto; }
  .rf-stage { position: relative; top: 0; height: auto; min-height: 640px; gap: 280px; }
  .rf-caps li { transition: none; }
  .za-route { stroke-dashoffset: 0; }
  .za-map.in .za-pulse { animation: none; }
  .za-photo, .za-tint, .oc-cap { transition: none; }
}

/* ------------------------------------------------------------ brand marks and motion */
/* the four logo colours as one stripe: top of the header, foot of page heroes, top of the footer */
.nav::before, .phero::after, .foot::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--stripe); }
.nav::before { top: 0; }
.phero::after { bottom: 0; height: 4px; }
.foot { position: relative; }
.foot::before { top: 0; height: 4px; }
.head2 h2::before, .split-head h2::before, .help .head h2::before { content: ""; display: block; width: 56px; height: 4px; margin-bottom: 22px; border-radius: 2px; background: var(--stripe); transform-origin: left; }
.settle h2::before, .mcard h2::before { background: var(--rain-on-navy); }

/* petrichor: slow slanted rain behind heroes, generated by build.py */
.hero, .phero { position: relative; overflow: hidden; isolation: isolate; }
.petrichor { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.petrichor i { position: absolute; top: -180px; left: var(--x); width: 2px; height: var(--h); border-radius: 2px; background: linear-gradient(transparent, var(--c)); opacity: .28; transform: rotate(16deg); animation: fall var(--d) linear var(--w) infinite; }
.phero .petrichor i { opacity: .55; }
@keyframes fall { to { transform: rotate(16deg) translateY(calc(100vh + 360px)); } }

/* reveal on scroll: main.js adds .will-reveal, so without JS everything is simply visible */
.will-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.will-reveal.in { opacity: 1; transform: none; }
.will-reveal h2::before { transform: scaleX(0); transition: transform .9s var(--ease) .2s; }
.will-reveal.in h2::before { transform: scaleX(1); }

/* small physical feedback */
.btn { transition: background .15s ease, border-color .15s ease, color .15s ease, transform 160ms var(--ease-out); }
.btn:active { transform: scale(.97); }
.linkrows a > span:first-child, .menu-list a > span:first-child { transition: color .15s, transform .2s var(--ease); }
.linkrows a:hover > span:first-child { transform: translateX(4px); }

/* page-to-page cross-fade where the browser supports it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

@media (prefers-reduced-motion: reduce) {
  .petrichor { display: none; }
  .will-reveal, .will-reveal h2::before { opacity: 1; transform: none; transition: none; }
  .btn:active, .linkrows a:hover > span:first-child { transform: none; }
  @view-transition { navigation: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .nav-bar { gap: 20px; }
  .nav-trigger { padding: 8px 8px; }
}
@media (max-width: 1080px) {
  .nav nav { display: none; }
  .menu-btn { display: inline-flex; align-self: center; margin-left: 0; align-items: center; background: none; border: 1px solid var(--rule); color: var(--navy-900); border-radius: 8px; height: 44px; padding: 0 14px; font: 500 14px var(--sans); cursor: pointer; }
  .menu-btn[aria-expanded="true"] { border-color: var(--navy-900); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --navh: 64px; }
  .hero .wrap, .shift .wrap, .settle .wrap, .help .head, .head2, .split, .cw, .mcard, .cband-in, .feature, .menu-inner { grid-template-columns: 1fr; gap: 32px; }
  .head2, .help .head { margin-bottom: 40px; }
  .cw > div, .cw > div + div { padding: 28px 0; border-left: 0; }
  .cw > div + div { border-top: 1px solid var(--rule); }
  .settle { height: auto; }
  .settle__stage { position: relative; top: 0; height: auto; padding: 96px 0 140px; }
  .srccard { position: relative; right: auto; top: auto; bottom: auto; width: min(280px, 80%); margin: 36px 0 0 auto; }
  .caption { max-width: 100%; margin-top: 28px; }
  .shift, .help { padding: 96px 0; }
  .sec { padding: 80px 0; }
  .cband { padding: 72px 0; }
  .cband .actions { justify-content: flex-start; }
  .nav-cta { display: none; }
  .menu-btn { margin-left: auto; }
  .rules.cols2 { grid-template-columns: 1fr; }
  .rail { grid-template-columns: 1fr; gap: 0; border-left: 1px solid rgba(255, 255, 255, .25); margin-left: 4px; }
  .rail li { border-top: 0; padding: 0 0 18px 20px; }
  .rail li::before { top: 6px; left: -5px; }
  .arts a { grid-template-columns: 1fr; gap: 16px; }
  .arts img { width: 100%; }
  .timeline li, .values li, .offices li, .kv div { grid-template-columns: 1fr; gap: 6px; }
  .offices h3 { grid-row: auto; }
  .docs li { grid-template-columns: 1fr; gap: 6px; }
  .doc-act { text-align: left; }
  .linkrows a { grid-template-columns: 1fr; gap: 2px; }
  .linkrows a > span:last-child { text-align: left; }
  .form { grid-template-columns: 1fr; }
  .closing .form { padding: 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .phero { padding: 28px 0 64px; }
  .crumbs ol { margin-bottom: 40px; }
  .onpage .onpage-lbl { display: none; }
  .ctastrip .actions { width: 100%; }
  .menu-list.cols { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .ctastrip .btn, .cband .btn, .hero-side .btn, .split-head .btn { width: 100%; }
  .sheet { padding: 22px 18px 20px; }
  .sheet table { font-size: 13px; }
  .sheet td.n { font-size: 13px; }
  .sheet .sig { flex-direction: column; gap: 4px; }
  .frag { padding: 20px 18px; }
  .frag figcaption { flex-direction: column; gap: 4px; }
  .related a { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .settle { height: auto; }
  .settle__stage { position: relative; top: 0; height: auto; padding: 120px 0 160px; }
  .headlines .opt { transition: none; }
  .picker button::after { animation: none !important; }
  .related .arrow, .nav-trigger::after { transition: none; }
}

@media (max-width: 900px) {
  .now { grid-template-columns: 1fr; margin-top: -72px; }
  .now-lbl { flex-direction: row; align-items: baseline; gap: 14px; padding: 20px 22px; }
  .now li + li { box-shadow: inset 0 1px 0 var(--rule); }
  .now a { padding: 20px 52px 20px 22px; }
  .now-go { left: auto; right: 22px; bottom: auto; top: 20px; }
  .hero.ground-violet { padding-bottom: 128px; }
  .creds-grid { grid-template-columns: 1fr 1fr; }
  .cred.lead { grid-column: 1 / -1; grid-row: auto; }
  #trust .head2 { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .practices { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .now-go { transition: none; }
}

/* ------------------------------------------------------------ brand layer: RAiN Brand Guide 2024 */
/* type: light Poppins for display sizes (guide p10), Galada for the accent word (p10, p17-18) */
h2, .feature-title, .valwords, .menu-title { font-weight: 300; letter-spacing: -0.025em; }
.practice h3, .role-name, .case h3 { font-weight: 500; }
.tone, .headlines .tone { font-family: var(--script); font-weight: 400; font-style: normal; letter-spacing: 0; color: var(--orchid); font-size: 1.04em; line-height: .9; }
.phero .tone { color: var(--rain-on-navy); }

/* pills, as in the guide's colour combos (p11) */
.btn, .menu-btn, .badge { border-radius: 999px; }
.btn { padding: 0 26px; }
.badge { padding: 8px 16px; }
.field input, .field select, .field textarea { border-radius: 12px; border-color: #C9C7E0; }
.practice, .roles a, .case, .closing .form, .mcard { border-radius: 20px; }

/* rain blocks: torn shapes from the logo, on the edges of a section, 16% opacity, no more than five (p13) */
.blocks { position: relative; isolation: isolate; }
.blocks::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .16;
  background:
    url(/assets/brand/block-1.svg) no-repeat left -70px top 8% / 230px,
    url(/assets/brand/block-4.svg) no-repeat left -40px bottom -60px / 300px,
    url(/assets/brand/block-3.svg) no-repeat right -90px top -40px / 320px,
    url(/assets/brand/block-6.svg) no-repeat right -30px bottom 6% / 220px; }

/* grounds: full purple, as on every page of the guide; mid purple (#5B58A1) and dark (#291E54) */
.ground-violet, .ground-dark { color: var(--on-navy); }
.ground-violet { background: var(--violet); }
.ground-dark { background: var(--navy-700); }
:is(.ground-violet, .ground-dark) :is(h2, h3, .big, .headlines) { color: #fff; }
:is(.ground-violet, .ground-dark) :is(p, .muted, .hero-side p) { color: var(--on-navy); }
:is(.ground-violet, .ground-dark) .tone { color: var(--rain-on-navy); }
:is(.ground-violet, .ground-dark) .btn-line { border-color: rgba(255, 255, 255, .75); color: #fff; }
:is(.ground-violet, .ground-dark) .btn-line:hover { background: #fff; color: var(--navy-900); }
:is(.ground-violet, .ground-dark) .textlink { color: #fff; border-color: rgba(255, 255, 255, .6); }
:is(.ground-violet, .ground-dark) .textlink:hover { border-color: #fff; }
:is(.ground-violet, .ground-dark) .badge { border-color: rgba(255, 255, 255, .75); color: #fff; }
:is(.ground-violet, .ground-dark) a:not(.btn):not(.textlink) { color: #fff; }
:is(.ground-violet, .ground-dark) :focus-visible { outline-color: #fff; }

/* home hero on mid purple */
.hero.ground-violet .petrichor i { opacity: .35; }
.ground-violet .picker .lbl { color: var(--on-navy); }
.ground-violet .picker button { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.ground-violet .picker button[aria-pressed="true"] { border-color: #fff; }
.ground-violet .picker button[data-opt][aria-pressed="true"]::after { background: var(--rain-on-navy); }

/* the closing form sits on the purple ground as a white card */
.closing.ground-violet .form { background: #fff; color: var(--slate); }
.closing.ground-violet .form :is(label, p) { color: var(--navy-900); }
.closing.ground-violet .form .consent label { color: var(--slate); }

/* lilac sections carry white cards */
.sec.mist .practice, .help.mist .practice { border-color: transparent; }
.help.mist { background: var(--mist); }
.roles a { background: var(--mist); }
.sec.mist .roles a { background: #fff; }

/* section accent bar: the brand stripe, kept; on purple grounds in turquoise */
:is(.ground-violet, .ground-dark) h2::before { background: var(--rain-on-navy); }

/* signatures in the accent script */
.foot .sig, .signature { font-family: var(--script); font-style: normal; font-weight: 400; letter-spacing: 0; }
.foot .sig { font-size: 32px; line-height: 1.2; color: var(--rain-on-navy); }
.signature { color: var(--orchid); }

/* photo carousel (home careers band): real RAiN photos, swipe or buttons, no autoplay */
.carousel { position: relative; }
.car-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; list-style: none; margin: 0; padding: 0; border-radius: 18px; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { outline: 3px solid var(--turquoise, #65CADD); outline-offset: 3px; }
.car-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #E9E7F3; }
.car-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.car-cap { margin: 0; font-size: 0.85rem; color: #4A4570; }
.car-nav { display: flex; align-items: center; gap: 10px; }
.car-btn { width: 44px; height: 44px; border-radius: 999px; border: 1px solid #291E54; background: #fff; color: #291E54; font-size: 1.1rem; cursor: pointer; }
.car-btn:hover { background: #291E54; color: #fff; }
.car-btn:focus-visible { outline: 3px solid #65CADD; outline-offset: 2px; }
.car-btn[disabled] { opacity: 0.35; cursor: default; }
.car-count { font-variant-numeric: tabular-nums; font-size: 0.85rem; color: #291E54; min-width: 3.5em; text-align: center; }
@media (prefers-reduced-motion: reduce) { .car-track { scroll-behavior: auto; } }

/* ------------------------------------------------------------ article pages (/insights/<slug>) */
.art-hero h1 { max-width: 30ch; font-size: clamp(30px, 4.2vw, 52px); line-height: 1.1; }
.art-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 28px 0 0; font-size: 14px; color: var(--on-navy); }
.art-byline > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 18px; border-radius: 50%; background: var(--rain-on-navy); vertical-align: middle; }
.art-byline .art-topic { color: var(--on-navy); text-decoration: none; border: 1px solid rgba(225, 222, 242, .45); border-radius: 99px; padding: 2px 12px; }
.art-byline .art-topic::before { display: none; }
.art-byline .art-topic:hover { color: #fff; border-color: #fff; }
.art-hero .lede { max-width: 62ch; }
.art-sec { padding: 88px 0; }
.prose { max-width: 68ch; font-size: 18px; line-height: 1.7; color: var(--slate); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 20px; }
.prose h2 { margin: 56px 0 16px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.015em; }
.prose h3 { margin: 32px 0 10px; font: 500 20px/1.3 var(--serif); }
.prose ul, .prose ol { margin: 0 0 24px; padding-left: 1.25em; }
.prose li { margin: 0 0 10px; padding-left: 4px; }
.prose li::marker { color: var(--navy-500); }
.prose a { color: var(--navy-900); text-decoration: underline; text-decoration-color: var(--navy-500); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--navy-500); }
.prose blockquote { margin: 32px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--orchid); font: 300 22px/1.45 var(--serif); color: var(--navy-900); }
.prose blockquote cite { display: block; margin-top: 8px; font: 400 14px var(--sans); font-style: normal; color: var(--muted); }
.prose .art-fig { margin: 32px 0; }
.prose .art-fig img { display: block; width: 100%; height: auto; border-radius: 6px; }
.faq { border-top: 1px solid var(--navy-900); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font: 500 18px/1.4 var(--sans); color: var(--navy-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-weight: 400; font-size: 22px; line-height: 1.1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; font-size: 17px; }
.prose .sources { margin: 0; padding-left: 1.4em; font-size: 14px; line-height: 1.55; color: var(--muted); }
.prose .sources li { margin: 0 0 8px; }
.prose .sources a { color: var(--slate); }
@media (max-width: 860px) {
  .art-sec { padding: 56px 0; }
  .prose { font-size: 17px; }
  .prose h2 { margin-top: 44px; }
  .art-byline > * + *::before { margin-right: 10px; }
  .art-byline { gap: 6px 10px; }
  .art-hero .lede { font-size: 18px; }
}

/* careers application form */
.apply { margin-top: 48px; padding: 32px; background: var(--mist); border-radius: 18px; }
.apply-h { margin: 0 0 8px; }
.apply-status { margin: 0 0 16px; min-height: 1.4em; font-weight: 600; color: #291E54; }
.apply-status.is-error { color: #8A1F3D; }
.apply .form input[type="file"] { padding: 10px; background: #fff; border-radius: 6px; }
.apply .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 720px) { .apply { padding: 20px; } }

/* stored-form status line and spam trap */
.form-status { margin: 0 0 12px; min-height: 1.2em; font-weight: 600; color: #291E54; }
.form-status.is-error { color: #8A1F3D; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
