/* ==========================================================================
   Acuity-Reliable LLC
   Approved direction: editorial body ("Record") with the animated masthead kept.
   Palette is the approved brand package: navy #0D2B66, teal #28C9CC, white.
   ========================================================================== */

:root {
  /* Brand */
  --navy: #0D2B66;
  --teal-fill: #28C9CC;
  --teal: #0E7A83;          /* text-safe teal on light grounds */
  --teal-light: #7DF0F4;    /* teal on dark grounds */

  /* Light editorial surface */
  --paper: #FCFDFE;
  --wash: #F1F5F9;
  --ink: #0D2B66;
  --body: #243C63;
  --muted: #61748F;
  --rule: #D5DEEA;
  --rule-2: #B9C7D9;

  /* Dark masthead / footer ground */
  --ground: #04162D;
  --ground-2: #061F3E;
  --on-dark: #EAF2FB;
  --on-dark-muted: #C6D8ED;
  --on-dark-faint: #93AECD;

  /* Type */
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --sans: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max: 1180px;
  --gutter: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -.018em;
  text-wrap: balance;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
p { margin: 0; }

.wrap { width: min(var(--max), calc(100% - var(--gutter))); margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

.label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 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;
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.mast :where(a, button):focus-visible,
.ft :where(a, button):focus-visible { outline-color: var(--teal-light); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 20px;
  border-radius: 0 0 6px 6px; font-weight: 700; font-size: 14px;
  transition: top .18s ease;
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.hd {
  position: sticky; top: 0; z-index: 40;
  background: rgba(252, 253, 254, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.hd-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 19px 0; }

.brand { display: flex; align-items: center; gap: 14px; }
.brand-icon {
  height: 32px; width: auto;
  clip-path: inset(0 100% 0 0);
  animation: logoWipe .85s cubic-bezier(.2,.7,.2,1) both;
}
.brand-div {
  width: 1px; height: 30px; background: var(--rule-2);
  transform-origin: center;
  animation: dividerIn .4s ease .5s both;
}
.brand-wm {
  height: 34px; width: auto;
  opacity: 0; transform: translateX(-8px);
  animation: wordmarkIn .5s ease .6s forwards;
}
@keyframes logoWipe   { to { clip-path: inset(0 0 0 0); } }
@keyframes dividerIn  { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes wordmarkIn { to { opacity: 1; transform: translateX(0); } }

.nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 500; }
.nav a {
  color: var(--muted); white-space: nowrap; padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--teal-fill); }
.nav a.cur { color: var(--ink); border-bottom-color: var(--ink); }
.nav-cta {
  color: var(--ink) !important; font-weight: 700;
  border-bottom: 2px solid var(--teal-fill) !important; padding-bottom: 2px;
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  padding: 10px; width: 44px; height: 44px;
}
.nav-toggle-bar {
  display: block; width: 22px; height: 2px; background: var(--ink);
  margin: 4px auto; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Masthead — the kept animated hero
   ========================================================================== */
.mast {
  position: relative; overflow: hidden; color: var(--on-dark);
  background:
    radial-gradient(1000px 480px at 78% 12%, rgba(40,201,204,.20), transparent 60%),
    radial-gradient(700px 400px at 10% 96%, rgba(13,43,102,.7), transparent 64%),
    linear-gradient(180deg, var(--ground), var(--ground-2));
}
.mast-net {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: .9; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(95deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.62) 30%, #000 64%);
  mask-image: linear-gradient(95deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.62) 30%, #000 64%);
}
.mast-in {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 58px; align-items: center; padding: 84px 0 78px;
}
.mast .kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.mast .kicker .label { color: var(--teal-light); }
.mast h1 {
  font-size: clamp(38px, 4.9vw, 68px); font-weight: 300; line-height: 1.06;
  letter-spacing: -.028em; color: #fff; max-width: 16ch;
}
.mast h1 em { font-style: italic; color: var(--teal-light); }
.thread {
  width: 88px; height: 2px; margin: 28px 0 26px;
  background: linear-gradient(90deg, var(--teal-fill), transparent);
}
.mast .lede { font-size: 18.5px; line-height: 1.66; color: var(--on-dark-muted); max-width: 50ch; margin-bottom: 32px; }
.acts { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.btn-solid, .btn-ghost {
  display: inline-block; font-weight: 700; font-size: 13px;
  letter-spacing: .07em; text-transform: uppercase; cursor: pointer;
}
.btn-solid {
  background: var(--teal-fill); color: var(--ground) !important;
  padding: 14px 24px; border: 0; font-family: var(--sans);
  transition: transform .18s ease, box-shadow .18s ease;
}
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(40,201,204,.65); }
.btn-ghost {
  border: 1px solid rgba(125,240,244,.45); color: var(--on-dark) !important; padding: 13px 23px;
  transition: background .18s ease, border-color .18s ease;
}
.btn-ghost:hover { background: rgba(40,201,204,.13); border-color: var(--teal-fill); }

.mast-media { position: relative; min-height: 420px; overflow: hidden; isolation: isolate; z-index: 2; }
.mast-img, .mast-shim, .mast-grid { position: absolute; inset: 0; }
.mast-img {
  background-image: url('../images/hero-capitol-tech.jpg');
  background-size: cover; background-position: center;
  filter: saturate(1.06) brightness(.94) contrast(1.05);
  animation: kenBurns 17s ease-in-out infinite alternate;
}
.mast-img::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4,17,37,.12), rgba(4,17,37,.3)),
    radial-gradient(circle at 76% 20%, rgba(79,212,230,.2), transparent 30%);
}
@keyframes kenBurns {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to   { transform: scale(1.11) translate3d(0,-14px,0); }
}
.mast-shim {
  z-index: 4; mix-blend-mode: screen; transform: translateX(-130%);
  background: linear-gradient(115deg, transparent 12%, rgba(255,255,255,.02) 24%, rgba(78,211,230,.2) 38%, rgba(255,255,255,.02) 46%, transparent 58%);
  animation: heroSweep 7.5s ease-in-out infinite;
}
@keyframes heroSweep {
  0%, 100% { transform: translateX(-130%); opacity: 0; }
  10% { opacity: .5; }
  45% { transform: translateX(130%); opacity: .8; }
  60% { opacity: 0; }
}
.mast-grid {
  z-index: 3; opacity: .16;
  background-image:
    linear-gradient(rgba(90,214,231,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,214,231,.12) 1px, transparent 1px);
  background-size: 90px 90px;
  -webkit-mask-image: linear-gradient(180deg, transparent 10%, rgba(0,0,0,.92) 44%, rgba(0,0,0,.92) 100%);
  mask-image: linear-gradient(180deg, transparent 10%, rgba(0,0,0,.92) 44%, rgba(0,0,0,.92) 100%);
}

/* ==========================================================================
   Figures band — the deliberate dark → light handoff
   ========================================================================== */
.figs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border-bottom: 1px solid var(--rule-2);
  width: min(var(--max), calc(100% - var(--gutter))); margin-inline: auto;
}
.fig { padding: 34px 30px 32px; border-right: 1px solid var(--rule); }
.fig:last-child { border-right: 0; }
.fig-n {
  font-family: var(--serif); font-size: 50px; font-weight: 300; color: var(--ink);
  line-height: .94; letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.fig-n small { font-size: 22px; font-weight: 400; }
.fig-t { font-size: 13.5px; line-height: 1.5; color: var(--body); margin-top: 12px; font-weight: 500; }
.fig-src { font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-top: 9px; }

/* ==========================================================================
   Sections
   ========================================================================== */
.sec { padding: 82px 0; }
.sec.wash { background: var(--wash); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sechead { display: grid; grid-template-columns: minmax(0, .34fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.sechead h2 { font-size: clamp(28px, 3.5vw, 42px); }
.sechead .sub { font-size: 17px; line-height: 1.7; color: var(--body); }
.sechead .sub p + p { margin-top: 16px; }

.footnote {
  margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--rule);
  font-size: 13.5px; color: var(--muted); line-height: 1.6;
}

/* Parent firms */
.parents { display: grid; grid-template-columns: 1fr 1fr; margin-top: 52px; border-top: 1px solid var(--rule-2); }
.parent { padding: 34px 40px 34px 0; border-right: 1px solid var(--rule); }
.parent:last-child { padding-left: 40px; padding-right: 0; border-right: 0; }
.parent .role { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.parent h3 { font-size: 25px; margin-bottom: 12px; }
.parent > p { font-size: 15px; line-height: 1.68; color: var(--body); margin-bottom: 18px; }
.facts { margin: 0; border-top: 1px solid var(--rule); }
.facts > div {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 13.5px;
}
.facts dt { color: var(--muted); margin: 0; }
.facts dd { color: var(--ink); font-weight: 600; text-align: right; margin: 0; }

/* Capabilities */
.caps { margin-top: 50px; border-top: 1px solid var(--rule-2); }
.cap {
  display: grid; grid-template-columns: 52px minmax(0, .3fr) minmax(0, 1fr);
  gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
  transition: padding-left .2s ease, background .2s ease;
}
.cap:hover { padding-left: 12px; background: rgba(40,201,204,.05); }
.cap-ix { font-size: 12px; color: var(--teal); font-weight: 700; letter-spacing: .08em; }
.cap h3 { font-size: 20px; }
.cap p { font-size: 14.5px; line-height: 1.62; color: var(--muted); }

/* Pillars */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 50px;
  border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2);
}
.pil { padding: 34px 34px 34px 0; border-right: 1px solid var(--rule); }
.pil:nth-child(2) { padding-left: 34px; }
.pil:nth-child(3) { padding-left: 34px; padding-right: 0; border-right: 0; }
.pil h3 { font-size: 22px; margin: 12px 0; }
.pil p { font-size: 14.5px; line-height: 1.66; color: var(--muted); }
.pil .q {
  font-size: 13.5px; color: var(--ink); font-style: italic;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule);
}

/* Links + closing band */
.linkline {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700;
  color: var(--ink); font-size: 14.5px;
  border-bottom: 2px solid var(--teal-fill); padding-bottom: 3px;
  transition: gap .18s ease;
}
.linkline:hover { gap: 15px; }

.close { padding: 86px 0; text-align: center; border-top: 1px solid var(--rule-2); }
.close h2 { font-size: clamp(30px, 4vw, 48px); max-width: 20ch; margin: 0 auto; }
.close p { font-size: 17px; line-height: 1.66; color: var(--body); max-width: 52ch; margin: 22px auto 30px; }

/* Page headers (interior pages) */
.ph { padding: 70px 0 46px; border-bottom: 1px solid var(--rule-2); }
.ph h1 { font-size: clamp(36px, 4.6vw, 58px); margin-top: 18px; max-width: 17ch; }
.ph-lede { font-size: 17.5px; line-height: 1.68; color: var(--body); max-width: 60ch; margin-top: 22px; }
.ph-lede a { color: var(--teal); font-weight: 600; border-bottom: 1px solid var(--teal-fill); }
.ph-act { margin-top: 28px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.contact-block { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--rule); }
.contact-block:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.contact-email {
  display: inline-block; margin-top: 10px; font-family: var(--serif);
  font-size: 22px; color: var(--ink); border-bottom: 2px solid var(--teal-fill); padding-bottom: 2px;
  word-break: break-word;
}
.contact-note { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin-top: 10px; }
.contact-note a { color: var(--teal); font-weight: 600; }
.contact-list { margin: 12px 0 0; padding-left: 20px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.contact-list li { margin: 7px 0; }
.contact-list li::marker { color: var(--teal-fill); }

.contact-form-wrap h2 { font-size: 26px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.field label { font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink); }
.field input, .field textarea {
  font-family: var(--sans); font-size: 16px; color: var(--body);
  background: #fff; border: 1px solid var(--rule-2); border-radius: 0;
  padding: 12px 14px; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(40,201,204,.18); outline: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.contact-form .btn-solid { border: 0; }
.form-status { margin-top: 16px; font-size: 14.5px; line-height: 1.6; min-height: 1.2em; }
.form-status.ok { color: var(--teal); font-weight: 600; }
.form-status.err { color: #A93326; font-weight: 600; }

/* ==========================================================================
   Footer — dark, bookending the masthead
   ========================================================================== */
.ft { background: var(--ground); color: var(--on-dark-faint); padding: 58px 0 0; font-size: 14px; }
.ft-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .6fr) minmax(0, 1fr); gap: 48px; padding-bottom: 44px; }
.ft-brand img { height: 32px; width: auto; margin-bottom: 14px; }
.ft-tag { color: var(--on-dark-muted); font-size: 13.5px; }
.ft h2 { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 14px; }
.ft-links { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.ft-links a { color: var(--on-dark-muted); border-bottom: 1px solid transparent; transition: color .18s ease, border-color .18s ease; }
.ft-links a:hover { color: #fff; border-bottom-color: var(--teal-fill); }
.ft-email { display: inline-block; color: var(--teal-light); font-weight: 600; border-bottom: 1px solid rgba(125,240,244,.4); word-break: break-word; }
.ft-note { font-size: 13px; line-height: 1.62; color: var(--on-dark-faint); margin-top: 16px; }
.ft-note a { color: var(--on-dark-muted); border-bottom: 1px solid rgba(198,216,237,.35); }
.ft-note a:hover { color: #fff; }
.ft-legal { border-top: 1px solid rgba(125,240,244,.14); padding: 22px 0 34px; font-size: 12.5px; color: var(--on-dark-faint); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  :root { --gutter: 48px; }
  .mast-in, .sechead, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .mast h1 { max-width: none; }
  .figs, .pillars, .parents { grid-template-columns: 1fr 1fr; }
  .parent, .parent:last-child, .pil { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .pil:nth-child(2), .pil:nth-child(3) { padding-left: 0; }
  .fig:nth-child(2) { border-right: 0; }
  .ft-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 32px; }
  body { font-size: 16px; }

  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 16px; box-shadow: 0 14px 30px rgba(13,43,102,.10);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px var(--gutter); border-bottom: 0; }
  .nav a.cur { color: var(--ink); background: var(--wash); }
  .nav-cta { border-bottom: 0 !important; margin: 8px var(--gutter) 0; padding: 13px 0 !important; border-top: 1px solid var(--rule) !important; }

  .brand-wm { display: none; }
  .brand-div { display: none; }
  .brand-icon { height: 30px; }

  .mast-in { padding: 56px 0 52px; }
  .mast-media { min-height: 260px; }
  .figs, .pillars, .parents, .ft-in { grid-template-columns: 1fr; }
  .fig { border-right: 0; border-bottom: 1px solid var(--rule); padding: 26px 0; }
  .fig:last-child { border-bottom: 0; }
  .cap { grid-template-columns: 40px 1fr; gap: 8px 18px; }
  .cap p { grid-column: 2; }
  .sec { padding: 56px 0; }
  .close { padding: 62px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .brand-icon { clip-path: none; }
  .brand-wm { opacity: 1; transform: none; }
}

/* Capability sub-specialisms — the real toolchain under each pillar */
.cap-tags {
  grid-column: 3;
  display: flex; flex-wrap: wrap; gap: 6px 8px;
  margin: 14px 0 0; padding: 0; list-style: none;
}
.cap-tags li {
  font-size: 11.5px; line-height: 1.35; color: var(--muted);
  border: 1px solid var(--rule); padding: 4px 9px; background: #fff;
}
.cap:hover .cap-tags li { border-color: var(--rule-2); }
@media (max-width: 760px) {
  .cap-tags { grid-column: 2; }
}

/* ==========================================================================
   Technical governance — the ad-hoc to enterprise-scale shift
   ========================================================================== */
.tmd { background: var(--wash); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.shift {
  display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch;
  margin-top: 50px; border-top: 1px solid var(--rule-2);
}
.shift-col { padding: 30px 0; }
.shift-col ul { margin: 16px 0 0; padding: 0; list-style: none; }
.shift-col li {
  font-size: 14.5px; line-height: 1.5; padding: 10px 0;
  border-bottom: 1px solid var(--rule); color: var(--muted);
}
.shift-from li { padding-right: 24px; }
.shift-to li { padding-left: 24px; color: var(--body); font-weight: 500; }
.shift-from .label { color: var(--muted); }
.shift-arrow { position: relative; }
.shift-arrow::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px; background: var(--rule);
}
.shift-arrow span {
  position: absolute; top: 46px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-fill); display: block;
}
.shift-arrow span::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ground);
  -webkit-mask: no-repeat center/10px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  mask: no-repeat center/10px 10px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
@media (max-width: 760px) {
  .shift { grid-template-columns: 1fr; }
  .shift-arrow { height: 46px; }
  .shift-arrow::before { left: 13px; top: 0; bottom: 0; }
  .shift-arrow span { top: 10px; left: 13px; transform: rotate(90deg) translateY(-50%); }
  .shift-from li, .shift-to li { padding-left: 0; padding-right: 0; }
}
 /* This section leads with a statement, so the headline runs full width
    above the prose rather than sitting in the narrow label column. */
.tmd .sechead { grid-template-columns: 1fr; gap: 22px; }
.tmd .sechead h2 { max-width: 20ch; line-height: 1.06; }
.tmd .sechead .sub { columns: 2; column-gap: 54px; }
@media (max-width: 860px) { .tmd .sechead .sub { columns: 1; } }

/* ==========================================================================
   MOTION & DEPTH
   One signature idea — the mark's unbroken loop traced down the page — with
   everything else deliberately quiet. Restraint is what separates expensive
   from busy. Every transform/opacity only; nothing animates layout.
   ========================================================================== */

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --- the continuous thread ------------------------------------------------ */
.thread-rail {
  position: fixed; left: 26px; top: 0; bottom: 0; width: 1px;
  background: var(--rule); z-index: 5; pointer-events: none; opacity: 0;
  transition: opacity .5s ease;
}
.thread-rail.on { opacity: 1; }
.thread-rail-fill {
  position: absolute; inset: 0 0 auto 0; height: 0;
  background: linear-gradient(180deg, var(--navy), var(--teal-fill));
  transform-origin: top;
}
.thread-rail-fill::after {
  content: ""; position: absolute; left: 50%; bottom: -3px;
  width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: var(--teal-fill); box-shadow: 0 0 0 4px rgba(40, 201, 204, .16);
}
@media (max-width: 1240px) { .thread-rail { display: none; } }

/* --- scroll reveals: one-shot, small, never blocking reading -------------- */
[data-reveal] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
[data-reveal].seen { opacity: 1; transform: none; }

/* --- masthead entrance ---------------------------------------------------- */
.mast h1 { animation: headlineIn 1s cubic-bezier(.2,.7,.2,1) .25s both; }
.mast .kicker { animation: fadeUp .7s ease .1s both; }
.mast .lede { animation: fadeUp .8s ease .55s both; }
.mast .acts { animation: fadeUp .8s ease .7s both; }
.mast .thread { animation: threadGrow .8s cubic-bezier(.2,.7,.2,1) .45s both; }
@keyframes headlineIn {
  from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(10px); }
  to   { opacity: 1; clip-path: inset(0 0 -10% 0); transform: none; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes threadGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mast .thread { transform-origin: left; }

/* --- figures: depth on the numerals, lift on hover ----------------------- */
.fig { transition: background .3s ease; position: relative; }
.fig::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--teal-fill));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.fig:hover::after { transform: scaleX(1); }
.fig-n {
  background: linear-gradient(120deg, var(--navy) 20%, #1B7C97 60%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- capability rows: icon, depth, and an unmistakable selected state ----- */
.cap {
  grid-template-columns: 46px 44px minmax(0, .28fr) minmax(0, 1fr);
  position: relative; cursor: pointer;
}
/* The 20px white spread makes the row read as a raised card that bleeds past
   the text column, without a pseudo-element fighting the stacking context and
   without touching layout. */
.cap { transition: background .3s ease, box-shadow .3s ease; }
.cap:hover, .cap:focus-within, .cap.is-open {
  background: #fff;
  box-shadow:
    0 0 0 20px #fff,
    0 2px 4px rgba(13,43,102,.05),
    0 22px 44px -28px rgba(13,43,102,.5);
}
.cap:hover { padding-left: 0; }

.cap-icon { display: block; width: 34px; height: 34px; }
.cap-icon svg {
  width: 100%; height: 100%;
  fill: none; stroke: url(#arGrad); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.cap:hover .cap-icon svg, .cap.is-open .cap-icon svg { transform: scale(1.12) rotate(-3deg); }
.cap-ix { transition: color .3s ease; }
.cap:hover .cap-ix, .cap.is-open .cap-ix { color: var(--teal-fill); }
.cap h3 { transition: color .3s ease; }

/* the selected row: a gradient spine drawn from the mark */
.cap::after {
  content: ""; position: absolute; left: -19px; top: 6px; bottom: 6px; width: 3px; z-index: 1;
  background: linear-gradient(180deg, var(--navy), var(--teal-fill));
  transform: scaleY(0); transform-origin: top;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.cap.is-open::after { transform: scaleY(1); }

.cap-tags { grid-column: 4; }
.cap-tags li { transition: border-color .25s ease, color .25s ease, background .25s ease; }
.cap:hover .cap-tags li, .cap.is-open .cap-tags li {
  border-color: rgba(40,201,204,.5); color: var(--body); background: rgba(40,201,204,.05);
}

/* --- TMD: the shift acquires meaning as it enters view ------------------- */
.shift-from li { transition: opacity .5s ease, color .5s ease; transition-delay: var(--d, 0ms); }
.shift.seen .shift-from li { opacity: .48; }
.shift-to li {
  opacity: 0; transform: translateX(-10px);
  transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--d, 0ms);
}
.shift.seen .shift-to li { opacity: 1; transform: none; }
.shift-arrow span { transform: translateX(-50%) scale(0); transition: transform .5s cubic-bezier(.2,.7,.2,1) .15s; }
.shift.seen .shift-arrow span { transform: translateX(-50%) scale(1); }

/* --- links and buttons get real feedback -------------------------------- */
.btn-solid { position: relative; overflow: hidden; }
.btn-solid::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.45) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.btn-solid:hover::after { transform: translateX(120%); }
.parent { transition: background .3s ease; }
.parent:hover { background: rgba(40,201,204,.035); }

@media (max-width: 760px) {
  .cap { grid-template-columns: 40px 34px 1fr; }
  .cap h3 { grid-column: 3; }
  .cap p, .cap-tags { grid-column: 3; }
  .cap-icon { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .shift-to li { opacity: 1 !important; transform: none !important; }
  .shift-from li { opacity: 1 !important; }
  .shift-arrow span { transform: translateX(-50%) scale(1) !important; }
  .thread-rail { display: none !important; }
}
