/* ==========================================================================
   Percival — capital market infrastructure software
   Design system: Percival CVI — Nordic Gray on white, Gotham, the official product colours.
   No frameworks, no external resources. All assets served from this origin.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --ink:        #33363A;   /* body text — deep cool grey */
  --ink-2:      #53565A;   /* Nordic Gray (Cool Gray 11 C) — footer, CTA band */
  --ink-soft:   #4A4D51;   /* long-form body */
  --head:       #53565A;   /* headings — Nordic Gray */
  --paper:      #FFFFFF;   /* page ground — CVI white */
  --paper-2:    #F4F4F5;   /* alternate panel */
  --card:       #FAFAFB;   /* raised surface */
  --line:       #E2E3E5;   /* hairlines */
  --line-mid:   #C9CBCE;
  --muted:      #6E7176;   /* secondary text */
  --green:      #00865A;   /* Arab Green, AA-darkened — links, actions */
  --green-deep: #006C48;
  --accent:      #B46100;  /* Saffron, AA-darkened for text */
  --green-vivid: #009765;  /* Arab Green, official — graphics only */
  --accent-soft: #F5C98E;
  --accent-bright: #FFC72C; /* Barbados Yellow on Nordic Gray */
  /* product colours — sampled from Percival product artwork, darkened to AA */
  --c-depend:   #00865A;  --c-depend-d:  #006C48;
  --c-regard:   #B46100;  --c-regard-d:  #904D00;
  --c-revenue:  #56821D;  --c-revenue-d: #456817;
  --c-hubble:   #0081A2;  --c-hubble-d:  #006681;
  --paper-on-ink: #FFFFFF;
  --muted-on-ink: #C9CBCD;
  --line-on-ink: rgba(255, 255, 255, 0.24);

  --serif: 'Gotham', 'Segoe UI', system-ui, sans-serif;
  --sans:  'Gotham', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:  'Gotham', 'Segoe UI', system-ui, sans-serif; /* label face — the CVI has no mono; labels are letterspaced Gotham */

  --w-max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);

  color-scheme: light;
}

/* per-product colour scope */
.p-depend  { --pc: var(--c-depend);  --pc-d: var(--c-depend-d); }
.p-regard  { --pc: var(--c-regard);  --pc-d: var(--c-regard-d); }
.p-revenue { --pc: var(--c-revenue); --pc-d: var(--c-revenue-d); --pc-btn: #7CBC2A; --pc-btn-h: #74B027; --pc-btn-fg: #33363A; }
.p-hubble  { --pc: var(--c-hubble);  --pc-d: var(--c-hubble-d);  --pc-btn: #009CC4; --pc-btn-h: #0090B5; }
.page-head .stat b { color: var(--pc, var(--green)); }
.page-head .btn-primary { background: var(--pc-btn, var(--pc, var(--green))); color: var(--pc-btn-fg, var(--paper)); }
.page-head .btn-primary:hover { background: var(--pc-btn-h, var(--pc-d, var(--green-deep))); color: var(--pc-btn-fg, var(--paper)); }
.page-head .btn-ghost:hover { background: var(--pc-btn, var(--pc, var(--green))); border-color: var(--pc-btn, var(--pc, var(--green))); color: var(--pc-btn-fg, var(--paper)); }
.page-head :focus-visible { outline-color: var(--pc, var(--green)); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
button, input, select, textarea { font: inherit; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--green-deep); }
strong, b { font-weight: 400; }
address { font-style: normal; }
::selection { background: var(--green); color: var(--paper); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 1px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1.1rem; font-size: 0.9rem; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--paper); }

/* ---------- type ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; line-height: 1.14; letter-spacing: -0.005em; color: var(--head); }
.display {
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.h-section { font-size: clamp(1.6rem, 2.7vw, 2.2rem); line-height: 1.16; text-wrap: balance; color: var(--pc, var(--head)); }
.h-item { font-size: 1.18rem; line-height: 1.3; }
.h-green { color: var(--green); }
.h-accent { color: var(--accent); }
.lede {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
  text-wrap: pretty;
}
.kicker {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--green);
}
.kicker--muted { color: var(--muted); }
.num {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}
p + p { margin-top: 1em; }
.prose { max-width: 62ch; color: var(--ink-soft); }
.prose a { color: var(--green); }
.small { font-size: 0.92rem; }
.mono { font-family: var(--mono); }

/* ---------- layout ---------- */
.container { max-width: var(--w-max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.2rem, 8.5vw, 7.2rem); }
[id] { scroll-margin-top: 82px; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.6rem); }
.section--flush { padding-top: 0; }
.page-head.page-head--flush { border-bottom: none; }
.page-head--flush .page-head-inner { padding-bottom: clamp(2.55rem, 5.25vw, 4.2rem); }
.section--rule { border-top: 1px solid var(--line); }
.panel-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.panel-card { background: var(--card); border-block: 1px solid var(--line); }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 1.2rem 2rem;
  margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem);
}
.section-link {
  font-family: var(--sans); font-weight: 400; font-size: 0.92rem;
  color: var(--green); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-bottom: 1px solid currentColor; padding-bottom: 0.15rem;
}
.section-link:hover { color: var(--green-deep); }
.section-link .arr { transition: transform 0.22s ease; }
.section-link:hover .arr { transform: translateX(3px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--sans); font-weight: 400; font-size: 0.82rem;
  letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none;
  padding: 0.92rem 1.6rem; border: 1px solid transparent; border-radius: 2px;
  cursor: pointer; transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--green); color: var(--paper); }
.btn-primary:hover { background: var(--green-deep); color: var(--paper); }
.btn-ink { background: var(--ink-2); color: var(--paper); }
.btn-ink:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--accent-bright); color: var(--ink-2); }
.btn-paper-ghost { border-color: rgba(245, 242, 234, 0.5); color: var(--paper); background: transparent; }
.btn-paper-ghost:hover { border-color: var(--paper); background: rgba(245, 242, 234, 0.08); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.arr { flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 66px; gap: 2rem;
}
.brand {
  display: inline-flex; align-items: center;
  text-decoration: none; color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-logo { height: 28px; width: auto; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-mid); border-radius: 2px;
  padding: 0.55rem 0.7rem; cursor: pointer; color: var(--ink);
}
.nav-toggle-bars { display: block; width: 20px; height: 14px; position: relative; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor;
  transition: transform 0.22s ease, opacity 0.18s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6.25px; }
.nav-toggle-bars span:nth-child(3) { bottom: 0; }
.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(6.25px) rotate(45deg); }
.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-6.25px) rotate(-45deg); }

.site-nav > ul { list-style: none; padding: 0; display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.1rem); }
.site-nav a, .nav-drop-btn {
  font-family: var(--sans); font-weight: 400; font-size: 0.93rem;
  color: #2B333D; text-decoration: none;
}
.site-nav a[aria-current], .nav-drop-btn[aria-current] {
  text-decoration: underline; text-underline-offset: 0.45em; text-decoration-thickness: 1.5px;
}
.site-nav .drop-item[aria-current] { text-decoration: none; }

/* products dropdown */
.has-drop { position: relative; }
.nav-drop-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.42rem;
}
.nav-drop-btn .caret { transition: transform 0.2s ease; }
.nav-drop-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
.drop-panel {
  display: none;
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: min(660px, calc(100vw - 2 * var(--gutter)));
  background: var(--card); border: 1px solid var(--line-mid); border-radius: 2px;
  box-shadow: 0 18px 44px rgba(45, 47, 51, 0.14);
  padding: 0.45rem;
}
.drop-panel::before { /* hover bridge over the gap */
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.has-drop.open .drop-panel { display: block; }
html:not(.js) .has-drop:hover .drop-panel,
html:not(.js) .has-drop:focus-within .drop-panel { display: block; }
.drop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; align-items: start; list-style: none; padding: 0; }
.drop-item { display: block; padding: 0.55rem 0.65rem; text-decoration: none; border-radius: 2px; }
.drop-item:hover { background: var(--paper-2); }
.drop-item .d-name { font-family: var(--serif); font-size: 0.93rem; font-weight: 400; letter-spacing: 0.03em; color: var(--pc, var(--ink)); display: inline-block; vertical-align: middle; }
.drop-item .d-icon { vertical-align: middle; margin-top: -2px; }
.drop-item:hover .d-name { color: var(--pc-d, var(--green)); }
.drop-item .d-role { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 0.2rem; }

/* ---------- hero (front page) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; z-index: 0;
  top: 50%; right: -14vw; transform: translateY(-50%);
  width: clamp(520px, 58vw, 860px); height: clamp(520px, 58vw, 860px);
  background: url('../img/rosette-ink.svg') center / contain no-repeat;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(100deg, transparent 4%, #000 42%);
  mask-image: linear-gradient(100deg, transparent 4%, #000 42%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { padding-block: clamp(4.2rem, 9vw, 7.6rem) clamp(3.2rem, 6vw, 5rem); max-width: 720px; }
.hero .lede { margin-top: 1.6rem; }
.hero .btn-row { margin-top: 2.4rem; }
/* the first section sits closer under the home hero */
.hero + .section { padding-top: clamp(2.8rem, 5vw, 4.2rem); }

/* ---------- markets map (front page, under the markets table) ---------- */
/* map-dots.svg (tools/gen_map.py) is the dotted land; the inline svg over it
   holds the markers and labels in the same 1100 x 452 viewBox */
.map { position: relative; margin: clamp(2.6rem, 5vw, 4.2rem) 0 0; }
.map-dots { /* the cut edges of the dot field fade out on all four sides */
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent),
                      linear-gradient(180deg, transparent, #000 8%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent),
              linear-gradient(180deg, transparent, #000 8%, #000 94%, transparent);
  mask-composite: intersect;
}
.map-marks { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--paper); } /* color = label halos and marker rings */
.panel-alt .map-marks { color: var(--paper-2); }
.map-marks text { font-family: var(--mono); letter-spacing: 0.1em; }
@media (max-width: 560px) { .map-marks text { display: none; } }

.statbar {
  border-top: 1px solid var(--line);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 62%, transparent);
  backdrop-filter: blur(2px);
}
.statbar-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: 1.5rem 1.6rem 1.6rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat b {
  display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem;
  line-height: 1.05; letter-spacing: -0.01em; color: var(--green);
}
.stat span {
  display: block; margin-top: 0.5rem;
  font-family: var(--mono); font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
}

/* ---------- product ledger (front page) ---------- */
.ledger { list-style: none; padding: 0; border-top: 1px solid var(--line-mid); }
.ledger li { border-bottom: 1px solid var(--line-mid); }
.ledger-row {
  display: grid;
  grid-template-columns: 250px 1fr 44px;
  gap: 1.2rem 2.2rem; align-items: start;
  padding: 1.9rem 0.2rem;
  text-decoration: none; color: inherit;
}
.ledger-name {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2.1vw, 1.7rem);
  letter-spacing: 0.02em; line-height: 1.15; color: var(--pc, var(--ink)); transition: color 0.18s ease;
}
.ledger-role {
  display: block; margin-top: 0.4rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.ledger-desc { color: var(--ink-soft); font-size: 0.99rem; max-width: 56ch; }
.ledger-arr { align-self: center; color: var(--line-mid); transition: color 0.18s ease, transform 0.22s ease; }
.ledger-row:hover .ledger-name { color: var(--pc-d, var(--green)); }
.ledger-row:hover .ledger-arr { color: var(--pc, var(--green)); transform: translateX(4px); }
.ledger-row:focus-visible { outline-offset: -2px; }

/* ---------- diagrams ---------- */
.diagram { width: 100%; height: auto; }
.diagram text {
  font-family: var(--mono);
  letter-spacing: 0.08em;
}
.diagram-frame {
  border: 1px solid var(--line-mid);
  background: var(--card);
  padding: clamp(1.2rem, 3vw, 2.6rem);
}
.diagram-frame--bare { border: none; background: transparent; padding: 0; }
.diagram-caption {
  margin-top: 1rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- product screens (UI captures, see tools/screenshot.js) ---------- */
.screen-band { position: relative; overflow: hidden; }
.screen-band::before {
  content: "";
  position: absolute; z-index: 0;
  top: -12%; right: -12vw;
  width: clamp(440px, 50vw, 760px); height: clamp(440px, 50vw, 760px);
  background: url('../img/rosette-ink.svg') center / contain no-repeat;
  opacity: 0.13;
  pointer-events: none;
}
.screen-band .container { position: relative; z-index: 1; }
.section-head .prose { margin-top: 0.9rem; }
.screen { margin: 0; }
.screen-window {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-mid);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(45, 47, 51, 0.06),
    0 26px 64px -20px rgba(45, 47, 51, 0.34),
    0 56px 110px -44px color-mix(in srgb, var(--pc-btn, var(--pc, var(--green))) 45%, transparent);
}
.screen-window img { width: 100%; height: auto; }
@media (max-width: 560px) {
  .screen-window { border-radius: 6px; }
}

/* ---------- feature grid (product capabilities) ---------- */
.features {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0 clamp(2rem, 5vw, 4.5rem);
  list-style: none; padding: 0;
}
.feature { border-top: 1px solid var(--line); padding: 1.6rem 0 1.9rem; }
.feature h3 { font-size: 1.12rem; margin-bottom: 0.55rem; color: var(--pc, var(--head)); }
.feature p { color: var(--ink-soft); font-size: 0.97rem; max-width: 54ch; }

/* ---------- chips / standards strip ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; }
.chip {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--line-mid); border-radius: 2px;
  padding: 0.5rem 0.85rem; background: var(--card);
}

/* ---------- markets table ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-mid); }
.markets { width: 100%; border-collapse: collapse; min-width: 780px; }
.markets caption {
  text-align: left; padding: 0 0 1.1rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--muted);
}
.markets th {
  font-family: var(--mono); font-weight: 400; font-size: 0.68rem;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 0.9rem 1.2rem 0.9rem 0;
  border-bottom: 1px solid var(--line-mid);
}
.markets td {
  padding: 1.05rem 1.2rem 1.05rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top; font-size: 0.96rem;
}
.markets td.c-region {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap; padding-top: 1.25rem;
}
.markets td.c-market b { display: block; }
.markets td.c-market span { color: var(--muted); font-size: 0.88rem; }
.markets td.c-sys { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--green); white-space: nowrap; }
.markets td.c-live { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

/* ---------- three-up pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.6rem, 4vw, 3.4rem); list-style: none; padding: 0; }
.pillar { border-left: 1px solid var(--line-mid); padding-left: 1.5rem; }
.pillar h3 { font-size: 1.2rem; margin-bottom: 0.7rem; }
.pillar p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3.5vw, 3rem); list-style: none; padding: 0; }
.news-item { border-top: 1px solid var(--line-mid); padding-top: 1.3rem; }
.news-item time {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 0.7rem;
}
.news-item h3 { font-size: 1.12rem; line-height: 1.35; }
.news-item p { margin-top: 0.6rem; color: var(--ink-soft); font-size: 0.94rem; }

.news-list { list-style: none; padding: 0; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-entry {
  display: grid; grid-template-columns: 170px 1fr; gap: 1rem 2.6rem;
  padding: 1.9rem 0;
}
.news-entry time {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); padding-top: 0.45rem;
}
.news-entry h2 { font-size: 1.3rem; line-height: 1.32; }
.news-entry p { margin-top: 0.55rem; color: var(--ink-soft); font-size: 0.97rem; max-width: 68ch; }

/* documents page */
.doc-page { padding-top: clamp(3.4rem, 7vw, 5.6rem); }
.doc-head + .doc-list { margin-top: 1rem; }
.lede + .doc-list { margin-top: 2rem; }
.doc-head + .lede { margin-top: 1.4rem; } /* same air as under a page-head title */
.doc-list + .doc-head { margin-top: 3.4rem; }
.doc-list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.doc-list li {
  display: grid; grid-template-columns: 170px 1fr; gap: 0.3rem 2.6rem;
  padding: 1.1rem 0; border-bottom: 1px solid var(--line);
}
.doc-kind {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); padding-top: 0.3rem;
}
.doc-list a { color: var(--ink); text-decoration: none; font-size: 1.08rem; }
.doc-list a:hover { color: var(--green); }

/* product sections on the clients page */
.product-logo-head { line-height: 1; }
.product-logo-head img { height: 42px; width: auto; }
.product-section-lede { color: var(--muted); margin-top: 0.8rem; font-size: 0.97rem; }

/* ---------- team ---------- */
.team-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 2.6rem 1.6rem; justify-items: center;
}
.team-member { text-align: center; max-width: 190px; }
.team-photo {
  width: 100%; max-width: 170px; height: auto; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; margin-inline: auto;
}
.team-name { margin-top: 1rem; color: var(--ink); }
.team-role { margin-top: 0.2rem; color: var(--muted); font-size: 0.88rem; }
.team-grid + .btn-row { margin-top: clamp(2.55rem, 5.25vw, 4.2rem); } /* same gap as masthead to grid */@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .team-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; } }

/* ---------- news articles ---------- */
.article-date {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.article-body { max-width: 68ch; }
.article-figure { margin: 2.2rem 0 0; }
.article-figure:not(.article-logo) img { width: 100%; height: auto; }
.article-logo img { max-width: 100%; height: auto; }
.article-body > .article-figure:first-child { margin-top: 0; }
.article-figure + p { margin-top: 1.6rem; }
.article-figure figcaption { margin-top: 0.7rem; color: var(--muted); font-size: 0.88rem; }
.article-list { margin: 1em 0 0 1.2em; list-style: disc; }
.article-list li + li { margin-top: 0.4em; }
.article-table { margin-top: 1.4rem; overflow-x: auto; }
.article-table table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.article-table th, .article-table td { border: 1px solid var(--line-mid); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.article-table th { background: var(--paper-2); color: var(--head); font-weight: 500; }
.article-list + p, .article-table + p { margin-top: 1em; }
.article-back { margin-top: 3rem; }
.news-entry h2 a, .news-item h3 a { color: inherit; text-decoration: none; }
.news-entry h2 a:hover, .news-item h3 a:hover { color: var(--green); }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; border-top: 1px solid var(--line-mid); }
.timeline li {
  display: grid; grid-template-columns: 110px 1fr; gap: 1rem 2.4rem;
  border-bottom: 1px solid var(--line); padding: 1.35rem 0;
}
.timeline .year {
  font-family: var(--serif); font-weight: 400; font-size: 1.2rem;
  color: var(--accent); letter-spacing: 0.02em;
}
.timeline .event b { display: block; }
.timeline .event span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- cards (offices, registrars, related products) ---------- */
.card-grid { display: grid; gap: 1.2rem; list-style: none; padding: 0; }
.card-grid--2 { grid-template-columns: 1fr 1fr; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--line-mid); background: var(--card); border-radius: 2px;
  padding: 1.7rem 1.7rem 1.8rem;
}
.card .kicker { display: block; margin-bottom: 0.9rem; }
.card h3 { font-size: 1.18rem; margin-bottom: 0.5rem; color: var(--pc, var(--head)); }
.card h3 + .kicker { margin-bottom: 0; }
.card-icon { display: inline-block; height: 20px; width: auto; vertical-align: -3px; margin-right: 0.5rem; }
.card p, .card address { color: var(--ink-soft); font-size: 0.95rem; }
.card a.plain { color: var(--green); }

a.card { display: flex; flex-direction: column; height: 100%; text-decoration: none; transition: border-color 0.18s ease; }
a.card:hover { border-color: var(--pc, var(--green)); }
a.card:hover h3 { color: var(--pc-d, var(--green)); }

/* ---------- page head (subpages) ---------- */
.page-head { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head .container { position: relative; z-index: 1; }
.page-head-inner { padding-block: clamp(3.4rem, 7vw, 5.6rem); max-width: 760px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3.05rem); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
.page-head .lede { margin-top: 1.4rem; }
.page-head .btn-row { margin-top: 2.2rem; }
.page-head--art::before {
  content: "";
  position: absolute; z-index: 0;
  top: 50%; right: -16vw; transform: translateY(-50%);
  width: clamp(420px, 46vw, 680px); height: clamp(420px, 46vw, 680px);
  background: url('../img/rosette-ink.svg') center / contain no-repeat;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(100deg, transparent 4%, #000 42%);
  mask-image: linear-gradient(100deg, transparent 4%, #000 42%);
  pointer-events: none;
}

/* product keyword burst (masthead artwork) */
.page-head .burst {
  position: absolute; z-index: 0;
  top: 50%; right: -20px; transform: translateY(-50%);
  width: clamp(400px, 40vw, 580px); height: auto;
  pointer-events: none;
}
.page-head .page-head-inner { position: relative; z-index: 1; }
/* anchor each burst's topmost keyword exactly 24px below the masthead top;
   the subtracted term is that artwork's own empty headroom (units/660 x width) */
.page-head.p-depend .burst { transform: none; top: calc(24px - 0.0970 * clamp(400px, 40vw, 580px)); }
/* REGARD's artwork is the tallest and its masthead the shortest: capped at 530px so the lowest keyword clears the masthead's bottom edge */
.page-head.p-regard .burst { transform: none; width: clamp(400px, 40vw, 530px); top: calc(24px - 0.0591 * clamp(400px, 40vw, 530px)); }
.page-head.p-revenue .burst { transform: none; top: calc(24px - 0.0318 * clamp(400px, 40vw, 580px)); }
.page-head.p-hubble .burst { transform: none; top: calc(24px - 0.0606 * clamp(400px, 40vw, 580px)); }
.page-head .burst text { font-family: var(--sans); }
@media (max-width: 1080px) {
  .page-head .burst { display: none; }
}

/* product masthead name */
.product-h1 { letter-spacing: 0.025em; color: var(--pc, var(--head)); }
.product-icon { height: 44px; width: auto; align-self: center; }
.ledger-title { display: flex; align-items: center; gap: 0.7rem; }
.ledger-icon { height: 24px; width: auto; flex: none; }
.d-icon { display: inline-block; height: 15px; width: auto; vertical-align: -2px; margin-right: 0.5rem; }
.product-name-row { display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap; }
.product-role { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }

/* ---------- split (two-column prose) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.split .h-section { position: sticky; top: 96px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink-2); color: var(--paper-on-ink);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; top: 50%; right: -180px; transform: translateY(-50%);
  width: 640px; height: 640px;
  background: url('../img/rosette-paper.svg') center / contain no-repeat;
  opacity: 0.16; pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-inner { padding-block: clamp(3.6rem, 7vw, 5.8rem); max-width: 720px; }
.cta-band h1, .cta-band h2 { color: var(--paper-on-ink); }
.cta-band p { color: var(--muted-on-ink); margin-top: 1.1rem; max-width: 56ch; }
.cta-band .btn-row { margin-top: 2.2rem; }
.cta-band a.mail { color: var(--accent-bright); text-decoration-color: rgba(194, 169, 104, 0.5); }
.cta-band a.mail:hover { color: var(--paper); }
.cta-band :focus-visible { outline-color: var(--accent-bright); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); color: var(--muted-on-ink); flex-shrink: 0; }
.footer-band {
  height: 64px;
  background: url('../img/band-paper.svg') left center repeat-x;
  background-size: auto 100%;
  opacity: 0.3;
  border-bottom: 1px solid var(--line-on-ink);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.6rem; padding-block: 3.6rem 3rem;
}
.footer-brand .brand { color: var(--paper-on-ink); margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.92rem; max-width: 30ch; }
.site-footer h2 {
  font-family: var(--mono); font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-bright);
  margin-bottom: 1.1rem;
}
.footer-list { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-list a { color: var(--paper-on-ink); text-decoration: none; font-size: 0.95rem; opacity: 0.86; }
.footer-list a:hover { color: var(--paper-on-ink); opacity: 1; text-decoration: underline; text-underline-offset: 0.3em; }
.footer-brand address { font-size: 0.92rem; line-height: 1.7; }
.footer-brand address a { color: var(--paper-on-ink); }
.footer-bottom {
  border-top: 1px solid var(--line-on-ink);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 0.7rem 2rem; justify-content: space-between;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em;
}
.footer-bottom a { color: var(--muted-on-ink); }
.footer-bottom a:hover { color: var(--paper-on-ink); }
.site-footer :focus-visible { outline-color: var(--accent-bright); }

/* ---------- reveal (progressive enhancement) ---------- */
.reveal-pending { opacity: 0; transform: translateY(14px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }

/* ---------- 404 ---------- */
.error-hero { text-align: left; padding-block: clamp(5rem, 12vw, 9rem); }
.error-code { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.2em; color: var(--accent); display: block; margin-bottom: 1.2rem; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line-mid);
    box-shadow: 0 22px 40px rgba(45, 47, 51, 0.12);
    display: none;
  }
  .nav-open .site-nav { display: block; }
  html:not(.js) .site-nav { position: static; display: block; box-shadow: none; border: none; }
  .site-nav > ul {
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.6rem var(--gutter) 1.2rem;
  }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav li:first-child { border-top: none; }
  .site-nav a, .nav-drop-btn { display: block; width: 100%; text-align: left; padding: 0.85rem 0; font-size: 1rem; }
  .drop-panel {
    position: static; transform: none; width: auto; box-shadow: none;
    border: none; border-left: 1px solid var(--line-mid); border-radius: 0;
    background: transparent; padding: 0 0 0.6rem 1rem; margin-left: 0.2rem;
  }
  .drop-panel::before { display: none; }
  .drop-grid { grid-template-columns: 1fr; }
  .drop-item { padding: 0.55rem 0.4rem; }
  .hero::before { right: -46vw; opacity: 0.16; }
  .page-head--art::before { right: -52vw; opacity: 0.1; }
  .statbar-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 1.2rem 1.3rem; }
  .stat:nth-child(odd) { border-left: none; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ledger-row { grid-template-columns: 1fr 44px; gap: 0.5rem 1rem; padding: 1.6rem 0.1rem; }
  .ledger-desc { grid-column: 1 / -1; }
  .ledger-arr { grid-row: 1; grid-column: 2; }
  .features { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 2rem; }
  .news-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .h-section { position: static; }
  .card-grid--2, .card-grid--3 { grid-template-columns: 1fr; }
  .news-entry { grid-template-columns: 1fr; gap: 0.3rem; }
  .doc-list li { grid-template-columns: 1fr; gap: 0.3rem; }
  .timeline li { grid-template-columns: 84px 1fr; gap: 1.2rem; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .statbar-grid { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 1.7rem; }
  .brand-logo { height: 25px; }
}

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

@media print {
  .site-header, .site-footer, .cta-band, .skip-link, .nav-toggle, .consent-banner { display: none; }
  body { background: #fff; color: #000; }
  .hero::before, .page-head--art::before { display: none; }
}