/* =========================================================================
   AKCEL Ecosystem — design system v2
   Near-black ground, single acid accent, heavy grotesque display with a
   high-contrast italic serif for emphasis. Sampled from the reference:
   accent #BDFE00, body grey #C5CCD2.
   ========================================================================= */

:root {
  /* Ground */
  --void:     #08090A;
  --surface:  #101211;
  --raised:   #181B1A;
  --hairline: rgba(255, 255, 255, 0.11);
  --hairline-hi: rgba(189, 254, 0, 0.45);

  /* Accent */
  --lime:      #BDFE00;
  --lime-deep: #96CC12;
  --lime-pale: #E8FF8F;
  --amber:     #FFB84D;
  --risk:      #FF6B5A;

  /* Ink */
  --white: #FFFFFF;
  --grey:  #C5CCD2;
  --dim:   #8B928F;

  --light-canvas: #F4F6F2;
  --light-ink:    #14170F;

  /* Type */
  --display: 'Inter Tight', 'Inter', system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  --body:    'Inter', system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  --accent:  'Playfair Display', Georgia, 'Times New Roman', serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'Courier New', monospace;

  /* Scale */
  --t-hero:  clamp(2.9rem, 1.2rem + 6.6vw, 7rem);
  --t-h1:    clamp(2.2rem, 1.3rem + 3.4vw, 4.2rem);
  --t-h2:    clamp(1.75rem, 1.2rem + 2.1vw, 2.9rem);
  --t-h3:    clamp(1.1rem, 1rem + 0.5vw, 1.32rem);
  --t-body:  clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --t-small: 0.84rem;
  --t-label: 0.72rem;

  --track: 0.16em;

  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  --radius:    4px;
  --radius-sm: 3px;
  --pill:      999px;

  --shell: 1520px;
  --nav-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--void);
  color: var(--grey);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--white);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.018em; line-height: 1.32; }
p  { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }

/* The one flourish: an italic serif accent word inside a display line. */
em.accent, .accent, .serif.lime, .serif {
  font-family: var(--accent);
  font-style: italic;
  font-weight: 400;
  color: var(--lime);
  letter-spacing: -0.01em;
}

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--lime); color: #0B1000; padding: 12px 22px;
  font-weight: 700; text-transform: uppercase; letter-spacing: var(--track); font-size: var(--t-label);
}
.skip:focus { left: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.shell { width: min(100% - 3rem, var(--shell)); margin-inline: auto; }
@media (max-width: 600px) { .shell { width: min(100% - 2rem, var(--shell)); } }
.band  { padding-block: clamp(64px, 8.5vw, 30px); position: relative; }
.band--tight { padding-block: clamp(40px, 5vw, 72px); }
.band--alt { background: var(--surface); }
.rule { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s3);
}
.grid > * { min-width: 0; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Labels and headings ---------- */
.eyebrow {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 var(--s3);
  display: flex; align-items: center; gap: 14px;
}
/* the small red/green tick is the only place the AkcelPe brand colours appear */
.eyebrow::before {
  content: ''; width: 30px; height: 2px; flex: none;
  background: linear-gradient(90deg, #E8323C 0 50%, #2ECC71 50% 100%);
}
.eyebrow--lime { color: var(--lime); }
.eyebrow--plain::before { background: var(--lime); }

.lede {
  color: var(--grey); max-width: auto;
  font-size: clamp(1.02rem, 0.96rem + 0.35vw, 1.18rem);
  margin-top: var(--s3);
}
.section-head { margin-bottom: var(--s5); }

/* ---------- Status chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--pill);
  border: 1px solid currentColor; line-height: 1.4;
  max-width: 100%; white-space: normal; text-wrap: balance;
}
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.chip--mint   { color: var(--lime);      background: rgba(189,254,0,0.10); }
.chip--cyan   { color: var(--lime-pale); background: rgba(232,255,143,0.07); }
.chip--violet { color: var(--white);     background: rgba(255,255,255,0.06); }
.chip--gold   { color: var(--amber);     background: rgba(255,184,77,0.09); }
.chip--muted  { color: var(--dim);       background: rgba(139,146,143,0.08); }
.chip--risk   { color: var(--risk);      background: rgba(255,107,90,0.09); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 30px; border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: var(--t-label); font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
  text-decoration: none; cursor: pointer; min-height: 50px;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.btn--primary { background: var(--white); color: #0B0D0A; }
.btn--primary:hover { background: var(--lime); transform: translateY(-2px); }
.btn--lime { background: var(--lime); color: #0B1000; }
.btn--lime:hover { background: var(--white); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255,255,255,0.35); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn[aria-disabled='true'], .btn:disabled {
  background: transparent; color: var(--dim);
  border-color: var(--hairline); cursor: not-allowed; transform: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s4); }

.textlink {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-size: var(--t-label); font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 200ms var(--ease), border-color 200ms var(--ease), gap 200ms var(--ease);
}
.textlink:hover { color: var(--lime); border-color: var(--lime); gap: 15px; }
.textlink::after { content: '\2192'; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--s4) var(--s3);
  position: relative;
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}
.card--link:hover { border-color: var(--hairline-hi); background: var(--raised); }
.card--link:hover h3 { color: var(--lime); }
.card h3 { margin-bottom: var(--s2); transition: color 200ms var(--ease); }
.card p { color: var(--dim); font-size: 0.95rem; }
.card__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: var(--s2); margin-bottom: var(--s2); }
.card__top h3 { flex: 1 1 auto; min-width: 0; }
.card__top .chip { flex: 0 0 auto; }
.card__top h3 { margin-bottom: 0; }
.card a { text-decoration: none; }

/* ---------- Notices ---------- */
.notice {
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--lime);
  background: rgba(189,254,0,0.04);
  padding: var(--s3);
  font-size: 0.94rem; color: var(--grey);
}
.notice strong { color: var(--white); font-weight: 700; }
.notice--gold { border-left-color: var(--amber); background: rgba(255,184,77,0.04); }
.notice--risk { border-left-color: var(--risk); background: rgba(255,107,90,0.04); }
.notice--muted { border-left-color: var(--dim); background: rgba(255,255,255,0.02); }
.notice + .notice { margin-top: var(--s2); }

/* =========================================================================
   Header — transparent over the hero, solid once scrolled
   ========================================================================= */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h); display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), height 300ms var(--ease);
}
.masthead[data-scrolled='true'] {
  background: rgba(8,9,10,0.94);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--hairline);
  height: 68px;
}
.masthead__inner {
  width: min(100% - 3rem, calc(var(--shell) + 120px));
  margin-inline: auto; display: flex; align-items: center; gap: var(--s4);
}
.brandmark { display: flex; align-items: center; text-decoration: none; flex: none; }
.brandmark img { height: 34px; width: auto; transition: height 300ms var(--ease); }
.masthead[data-scrolled='true'] .brandmark img { height: 28px; }

.mainnav { margin-left: auto; }
.mainnav ul { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.mainnav a {
  display: block; padding: 10px 18px;
  text-decoration: none;
  font-size: var(--t-label); font-weight: 600;
  letter-spacing: var(--track); text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  transition: color 200ms var(--ease);
  position: relative;
}
.mainnav a::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 2px;
  height: 1px; background: var(--lime); transform: scaleX(0);
  transform-origin: left; transition: transform 240ms var(--ease);
}
.mainnav a:hover { color: var(--white); }
.mainnav a:hover::after, .mainnav a[aria-current='page']::after { transform: scaleX(1); }
.mainnav a[aria-current='page'] { color: var(--white); }
.masthead .btn { padding: 12px 24px; min-height: 44px; }

.navtoggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--pill); width: 46px; height: 46px;
  color: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.navtoggle span, .navtoggle span::before, .navtoggle span::after {
  content: ''; display: block; width: 18px; height: 1.5px; background: currentColor;
  transition: transform 220ms var(--ease), opacity 160ms var(--ease);
}
.navtoggle span::before { transform: translateY(-6px); }
.navtoggle span::after  { transform: translateY(4.5px); }
.navtoggle[aria-expanded='true'] span { background: transparent; }
.navtoggle[aria-expanded='true'] span::before { transform: rotate(45deg); }
.navtoggle[aria-expanded='true'] span::after  { transform: rotate(-45deg) translateY(0); }

@media (max-width: 1140px) {
  .navtoggle { display: flex; }
  .mainnav {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    background: rgba(8,9,10,0.985);
    border-bottom: 1px solid var(--hairline);
    padding: var(--s2) 1.5rem var(--s5);
    display: none; max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .mainnav[data-open='true'] { display: block; }
  .mainnav ul { flex-direction: column; }
  .mainnav a { padding: 18px 0; font-size: 0.95rem; border-bottom: 1px solid var(--hairline); }
  .mainnav a::after { display: none; }
  .masthead > .masthead__inner > .btn { display: none; }
}

/* Disclosure strip — sits below the hero, not above it */
.trustbar {
  background: var(--surface);
  border-block: 1px solid var(--hairline);
  font-size: var(--t-small); color: var(--dim); padding: 14px 0;
}
.trustbar strong {
  color: var(--lime); font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--track); font-size: var(--t-label);
}
.trustbar .shell { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; }
/* Header clearance.
   Uses padding on <main>, never margin on a sibling of <main>: a margin here
   collapses through <body> and drops the disclosure bar behind the fixed
   header. Padding cannot collapse, so this holds regardless of what sits
   first inside main. */
.page-offset { padding-top: var(--nav-h); }
/* retained so any older markup still clears the header */
.trustbar--offset { margin-top: var(--nav-h); }
.page-offset .trustbar--offset { margin-top: 0; }

/* =========================================================================
   Photographic hero
   ========================================================================= */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: center; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: #05060A; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 900ms var(--ease); }
.hero__slide[data-active='true'] { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,6,8,0.94) 0%, rgba(4,6,8,0.78) 34%, rgba(4,6,8,0.28) 66%, rgba(4,6,8,0.42) 100%),
    linear-gradient(180deg, rgba(4,6,8,0.82) 0%, transparent 28%, transparent 58%, rgba(4,6,8,0.88) 100%);
}
.hero .shell { position: relative; width: min(100% - 3rem, calc(var(--shell) + 120px)); padding-block: 150px 130px; }
.hero__copy { max-width: 46ch; }
.hero__title {
  font-size: var(--t-hero); font-weight: 800;
  letter-spacing: -0.045em; line-height: 0.95; color: var(--white);
}
.hero__title .accent, .hero__title .serif { font-size: 1.06em; line-height: 0.9; }
.hero__body { color: var(--grey); margin-top: var(--s4); font-size: clamp(1.02rem, 0.96rem + 0.4vw, 1.22rem); max-width: 42ch; }
.hero__rail { position: absolute; left: 0; right: 0; bottom: 44px; }
.hero__rail .shell {
  width: min(100% - 3rem, calc(var(--shell) + 120px));
  display: flex; justify-content: space-between; align-items: center; gap: var(--s3);
  padding-block: 0;
}
.scrollcue {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--white); text-decoration: none;
  font-size: var(--t-label); font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
}
.scrollcue i {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4);
  display: grid; place-content: center; font-style: normal;
  transition: border-color 220ms var(--ease), color 220ms var(--ease), transform 220ms var(--ease);
}
.scrollcue:hover i { border-color: var(--lime); color: var(--lime); transform: translateY(3px); }

.slidecount {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--mono); font-size: var(--t-label);
  color: rgba(255,255,255,0.55); letter-spacing: 0.1em;
}
.slidecount b { color: var(--white); font-weight: 500; }
.slidecount__track { display: block; width: 132px; height: 1px; background: rgba(255,255,255,0.28); overflow: hidden; }
.slidecount__bar { display: block; height: 1px; background: var(--lime); width: 33.333%; transition: transform 600ms var(--ease); }
@media (max-width: 760px) {
  .hero__rail { bottom: 28px; }
  .slidecount { display: none; }
  .hero .shell { padding-block: 130px 150px; }
}

/* =========================================================================
   Interior page header
   ========================================================================= */
.pagehead { padding-block: clamp(56px, 7vw, 104px) clamp(32px, 4vw, 56px); position: relative; }
.pagehead::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--lime), transparent 42%);
}
/* Photographic interior header */
.pagehead--image {
  padding-block: clamp(120px, 15vw, 220px) clamp(48px, 6vw, 88px);
  isolation: isolate; overflow: hidden;
}
.pagehead--image::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(4,6,8,0.93) 0%, rgba(4,6,8,0.7) 42%, rgba(4,6,8,0.3) 100%),
    linear-gradient(180deg, rgba(4,6,8,0.86) 0%, transparent 34%, rgba(4,6,8,0.9) 100%);
}
.pagehead__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.pagehead--image::after { background: linear-gradient(90deg, var(--lime), transparent 30%); }

.crumbs {
  font-size: var(--t-label); letter-spacing: var(--track); text-transform: uppercase;
  color: var(--dim); margin-bottom: var(--s4); font-weight: 600;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--lime); }
.crumbs span { opacity: 0.45; margin-inline: 10px; }

/* =========================================================================
   Constellation
   ========================================================================= */
.constellation { position: relative; width: 100%; max-width: 560px; margin-inline: auto; }
.constellation svg { width: 100%; height: auto; overflow: visible; }
.orbit-ring { fill: none; stroke: var(--hairline); stroke-width: 1; }
.orbit-ring--inner { stroke: rgba(189,254,0,0.3); stroke-dasharray: 2 6; }
.spoke { stroke: var(--hairline); stroke-width: 1; }
.node { cursor: pointer; }
.node circle.node__disc {
  fill: var(--raised); stroke: var(--hairline); stroke-width: 1;
  transition: fill 220ms var(--ease), stroke 220ms var(--ease);
}
.node text {
  font-family: var(--body); font-size: 10px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  fill: var(--dim); text-anchor: middle; transition: fill 220ms var(--ease); pointer-events: none;
}
.node:hover circle.node__disc, .node:focus circle.node__disc, .node[data-active='true'] circle.node__disc {
  fill: rgba(189,254,0,0.13); stroke: var(--lime);
}
.node:hover text, .node:focus text, .node[data-active='true'] text { fill: var(--white); }
.node:focus { outline: none; }
.node:focus circle.node__disc { stroke-width: 2; }
.core__disc { fill: url(#coreGrad); }
.core__ring { fill: none; stroke: rgba(189,254,0,0.45); stroke-width: 1; }
.core__label { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -0.02em; fill: var(--white); text-anchor: middle; }
.core__sub { font-size: 8px; font-weight: 600; letter-spacing: 0.18em; fill: var(--dim); text-anchor: middle; text-transform: uppercase; font-family: var(--body); }

.constellation__readout {
  margin-top: var(--s3); border: 1px solid var(--hairline);
  background: var(--surface); padding: var(--s3); min-height: 176px;
}
.constellation__readout h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--s2); }
.constellation__readout p { color: var(--dim); font-size: 0.94rem; }

/* =========================================================================
   Doughnut chart
   ========================================================================= */
.chartwrap { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 940px) { .chartwrap { grid-template-columns: minmax(280px, 400px) 1fr; gap: var(--s6); } }
.doughnut { position: relative; }
.doughnut svg { width: 100%; height: auto; overflow: visible; }
.slice { cursor: pointer; transition: opacity 200ms var(--ease), transform 260ms var(--ease); transform-origin: center; }
.slice:focus { outline: none; }
.doughnut[data-hover='true'] .slice { opacity: 0.28; }
.doughnut .slice[data-active='true'] { opacity: 1; transform: scale(1.035); }
.slice:focus-visible { opacity: 1; }
.doughnut__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.doughnut__value {
  font-family: var(--display); font-weight: 800; color: var(--white);
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem); letter-spacing: -0.04em; line-height: 1.1;
}
.doughnut__label {
  font-size: var(--t-label); font-weight: 600; letter-spacing: var(--track);
  text-transform: uppercase; color: var(--dim); margin-top: 8px; max-width: 13ch; margin-inline: auto; line-height: 1.5;
}
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.legend button {
  display: grid; grid-template-columns: 10px 1fr auto auto; gap: 16px; align-items: center;
  width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--hairline);
  padding: 14px 6px; color: var(--white); cursor: pointer;
  font-size: 0.94rem; transition: background 180ms var(--ease);
}
.legend button:hover, .legend button[data-active='true'] { background: rgba(189,254,0,0.06); }
.legend .swatch { width: 10px; height: 10px; }
.legend .amt { font-family: var(--mono); font-size: var(--t-small); color: var(--dim); }
.legend .pct { font-family: var(--mono); font-size: var(--t-small); font-weight: 600; min-width: 44px; text-align: right; }

/* =========================================================================
   Tables
   ========================================================================= */
.tablewrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
}
.tablewrap:focus-visible { outline-offset: 4px; }
.table-hint { display: none; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.94rem; }
table.data caption { text-align: left; padding: var(--s3) var(--s3) var(--s2); color: var(--dim); font-size: var(--t-small); }
table.data th, table.data td { padding: 15px var(--s3); text-align: left; border-bottom: 1px solid var(--hairline); }
table.data thead th {
  font-size: var(--t-label); letter-spacing: var(--track); text-transform: uppercase;
  color: var(--dim); font-weight: 600; background: var(--raised); position: sticky; top: 0;
}
table.data tbody th { color: var(--white); font-weight: 600; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(255,255,255,0.025); }
table.data .num { font-family: var(--mono); text-align: right; white-space: nowrap; }
table.data tfoot td {
  font-weight: 700; color: var(--white); background: var(--raised);
  border-top: 1px solid var(--hairline-hi); border-bottom: 0;
}
table.data tfoot .num { font-family: var(--mono); }
@media (max-width: 600px) {
  .tablewrap--wide table.data { min-width: 760px; }
  .table-hint {
    display: block;
    margin: 0 0 10px;
    color: var(--dim);
    font-family: var(--mono);
    font-size: var(--t-label);
    letter-spacing: 0.03em;
  }
}

details.datafold summary {
  cursor: pointer; color: var(--lime); font-size: var(--t-label); font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase; padding: 12px 0; list-style: none;
}
details.datafold summary::-webkit-details-marker { display: none; }

/* =========================================================================
   Editorial pieces
   ========================================================================= */
.kv { display: grid; border: 1px solid var(--hairline); }
.kv__row { display: grid; gap: 6px; padding: var(--s3); border-bottom: 1px solid var(--hairline); }
@media (min-width: 760px) { .kv__row { grid-template-columns: 240px 1fr auto; align-items: center; gap: var(--s3); } }
.kv__row:last-child { border-bottom: 0; }
.kv__k { font-size: var(--t-label); font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--dim); }
.kv__v { color: var(--white); font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.kv__note { color: var(--dim); font-size: var(--t-small); }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 var(--s5) var(--s6); border-left: 1px solid var(--hairline); }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px; transform: translateX(-50%);
  background: var(--void); border: 1px solid var(--hairline-hi); color: var(--lime);
  font-family: var(--mono); font-size: var(--t-label);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-content: center;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--dim); font-size: 0.95rem; }

.timeline { display: grid; }
.tl { display: grid; gap: var(--s1); padding: var(--s4) 0; border-top: 1px solid var(--hairline); }
@media (min-width: 860px) { .tl { grid-template-columns: 260px 1fr 200px; gap: var(--s4); align-items: start; } }
.tl__period { font-family: var(--display); font-weight: 700; color: var(--white); font-size: 1.12rem; letter-spacing: -0.02em; }
.tl__scope { color: var(--dim); font-size: 0.95rem; }
.tl__status { justify-self: start; }
@media (min-width: 860px) { .tl__status { justify-self: end; } }

/* Figures */
.figure { border: 1px solid var(--hairline); overflow: hidden; background: var(--surface); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption {
  padding: var(--s2) var(--s3); font-size: var(--t-small); color: var(--dim);
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; align-items: center;
}
.gallery { display: grid; gap: var(--s2); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery .figure--wide { grid-column: 1 / -1; }
.gallery .figure img { aspect-ratio: 16 / 9; }
.gallery .figure--tall img { aspect-ratio: 4 / 5; }

/* Photo and video galleries */
.gallery-grid, .video-grid { display: grid; gap: var(--s3); }
@media (min-width: 620px) {
  .gallery-grid, .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .gallery-grid, .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-card--wide { grid-column: span 2; }
}

.gallery-card {
  appearance: none;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 0;
  background: var(--surface);
  color: inherit;
  cursor: zoom-in;
  text-align: left;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}
.gallery-card:hover { border-color: var(--hairline-hi); transform: translateY(-3px); }
.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}
.gallery-card:hover img { transform: scale(1.025); }
.gallery-card__body { display: grid; gap: 6px; padding: var(--s3); }
.gallery-card__body strong { color: var(--white); font-family: var(--display); font-size: 1.12rem; }
.gallery-card__body small, .video-card__body small {
  color: var(--dim);
  font-family: var(--mono);
  font-size: var(--t-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lightbox {
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: visible;
  border: 1px solid var(--hairline-hi);
  background: var(--void);
  color: var(--white);
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); backdrop-filter: blur(8px); }
.lightbox figure { margin: 0; display: grid; }
.lightbox img { width: 100%; max-height: calc(100dvh - 116px); object-fit: contain; background: #050607; }
.lightbox figcaption { padding: 16px 56px 16px 18px; color: var(--grey); font-size: 0.92rem; }
.lightbox__close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: rgba(5,6,7,0.8);
  color: var(--white);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
}

.video-card { min-width: 0; overflow: hidden; border: 1px solid var(--hairline); background: var(--surface); }
.video-card__poster { position: relative; overflow: hidden; background: #050607; }
a.video-card__poster { display: block; color: inherit; text-decoration: none; }
.video-card__poster img,
.video-card__poster video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.72; }
.video-card__poster .chip { position: absolute; top: 14px; left: 14px; }
.video-card__play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-content: center;
  padding-left: 4px;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 50%;
  background: rgba(5,6,7,0.72);
  color: var(--white);
  font-size: 1.2rem;
}
.video-card__body { display: grid; gap: 10px; padding: var(--s3); }
.video-card__body .eyebrow { margin-bottom: 0; }
.video-card__body p:not(.eyebrow) { color: var(--dim); font-size: 0.94rem; }

@media (max-width: 600px) {
  .gallery-grid, .video-grid { gap: 16px; }
  .gallery-card__body, .video-card__body { padding: 18px; }
  .lightbox { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .lightbox img { max-height: calc(100dvh - 100px); }
}

.showcase { position: relative; overflow: hidden; border: 1px solid var(--hairline); display: block; }
.showcase img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; transition: transform 900ms var(--ease); }
.showcase:hover img { transform: scale(1.03); }
.showcase__body {
  position: absolute; inset: auto 0 0 0; padding: var(--s6) var(--s3) var(--s4);
  background: linear-gradient(180deg, transparent, rgba(4,6,8,0.93) 58%);
}
@media (min-width: 760px) { .showcase__body { padding: var(--s8) var(--s5) var(--s5); } }
.showcase h2 { margin-bottom: var(--s2); }
.showcase p { color: var(--grey); max-width: 56ch; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pills li {
  border: 1px solid var(--hairline); border-radius: var(--pill); padding: 7px 16px;
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim);
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; align-items: start; color: var(--grey); font-size: 0.96rem; }
.checklist li::before { content: '\2014'; color: var(--lime); font-weight: 700; line-height: 1.7; }
.checklist--x li::before { content: '\00D7'; color: var(--risk); }

.metrics { display: grid; gap: var(--s4); border-block: 1px solid var(--hairline); padding-block: var(--s5); }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric__v { font-family: var(--display); font-weight: 800; color: var(--white); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); letter-spacing: -0.045em; line-height: 1; }
.metric__k { font-size: var(--t-label); font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--dim); margin-top: 12px; }

.qa { border-top: 1px solid var(--hairline); }
.qa details { border-bottom: 1px solid var(--hairline); }
.qa summary {
  cursor: pointer; padding: var(--s4) 48px var(--s4) 0; position: relative;
  font-family: var(--display); font-weight: 700; color: var(--white);
  font-size: 1.1rem; letter-spacing: -0.02em; list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  color: var(--lime); font-size: 1.5rem; font-weight: 300; transition: transform 220ms var(--ease);
}
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa details > p, .qa details > ul { color: var(--dim); font-size: 0.96rem; padding-bottom: var(--s4); max-width: 78ch; }

.prose { max-width: 72ch; }
.prose h3 { margin-top: var(--s5); margin-bottom: var(--s2); }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--grey); font-size: 0.98rem; }
.prose ul { padding-left: 1.2rem; display: grid; gap: 10px; }

/* Forms */
.field { display: grid; gap: 10px; margin-bottom: var(--s3); }
.field label { font-size: var(--t-label); font-weight: 600; letter-spacing: var(--track); text-transform: uppercase; color: var(--white); }
.field .hint { font-size: var(--t-small); color: var(--dim); letter-spacing: 0; text-transform: none; font-weight: 400; }
.field input, .field select, .field textarea {
  background: var(--void); border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  color: var(--white); padding: 15px 16px; font: inherit; font-size: 0.96rem; width: 100%;
  transition: border-color 200ms var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: start; font-size: 0.9rem; color: var(--dim); }
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--lime); }
.formstate { margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--hairline); border-left: 2px solid var(--lime); font-size: 0.94rem; color: var(--grey); }
.formstate[hidden] { display: none; }
.formstate[data-tone="success"] { border-left-color: var(--lime); color: var(--lime); }
.formstate[data-tone="error"] { border-left-color: #ff6666; color: #ffaaaa; }
.hp-field { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }

/* Locked / disabled */
.locked {
  border: 1px solid var(--hairline); padding: var(--s5) var(--s4);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.018) 0 14px, transparent 14px 28px);
  text-align: center;
}
.locked h3 { margin: var(--s2) 0 var(--s2); }
.locked p { color: var(--dim); max-width: 58ch; margin-inline: auto; font-size: 0.95rem; }
.flagline { font-family: var(--mono); font-size: var(--t-label); color: var(--dim); margin-top: var(--s3); letter-spacing: 0.02em; }
.flagline b { color: var(--amber); font-weight: 500; }
[hidden] { display: none !important; }

/* Local development sandbox */
.trustbar--sandbox { border-bottom-color: rgba(255,184,77,0.35); }
.trustbar--sandbox strong { color: var(--amber); }
.sandbox-nav { display: flex; align-items: center; gap: 18px; }
.sandbox-nav > a:not(.btn) {
  color: var(--grey); text-decoration: none; font-size: var(--t-label);
  font-weight: 600; letter-spacing: var(--track); text-transform: uppercase;
}
.sandbox-nav > a:not(.btn):hover { color: var(--lime); }
.sandbox-forms .card, .sandbox-actions .card { display: flex; flex-direction: column; gap: 20px; }
.sandbox-forms .field, .sandbox-actions .field { margin-bottom: 0; }
.sandbox-forms .btn, .sandbox-actions .btn { align-self: flex-start; }
.sandbox-disabled { opacity: 0.58; }
.sandbox-available { color: var(--dim); }
.sandbox-available strong { color: var(--lime); }
.sandbox-table { margin-top: var(--s5); }
.sandbox-table table { min-width: 900px; }
.sandbox-table td:first-child { font-family: var(--mono); font-size: 0.78rem; }
.sandbox-page code { font-family: var(--mono); color: var(--lime); }
@media (max-width: 760px) {
  .sandbox-nav > a:not(.btn) { display: none; }
  .sandbox-nav .btn { padding: 10px 13px; font-size: 0.66rem; }
  .sandbox-actions { grid-template-columns: 1fr; }
  .sandbox-forms .card, .sandbox-actions .card { padding: 22px 18px; }
  .sandbox-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sandbox-metrics .metric__v { overflow-wrap: anywhere; font-size: clamp(1.5rem, 7vw, 2.2rem); }
}
@media (max-width: 420px) {
  .sandbox-metrics { grid-template-columns: 1fr; }
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer { border-top: 1px solid var(--hairline); background: var(--surface); padding-block: var(--s7) var(--s4); margin-top: var(--s3); }
.footer__grid { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s4); } }
.footer h4 { font-size: var(--t-label); letter-spacing: var(--track); text-transform: uppercase; color: var(--lime); font-weight: 600; margin-bottom: var(--s3); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer a { color: var(--dim); text-decoration: none; font-size: 0.93rem; }
.footer a:hover { color: var(--white); }
.footer__brand img { height: 34px; margin-bottom: var(--s3); }
.footer__brand p { color: var(--dim); font-size: 0.93rem; max-width: 40ch; }
.footer__legal { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--hairline); color: var(--dim); font-size: var(--t-small); display: grid; gap: var(--s2); }
.footer__legal p { max-width: auto; }
.footer__meta { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase; margin-top: var(--s2); }

/* =========================================================================
   Motion
   ========================================================================= */
[data-reveal] { opacity: 0; transform: translateY(16px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 620ms var(--ease), transform 620ms var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__slide { transition: none; }
}

@media print {
  .masthead, .navtoggle, .hero__rail { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Group profile: five-across value grid and the AKCEL letter marks */
@media (min-width: 720px) {
    .grid--5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1040px) {
    .grid--5 {
        grid-template-columns: repeat(5, 1fr);
    }
}

.valueletter {
    font-family: var(--display);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--lime);
    margin-bottom: var(--s2);
}

.pagehead--image h1 .serif {
    font-size: 1.06em;
}

/* =========================================================================
   Primary navigation — submenus
   Desktop: flyout on hover, focus-within or click.
   Mobile:  accordion inside the drawer, expanded by default when JS is off.
   ========================================================================= */
.mainnav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
/* Submenus are always a vertical stack. Stated explicitly so a flex rule
   on an ancestor list can never lay these out in a row again. */
.subnav ul {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.subnav li {
    display: block;
    width: 100%;
}

.navitem {
    position: relative;
}

.navitem__row {
    display: flex;
    align-items: center;
}

.navitem__link {
    display: block;
    padding: 10px 6px 10px 18px;
    text-decoration: none;
    font-size: var(--t-label);
    font-weight: 600;
    letter-spacing: var(--track);
    text-transform: uppercase;
    color: rgba(255,255,255,0.82);
    transition: color 200ms var(--ease);
    position: relative;
    white-space: nowrap;
}

    .navitem__link::after {
        content: '';
        position: absolute;
        left: 18px;
        right: 6px;
        bottom: 2px;
        height: 1px;
        background: var(--lime);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 240ms var(--ease);
    }

    .navitem__link:hover {
        color: var(--white);
    }

        .navitem__link:hover::after,
        .navitem__link[aria-current='page']::after {
            transform: scaleX(1);
        }

    .navitem__link[aria-current='page'] {
        color: var(--white);
    }

.navitem__toggle {
    background: none;
    border: 0;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    padding: 10px 14px 10px 4px;
    line-height: 0;
    transition: color 200ms var(--ease), transform 240ms var(--ease);
}

    .navitem__toggle svg {
        width: 10px;
        height: 6px;
        display: block;
    }

    .navitem__toggle:hover {
        color: var(--lime);
    }

.navitem:hover .navitem__toggle,
.navitem[data-open='true'] .navitem__toggle {
    color: var(--white);
}

.navitem[data-open='true'] .navitem__toggle {
    transform: rotate(180deg);
}

.subnav {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 120;
    min-width: 254px;
    padding: 10px 0;
    background: rgba(10,12,11,0.98);
    backdrop-filter: blur(18px);
    border: 1px solid var(--hairline);
    border-top: 1px solid var(--hairline-hi);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
/* Right-align the last group so it never runs off the viewport */
.navitem:last-child .subnav {
    left: auto;
    right: 0;
}

.navitem:hover > .subnav,
.navitem:focus-within > .subnav,
.navitem[data-open='true'] > .subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.subnav a {
    display: block;
    padding: 10px 22px;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--grey);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
    white-space: nowrap;
}

    .subnav a:hover, .subnav a:focus-visible {
        color: var(--white);
        background: rgba(189,254,0,0.07);
        border-left-color: var(--lime);
    }

@media (max-width: 1140px) {
    .navitem {
        border-bottom: 1px solid var(--hairline);
    }

    .navitem__row {
        justify-content: space-between;
    }

    .navitem__link {
        padding: 18px 0;
        font-size: 0.95rem;
        flex: 1;
    }

        .navitem__link::after {
            display: none;
        }

    .navitem__toggle {
        padding: 18px 4px 18px 20px;
    }

        .navitem__toggle svg {
            width: 14px;
            height: 9px;
        }

    .subnav {
        position: static;
        min-width: 0;
        padding: 0 0 14px;
        background: none;
        backdrop-filter: none;
        border: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    /* JS collapses these on load; without JS they stay open and usable */
    .navitem[data-collapsible='true'] > .subnav {
        display: none;
    }

    .navitem[data-collapsible='true'][data-open='true'] > .subnav {
        display: block;
    }

    .subnav a {
        padding: 11px 0 11px 16px;
        white-space: normal;
        border-left-color: var(--hairline);
    }

        .subnav a:hover, .subnav a:focus-visible {
            background: none;
            border-left-color: var(--lime);
        }
}
