/* ==========================================================================
   RMA Chartered Accountants
   Design system: "Direction B"

   Shape rule (applied everywhere, no exceptions):
     buttons and chips ........ 999px  (pill)
     inputs and icon boxes .... var(--r)     18px
     cards, tiles, plates ..... var(--r-lg)  28px
     full-width slabs ......... var(--r-xl)  44px

   Colour rule: one accent (gold). --gold is for fills and for text on dark
   grounds; --gold-ink is the darkened variant for text on light grounds, so
   every string clears WCAG AA.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ground: #E9EDEC;
  --surface: #FFFFFF;
  --deep: #0B262E;
  --deep-2: #143D49;
  --ink: #0B262E;
  --muted: #506369;
  --line: #DBE0DF;
  --gold: #BE9038;
  --gold-ink: #7E5A12;
  --gold-soft: #F0E6D2;
  --f: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --r: 18px;
  --r-lg: 28px;
  --r-xl: 44px;
  --ease: cubic-bezier(.32,.72,0,1);
  --nav-h: 118px;
}

html { -webkit-text-size-adjust: 100%; }
html:not(.js) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.034em; line-height: 1.04; }
:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; border-radius: 4px; }
.cta :focus-visible, .chat-head :focus-visible, .card.dark :focus-visible,
.tile.dark :focus-visible, .tile.feature :focus-visible { outline-color: #FFFFFF; }
.chat-in button:focus-visible { outline-color: var(--deep); }

.wrap { max-width: 1336px; margin: 0 auto; padding: 0 60px; }
.eyebrow { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin-bottom: 20px; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--deep); color: #fff; padding: 12px 20px; border-radius: 999px; }

/* --------------------------------------------------------- motion primitives */
.ln { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.ln > span { display: block; will-change: transform; }
.js .ln > span { transform: translate3d(0, 110%, 0); }
.js [data-fade] { opacity: 0; will-change: transform, opacity; }

/* --------------------------------------------------------------------- nav */
.navouter { position: fixed; left: 0; right: 0; top: 0; z-index: 60; padding-top: 24px; transition: padding-top .6s var(--ease); }
.navouter.stuck { padding-top: 12px; }
.nav {
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-radius: 999px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 11px 0 30px;
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -30px rgba(11,38,46,.4);
  transition: box-shadow .6s var(--ease), height .6s var(--ease), background .6s var(--ease);
}
.navouter.stuck .nav { height: 62px; background: rgba(255,255,255,.92); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 44px -24px rgba(11,38,46,.55); }
.mark { display: flex; flex-direction: column; line-height: 1; }
.mark b { font-size: 28px; font-weight: 800; letter-spacing: -0.07em; }
.mark b i { color: var(--gold); font-style: normal; }
.mark span { font-size: 7.4px; letter-spacing: 0.3em; color: var(--muted); margin-top: 5px; font-weight: 600; }
.nav .pill { font-size: 13.5px; gap: 9px; padding: 9px 9px 9px 20px; }
.nav .pill .knob { width: 26px; height: 26px; }
.nav .pill .knob svg { width: 12px; height: 12px; }
.navlinks { display: flex; gap: 32px; font-size: 14.5px; font-weight: 500; color: #3A555C; }
.navlinks a { position: relative; padding-bottom: 3px; }
.navlinks a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); }
.navlinks a:hover::after, .navlinks a.active::after { transform: scaleX(1); transform-origin: left; }
.navlinks a.active { color: var(--ink); }
.menubtn { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 999px; background: rgba(11,38,46,.07); border: 0; color: var(--ink); cursor: pointer; }
.menubtn span { position: relative; width: 18px; height: 10px; display: block; }
.menubtn span i { position: absolute; left: 0; right: 0; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.menubtn span i:first-child { top: 0; }
.menubtn span i:last-child { bottom: 0; }
body.menu-open .menubtn span i:first-child { transform: translateY(4.2px) rotate(45deg); }
body.menu-open .menubtn span i:last-child { transform: translateY(-4.2px) rotate(-45deg); }

.mobilemenu { position: fixed; inset: 0; z-index: 55; background: rgba(233,237,236,.96); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); display: flex; flex-direction: column; justify-content: center; padding: 0 22px; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
body.menu-open .mobilemenu { opacity: 1; visibility: visible; }
.mobilemenu a { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; padding: 14px 0; border-bottom: 1px solid var(--line); transform: translateY(24px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease); }
body.menu-open .mobilemenu a { transform: none; opacity: 1; }
body.menu-open .mobilemenu a:nth-child(1) { transition-delay: .08s; }
body.menu-open .mobilemenu a:nth-child(2) { transition-delay: .13s; }
body.menu-open .mobilemenu a:nth-child(3) { transition-delay: .18s; }
body.menu-open .mobilemenu a:nth-child(4) { transition-delay: .23s; }
body.menu-open .mobilemenu a:nth-child(5) { transition-delay: .28s; }
body.menu-open .mobilemenu a:nth-child(6) { transition-delay: .33s; }

/* ----------------------------------------------------------------- buttons */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--deep); color: #fff; border-radius: 999px;
  font-family: var(--f); font-size: 14.5px; font-weight: 500;
  padding: 12px 12px 12px 26px; border: 0; cursor: pointer;
  transition: background .5s var(--ease);
  will-change: transform;
}
.pill:hover { background: var(--deep-2); color: #fff; }
.pill:active { transform: scale(.975); }
.pill .knob { width: 32px; height: 32px; border-radius: 999px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; flex: none; }
.pill .knob svg { transition: transform .55s var(--ease); }
.pill:hover .knob svg { transform: translate3d(2px, -2px, 0) scale(1.06); }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px #727E7F; }
.pill.ghost:hover { background: var(--deep); color: #fff; box-shadow: none; }
.pill.ghost .knob { background: rgba(11,38,46,.07); }
.pill.ghost:hover .knob { background: rgba(255,255,255,.15); }
.pill.light { background: var(--surface); color: var(--deep); }
.pill.light .knob { background: rgba(11,38,46,.09); }
.pill.light:hover { background: var(--gold); color: var(--deep); }
.pill.big { font-size: 15.5px; padding: 15px 15px 15px 30px; }
.pill.big .knob { width: 36px; height: 36px; }
.pill.block { width: 100%; justify-content: center; padding: 16px 24px; }

/* nowrap keeps the label on one line with its arrow: as an inline-flex row a
   wrapped label left the arrow stranded at the far right of the header. */
.tlink { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--gold-ink); white-space: nowrap; }
.tlink svg { transition: transform .55s var(--ease); }
.tlink:hover { color: var(--gold-ink); }
.tlink:hover svg { transform: translate3d(5px,0,0); }

/* -------------------------------------------------------------- home hero */
.heroouter { position: relative; overflow: hidden; padding-bottom: 20px; }
.bloom { position: absolute; right: -6%; top: -34%; width: 58%; height: 150%; background: radial-gradient(closest-side, rgba(190,144,56,.24), rgba(190,144,56,0) 72%); pointer-events: none; }
.bloom2 { position: absolute; left: -14%; bottom: -46%; width: 44%; height: 120%; background: radial-gradient(closest-side, rgba(20,61,73,.14), rgba(20,61,73,0) 70%); pointer-events: none; }
.hero { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 52px; align-items: center; padding: 172px 0 92px; }
.hero h1 { font-size: 62px; letter-spacing: -0.045em; line-height: 1.0; }
.hero h1 i { color: var(--gold-ink); font-style: normal; }
.hero .lede { font-size: 18px; color: #3C575E; margin-top: 32px; max-width: 42ch; line-height: 1.55; }
.hactions { display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; }

.stack { position: relative; height: 528px; }
.pl { position: absolute; border-radius: var(--r-lg); overflow: hidden; background: #D7DDDC; will-change: transform; }
.pl .ph { width: 100%; height: 100%; overflow: hidden; }
.pl img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.pl-back { right: 0; top: 0; width: 430px; height: 300px; box-shadow: 0 30px 60px -36px rgba(11,38,46,.5); }
.pl-main { left: 42px; top: 62px; width: 460px; height: 396px; box-shadow: 0 50px 90px -44px rgba(11,38,46,.65); z-index: 2; }
.figcard { position: absolute; left: -58px; bottom: 6px; width: 320px; background: var(--surface); border-radius: var(--r); padding: 22px 24px 20px; box-shadow: 0 34px 60px -30px rgba(11,38,46,.5); z-index: 3; will-change: transform; }
.fighead { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.fighead b { font-size: 13.5px; font-weight: 700; }
.fighead span { font-size: 10.5px; color: var(--muted); }
.figrow { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; padding: 9px 0; }
.figrow span:first-child { color: var(--muted); }
.figrow span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.figrow.tot { border-top: 1px solid var(--ink); margin-top: 6px; padding-top: 12px; }
.figrow.tot span:last-child { color: var(--gold-ink); font-size: 17px; font-weight: 700; }
.fignote { font-size: 10.5px; color: var(--muted); line-height: 1.5; margin-top: 12px; }

/* ------------------------------------------------------ inner-page hero */
.phero { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 74px) 0 76px; }
.phero .crumb { font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; margin-bottom: 22px; }
.phero h1 { font-size: 72px; letter-spacing: -0.048em; line-height: 0.98; max-width: 16ch; }
.phero .lede { font-size: 18px; color: #3C575E; margin-top: 30px; max-width: 58ch; line-height: 1.55; }
.pherogrid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: end; }
.pheroart { border-radius: var(--r-lg); overflow: hidden; height: 330px; box-shadow: 0 46px 80px -50px rgba(11,38,46,.6); }
.pheroart img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }

/* ------------------------------------------------------------- stat strip */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.striprule { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left; }
.js .striprule { transform: scaleX(0); }
.sb { padding: 34px 40px 0 0; display: flex; align-items: baseline; gap: 20px; }
.sb + .sb { border-left: 1px solid var(--line); padding-left: 40px; }
.sb b { font-size: 54px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--deep); font-variant-numeric: tabular-nums; }
.sb span { font-size: 14px; color: var(--muted); line-height: 1.45; max-width: 19ch; }

/* ---------------------------------------------------------------- sections */
section { padding: 108px 0; }
.stitle { font-size: 56px; letter-spacing: -0.042em; }
.ssub { font-size: 17px; color: var(--muted); max-width: 52ch; margin-top: 20px; }
.sechead { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 54px; }
.slab { background: var(--surface); border-radius: var(--r-xl); padding: 92px 72px; }
.mbody { font-size: 17.5px; color: #3C575E; margin-top: 26px; max-width: 50ch; line-height: 1.6; }

/* ------------------------------------------- pinned horizontal rail + cards */
.railsec { padding: 108px 0 0; }
.railpin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 40px 0 70px; }
.rail { display: flex; gap: 22px; align-items: flex-start; padding-left: calc((100vw - 1336px) / 2 + 60px); will-change: transform; }
.card { flex: none; width: 340px; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; min-height: 430px; box-shadow: 0 24px 46px -34px rgba(11,38,46,.42); transition: transform .7s var(--ease), box-shadow .7s var(--ease); will-change: transform; }
.card:nth-child(even) { margin-top: 52px; }
.card:hover, .card:focus-within { transform: translate3d(0,-10px,0); box-shadow: 0 40px 66px -34px rgba(11,38,46,.5); }
.card .top { height: 176px; overflow: hidden; background: var(--gold-soft); }
.card .top img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .top img { transform: scale(1.06); }
.card .body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex-grow: 1; }
.card h3 { font-size: 24px; margin-bottom: 12px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.card .foot { margin-top: auto; padding-top: 24px; display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-ink); }
.card .foot svg { transition: transform .55s var(--ease); }
.card:hover .foot svg { transform: translate3d(5px,0,0); }
.card.dark { background: var(--deep); }
.card.dark h3 { color: #fff; }
.card.dark p { color: rgba(255,255,255,.66); }
.card.dark .foot { color: var(--gold); }
.card.gold { background: var(--gold-soft); }
.iconbox { width: 52px; height: 52px; border-radius: var(--r); background: #EDF1F0; color: var(--deep); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; box-shadow: inset 0 1px 1px rgba(255,255,255,.7); }
.card.dark .iconbox { background: rgba(255,255,255,.1); color: var(--gold); }
.card.gold .iconbox { background: rgba(255,255,255,.66); }
.railprog { height: 2px; background: var(--line); border-radius: 2px; margin-top: 46px; overflow: hidden; }
.railprog i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; }
.js .railprog i { transform: scaleX(0); }

/* --------------------------------------------------------- split with image */
.msplit { display: grid; grid-template-columns: 0.94fr 1.06fr; gap: 68px; align-items: center; }
.msplit.flip { grid-template-columns: 1.06fr 0.94fr; }
.mimg { border-radius: var(--r-lg); overflow: hidden; height: 438px; }
.mimg.tall { height: 380px; }
.mimg img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.ticks { display: flex; flex-direction: column; gap: 15px; margin-top: 32px; }
.tick { display: flex; gap: 14px; align-items: flex-start; font-size: 15.5px; }
.tick svg { color: var(--gold-ink); flex: none; margin-top: 4px; }

/* ------------------------------------------------------------ process track */
.track { position: relative; margin-top: 60px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 27px; height: 1px; background: var(--line); }
.trackfill { position: absolute; left: 0; top: 27px; height: 1px; background: var(--gold); width: 100%; transform-origin: left; }
.js .trackfill { transform: scaleX(0); }
.psteps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.dot { width: 54px; height: 54px; border-radius: 999px; background: var(--surface); color: var(--gold-ink); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; box-shadow: 0 0 0 6px var(--ground), 0 14px 26px -18px rgba(11,38,46,.5); transition: background .6s var(--ease), color .6s var(--ease); }
.slab .dot { box-shadow: 0 0 0 6px var(--surface), 0 14px 26px -18px rgba(11,38,46,.5); background: var(--ground); }
.pstep.on .dot { background: var(--deep); color: var(--gold); }
.pstep h3 { font-size: 24px; margin: 30px 0 12px; }
.pstep p { font-size: 14.5px; color: var(--muted); max-width: 30ch; line-height: 1.6; }

/* -------------------------------------------------------------------- bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 246px; gap: 22px; }
.tile { background: var(--ground); border-radius: var(--r-lg); padding: 32px 32px 30px; display: flex; flex-direction: column; transition: transform .7s var(--ease); will-change: transform; }
.tile:hover, .tile:focus-within { transform: translate3d(0,-7px,0); }
.tile h3 { font-size: 22px; margin-bottom: 13px; }
.tile p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.tile.feature { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; position: relative; }
.tile.feature img { position: absolute; inset: 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.tile.feature .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 42px 38px; background: linear-gradient(180deg, rgba(11,38,46,0), rgba(11,38,46,.92) 58%); }
.tile.feature h3 { color: #fff; font-size: 34px; margin-bottom: 14px; }
.tile.feature p { color: rgba(255,255,255,.78); font-size: 15.5px; max-width: 44ch; }
.tile.gold { background: var(--gold-soft); }
.tile.dark { background: var(--deep); }
.tile.dark h3 { color: #fff; }
.tile.dark p { color: rgba(255,255,255,.66); }

/* --------------------------------------------------------------------- team */
.team { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 72px; align-items: center; }
.portrait { border-radius: var(--r-lg); overflow: hidden; height: 430px; background: #DCE2E1; box-shadow: 0 40px 70px -46px rgba(11,38,46,.55); }
.portrait img { width: 100%; height: 116%; object-fit: cover; object-position: 50% 26%; will-change: transform; }
.prole { font-size: 13.5px; color: var(--gold-ink); font-weight: 700; letter-spacing: 0.04em; margin-top: 12px; }
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.promise > div { border-top: 1px solid var(--line); padding-top: 20px; }
.promise h3, .promise .ph4 { font-size: 15.5px; margin-bottom: 9px; letter-spacing: -0.02em; }
.promise p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.person { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; transition: transform .7s var(--ease), box-shadow .7s var(--ease); will-change: transform; }
.person:hover, .person:focus-within { transform: translate3d(0,-8px,0); box-shadow: 0 40px 66px -38px rgba(11,38,46,.45); }
.pphoto { aspect-ratio: 4 / 3.4; overflow: hidden; background: linear-gradient(158deg, #16414D, #0B262E); display: flex; align-items: center; justify-content: center; }
.pphoto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; transition: transform 1s var(--ease); }
.person:hover .pphoto img { transform: scale(1.05); }
.pphoto b { font-size: 62px; font-weight: 700; color: rgba(190,144,56,.55); letter-spacing: -0.05em; }
.person .pbody { padding: 26px 28px 30px; }
.person h3 { font-size: 21px; margin-bottom: 8px; }
.person .role { font-size: 12.5px; color: var(--gold-ink); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.person .role:last-child { margin-bottom: 0; }
.person p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ------------------------------------------------------ service detail rows */
.srow { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 64px; align-items: start; padding: 64px 0; border-top: 1px solid var(--line); }
.srow:first-of-type { border-top: 0; padding-top: 0; }
.srow h2 { font-size: 40px; letter-spacing: -0.038em; }
.srow .lead { font-size: 16.5px; color: #3C575E; margin-top: 20px; max-width: 46ch; line-height: 1.6; }
.slist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 30px; }
.slist div { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
.slist svg { color: var(--gold-ink); flex: none; margin-top: 4px; }

/* ---------------------------------------------------------------------- faq */
.faqgrid { display: grid; grid-template-columns: 0.66fr 1.34fr; gap: 80px; align-items: start; }
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.accq { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: var(--f); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); padding: 26px 0; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.accsign { position: relative; width: 16px; height: 16px; flex: none; }
.accsign i { position: absolute; background: var(--gold-ink); border-radius: 2px; transition: transform .55s var(--ease), opacity .4s var(--ease); }
.accsign i:first-child { left: 0; right: 0; top: 7.2px; height: 1.6px; }
.accsign i:last-child { top: 0; bottom: 0; left: 7.2px; width: 1.6px; }
.acc.open .accsign i:last-child { transform: scaleY(0); opacity: 0; }
.acca { overflow: hidden; }  /* JS collapses these on init, so no-JS leaves them readable */
.acca p { font-size: 15.5px; color: var(--muted); max-width: 72ch; padding-bottom: 28px; line-height: 1.65; }

/* ------------------------------------------------------------------ contact */
.cgrid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: start; }
.cline { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.cline:last-child { border-bottom: 0; }
.cline b { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); font-weight: 700; padding-top: 5px; }
.cline span { color: #3C575E; }
.cline a:hover { color: var(--gold-ink); }
.cta .cline a:hover { color: var(--gold); }
.cta .cline { border-bottom-color: rgba(255,255,255,.15); }
/* Lighter than --gold: over the warm end of the ramp the standard gold falls
   to ~3.1:1, this holds ~4.7:1 and still clears AA on the dark end. */
.cta .cline b { color: #E9C77F; }
.cta .cline span { color: rgba(255,255,255,.84); }

form { background: var(--surface); border-radius: var(--r-xl); padding: 46px 44px; }
.field { margin-bottom: 20px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 9px; }
input, select, textarea {
  width: 100%; padding: 14px 16px; border: 1px solid #7F8D8C; border-radius: var(--r);
  font-family: var(--f); font-size: 15px; background: #FBFCFC; color: var(--ink);
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
input::placeholder, textarea::placeholder { color: #617378; }
input:hover, select:hover, textarea:hover { border-color: var(--deep-2); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold-ink); outline-offset: 1px; border-color: var(--gold-ink); background: #fff; }
textarea { min-height: 116px; resize: vertical; }
.formnote { font-size: 13px; color: var(--muted); margin-top: 16px; text-align: center; }
.mapbox { border-radius: var(--r-lg); overflow: hidden; margin-top: 26px; min-height: 230px; background: linear-gradient(158deg, #DFE6E6, #EDF1F1); display: flex; align-items: center; justify-content: center; text-align: center; padding: 28px; color: var(--muted); font-size: 14px; }

/* ---------------------------------------------------------------------- cta */
.ctaouter { padding-bottom: 24px; }
/* One continuous ramp anchored on the bottom-right corner: deep blue at the
   top-left, through teal and a neutral bronze, into gold at the corner. The
   mid stops are hand-picked rather than left to sRGB interpolation, which
   would cut straight through a dead olive. The warm end stops at #8F6E2C so
   white body copy sitting over it still clears WCAG AA (~5:1). */
.cta {
  background:
    radial-gradient(92% 96% at 104% 114%,
      #8F6E2C 0%,
      #7C6029 13%,
      #665229 26%,
      #4D472C 39%,
      #35402F 51%,
      #203B3C 64%,
      #133340 78%,
      #0B262E 92%),
    var(--deep);
  border-radius: var(--r-xl); padding: 62px 64px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
/* Specificity matters here: `.cta > div` below would otherwise win and turn
   the sheen into an in-flow grid item, splitting the slab into two rows. */
.cta > .ctaglow {
  /* A faint sheen layered over the warm end of the ramp. It grows out of the
     corner on scroll-in (GSAP scales it), hence the transform-origin. */
  position: absolute; inset: 0; transform-origin: 100% 100%;
  background: radial-gradient(52% 60% at 100% 100%,
    rgba(214,166,72,.20) 0%, rgba(198,152,62,.08) 38%, rgba(190,144,56,0) 70%);
  will-change: transform; pointer-events: none;
}
.cta > div { position: relative; }
.cta > .ctaglow { position: absolute; }
.cta h2 { font-size: 50px; color: #fff; letter-spacing: -0.046em; }
.cta p { color: rgba(255,255,255,.72); margin-top: 18px; max-width: 38ch; font-size: 16.5px; }

/* contact details sit as a compact 2 x 2 block so the slab has no dead middle */
.ctainfo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.cta .cline { grid-template-columns: 1fr; gap: 7px; padding: 14px 0; font-size: 14.5px; }
.cta .cline b { padding-top: 0; }
.cta .cline:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
.cta .cline:nth-child(-n+2) { padding-top: 0; }

/* ------------------------------------------------------------------- footer */
footer { padding: 86px 0 44px; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 54px; border-bottom: 1px solid var(--line); }
.fgrid h4 { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; margin-bottom: 22px; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.fgrid li { font-size: 14.5px; color: var(--muted); }
.fgrid li a:hover { color: var(--gold-ink); }
.fblurb { font-size: 14.5px; color: var(--muted); max-width: 37ch; margin-top: 22px; }
.fbot { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }

/* ------------------------------------------------------------ chat widget */
#chatBtn {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  background: var(--deep); color: #fff; border: 0; border-radius: 999px;
  padding: 15px 24px; font-family: var(--f); font-size: 14.5px; font-weight: 500; cursor: pointer;
  box-shadow: 0 18px 40px -14px rgba(11,38,46,.62);
  display: flex; align-items: center; gap: 11px;
  transition: background .5s var(--ease), transform .4s var(--ease);
}
#chatBtn:hover { background: var(--deep-2); transform: translateY(-2px); }
/* The shared `.dot` (process steps) carries a white ring via box-shadow; this
   override previously reset size and colour but not the ring, leaving the gold
   dot sitting inside a white halo. */
#chatBtn .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); display: block; box-shadow: none; flex: none; }
#chatPanel {
  position: fixed; right: 26px; bottom: 26px; z-index: 95;
  width: 386px; max-width: calc(100vw - 32px); height: 580px; max-height: calc(100vh - 40px);
  background: #fff; border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -24px rgba(11,38,46,.5);
  display: none; flex-direction: column; overflow: hidden;
}
#chatPanel.open { display: flex; }
.chat-head { background: var(--deep); color: #fff; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; position: relative; overflow: hidden; }
.chat-head::before { content: ""; position: absolute; right: -20%; top: -90%; width: 70%; height: 260%; background: radial-gradient(closest-side, rgba(190,144,56,.46), rgba(214,164,76,0) 70%); }
.chat-head div { position: relative; }
.chat-head b { font-size: 16px; font-weight: 600; display: block; }
.chat-head small { font-size: 12.5px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.chat-head small i { width: 7px; height: 7px; background: var(--gold); border-radius: 50%; display: block; }
.chat-head button { position: relative; background: none; border: 0; color: #fff; font-size: 23px; cursor: pointer; line-height: 1; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 22px; background: var(--ground); display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: var(--r); font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.msg.bot { background: #fff; border-bottom-left-radius: 5px; align-self: flex-start; color: #3C575E; }
.msg.me { background: var(--deep); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 16px; background: var(--ground); }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-family: var(--f); font-size: 13px; cursor: pointer; color: #3C575E; transition: border-color .4s var(--ease), color .4s var(--ease); }
.chip:hover { border-color: var(--gold); color: var(--gold-ink); }
.chat-in { display: flex; gap: 9px; padding: 15px; border-top: 1px solid var(--line); background: #fff; }
.chat-in input { flex: 1; border-radius: 999px; padding: 12px 18px; }
.chat-in button { background: var(--gold); border: 0; color: var(--deep); width: 46px; height: 46px; border-radius: 50%; cursor: pointer; font-size: 16px; flex: none; transition: background .4s var(--ease); }
.chat-in button:hover { background: var(--gold-ink); color: #fff; }
.typing { display: flex; gap: 5px; padding: 15px 17px; background: #fff; border-radius: var(--r); border-bottom-left-radius: 5px; align-self: flex-start; width: fit-content; }
.typing i { width: 6px; height: 6px; background: #BCC7C7; border-radius: 50%; animation: bl 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes bl { 0%, 60%, 100% { opacity: .3 } 30% { opacity: 1 } }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1360px) {
  .rail { padding-left: 60px; }
}
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 72px; padding-top: 150px; }
  .hero h1 { font-size: 54px; }
  .stack { height: 470px; max-width: 560px; }
  .figcard { left: auto; right: -10px; }
  .pherogrid, .msplit, .msplit.flip, .team, .cgrid, .srow, .faqgrid { grid-template-columns: 1fr; gap: 44px; }
  .phero h1 { font-size: 56px; }
  .cta { grid-template-columns: 1fr; gap: 40px; padding: 56px 44px; }
  .bento { grid-auto-rows: auto; }
  .tile { min-height: 210px; }
  .tile.feature { min-height: 400px; }
  .people { grid-template-columns: 1fr 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .slab { padding: 64px 44px; }
}
@media (max-width: 820px) {
  :root { --nav-h: 100px; }
  .wrap { padding-left: 22px; padding-right: 22px; }
  .navlinks, .nav .pill { display: none; }
  .menubtn { display: flex; }
  .hero { padding-top: 128px; }
  .hero h1 { font-size: 38px; }
  .hero .lede { font-size: 16.5px; }
  /* At phone width the z-cascade has no room: the plates stop overlapping
     and the stack flows, with the figure card riding up over the photo so a
     hint of the layering survives. */
  .stack { height: auto; }
  .pl-back { display: none; }
  .pl-main { position: relative; left: auto; top: auto; width: 100%; height: 216px; }
  .figcard { position: relative; right: auto; bottom: auto; left: auto;
             width: auto; margin: -38px 14px 0; padding: 20px 22px 18px; }
  .phero { padding-top: 124px; padding-bottom: 54px; }
  .phero h1 { font-size: 38px; }
  .pheroart { height: 240px; }
  .strip { grid-template-columns: 1fr; }
  .sb { padding: 24px 0 0; }
  .sb + .sb { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .stitle, .cta h2 { font-size: 34px; }
  .ctainfo { grid-template-columns: 1fr; gap: 0; }
  .cta .cline { border-bottom: 1px solid rgba(255,255,255,.15); padding: 14px 0; }
  .cta .cline:nth-child(-n+2) { padding-top: 14px; }
  .cta .cline:first-child { padding-top: 0; }
  .cta .cline:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: 14px; }
  .cta .cline:last-child { border-bottom: 0; padding-bottom: 0; }
  .srow h2 { font-size: 30px; }
  section { padding-top: 66px; padding-bottom: 66px; }
  .railsec { padding-bottom: 0; }
  /* The title and its "view all" link stop fitting side by side well before
     this width: the link was squeezed into a narrow right-hand gutter and the
     row overflowed outright below ~340px. Stack them instead. */
  .sechead { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
  .railsec { padding-top: 66px; }
  .railpin { min-height: 0; padding: 0 0 20px; }
  .rail { padding-left: 22px; padding-right: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; -webkit-overflow-scrolling: touch; }
  .card { width: 268px; min-height: 0; scroll-snap-align: start; }
  .card:nth-child(even) { margin-top: 0; }
  .railprog { display: none; }
  .psteps { grid-template-columns: 1fr; gap: 32px; }
  .track::before, .trackfill { display: none; }
  .bento, .people, .promise, .slist, .two { grid-template-columns: 1fr; }
  .tile.feature { grid-column: span 1; grid-row: span 1; }
  .cta { padding: 44px 26px; border-radius: var(--r-lg); }
  .fgrid { grid-template-columns: 1fr; gap: 32px; }
  .slab, form { padding: 44px 24px; border-radius: var(--r-lg); }
  .mimg, .portrait { height: 290px; }
  .mobilemenu a { font-size: 28px; }
  .mimg.tall { height: 290px; }
  #chatBtn { right: 16px; bottom: 16px; }
  #chatPanel { right: 16px; bottom: 16px; }
}

/* The stat strip keeps three columns from 821px up, but the number and its
   label only fit side by side once each column is wide enough. Between here
   and ~1200px the label was squeezed to as little as 61px -- "Personal and
   corporate returns each year" broke to six one-word lines and ran into the
   column rule. Stack the number over the label through that band instead. */
@media (min-width: 821px) and (max-width: 1200px) {
  .sb { flex-direction: column; align-items: flex-start; gap: 12px; padding-right: 28px; }
  .sb + .sb { padding-left: 28px; }
  .sb b { font-size: 46px; }
  .sb span { max-width: 24ch; }
}

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