/* Layout: a landing page and five pages (About, Services, People, Careers, Contact) under one set of tabs. Each band is a
   brochure page (white, mist or navy) in a 72rem column; gold marks one thing per band. */
:root {
  --navy: #07152F;
  --gold: #C69B50;
  --bg: #FFFFFF;
  --surface: #F1F2F5;
  --ink: #07152F;
  --text: #30343C;
  --muted: #5B606C;
  --rule: rgba(7, 21, 47, .16);
  --accent: #A47A36;
  --accent-ink: #85652E;
  --deep: #07152F;
  --deep-2: #10244A;
  --deeper: #040D20;
  --deep-overlay: rgba(7, 21, 47, .9);
  --on-deep: #FFFFFF;
  --on-deep-muted: rgba(255, 255, 255, .78);
  --on-deep-faint: rgba(255, 255, 255, .58);
  --rule-deep: rgba(255, 255, 255, .18);
  --map-land: rgba(7, 21, 47, .26);
  --halo: #FFFFFF;
  --error: #B42318;
  --err-text: #FDA29B;         /* error text on navy bands, both themes */
  --gold-hover: #D6AE67;
  --bar-muted: rgba(255, 255, 255, .3);
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: only light;   /* the brand's two colours, navy and white, on every device: no dark version, even when a phone is set to dark mode */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.62 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--deep); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: calc(72rem + 64px); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }

.band { padding-block: clamp(64px, 9vw, 112px); }
.band.mist { background: var(--surface); }
.band.deep { background: var(--deep); color: var(--on-deep-muted); }

/* Type */
.eyebrow { font: 600 .9rem/1.3 var(--sans); color: var(--accent-ink); letter-spacing: .01em; }
.deep .eyebrow { color: var(--gold); }
.title { font: 600 clamp(2.1rem, 4.6vw, 3.4rem)/1.06 var(--display); color: var(--ink); letter-spacing: -.012em; text-wrap: balance; margin-top: .6rem; }
.title .g { color: var(--accent); }
.deep .title { color: var(--on-deep); }
.deep .title .g { color: var(--gold); }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); line-height: 1.55; max-width: 42rem; margin-top: 1.1rem; }
.head { margin-bottom: clamp(36px, 5vw, 60px); }
.label { font: 600 .9rem/1.3 var(--sans); color: var(--ink); }
.deep .label { color: var(--on-deep); }
.label.gold { color: var(--accent-ink); }
.deep .label.gold { color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.3rem; font: 600 .98rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn.gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn.gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn.ghost { color: var(--on-deep); border-color: var(--rule-deep); background: transparent; }
.btn.ghost:hover { border-color: var(--on-deep); }
.btn.line { color: var(--ink); border-color: var(--rule); background: transparent; }
.btn.line:hover { border-color: var(--ink); }
.btn svg { width: 1em; height: 1em; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--deep); border-bottom: 1px solid var(--rule-deep); }
.head-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: block; flex: none; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: clamp(.8rem, 1.2vw, 1.25rem); }
.nav a { color: var(--on-deep-muted); text-decoration: none; white-space: nowrap; font: 500 .9rem/1 var(--sans); padding-block: .55rem; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-deep); border-bottom-color: var(--gold); }
.nav { gap: clamp(1rem, 2vw, 2rem); }
.nav a { font-size: .95rem; }
.nav-extra { display: none; }
.menu-btn { display: none; align-items: center; gap: .5rem; background: none; border: 1px solid var(--rule-deep); color: var(--on-deep); font: 600 .92rem/1 var(--sans); padding: .6rem .85rem; cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; transition: background .2s, box-shadow .2s, transform .2s; }
.menu-btn[aria-expanded="true"] span { background: transparent; box-shadow: 0 0 0 currentColor, 0 0 0 currentColor; }
.menu-btn[aria-expanded="true"] span::before, .menu-btn[aria-expanded="true"] span::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 2px; background: currentColor; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: rotate(-45deg); }
.menu-btn span { position: relative; }
@media (max-width: 1000px) {   /* the tabs move into a full-screen menu */
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: fixed; inset: calc(68px + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 25; flex-direction: column; gap: 0; background: var(--deep); padding: 1rem max(20px, env(safe-area-inset-right, 0px)) calc(2rem + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px)); overflow-y: auto; overscroll-behavior: contain; }
  .nav.is-open { display: flex; animation: menu-in .28s cubic-bezier(.2, .7, .2, 1) both; }
  .nav a[data-page-link] { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid var(--rule-deep); font: 600 clamp(1.75rem, 6.4vw, 2.5rem)/1.15 var(--display); color: var(--on-deep); }
  .nav a[data-page-link]::after { content: "\2192"; font: 400 1.2rem/1 var(--sans); color: var(--on-deep-faint); }
  .nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--rule-deep); }
  .nav-extra { display: grid; gap: 1rem; margin-top: 1.8rem; }
  .nav-extra .btn { justify-content: center; padding-block: 1rem; }
  .nav-extra p { color: var(--on-deep-muted); font-size: .95rem; }
  .nav-extra p a { color: var(--on-deep); }
  body.menu-open { overflow: hidden; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.skip { position: absolute; left: -9999px; top: 0; z-index: 60; background: var(--gold); color: var(--navy); padding: .75rem 1rem; font-weight: 600; text-decoration: none; }
.skip:focus { left: 16px; top: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--deep); color: var(--on-deep-muted); padding-block: clamp(48px, 9vh, 128px) clamp(36px, 6vh, 64px); }   /* spacing follows the screen's height, so the cover and its figures fit one screen on laptops too */
@supports (overflow: clip) { .hero { overflow-x: clip; overflow-y: visible; } }   /* trim the tick at the side only, so the drop-down can open past the cover */
.hero-copy { position: relative; z-index: 2; max-width: min(40rem, 52vw); }   /* above the figures, so the drop-down opens over them */
@media (max-width: 760px) { .hero-copy { max-width: none; } }
.hero h1 { font: 600 clamp(3rem, 8vw, 5.6rem)/1.0 var(--display); color: var(--on-deep); letter-spacing: -.018em; margin-top: 1rem; }
.hero h1 .g { color: var(--gold); display: block; }
.hero-values { font: 500 1.06rem/1.4 var(--sans); color: var(--on-deep); margin-top: 1.4rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
/* The cover's "How can we help?" drop-down: the picker's options, one tap from the first screen */
.pick { position: relative; }
.pick-btn .chev { width: .7rem; height: auto; margin-left: .15rem; color: var(--gold); transition: transform .25s; }
.pick-btn[aria-expanded="true"] { border-color: var(--gold); }
.pick-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.pick-menu { position: absolute; left: 0; top: calc(100% + .45rem); z-index: 5; display: grid; min-width: 100%; width: max-content; max-width: calc(100vw - 32px); padding: .35rem 0; background: var(--deep-2); border: 1px solid var(--rule-deep); border-top: 2px solid var(--gold); box-shadow: 0 18px 40px rgba(4, 13, 32, .45); animation: card-in .25s cubic-bezier(.2, .7, .2, 1) both; }
.pick-menu[hidden] { display: none; }
.pick-menu a { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; padding: .56rem 1.1rem; color: var(--on-deep); font: 500 .98rem/1.3 var(--sans); text-decoration: none; transition: background .15s, color .15s; }
.pick-menu a::after { content: ""; flex: none; width: .4rem; height: .4rem; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); opacity: 0; transition: opacity .15s; }
.pick-menu a:hover, .pick-menu a:focus-visible { background: rgba(255, 255, 255, .06); color: var(--gold); outline: none; box-shadow: inset 2px 0 0 var(--gold); }
.pick-menu a:hover::after, .pick-menu a:focus-visible::after { opacity: 1; }
.pick-menu .pick-all { margin-top: .3rem; padding-top: .8rem; border-top: 1px solid var(--rule-deep); color: var(--gold); font-weight: 600; }
.pick-menu .pick-all::after { display: none; }
.hero-mark { position: absolute; right: -3%; top: 8%; width: min(44vw, 640px); pointer-events: none; }
.hero-mark svg { display: block; width: 100%; height: auto; animation: sweep 1.5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (max-width: 760px) {   /* phones and small tablets: the tick gets its own row above the headline, with the same sweep */
  .hero-mark { position: relative; right: auto; top: auto; width: min(44vw, 210px); margin: 0 max(16px, env(safe-area-inset-right, 0px)) 4px auto; }
}
.home-hero { display: flex; flex-direction: column; justify-content: center; }
.home-hero > .wrap { width: 100%; flex: 1; display: flex; flex-direction: column; }
.home-hero .hero-copy { margin-block: auto; }   /* centred in the space above the figures, which sit at the foot of the cover */
@media (min-width: 761px) { .home-hero { min-height: min(calc(100svh - 68px), 900px); } }
.glance { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 6vh, 88px); border-top: 1px solid var(--rule-deep); }
.glance div { padding: 1.1rem 1rem 0 0; }
.glance dt { font-size: .86rem; color: var(--on-deep-faint); }
.glance dd { font: 600 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--display); color: var(--on-deep); margin-top: .35rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .glance { grid-template-columns: minmax(0, 1fr); }
  .glance div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule-deep); }
  .glance dd { margin: 0; font-size: 1.1rem; text-align: right; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-text { display: grid; gap: 1.1rem; min-width: 0; }
.about-text .first { font-size: clamp(1.08rem, 1.6vw, 1.22rem); line-height: 1.55; color: var(--ink); }
.photo { position: relative; background: var(--surface); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo { aspect-ratio: 4 / 3; max-width: 100%; }
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 72px); margin-top: clamp(48px, 6vw, 80px); padding-top: 1.6rem; border-top: 1px solid var(--ink); }
.vm p:last-child { font: 400 clamp(1.18rem, 2vw, 1.42rem)/1.45 var(--display); color: var(--ink); margin-top: .7rem; text-wrap: pretty; }
@media (max-width: 860px) { .about-grid, .vm { grid-template-columns: minmax(0, 1fr); } }

/* Journey */
.journey-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(36px, 6vw, 88px); align-items: end; }
.timeline li { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: 1rem; padding: 1.15rem .75rem 1.15rem 0; border-top: 1px solid var(--rule-deep); transition: background .2s; }
.timeline li:last-child { border-bottom: 1px solid var(--rule-deep); }
.timeline li[data-bar] { cursor: pointer; }
.timeline li.is-active { background: var(--deep-2); }
.timeline .y { font: 600 1.6rem/1.1 var(--display); color: var(--gold); }
.timeline b { display: block; font-weight: 600; color: var(--on-deep); }
.chart-box .label { margin-bottom: .2rem; }
.chart-box .sub { font-size: .86rem; color: var(--on-deep-faint); }
#team-chart { display: block; width: 100%; height: auto; margin-top: 1.2rem; overflow: visible; }
#team-chart .bar { fill: var(--bar-muted); transition: opacity .25s; }
#team-chart .bar.today { fill: var(--gold); }
#team-chart .val { font: 700 22px var(--sans); fill: var(--on-deep); }
#team-chart .val.in { fill: var(--navy); }
#team-chart .yr { font: 500 18px var(--sans); fill: var(--on-deep-faint); }
#team-chart .axis { stroke: var(--rule-deep); stroke-width: 2; }
#team-chart .bar-g { cursor: pointer; transition: opacity .25s; }
#team-chart[data-active] .bar-g { opacity: .32; }
#team-chart[data-active="1996"] .bar-g[data-key="1996"], #team-chart[data-active="2015"] .bar-g[data-key="2015"], #team-chart[data-active="today"] .bar-g[data-key="today"] { opacity: 1; }
#team-chart.grow .bar { animation: grow 1s cubic-bezier(.2, .7, .2, 1) both; transform-box: fill-box; transform-origin: 50% 100%; }
#team-chart.grow .bar-g:nth-child(2) .bar { animation-delay: .12s; }
#team-chart.grow .bar-g:nth-child(3) .bar { animation-delay: .24s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.chart-box .src { font-size: .8rem; color: var(--on-deep-faint); margin-top: .8rem; }
@media (max-width: 860px) { .journey-grid { grid-template-columns: minmax(0, 1fr); } .chart-box { max-width: 26rem; } }

/* Leadership */
.founder { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.portrait { aspect-ratio: 4 / 5; max-width: 100%; }
.person-name { font: 600 clamp(1.5rem, 2.4vw, 1.9rem)/1.15 var(--display); color: var(--ink); }
.person-role { font: 600 .98rem/1.4 var(--sans); color: var(--accent-ink); margin-top: .35rem; }
.person-creds { font-size: .9rem; color: var(--muted); margin-top: .2rem; }
.bio { display: grid; gap: .9rem; margin-top: 1.1rem; max-width: 44rem; }
.quote { background: var(--deep); color: var(--on-deep); padding: clamp(20px, 3vw, 32px); margin-top: 1.6rem; max-width: 44rem; }
.quote p { font: italic 400 clamp(1.12rem, 1.8vw, 1.32rem)/1.5 var(--display); }
.quote footer { font-size: .88rem; color: var(--on-deep-faint); margin-top: .8rem; }
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 64px); margin-top: clamp(48px, 6vw, 80px); }
.partner { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 1.4rem; padding-top: 1.6rem; border-top: 1px solid var(--ink); align-items: start; }
.partner .person-name { font-size: 1.45rem; }
.partner-body { grid-column: 1 / -1; display: grid; gap: 1rem; }
.creds { display: grid; gap: .45rem; }
.creds li { position: relative; padding-left: 1.2rem; font-size: .95rem; }
.creds li::before { content: ""; position: absolute; left: 0; top: .72em; width: .62rem; height: 2px; background: var(--gold); }
@media (max-width: 900px) { .partners { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .founder { grid-template-columns: minmax(0, 1fr); } .founder .portrait { max-width: 260px; } .partner { grid-template-columns: minmax(0, 110px) minmax(0, 1fr); } }

/* People */
.team-photo { aspect-ratio: 16 / 8; max-width: 100%; }
.team-photo img { object-position: 50% 32%; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(32px, 4vw, 48px); }
.stat { border-top: 1px solid var(--ink); padding-top: 1rem; }
.stat b { display: block; font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; color: var(--accent); }
.stat .cap { display: block; font-size: .95rem; color: var(--muted); margin-top: .45rem; }
.people-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 6vw, 72px); align-items: start; }
.notes { display: grid; gap: 1.6rem; }
.notes h3 { font: 600 1.2rem/1.3 var(--display); color: var(--ink); }
.notes p { margin-top: .35rem; }
.core-photo { aspect-ratio: 1200 / 928; max-width: 100%; }
figcaption { font-size: .86rem; color: var(--muted); margin-top: .6rem; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .people-grid { grid-template-columns: minmax(0, 1fr); } }

/* Team leads */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: 600 .9rem/1 var(--sans); padding: .62rem 1rem; border: 1px solid var(--rule-deep); border-radius: 999px; color: var(--on-deep-muted); background: transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--on-deep); color: var(--on-deep); }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.count { font-size: .9rem; color: var(--on-deep-faint); }
.leads-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }   /* nine cards: 5 + 4 */
.lead-card { min-width: 0; transition: opacity .3s; }
.lead-card.is-dim { opacity: .25; }
.lead-card .photo { aspect-ratio: 4 / 5; max-width: 100%; background: var(--deep-2); }
.lead-card h3 { font: 600 1.12rem/1.25 var(--display); color: var(--on-deep); margin-top: .85rem; }
.lead-card .role { font: 600 .84rem/1.3 var(--sans); color: var(--gold); margin-top: .25rem; }
.lead-card .exp { font-size: .94rem; margin-top: .35rem; }
@media (max-width: 1100px) { .leads-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* 3 x 3 */
@media (max-width: 560px) { .leads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Services */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.tab { text-align: left; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 1rem 1.2rem 1rem 0; font: 600 1.02rem/1.3 var(--sans); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
@media (max-width: 760px) { .tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tab { padding-right: .8rem; font-size: .95rem; } }
.panel { padding-top: clamp(36px, 5vw, 56px); }
.panel-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(28px, 5vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.panel-top h3 { font: 600 clamp(1.8rem, 3.4vw, 2.5rem)/1.1 var(--display); color: var(--ink); text-wrap: balance; }
.panel-top h3 .g { color: var(--accent); }
.panel-top .lead { margin-top: .9rem; }
.svc-groups { display: grid; gap: clamp(32px, 4vw, 48px); }
.svc-group > h4 { font: 600 1.3rem/1.3 var(--display); color: var(--ink); padding-bottom: .6rem; border-bottom: 1px solid var(--ink); }
.svc-row { display: grid; grid-template-columns: minmax(0, 16rem) minmax(0, 1fr); gap: .4rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.svc-row h5 { font: 600 1rem/1.4 var(--sans); color: var(--ink); margin: 0; }
.svc-row p { color: var(--text); }
@media (max-width: 760px) { .panel-top { grid-template-columns: minmax(0, 1fr); } .svc-row { grid-template-columns: minmax(0, 1fr); } }
.lead-box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; background: var(--surface); padding: 1.3rem 1.5rem; margin-top: clamp(32px, 4vw, 48px); }
.lead-box .label.gold { margin-bottom: .2rem; }
.lead-box .who { font: 600 1.25rem/1.25 var(--display); color: var(--ink); }
.lead-box .what { font-size: .92rem; color: var(--muted); }
.motto { display: flex; align-items: flex-start; gap: 1rem; }
.motto svg { flex: none; width: 2.6rem; height: auto; margin-top: .3rem; }
.motto p { font: 600 clamp(1.5rem, 2.6vw, 2rem)/1.12 var(--display); color: var(--ink); }
.motto p .g { color: var(--accent); }
.questions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.4rem; margin-bottom: clamp(36px, 5vw, 56px); }
.questions li { font: 400 1.08rem/1.45 var(--display); color: var(--ink); padding: .9rem 0; border-top: 1px solid var(--rule); }
.x-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.6rem; }
.x-grid > div { border-top: 2px solid var(--gold); padding-top: .9rem; }
.x-grid > .wide { grid-column: 1 / -1; }
.x-grid h4 { font: 600 1.25rem/1.25 var(--display); color: var(--ink); }
.x-grid p { margin-top: .4rem; }
.who-leads { background: var(--deep); color: var(--on-deep-muted); padding: clamp(22px, 3vw, 36px); margin-top: clamp(36px, 5vw, 56px); }
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 2rem; margin-top: 1.2rem; }
.who-grid h4 { font: 600 1.2rem/1.25 var(--display); color: var(--on-deep); }
.who-grid .r { font-size: .86rem; color: var(--on-deep-faint); margin-top: .2rem; min-height: 2.6em; }
.who-grid ul { margin-top: .7rem; border-top: 1px solid var(--rule-deep); }
.who-grid li { position: relative; padding: .55rem 0 .55rem 1.1rem; border-bottom: 1px solid var(--rule-deep); font-size: .94rem; color: var(--on-deep); }
.who-grid li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: .55rem; height: 2px; background: var(--gold); }
@media (max-width: 760px) { .questions, .x-grid, .who-grid { grid-template-columns: minmax(0, 1fr); } .who-grid .r { min-height: 0; } }

/* Industries */
.industries { columns: 3 15rem; column-gap: 2.4rem; border-top: 1px solid var(--ink); }
.industries li { break-inside: avoid; font: 400 1.16rem/1.35 var(--display); color: var(--ink); padding: .85rem 0; border-bottom: 1px solid var(--rule); }

/* Approach */
.approach { background: linear-gradient(var(--deep-overlay), var(--deep-overlay)), url("img/floor.jpg") center / cover no-repeat, var(--deep); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.pillars > div { border-top: 2px solid var(--gold); padding-top: 1.1rem; }
.pillars h3 { font: 600 1.55rem/1.2 var(--display); color: var(--on-deep); }
.pillars p { margin-top: .6rem; }
@media (max-width: 760px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* Where we serve: a world map (site-tools/web_map.py) */
.reach-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
.map-box { position: relative; aspect-ratio: 1200 / 554.5; max-width: 100%; }
#map-svg { display: block; width: 100%; height: 100%; overflow: visible; touch-action: manipulation; }
#map-svg .land, #map-svg .served { fill: none; stroke-linecap: round; transition: opacity .25s; }
#map-svg .land { stroke: var(--map-land); stroke-width: 3.8; }
#map-svg .served { stroke: var(--gold); stroke-width: 4.6; cursor: pointer; }
/* Only the dots, the places and Kochi answer the pointer; the arcs, rings, lights and words are decoration */
#map-svg .arc, #map-svg .comet, #map-svg .ping, #map-svg .ring, #map-svg .pulse, #map-svg text { pointer-events: none; }
#map-svg .arc { fill: none; stroke: var(--ink); stroke-opacity: .5; stroke-width: 1.7; stroke-linecap: round; transition: stroke .25s, stroke-opacity .25s, stroke-width .25s; }
#map-svg .comet { fill: var(--gold); }
#map-svg .place { cursor: pointer; transition: opacity .25s; }
#map-svg .place .hit { fill: transparent; }   /* a larger, invisible target round each place */
#map-svg .place .spot { fill: var(--gold); stroke: var(--halo); stroke-width: 2.4; transform-box: fill-box; transform-origin: center; }
#map-svg .place .ping { fill: none; stroke: var(--gold); stroke-width: 1.6; opacity: 0; transform-box: fill-box; transform-origin: center; }
#map-svg .home { fill: var(--ink); stroke: var(--halo); stroke-width: 3; }
#map-svg .ring { fill: none; stroke: var(--ink); stroke-opacity: .35; stroke-width: 1.8; }
#map-svg .pulse { fill: none; stroke: var(--gold); stroke-width: 2.4; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .85; } 65%, 100% { transform: scale(3.6); opacity: 0; } }
#map-svg text { font: 600 17px var(--sans); fill: var(--ink); paint-order: stroke; stroke: var(--halo); stroke-width: 6px; stroke-linejoin: round; transition: fill .25s, opacity .25s; }
#map-svg text.home-lbl { font-weight: 700; font-size: 20px; }
#map-svg text.grp { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; fill: var(--muted); }
#map-svg text.name { opacity: 0; pointer-events: none; fill: var(--accent-ink); }
#map-svg[data-active] .served { opacity: .22; }
#map-svg[data-active] .land { opacity: .55; }
#map-svg[data-active] .arc { stroke-opacity: .15; }
#map-svg[data-active] .place { opacity: .3; }
#map-svg[data-active] text.grp { opacity: 0; }
#map-svg[data-active="1"] .served[data-r="1"], #map-svg[data-active="2"] .served[data-r="2"], #map-svg[data-active="3"] .served[data-r="3"],
#map-svg[data-active="4"] .served[data-r="4"], #map-svg[data-active="5"] .served[data-r="5"], #map-svg[data-active="6"] .served[data-r="6"],
#map-svg[data-active="7"] .served[data-r="7"], #map-svg[data-active="8"] .served[data-r="8"], #map-svg[data-active="9"] .served[data-r="9"],
#map-svg[data-active="2"] .place[data-r="2"], #map-svg[data-active="3"] .place[data-r="3"], #map-svg[data-active="4"] .place[data-r="4"],
#map-svg[data-active="5"] .place[data-r="5"], #map-svg[data-active="6"] .place[data-r="6"], #map-svg[data-active="7"] .place[data-r="7"],
#map-svg[data-active="8"] .place[data-r="8"], #map-svg[data-active="9"] .place[data-r="9"],
#map-svg[data-active="1"] text.name[data-r="1"], #map-svg[data-active="2"] text.name[data-r="2"], #map-svg[data-active="3"] text.name[data-r="3"],
#map-svg[data-active="4"] text.name[data-r="4"], #map-svg[data-active="5"] text.name[data-r="5"], #map-svg[data-active="6"] text.name[data-r="6"],
#map-svg[data-active="7"] text.name[data-r="7"], #map-svg[data-active="8"] text.name[data-r="8"], #map-svg[data-active="9"] text.name[data-r="9"] { opacity: 1; }
#map-svg[data-active="4"] .arc[data-r="4"], #map-svg[data-active="5"] .arc[data-r="5"], #map-svg[data-active="6"] .arc[data-r="6"], #map-svg[data-active="7"] .arc[data-r="7"] { stroke: var(--gold); stroke-opacity: 1; stroke-width: 3; }
/* The map comes alive when it scrolls into view (site.js): the world appears outwards from Kochi, the arcs to
   the Gulf draw themselves, the places light up and keep a slow pulse, and a gold light travels each arc */
@media (prefers-reduced-motion: no-preference) {
  #map-svg.is-waiting .arc, #map-svg.is-live .arc { stroke-dasharray: var(--len) calc(var(--len) + 10); }
  #map-svg.is-waiting .arc { stroke-dashoffset: var(--len); }
  #map-svg.is-live .arc { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.35, .6, .25, 1) calc(.6s + var(--i) * .2s), stroke .25s, stroke-opacity .25s, stroke-width .25s; }
  #map-svg.is-waiting .place .spot { transform: scale(0); }
  #map-svg.is-live .place .spot { transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) calc(1.2s + var(--i) * .12s); }
  #map-svg.is-live .place .ping { animation: ping 3.6s ease-out calc(2.2s + var(--i) * .45s) infinite; }
  #map-svg.is-waiting text { opacity: 0; }
  #map-svg.is-live:not(.is-done) text:not(.name) { transition: opacity .6s ease 1.8s, fill .25s; }   /* words fade in once; later changes are quick */
}
.map-status { font-size: .9rem; color: var(--muted); margin-top: .8rem; min-height: 1.5em; }
.map-key { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: .4rem; font-size: .88rem; color: var(--muted); }
.map-key span { display: inline-flex; align-items: center; gap: .5rem; }
.map-key svg { width: 1.8rem; height: 1rem; }
.region-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem clamp(28px, 4vw, 56px); max-width: 56rem; }
.region-list ul { border-top: 1px solid var(--ink); margin-top: .5rem; }
.region-list button { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .72rem 0; background: none; border: 0; border-bottom: 1px solid var(--rule); font: 500 1.02rem/1.3 var(--sans); color: var(--ink); text-align: left; cursor: pointer; transition: color .2s; }
.region-list button::after { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--gold); opacity: .35; transition: opacity .2s, transform .2s; }
.region-list button:hover::after, .region-list button.is-active::after { opacity: 1; transform: scale(1.3); }
.region-list button.is-active { color: var(--accent-ink); }
.region-list .home-note { font-size: .9rem; color: var(--muted); }
@media (max-width: 900px) { .region-list { gap: 1.4rem 1.6rem; } #map-svg text { font-size: 22px; stroke-width: 7px; } #map-svg text.home-lbl { font-size: 26px; } #map-svg text.grp { font-size: 16px; } }
@media (max-width: 640px) { .map-box { aspect-ratio: 600 / 436; } }   /* phones show Europe, Africa and Asia (site.js sets the viewBox) */
@media (max-width: 480px) { .region-list { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.c-list { border-top: 1px solid var(--rule-deep); }
.c-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: center; padding: 1.05rem 0; border-bottom: 1px solid var(--rule-deep); }
.c-item dt { grid-column: 1 / -1; font-size: .84rem; color: var(--on-deep-faint); }
.c-item dd { color: var(--on-deep); font-size: 1.08rem; line-height: 1.45; user-select: all; min-width: 0; overflow-wrap: anywhere; }
.c-item .addr { user-select: text; }
.copy { font: 600 .82rem/1 var(--sans); color: var(--on-deep); background: transparent; border: 1px solid var(--rule-deep); padding: .5rem .7rem; cursor: pointer; }
.copy:hover { border-color: var(--on-deep); }
.c-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label { font: 600 .9rem/1.3 var(--sans); color: var(--on-deep); }
.field label small { font-weight: 500; color: var(--on-deep-faint); }
.field input, .field select, .field textarea { width: 100%; min-width: 0; font: 400 1rem/1.4 var(--sans); color: var(--on-deep); background: var(--deep-2); border: 1px solid var(--rule-deep); border-radius: 0; padding: .78rem .85rem; }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--on-deep-faint); }
.field [aria-invalid="true"] { border-color: var(--error); }
.err { font-size: .85rem; color: var(--err-text); }
.form-note { font-size: .86rem; color: var(--on-deep-faint); }
.composed { background: var(--deep-2); padding: 1.3rem 1.4rem; display: grid; gap: .9rem; }
.composed h3 { font: 600 1.25rem/1.3 var(--display); color: var(--on-deep); }
.composed pre { margin: 0; white-space: pre-wrap; font: 400 .95rem/1.5 var(--sans); color: var(--on-deep-muted); background: var(--deep); padding: 1rem; max-height: 16rem; overflow: auto; }
.composed .row { display: flex; flex-wrap: wrap; gap: .75rem; }
.sent-head { display: flex; align-items: center; gap: .8rem; }
.sent-head svg { width: 2.6rem; height: auto; flex: none; animation: sweep .9s cubic-bezier(.2, .7, .2, 1) both; }
.btn[aria-busy="true"] { opacity: .8; cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field input[type="file"] { padding: .55rem .6rem; cursor: pointer; }
.field input[type="file"]::file-selector-button { font: 600 .9rem/1 var(--sans); color: var(--navy); background: var(--gold); border: 0; padding: .62rem .95rem; margin-right: .85rem; cursor: pointer; }
.field input[type="file"]::file-selector-button:hover { background: var(--gold-hover); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* Header call to action */
.head-actions { display: flex; align-items: center; gap: .75rem; flex: none; }
.head-cta { padding: .62rem 1rem; font-size: .9rem; }
@media (max-width: 600px) { .head-cta { display: none; } }

/* Hero: ask MAMAI */
.ask-link { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.3rem; background: none; border: 0; border-bottom: 1px solid var(--rule-deep); padding: .35rem 0; font: 500 .98rem/1.3 var(--sans); color: var(--on-deep); cursor: pointer; transition: border-color .2s; }
.ask-link:hover { border-bottom-color: var(--gold); }
.ask-link svg { width: 1.35rem; height: auto; }

/* Careers */
.careers-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.roles { display: grid; gap: 1.6rem; }
.role { border-top: 2px solid var(--gold); padding-top: .9rem; }
.role h3 { font: 600 1.3rem/1.25 var(--display); color: var(--ink); }
.role p { margin-top: .35rem; }
.why { margin-top: .6rem; }
.apply { background: var(--bg); padding: clamp(20px, 3vw, 34px); }
.apply-title { font: 600 1.45rem/1.2 var(--display); color: var(--ink); }
.apply-sub { margin: .35rem 0 1.2rem; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .careers-grid { grid-template-columns: minmax(0, 1fr); } }

/* Forms on light grounds */
.on-light .field label { color: var(--ink); }
.on-light .field label small { color: var(--muted); }
.on-light .field input, .on-light .field select, .on-light .field textarea { background: var(--surface); border-color: var(--rule); color: var(--ink); }
.on-light .field input::placeholder, .on-light .field textarea::placeholder { color: var(--muted); }
.on-light .err { color: var(--error); }
.on-light .composed { background: var(--surface); }
.on-light .composed h3 { color: var(--ink); }
.on-light .composed p { color: var(--text); }
.on-light .composed pre { background: var(--bg); color: var(--text); }
.on-light .btn.ghost { color: var(--ink); border-color: var(--rule); }
.on-light .btn.ghost:hover { border-color: var(--ink); }
.deep .field input, .deep .field select, .deep .field textarea { color-scheme: dark; }

/* Contact forms switch */
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--rule-deep); margin-bottom: 1.4rem; }
.seg button { background: transparent; border: 0; padding: .9rem 1rem; font: 600 .95rem/1.25 var(--sans); color: var(--on-deep-muted); cursor: pointer; transition: background .2s, color .2s; }
.seg button:hover { color: var(--on-deep); }
.seg button[aria-selected="true"] { background: var(--gold); color: var(--navy); }
.form-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-row.three { grid-template-columns: minmax(0, 1fr); } }
a.copy { text-decoration: none; display: inline-block; }

/* Floating WhatsApp button and MAMAI */
.float { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
.fab { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 0; cursor: pointer; font: 600 .95rem/1 var(--sans); box-shadow: 0 6px 22px rgba(4, 13, 32, .3); }
.fab svg { width: 1.45rem; height: auto; }
.fab.wa { width: 52px; height: 52px; border-radius: 50%; background: var(--deep); color: var(--gold); border: 1.5px solid var(--gold); }
.fab.bot-fab { padding: .85rem 1.15rem .85rem .95rem; border-radius: 999px; background: var(--gold); color: var(--navy); }
.fab.bot-fab svg path { fill: var(--navy); }
.bot { position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 4.6rem); width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100vh - 150px)); display: flex; flex-direction: column; background: var(--bg); color: var(--text); border: 1px solid var(--rule); box-shadow: 0 18px 50px rgba(4, 13, 32, .35); }
.bot-head { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; background: var(--deep); color: var(--on-deep); }
.bot-avatar { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--deep-2); border: 1px solid var(--rule-deep); }
.bot-avatar svg { width: 1.45rem; height: auto; }
.bot-title { min-width: 0; }
.bot-title b { display: block; font: 600 1.1rem/1.2 var(--display); letter-spacing: .06em; }
.bot-title span { display: block; font-size: .78rem; color: var(--on-deep-faint); }
.bot-close { margin-left: auto; flex: none; width: 2.2rem; height: 2.2rem; background: none; border: 1px solid var(--rule-deep); color: var(--on-deep); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.bot-note { font-size: .78rem; line-height: 1.45; color: var(--muted); padding: .6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--rule); }
.bot-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; display: flex; flex-direction: column; gap: .8rem; }
.msg { max-width: 90%; font-size: .94rem; line-height: 1.5; }
.msg.me { align-self: flex-end; background: var(--deep); color: var(--on-deep); padding: .6rem .85rem; }
.msg.bot-msg { align-self: flex-start; background: var(--surface); color: var(--text); padding: .75rem .9rem; }
.msg .answer { white-space: pre-line; }
.msg .privacy { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.foot-note { font-size: .8rem; line-height: 1.5; color: var(--on-deep-faint); margin-top: 1.4rem; }
.msg .go { display: inline-block; margin-top: .45rem; font-weight: 600; color: var(--accent-ink); }
.experts { margin-top: .75rem; padding-top: .7rem; border-top: 1px solid var(--rule); }
.experts p { font: 600 .84rem/1.3 var(--sans); color: var(--ink); margin-bottom: .45rem; }
.experts .acts { display: flex; flex-wrap: wrap; gap: .4rem; }
.experts a { font: 600 .79rem/1 var(--sans); padding: .5rem .62rem; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); text-decoration: none; }
.experts a:hover { border-color: var(--gold); }
.typing span { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.bot-sugs { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .8rem; }
.bot-sugs button { font: 500 .82rem/1.2 var(--sans); padding: .45rem .72rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--bg); color: var(--ink); cursor: pointer; }
.bot-sugs button:hover { border-color: var(--gold); }
.bot-form { display: flex; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid var(--rule); }
.bot-form input { flex: 1; min-width: 0; font: 400 .95rem/1.3 var(--sans); padding: .72rem .8rem; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); }
.bot-form button { flex: none; padding: 0 1.05rem; border: 0; background: var(--gold); color: var(--navy); font: 600 .9rem/1 var(--sans); cursor: pointer; }
@media (max-width: 560px) {
  .bot { left: 0; right: 0; bottom: 0; width: 100%; height: 86vh; padding-bottom: env(safe-area-inset-bottom, 0px); border-width: 1px 0 0; }
  body.bot-open .float { display: none; }
  .fab.bot-fab span { font-size: .9rem; }
}

/* Footer */
.site-foot { background: var(--deeper); color: var(--on-deep-faint); padding-block: clamp(40px, 6vw, 64px) 2.4rem; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, 1.2fr); gap: 2rem clamp(24px, 5vw, 64px); align-items: start; }
.foot-brand img { height: 32px; width: auto; }
.foot-brand .tag { color: var(--on-deep); font: 600 1.15rem/1.3 var(--display); margin-top: 1rem; }
.foot-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: .7rem 2.4rem; }
.foot-nav a, .foot-contact a, .foot-base a { color: var(--on-deep-muted); text-decoration: none; }
.foot-nav a:hover, .foot-contact a:hover, .foot-base a:hover { color: var(--on-deep); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.foot-contact { display: grid; gap: .55rem; line-height: 1.5; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; margin-top: clamp(32px, 4vw, 48px); padding-top: 1.3rem; border-top: 1px solid var(--rule-deep); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* Pages: the hosted site has one file per page; browsers that support it cross-fade between them */
@view-transition { navigation: auto; }
.site-head { view-transition-name: site-head; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .3s; }

/* Page openers: every page after the landing starts with a short navy band and its title */
.page-hero { position: relative; overflow: hidden; background: var(--deep); color: var(--on-deep-muted); padding-block: clamp(56px, 8vw, 104px) clamp(44px, 6vw, 76px); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-title { font: 600 clamp(2.4rem, 5.4vw, 4.1rem)/1.04 var(--display); color: var(--on-deep); letter-spacing: -.015em; margin-top: .7rem; max-width: 46rem; text-wrap: balance; }
.page-title .g { color: var(--gold); }
.page-hero .lead { color: var(--on-deep-muted); }
.ph-mark { position: absolute; right: max(24px, 5vw); bottom: clamp(24px, 4vw, 56px); width: clamp(110px, 16vw, 230px); pointer-events: none; }
.ph-mark svg { display: block; width: 100%; height: auto; animation: sweep 1.2s cubic-bezier(.2, .7, .2, 1) .1s both; }
@media (max-width: 760px) { .ph-mark { width: 84px; top: 22px; right: 16px; bottom: auto; opacity: .6; } }
.page-hero + .band.deep { padding-top: 0; }

/* Landing: how can we help */
.help-grid { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.help-list { display: grid; border-top: 1px solid var(--ink); }
.help-list button { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.05rem .25rem 1.05rem 0; background: none; border: 0; border-bottom: 1px solid var(--rule); text-align: left; font: 500 1.08rem/1.3 var(--sans); color: var(--muted); cursor: pointer; transition: color .2s, padding .25s; }
.help-list button span { color: var(--accent); opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .25s; }
.help-list button:hover { color: var(--ink); }
.help-list button[aria-selected="true"] { color: var(--ink); font-weight: 600; padding-left: .25rem; }
.help-list button[aria-selected="true"] span, .help-list button:hover span { opacity: 1; transform: none; }
.help-card { background: var(--surface); padding: clamp(24px, 4vw, 48px); animation: card-in .35s cubic-bezier(.2, .7, .2, 1) both; }
.help-card h3 { font: 600 clamp(1.7rem, 3.2vw, 2.4rem)/1.12 var(--display); color: var(--ink); margin-top: .6rem; text-wrap: balance; }
.help-card h3 .g { color: var(--accent); }
.help-card h3 + p { font-size: clamp(1.02rem, 1.4vw, 1.12rem); margin-top: 1rem; max-width: 36rem; }
.help-card .led { font-size: .92rem; color: var(--muted); margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.help-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) {
  .help-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .help-list { display: flex; gap: .5rem; overflow-x: auto; border-top: 0; padding-bottom: .3rem; scrollbar-width: none; scroll-snap-type: x proximity; }
  .help-list::-webkit-scrollbar { display: none; }
  .help-list button { flex: none; padding: .7rem 1.05rem; border: 1px solid var(--rule); border-radius: 999px; font-size: .95rem; scroll-snap-align: start; }
  .help-list button span { display: none; }
  .help-list button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; padding-left: 1.05rem; }
}

/* Phone version. Up to 640px wide the page becomes a compact, app-like layout with a fixed action
   bar (Call, WhatsApp, Appointment, MAMAI). Nothing here applies to tablets or computers. */
.m-bar, .fold-btn, .help-nav { display: none; }
@media (max-width: 640px) {
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }
  .band { padding-block: 52px; }
  .hero { padding-block: 40px 30px; }
  .hero h1 { font-size: clamp(2.5rem, 12.5vw, 3.2rem); }
  .cta-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: 1.5rem; }
  .cta-row .btn { justify-content: center; text-align: center; padding: .85rem .5rem; font-size: .92rem; }
  .cta-row .btn.gold { grid-column: 1 / -1; }
  .hero .cta-row { grid-template-columns: minmax(0, 1fr); }
  .pick-btn { width: 100%; }
  .pick-menu { right: 0; width: auto; }
  .page-hero { padding-block: 40px 34px; }
  .help-list { margin-inline: -16px; padding-inline: 16px; }
  .nav { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .ask-link { display: none; }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; margin-top: 30px; }
  .glance div { display: block; padding: .65rem 0; }
  .glance dd { text-align: left; font-size: 1.6rem; margin-top: .2rem; }

  /* The fixed action bar replaces the floating buttons */
  .m-bar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 42; background: var(--deeper); border-top: 1px solid var(--rule-deep); padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); box-shadow: 0 -6px 18px rgba(4, 13, 32, .22); }
  .m-bar a, .m-bar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; min-height: 62px; padding: .4rem .2rem; background: none; border: 0; color: var(--on-deep); font: 600 .74rem/1.1 var(--sans); letter-spacing: .02em; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .m-bar a:active, .m-bar button:active { background: var(--deep-2); }
  .m-bar svg { width: 1.4rem; height: 1.4rem; }
  .m-bar .m-ask { color: var(--gold); }
  .m-bar .m-ask svg { width: 1.6rem; }
  .float .fab { display: none; }
  .float { right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body.bot-open .m-bar { display: none; }

  /* Long text folds behind "Read more"; the careers form opens on request */
  .folded { max-height: var(--fold, 7.6em); overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .m-hidden { display: none !important; }
  .fold-btn { display: inline-flex; align-items: center; gap: .45rem; margin-top: .5rem; padding: .6rem 0; background: none; border: 0; color: var(--accent-ink); font: 600 .94rem/1 var(--sans); cursor: pointer; }
  .fold-btn::after { content: '+'; font-size: 1.15em; }
  .fold-btn[aria-expanded="true"]::after { content: '\2013'; }
  .deep .fold-btn { color: var(--gold); }
  .apply .fold-btn { margin-top: .2rem; padding: .85rem 1.2rem; background: var(--gold); color: var(--navy); }
  .partner .fold-btn { grid-column: 1 / -1; justify-self: start; margin-top: 0; }

  /* Services: each item opens on tap */
  .svc-row h5 { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; cursor: pointer; }
  .svc-row h5::after { content: '+'; flex: none; color: var(--accent); font: 600 1.2rem/1 var(--sans); }
  .svc-row.open h5::after { content: '\2013'; }
  .svc-row p { display: none; }
  .svc-row.open p { display: block; }

  /* Industries in two columns */
  .industries { columns: 2; column-gap: 1.1rem; }
  .industries li { font-size: 1rem; padding: .65rem 0; }

  /* Team leads: one row to swipe; a filter shows only the matching people */
  .leads-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin-inline: -16px; padding: 0 16px .4rem; scrollbar-width: none; overscroll-behavior-x: contain; }
  .leads-grid::-webkit-scrollbar { display: none; }
  .lead-card { scroll-snap-align: start; }
  .lead-card.is-dim { display: none; }
  #lead-count::after { content: ' \00b7  swipe to see more'; }

  /* Text boxes at 16px, so phones do not zoom in while typing */
  input, select, textarea, .bot-form input { font-size: 16px; }

  /* Two colours: navy bands and white bands. The light grey panels of the computer version turn white
     (a navy hairline marks their edges), and the need cards on Home turn navy on the white band. */
  .band.mist { background: var(--bg); border-top: 1px solid var(--rule); }
  .lead-box { background: var(--bg); border: 1px solid var(--navy); }
  .on-light .field input, .on-light .field select, .on-light .field textarea, .on-light .composed { background: var(--bg); }
  .help-card { position: relative; background: var(--deep); color: var(--on-deep-muted); padding: 26px 20px 24px; border-top: 3px solid var(--gold); box-shadow: 0 18px 36px -18px rgba(7, 21, 47, .55); touch-action: pan-y; }
  .help-card h3 { color: var(--on-deep); }
  .help-card h3 .g, .help-card .label.gold { color: var(--gold); }
  .help-card .led { color: var(--on-deep-faint); border-top-color: var(--rule-deep); }
  .help-card .btn.line { color: var(--on-deep); border-color: var(--rule-deep); }
  .help-card .help-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
  .help-card .help-actions .btn { justify-content: center; }
  .help-card.from-next { animation: card-from-next .4s cubic-bezier(.2, .7, .2, 1) both; }
  .help-card.from-prev { animation: card-from-prev .4s cubic-bezier(.2, .7, .2, 1) both; }
  .help-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 16px; }
  .help-dots { display: flex; gap: 7px; }
  .help-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: var(--rule); cursor: pointer; transition: width .3s, background-color .3s; }
  .help-dots button[aria-current="true"] { width: 22px; background: var(--navy); }
  .help-nav p { font-size: .82rem; color: var(--muted); }
  .help-arrows { display: flex; gap: .5rem; }
  .help-arrows button { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); cursor: pointer; }
  .help-arrows button:disabled { opacity: .35; cursor: default; }
  .help-arrows svg { width: 15px; height: 15px; }

  /* A thin gold line under the header shows how far down the page you are */
  .site-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); transform: scaleX(var(--read, 0)); transform-origin: 0 50%; }

  /* Taps feel pressed */
  .btn, .help-list button, .help-arrows button, .tab, .chip { transition: transform .12s ease, background-color .2s, border-color .2s, color .2s; }
  .btn:active, .help-list button:active, .help-arrows button:active, .tab:active, .chip:active { transform: scale(.97); }
}
@keyframes card-from-next { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes card-from-prev { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes menu-link { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  /* The cover arrives line by line after the gold tick sweeps in */
  .home-hero .eyebrow, .home-hero h1, .home-hero .hero-values, .home-hero .cta-row, .home-hero .glance, .page-hero .wrap > * { animation: rise .75s cubic-bezier(.2, .7, .2, 1) both; }
  .home-hero h1, .page-hero .wrap > :nth-child(2) { animation-delay: .1s; }
  .home-hero .hero-values, .page-hero .wrap > :nth-child(3) { animation-delay: .2s; }
  .home-hero .cta-row, .page-hero .wrap > :nth-child(4) { animation-delay: .3s; }
  .home-hero .glance { animation-delay: .42s; }
  /* Sections rise into view as the page scrolls (site.js marks them; without the script they simply show) */
  .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rv-delay, 0s); }
  .rv.in { opacity: 1; transform: none; }
  .nav.is-open a[data-page-link], .nav.is-open .nav-extra { animation: menu-link .45s cubic-bezier(.2, .7, .2, 1) both; }
  .nav.is-open a[data-page-link]:nth-child(2) { animation-delay: .04s; }
  .nav.is-open a[data-page-link]:nth-child(3) { animation-delay: .08s; }
  .nav.is-open a[data-page-link]:nth-child(4) { animation-delay: .12s; }
  .nav.is-open a[data-page-link]:nth-child(5) { animation-delay: .16s; }
  .nav.is-open a[data-page-link]:nth-child(6) { animation-delay: .2s; }
  .nav.is-open .nav-extra { animation-delay: .26s; }
}

/* Intro: when someone arrives on Home after a day away, numbers gather into the MAM monogram, the gold tick strikes, and MAM opens out into
   the full logo, which settles into the header (site.js, "Intro"; five seconds, Skip or Esc ends it) */
html.intro-on { overflow: hidden; scrollbar-gutter: stable; background: var(--navy); }   /* the page keeps its width, so the logo lands exactly */
html.intro-on:not(.intro-ready) body::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: var(--navy); }   /* covers the page from the first paint */
html.intro-on .site-head .brand img { opacity: 0; }   /* the intro's logo lands here */
.intro { position: fixed; inset: 0; z-index: 1001; overflow: hidden; color: var(--on-deep); }
.intro-bg { position: absolute; inset: 0; background: radial-gradient(110% 80% at 50% 46%, #0D2350 0%, var(--navy) 58%, var(--deeper) 100%); }
.intro-art, .intro-fx { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.intro .part { transform-box: view-box; transform-origin: 0 0; }
.intro .glyph { transform-box: fill-box; transform-origin: center; }
.intro-since { position: absolute; left: 0; right: 0; margin: 0; display: flex; justify-content: center; align-items: center; gap: .9em; font: 600 clamp(.68rem, 1.6vw, .8rem)/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.intro-since span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.intro-skip { position: absolute; z-index: 2; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 16px)); padding: .72rem 1.1rem; font: 600 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-deep-muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--rule-deep); border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s; }
.intro-skip:hover, .intro-skip:focus-visible { color: var(--gold); border-color: var(--gold); }
/* As the intro leaves, the cover arrives: the headline rises and the gold tick sweeps in */
html.intro-after .home-hero .eyebrow, html.intro-after .home-hero h1, html.intro-after .home-hero .hero-values,
html.intro-after .home-hero .cta-row, html.intro-after .home-hero .glance { animation: intro-rise .8s cubic-bezier(.2, .7, .2, 1) .5s both; }
html.intro-after .home-hero h1 { animation-delay: .6s; }
html.intro-after .home-hero .hero-values { animation-delay: .7s; }
html.intro-after .home-hero .cta-row { animation-delay: .8s; }
html.intro-after .home-hero .glance { animation-delay: .92s; }
html.intro-after .hero-mark svg { animation: intro-sweep 1.5s cubic-bezier(.2, .7, .2, 1) .55s both; }
@keyframes intro-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes intro-sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
