/* Myridian Technologies, design v2: the operating chart. */

:root {
  --abyss: #0C1A24;
  --chart: #102331;
  --graticule: #1E3443;
  --route: #3E5A6C;
  --paper: #E6EDEF;
  --fathom: #93A7B2;
  --brass: #D2A85A;
  --seaglass: #74C7B5;

  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  --max: 1240px;
  --gap: 24px;
  --side: 24px;
  --header-h: 68px;
  --pad: clamp(96px, 14vh, 168px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  background: var(--abyss);
}

body {
  margin: 0;
  background: var(--abyss);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-stretch: 100%;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

p, h1, h2, h3, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--paper);
  color: var(--abyss);
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
}
.skip:focus { top: 12px; }

/* ---------- Grid ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--side) * 2);
  margin: 0 auto;
  padding-left: var(--side);
  padding-right: var(--side);
}
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

/* ---------- Type ---------- */
.display, .h2, .statement__title, .step__title {
  font-stretch: 116%;
  font-weight: 580;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(2rem, 1.25rem + 2.1vw, 3.25rem);
  line-height: 1.06;
}
.h2--xl { font-size: clamp(2.5rem, 1.2rem + 3.8vw, 5rem); line-height: 1.02; }
.lede {
  margin-top: 20px;
  font-size: clamp(1.125rem, 1rem + .35vw, 1.3125rem);
  line-height: 1.5;
  color: var(--fathom);
}
.prose { font-size: 1.125rem; line-height: 1.65; color: var(--fathom); }
.prose p + p { margin-top: 1.1em; }
.prose p:first-child { color: var(--paper); }
.caption, .note {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--fathom);
}
.caption { font-size: .9375rem; line-height: 1.4; }
.note { font-size: 1.0625rem; line-height: 1.45; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  font-size: .9375rem;
  font-weight: 560;
  font-stretch: 106%;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--route);
  border-radius: 2px;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--fathom); }
.btn--primary { color: var(--abyss); background: var(--paper); border-color: var(--paper); }
.btn--primary:hover { background: #fff; border-color: #fff; }
.btn--ghost:hover { background: rgba(230, 237, 239, .05); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .875rem; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1rem; }

.textbtn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 2px;
  font-size: .875rem;
  font-weight: 560;
  color: var(--paper);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: var(--route);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.textbtn:hover { text-decoration-color: var(--paper); }
.textbtn[hidden] { display: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* ---------- Header ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--abyss);
  border-bottom: 1px solid var(--graticule);
}
.masthead__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--paper);
  text-decoration: none;
}
.mark { width: 24px; height: 24px; flex: none; overflow: visible; }
.mark__rim, .mark__m, .mark__prime { fill: none; stroke-width: 1.4; }
.mark__rim { stroke: var(--paper); }
.mark__m { stroke: var(--paper); stroke-opacity: .5; stroke-width: 1.1; }
.mark__prime { stroke: var(--brass); stroke-width: 1.6; }
.brand__name {
  font-size: 1.125rem;
  font-weight: 620;
  font-stretch: 120%;
  letter-spacing: -.01em;
  line-height: 1;
}
.nav { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: .9375rem;
  color: var(--fathom);
  text-decoration: none;
  transition: color .2s;
}
.nav__link:hover { color: var(--paper); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(40px, 6vh, 80px) 0;
}
.hero__grid { width: 100%; align-items: center; }
.hero__copy { grid-column: 1 / span 5; padding-bottom: 24px; }
/* Sized so the headline sets in three clean lines: two for the first sentence, one for the second. */
.hero__title {
  font-size: min(2.75rem, calc(3.62vw - 3px));
  line-height: 1.06;
}
.hero__then { display: block; }
.hero__sub {
  max-width: 60ch;
  margin-top: 28px;
  font-size: clamp(1.0625rem, .98rem + .25vw, 1.1875rem);
  line-height: 1.6;
  color: var(--fathom);
}
.hero__figure { grid-column: 6 / span 7; position: relative; }
.hero__below {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
  column-gap: 32px;
  align-items: end;
  margin-top: -7%;
}
.hero__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* ---------- The operating chart ---------- */
.ch { position: relative; --px: 1.4; container-type: inline-size; }
.ch__stage { position: relative; width: 100%; aspect-ratio: 1000 / 640; }
.ch__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.ch__overlay { position: absolute; inset: 0; pointer-events: none; }

.ch-grat { fill: none; stroke: var(--graticule); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ch-prime { fill: none; stroke: var(--brass); stroke-opacity: .35; stroke-width: 1.25; vector-effect: non-scaling-stroke; }

.ch-route {
  fill: none;
  stroke: var(--route);
  stroke-width: calc(var(--px) * 1.5);
  transition: stroke-dashoffset .6s var(--ease), stroke .25s, opacity .25s;
}
.ch-route.is-lit { stroke: var(--paper); }
.ch.is-focus .ch-route:not(.is-lit) { opacity: .28; }

.ch-survey { transition: opacity .6s ease-out; }
.ch-survey__line {
  fill: none;
  stroke: var(--fathom);
  stroke-opacity: .55;
  stroke-width: calc(var(--px) * 1.1);
  stroke-dasharray: calc(var(--px) * 2) calc(var(--px) * 5);
  stroke-linecap: round;
}
.ch:not([data-state="map"]) .ch-survey { opacity: 0; }

.ch-sym { transition: opacity .6s ease-out; }
.ch-sym__in, .ch-stall__in {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .6s var(--ease), opacity .6s ease-out;
}
.ch-sym--source circle { fill: var(--abyss); stroke: var(--paper); stroke-width: calc(var(--px) * 1.5); }
.ch-sym__ring { fill: var(--abyss); stroke: var(--paper); stroke-opacity: .5; stroke-width: calc(var(--px) * 1); }
.ch-sym__core { fill: var(--paper); }
.ch-sym--record rect { fill: var(--chart); stroke: var(--paper); stroke-width: calc(var(--px) * 1.5); }
.ch-sym--gate path { fill: var(--abyss); stroke: var(--brass); stroke-width: calc(var(--px) * 1.5); transition: fill .3s; }
.ch.is-holding .ch-sym--gate path { fill: var(--brass); }
.ch.is-focus .ch-sym:not(.is-lit) { opacity: .35; }

.ch[data-state="map"] .ch-sym--source,
.ch[data-state="map"] .ch-sym--record { opacity: .62; }
.ch[data-state="map"] .ch-sym--agent .ch-sym__in,
.ch[data-state="map"] .ch-sym--gate .ch-sym__in,
.ch:not([data-state="extend"]) .ch-sym--extra .ch-sym__in { opacity: 0; transform: scale(.3); }

.ch-stall__ring { fill: none; stroke: var(--brass); stroke-width: calc(var(--px) * 1.5); }
.ch-stall__haz { fill: none; stroke: var(--brass); stroke-opacity: .45; stroke-width: calc(var(--px) * 1); stroke-dasharray: calc(var(--px) * 1.5) calc(var(--px) * 3.5); stroke-linecap: round; }
.ch:not([data-state="map"]) .ch-stall__in { opacity: 0; transform: scale(.4); }

.ch-glow { fill: var(--brass); opacity: 0; }
.ch-sig__head { fill: var(--paper); }
.ch-sig__halo { fill: var(--paper); opacity: .1; }
.ch-sig__trail { fill: var(--paper); }
.ch-sig__trail:nth-child(2) { opacity: .5; }
.ch-sig__trail:nth-child(3) { opacity: .3; }
.ch-sig__trail:nth-child(4) { opacity: .16; }
.ch-sig.is-held .ch-sig__head { fill: var(--brass); }
.ch-sig.is-held .ch-sig__halo { fill: var(--brass); opacity: .28; }
.ch-pulse { fill: none; stroke: var(--paper); stroke-width: calc(var(--px) * 1); opacity: 0; }
.ch-pulse--done { stroke: var(--seaglass); stroke-width: calc(var(--px) * 1.5); }

/* Labels, notes and focusable nodes (HTML, so type stays at true size) */
.ch-n {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  pointer-events: auto;
  transition: opacity .5s ease-out, visibility 0s;
}
.ch-n.is-off { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s; }
.ch-n:focus { outline: none; }
.ch-n:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.ch-n__label {
  position: absolute;
  white-space: nowrap;
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
  font-stretch: 98%;
  color: var(--fathom);
  transition: color .2s, opacity .2s;
}
.ch-n--extra .ch-n__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  font-weight: 400;
  font-stretch: normal;
  color: var(--paper);
}
.ch-n[data-side="n"] .ch-n__label { bottom: 100%; left: 50%; transform: translateX(-50%); }
.ch-n[data-side="s"] .ch-n__label { top: 100%; left: 50%; transform: translateX(-50%); }
.ch-n--agent[data-side="n"] .ch-n__label, .ch-n--gate[data-side="n"] .ch-n__label { bottom: calc(100% + 3px); }
.ch-n--agent[data-side="s"] .ch-n__label, .ch-n--gate[data-side="s"] .ch-n__label { top: calc(100% + 3px); }
.ch-n[data-side="e"] .ch-n__label { left: 100%; top: 50%; transform: translateY(-50%); }
.ch-n[data-side="w"] .ch-n__label { right: 100%; top: 50%; transform: translateY(-50%); }
.ch-n[data-side="ne"] .ch-n__label { bottom: 100%; left: 8px; }
.ch-n[data-side="nw"] .ch-n__label { bottom: 100%; right: 8px; }
.ch-n[data-side="se"] .ch-n__label { top: 100%; left: 8px; }
.ch-n[data-side="sw"] .ch-n__label { top: 100%; right: 8px; }
.ch-n.is-lit .ch-n__label { color: var(--paper); }
.ch.is-focus .ch-n:not(.is-lit) .ch-n__label { opacity: .35; }

.ch-note {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--paper);
  white-space: nowrap;
  transition: opacity .5s ease-out;
}
.ch-note[data-side="s"] { transform: translate(-50%, 22px); }
.ch-note[data-side="n"] { transform: translate(-50%, calc(-100% - 22px)); }
.ch-note[data-side="e"] { transform: translate(24px, -50%); }
.ch-note[data-side="w"] { transform: translate(calc(-100% - 24px), -50%); }
.ch:not([data-state="map"]) .ch-note { opacity: 0; visibility: hidden; }

/* Smaller wide charts: extension notes set in two lines. */
@container (max-width: 660px) {
  .ch[data-layout="wide"] .ch-n--extra .ch-n__label { white-space: normal; width: max-content; max-width: 6.4em; }
}

/* Narrow charts: labels and notes may set in two lines. */
.ch[data-layout="tall"] .ch-n__label,
.ch[data-layout="tall"] .ch-note { white-space: normal; width: max-content; max-width: 6em; }
.ch[data-layout="tall"] .ch-note { max-width: 6.6em; font-size: 14px; }
.ch[data-layout="tall"] .ch-n[data-side="w"] .ch-n__label,
.ch[data-layout="tall"] .ch-note[data-side="w"] { text-align: right; }
.ch[data-layout="tall"] .ch-n[data-side="n"] .ch-n__label,
.ch[data-layout="tall"] .ch-n[data-side="s"] .ch-n__label,
.ch[data-layout="tall"] .ch-note[data-side="n"],
.ch[data-layout="tall"] .ch-note[data-side="s"] { text-align: center; }
.ch[data-layout="tall"] .ch-n__label { font-size: 12.5px; line-height: 15px; }

.ch-tip {
  position: absolute;
  z-index: 3;
  max-width: min(340px, 92%);
  padding: 7px 12px 8px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.3;
  color: var(--paper);
  background: var(--chart);
  border: 1px solid var(--graticule);
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .15s;
}
.ch-tip.is-on { opacity: 1; visibility: visible; }

.ch.is-instant *, .ch.is-reduced * { transition: none !important; }

/* ---------- Receipts ---------- */
.rcpt {
  --row-h: 40px;
  background: var(--chart);
  border: 1px solid var(--graticule);
  border-radius: 2px;
  transition: opacity .5s ease-out, visibility 0s;
}
.rcpt[data-on="false"] { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.rcpt__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 16px 8px;
  border-bottom: 1px solid var(--graticule);
}
.rcpt__title { font-size: .8125rem; font-weight: 600; font-stretch: 104%; color: var(--paper); }
.rcpt__list {
  height: calc(var(--rows) * var(--row-h) + 8px);
  padding: 4px 0;
  overflow: hidden;
}
.rc {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: var(--row-h);
  padding: 0 16px;
  font-size: .8125rem;
  line-height: 1.3;
  font-stretch: 98%;
}
.rc__time { color: var(--fathom); font-variant-numeric: tabular-nums; }
.rc__text { color: var(--paper); }
.rc__flag { display: block; color: var(--brass); font-weight: 600; }
.rc--wait::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--brass);
}
.rc--done .rc__text { color: var(--seaglass); }
.rc--done::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--seaglass);
}
.rc:focus { outline: none; }
.rc:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.rc__approve {
  position: relative;
  min-height: 34px;
  padding: 0 14px;
  font-size: .8125rem;
  font-weight: 600;
  font-stretch: 104%;
  color: var(--brass);
  background: transparent;
  border: 1px solid var(--brass);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.rc__approve::after { content: ""; position: absolute; inset: -5px -4px; }
.rc__approve:hover { color: var(--abyss); background: var(--brass); }
.rc__approve.is-nudge { animation: nudge 1.6s var(--ease) 1; }
@keyframes nudge {
  0% { box-shadow: 0 0 0 0 rgba(210, 168, 90, .6); }
  100% { box-shadow: 0 0 0 14px rgba(210, 168, 90, 0); }
}

/* ---------- Sections ---------- */
.section { padding-top: var(--pad); }
main > .section:last-child { padding-bottom: var(--pad); }
.section__h { grid-column: 1 / span 8; }

/* Statement */
.statement { padding-top: calc(var(--pad) * .9); }
.statement__title {
  grid-column: 1 / -1;
  font-size: min(6.5rem, calc((100vw - 48px) / 11.9));
  font-stretch: 112%;
  line-height: .98;
  letter-spacing: -.022em;
}
.statement__a, .statement__b { display: block; }
.statement__a { color: var(--fathom); }
.statement__body { grid-column: 5 / span 6; margin-top: clamp(48px, 6vw, 88px); }

/* How we work */
.how__head { grid-column: 1 / span 5; grid-row: 1; padding-bottom: clamp(56px, 9vh, 96px); }
.how__visual { grid-column: 6 / -1; grid-row: 1 / span 2; }
.how__sticky { position: sticky; top: 12vh; }
.how__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 13rem);
  column-gap: 32px;
  align-items: end;
  margin-top: 8px;
}
.how__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.how__slot { display: grid; align-self: start; }
.how__slot > * { grid-area: 1 / 1; }

/* Chart key, shown while the How chart is in its map and install stages */
.keys {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px 32px;
  align-content: start;
  padding-top: 14px;
  font-size: .8125rem;
  line-height: 1.3;
  color: var(--fathom);
  transition: opacity .4s ease-out, visibility 0s;
}
.key { display: flex; align-items: center; gap: 10px; }
.key__sym { width: 16px; height: 16px; flex: none; overflow: visible; }
.sym__stall { fill: none; stroke: var(--brass); stroke-width: 1.3; }
.sym__hand { fill: none; stroke: var(--fathom); stroke-opacity: .75; stroke-width: 1.2; stroke-dasharray: 1.5 3.5; stroke-linecap: round; }
.ch[data-state="map"] ~ .how__foot .key--install,
.ch:not([data-state="map"]) ~ .how__foot .key--map { display: none; }
.ch[data-state="map"] ~ .how__foot .textbtn,
.ch[data-state="install"] ~ .how__foot .textbtn { visibility: hidden; }
.ch[data-state="operate"] ~ .how__foot .keys,
.ch[data-state="extend"] ~ .how__foot .keys { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.how__tabs { display: none; }
.steps { grid-column: 1 / span 5; grid-row: 2; padding-bottom: 6vh; }
.step p { max-width: 25rem; }
.step {
  min-height: 78vh;
  padding-top: 4px;
  color: var(--fathom);
  font-size: 1.125rem;
  line-height: 1.65;
  transition: color .4s;
}
.step:last-child { min-height: 56vh; }
.is-staged .hero, .is-staged .statement { display: none; }
.is-staged .how .step { min-height: 0; }
.is-staged .how .step:not(.is-active) { display: none; }
.step.is-active { color: var(--paper); }
.step__title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  font-size: clamp(1.75rem, 1.2rem + 1.1vw, 2.375rem);
  line-height: 1.1;
  color: var(--paper);
}
.step__num {
  font-stretch: 100%;
  font-weight: 500;
  font-size: .62em;
  color: var(--fathom);
  font-variant-numeric: tabular-nums;
  transform: translateY(-.15em);
}
.step:not(.is-active) .step__title { color: var(--fathom); }

/* What we build: the legend */
.legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
  margin-top: clamp(48px, 6vw, 80px);
}
.legend__item {
  display: grid;
  grid-template-columns: 28px minmax(0, 12.5rem) minmax(0, 1fr);
  column-gap: 20px;
  align-items: start;
  padding: 28px 0 32px;
  border-top: 1px solid var(--graticule);
}
.legend__item:nth-last-child(-n + 2) { border-bottom: 1px solid var(--graticule); }
.sym { width: 28px; height: 28px; margin-top: 1px; overflow: visible; }
.sym__ring { fill: none; stroke: var(--paper); stroke-opacity: .55; stroke-width: 1.2; }
.sym__fill { fill: var(--paper); }
.sym__line { fill: var(--abyss); stroke: var(--paper); stroke-width: 1.5; }
.sym__thin { fill: none; stroke: var(--fathom); stroke-width: 1.2; }
.sym__route { fill: none; stroke: var(--fathom); stroke-opacity: .8; stroke-width: 1.4; }
.sym__gate { fill: var(--abyss); stroke: var(--brass); stroke-width: 1.5; }
.legend__title {
  font-size: 1.0625rem;
  font-weight: 600;
  font-stretch: 108%;
  line-height: 1.35;
  padding-top: 2px;
}
.legend__text { color: var(--fathom); font-size: 1rem; line-height: 1.6; padding-top: 1px; }

/* Platform */
.platform__grid { row-gap: 0; }
.platform__copy { grid-column: 1 / span 6; }
.platform__lede { margin-top: 28px; font-size: 1.125rem; line-height: 1.65; color: var(--paper); max-width: 40rem; }
.rules { margin-top: 48px; }
.rule {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr);
  column-gap: 24px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--graticule);
}
.rule:last-child { border-bottom: 1px solid var(--graticule); }
.rule dt { font-weight: 600; font-stretch: 108%; }
.rule dd { color: var(--fathom); }
.specimen { grid-column: 8 / span 5; align-self: start; margin-top: 8px; }
.specimen__card {
  background: var(--chart);
  border: 1px solid var(--graticule);
  border-radius: 2px;
}
.specimen__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 20px 15px;
  border-bottom: 1px solid var(--graticule);
  font-size: .9375rem;
}
.specimen__id { font-weight: 600; font-stretch: 108%; font-variant-numeric: tabular-nums; }
.specimen__agent { color: var(--fathom); }
.specimen__rows { padding: 6px 0; }
.specimen__row {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  column-gap: 16px;
  padding: 12px 20px;
  font-size: .9375rem;
  line-height: 1.5;
}
.specimen__row dt { color: var(--fathom); }
.specimen__auth { display: flex; align-items: flex-start; gap: 10px; }
.authmark { flex: none; width: 40px; height: 16px; margin-top: 3px; }
.authmark__wait { fill: var(--brass); }
.authmark__line { fill: none; stroke: var(--route); stroke-width: 1.2; }
.authmark__check { fill: none; stroke: var(--seaglass); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.specimen .caption { margin-top: 14px; }
.status {
  grid-column: 1 / -1;
  margin-top: clamp(48px, 6vw, 72px);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--fathom);
}

/* Who we work with */
.who__head .h2 { grid-column: 1 / span 7; }
.who__intro { grid-column: 1 / span 6; margin-top: 28px; font-size: 1.125rem; line-height: 1.65; color: var(--fathom); }
.sectors {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(48px, 6vw, 80px);
}
.sector { padding-top: 24px; border-top: 1px solid var(--graticule); }
.sector__title { font-size: 1.125rem; font-weight: 600; font-stretch: 108%; line-height: 1.3; }
.sector .note { margin-top: 12px; max-width: 26ch; }

/* Contact */
.contact__copy { grid-column: 1 / span 8; }
.contact__lede { margin-top: 28px; max-width: 40rem; font-size: 1.125rem; line-height: 1.65; color: var(--fathom); }
.path {
  grid-column: 1 / span 9;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  margin-top: clamp(48px, 6vw, 72px);
}
.path::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 0;
  top: 4px;
  height: 1px;
  background: var(--route);
}
.path__step {
  position: relative;
  padding-top: 28px;
  font-size: 1.0625rem;
  font-weight: 560;
  font-stretch: 104%;
  line-height: 1.4;
}
.path__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
}
.path__num {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-stretch: 100%;
  font-size: .875rem;
  color: var(--fathom);
  font-variant-numeric: tabular-nums;
}
.contact__action { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 56px); }

/* Footer */
.footer { border-top: 1px solid var(--graticule); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.brand--static .brand__name { font-size: 1rem; font-stretch: 112%; }
.footer__tag, .footer__copy { font-size: .875rem; color: var(--fathom); }

/* 404 */
.notfound { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 64px 0; }
.notfound__title { grid-column: 1 / span 8; font-size: clamp(2.5rem, 1.2rem + 3.8vw, 4.5rem); line-height: 1.03; }
.notfound__note { grid-column: 1 / span 8; margin-top: 24px; font-size: 1.1875rem; }
.notfound .actions { grid-column: 1 / -1; }

/* ---------- Large tablets and small laptops ---------- */
@media (max-width: 1199px) {
  .hero__copy { grid-column: 1 / span 5; }
  .hero__figure { grid-column: 6 / span 7; }
  .hero__below { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .how__foot { grid-template-columns: minmax(0, 1fr); }
  .hero__meta, .how__meta { flex-direction: row; align-items: center; justify-content: space-between; gap: 0 16px; margin-top: 10px; }
  .rule { grid-template-columns: 8.5rem minmax(0, 1fr); }
}

/* ---------- Tablet: hero stacks, the stage becomes a control ---------- */
@media (max-width: 999px) {
  .hero { min-height: 0; padding-top: 56px; padding-bottom: 72px; }
  .hero__copy { grid-column: 1 / span 10; padding-bottom: 0; }
  .hero__title { font-size: min(3.25rem, calc(7.2vw - 4px)); }
  .hero__figure { grid-column: 1 / -1; margin-top: 56px; }
  .hero__below { grid-template-columns: minmax(0, 1fr) minmax(0, 14rem); margin-top: -7%; }
  .hero__meta { flex-direction: column; align-items: flex-start; margin-top: 0; }

  .statement__body { grid-column: 3 / span 9; }

  .how__body { display: block; }
  .how__head { padding-bottom: 40px; }
  .how__sticky { position: static; }
  .how__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 28px;
    border: 1px solid var(--graticule);
    border-radius: 2px;
  }
  .seg {
    min-height: 48px;
    padding: 0 8px;
    font-size: .9375rem;
    font-weight: 560;
    font-stretch: 104%;
    color: var(--fathom);
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .seg + .seg { border-left: 1px solid var(--graticule); }
  .seg[aria-pressed="true"] { color: var(--paper); background: var(--chart); box-shadow: inset 0 -2px 0 var(--paper); }
  .steps { padding-bottom: 0; }
  .step { display: none; min-height: 0; padding-top: 28px; color: var(--paper); }
  .step.is-active { display: block; }
  .step:not(.is-active) .step__title, .step .step__title { color: var(--paper); }

  .legend { grid-template-columns: 1fr; }
  .legend__item:nth-last-child(2) { border-bottom: 0; }

  .platform__copy { grid-column: 1 / -1; }
  .specimen { grid-column: 1 / span 9; margin-top: 56px; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .who__head .h2, .who__intro, .contact__copy { grid-column: 1 / span 11; }
  .path { grid-column: 1 / -1; }
}

/* ---------- Phones ---------- */
@media (max-width: 719px) {
  :root { --side: 16px; --gap: 16px; --header-h: 60px; }
  body { font-size: 1rem; }
  .nav { gap: 0; }
  .nav__link { display: none; }
  .brand__name { font-size: 1.0625rem; }
  .hero { padding-top: 40px; padding-bottom: 56px; }
  .hero__copy, .hero__figure { grid-column: 1 / -1; }
  .hero__title { font-size: calc(8.6vw - 3px); }
  .hero__sub { margin-top: 20px; }
  .actions { margin-top: 32px; }
  .actions .btn { flex: 1 1 100%; }
  .hero__figure { margin-top: 48px; }
  .hero__below { display: block; margin-top: 12px; }
  .hero__meta, .how__meta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin-top: 12px; }
  .rcpt { --row-h: 52px; }
  [data-receipts="hero"] .rcpt__list { height: calc(4 * var(--row-h) + 8px); }
  .rc { grid-template-columns: 2.4rem minmax(0, 1fr) auto; column-gap: 10px; padding: 0 12px; }
  .rcpt__head { padding: 9px 12px 8px; }

  .statement__title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .statement__body { grid-column: 1 / -1; }
  .prose, .platform__lede, .who__intro, .contact__lede, .step { font-size: 1.0625rem; }

  .how__foot { display: block; margin-top: 12px; }
  .seg { font-size: .875rem; padding: 0 4px; }

  .legend__item { grid-template-columns: 28px minmax(0, 1fr); row-gap: 8px; column-gap: 16px; padding: 24px 0 26px; }
  .legend__text { grid-column: 2; }

  .rule { grid-template-columns: 1fr; row-gap: 6px; }
  .specimen { grid-column: 1 / -1; }
  .specimen__head, .specimen__row { padding-left: 16px; padding-right: 16px; }
  .specimen__row { grid-template-columns: 1fr; row-gap: 2px; }
  .sectors { grid-template-columns: 1fr; row-gap: 32px; }
  .who__head .h2, .who__intro, .contact__copy, .notfound__title { grid-column: 1 / -1; }

  .path { grid-template-columns: 1fr; row-gap: 28px; }
  .path::before { left: 4px; right: auto; top: 4px; bottom: 20px; width: 1px; height: auto; }
  .path__step { padding: 0 0 0 32px; }
  .path__num { display: inline; margin: 0 10px 0 0; }
  .contact__action .btn { width: 100%; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .btn--sm { padding: 0 12px; font-size: .8125rem; }
}

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