/* =====================================================================
   UK Technology Hub · Design system
   Palette drawn from the logo: union navy, logo red, logo grey.
   One typeface (Archivo, variable width + weight).
   ===================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched fallback reduces layout shift while the font loads */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial");
  size-adjust: 101%;
  ascent-override: 88%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  /* colour */
  --navy: #012169;
  --navy-900: #00163f;
  --navy-700: #1a3a85;
  --red: #c50f2c;
  --red-700: #a10b23;
  --grey: #534f50;          /* logo grey: secondary text */
  --ink: #0d1a33;           /* primary text: navy-tinted */
  --paper: #f3f5f8;
  --white: #ffffff;
  --rule: #d6dbe4;
  --rule-2: #b9c1cf;
  --tint: #e8ecf3;
  --ok: #0f6b3a;

  /* type */
  --font: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wide: 116%;             /* display width */
  --fs-xs: .8125rem;        /* 13 */
  --fs-sm: .9375rem;        /* 15 */
  --fs-base: 1.0625rem;     /* 17 */
  --fs-md: clamp(1.125rem, 1rem + .45vw, 1.3125rem); /* 18–21 */
  --fs-lg: clamp(1.375rem, 1.1rem + .9vw, 1.75rem);           /* 22–28 */
  --fs-xl: clamp(1.875rem, 1.3rem + 2.1vw, 2.75rem);          /* 30–44 */
  --fs-hero: clamp(2.25rem, 1.25rem + 3vw, 3.75rem);         /* 36–60 */

  /* space & shape */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --sec: clamp(72px, 9vw, 128px);
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(1, 33, 105, .06), 0 8px 24px -12px rgba(1, 33, 105, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --hdr-h: 76px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- utilities ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* The "!" from the logo, used as a marker */
.bang { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; width: 6px; flex: none; }
.bang::before { content: ""; width: 4px; height: 11px; border-radius: 1px 1px 2px 2px; background: var(--red); }
.bang::after { content: ""; width: 4px; height: 4px; border-radius: 1px; background: var(--grey); }
.bang--light::before { background: #ff5c74; }
.bang--light::after { background: rgba(255, 255, 255, .7); }

/* ---------- buttons & links ---------- */
.btn {
  --b: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px;
  font-weight: 650; font-size: var(--fs-sm); line-height: 1.2; letter-spacing: .005em;
  border-radius: var(--r-sm); border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: var(--white); box-shadow: 0 6px 18px -10px rgba(197, 15, 44, .9); }
.btn--red:hover { background: var(--red-700); box-shadow: 0 10px 24px -12px rgba(197, 15, 44, .9); }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: var(--white); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { background: var(--tint); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: progress; }

.tlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 650; color: var(--navy); text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: rgba(1, 33, 105, .3);
  transition: text-decoration-color .2s, color .2s;
}
.tlink:hover { color: var(--red); text-decoration-color: currentColor; }

/* =====================================================================
   HEADER
   ===================================================================== */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.hdr.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 24px -18px rgba(1, 33, 105, .35); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: var(--hdr-h); }
.hdr__logo { display: block; flex: none; }
.hdr__logo img { width: auto; height: 46px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: block; padding: 10px 12px; border-radius: var(--r-sm);
  font-size: var(--fs-sm); font-weight: 560; text-decoration: none; color: var(--ink);
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--red); }
.nav__link[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--red); border-radius: 0; }
.nav__item--dd .nav__link { padding-right: 4px; }
.nav__ddbtn {
  display: grid; place-items: center; width: 28px; height: 36px; padding: 0;
  background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; color: var(--grey);
}
.nav__ddbtn .ico { transition: transform .2s var(--ease); }
.nav__ddbtn[aria-expanded="true"] .ico { transform: rotate(180deg); }

.dd {
  position: absolute; top: calc(100% + 10px); left: -16px; width: 560px;
  padding: 10px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: 0 24px 48px -24px rgba(1, 33, 105, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s;
}
.dd::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; } /* hover bridge */
.nav__item--dd:hover .dd,
.nav__item--dd.is-open .dd { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd__list a {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r);
  text-decoration: none; transition: background-color .15s;
}
.dd__list a:hover, .dd__list a:focus-visible { background: var(--paper); }
.dd__list .ico { color: var(--red); margin-top: 1px; }
.dd__list b { display: block; font-size: var(--fs-sm); font-weight: 650; line-height: 1.3; }
.dd__list small { display: block; font-size: var(--fs-xs); color: var(--grey); margin-top: 2px; }
.dd__all {
  display: block; margin-top: 6px; padding: 12px; border-top: 1px solid var(--rule);
  font-size: var(--fs-sm); font-weight: 650; color: var(--navy); text-decoration: none;
}
.dd__all:hover { color: var(--red); }

.hdr__actions { display: flex; align-items: center; gap: 16px; }
.hdr__tel {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--navy); text-decoration: none;
}
.hdr__tel:hover { color: var(--red); }
.hdr__tel .ico { width: 18px; height: 18px; }

.burger {
  display: none; width: 46px; height: 46px; padding: 0;
  border: 1.5px solid var(--rule-2); border-radius: var(--r-sm); background: var(--white); cursor: pointer;
}
.burger__bars, .burger__bars::before, .burger__bars::after {
  display: block; width: 20px; height: 2px; margin-inline: auto; background: var(--navy); border-radius: 2px;
  transition: transform .25s var(--ease), background-color .2s;
}
.burger__bars { position: relative; }
.burger__bars::before, .burger__bars::after { content: ""; position: absolute; left: 0; }
.burger__bars::before { top: -6px; }
.burger__bars::after { top: 6px; }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mnav {
  position: fixed; inset: var(--hdr-h) 0 0; z-index: 99; overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); border-top: 1px solid var(--rule);
}
.mnav[hidden] { display: none; }
.mnav__in { padding-block: 20px 40px; }
.mnav__group { font-size: var(--fs-xs); font-weight: 600; color: var(--grey); margin-bottom: 4px; }
.mnav__list { border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 12px; }
.mnav__list a { display: block; padding: 11px 0; font-size: 1.125rem; font-weight: 600; text-decoration: none; }
.mnav__list--sub a { font-size: 1rem; font-weight: 500; padding: 9px 0; }
.mnav__list a:hover { color: var(--red); }
.mnav__contact { display: grid; gap: 10px; margin-top: 20px; }
.mnav__mail { text-align: center; padding: 8px; color: var(--navy); font-weight: 600; }

/* =====================================================================
   SECTIONS
   ===================================================================== */
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: calc(var(--sec) * .7); }
.sec--white { background: var(--white); }
.sec--navy { background: var(--navy); color: var(--white); }

.sec__head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.sec__head h2, .why__intro h2, .plat__intro h2, .faqwrap__intro h2, .quote__intro h2 {
  font-size: var(--fs-xl); font-stretch: var(--wide); font-weight: 760; letter-spacing: -.02em; color: var(--navy);
}
.sec__head p, .plat__intro p, .faqwrap__intro p, .quote__intro > p { color: var(--grey); font-size: var(--fs-md); line-height: 1.5; max-width: 40em; }
.sec__more { margin-top: 36px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(36px, 4.5vw, 72px) clamp(64px, 7vw, 104px);
  background:
    linear-gradient(var(--paper), rgba(243, 245, 248, 0) 30%, rgba(243, 245, 248, 0) 70%, var(--paper)),
    linear-gradient(90deg, rgba(1, 33, 105, .055) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(1, 33, 105, .055) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--paper);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero__loc { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-sm); font-weight: 600; color: var(--grey); margin-bottom: 22px; }
.hero__title {
  font-size: var(--fs-hero); font-stretch: 112%; font-weight: 800;
  line-height: 1.03; letter-spacing: -.028em; color: var(--navy);
  max-width: 15em;
}
.hero__lead { margin-top: 24px; font-size: var(--fs-md); line-height: 1.5; color: var(--grey); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--rule); }
.hero__facts li { position: relative; padding-left: 20px; font-size: var(--fs-sm); font-weight: 560; color: var(--ink); }
.hero__facts li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 6px;
  border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg);
}

/* page-load sequence (the one orchestrated moment) */
.js [data-load] > * { opacity: 0; transform: translateY(14px); animation: rise .7s var(--ease) forwards; }
.js [data-load] > :nth-child(2) { animation-delay: .08s; }
.js [data-load] > :nth-child(3) { animation-delay: .16s; }
.js [data-load] > :nth-child(4) { animation-delay: .24s; }
.js [data-load] > :nth-child(5) { animation-delay: .32s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- The hub ---------- */
.hub { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; justify-self: center; }
.hub__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub__ring { fill: none; stroke: var(--rule-2); stroke-width: .25; }
.hub__ring--outer { stroke: var(--rule); stroke-dasharray: .6 1.4; }
.hub__spokes line {
  stroke: var(--rule-2); stroke-width: .35; stroke-linecap: round;
  stroke-dasharray: 40; stroke-dashoffset: 0;
  transition: stroke .25s, stroke-width .25s;
}
.hub__spokes line.is-active { stroke: var(--red); stroke-width: .6; }
.js .hub__spokes line { stroke-dashoffset: 40; animation: draw .9s var(--ease) forwards; }
.js .hub__spokes line:nth-child(2) { animation-delay: .38s; }
.js .hub__spokes line:nth-child(3) { animation-delay: .46s; }
.js .hub__spokes line:nth-child(4) { animation-delay: .54s; }
.js .hub__spokes line:nth-child(5) { animation-delay: .62s; }
.js .hub__spokes line:nth-child(6) { animation-delay: .70s; }
.js .hub__spokes line:nth-child(1) { animation-delay: .30s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hub__core {
  position: absolute; left: 50%; top: 50%; width: 50%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-items: center; text-align: center;
  background: var(--white); border: 1px solid var(--rule); border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .55), 0 30px 60px -30px rgba(1, 33, 105, .45);
}
.hub__coreinner { display: grid; justify-items: center; gap: 8px; padding: 14%; transition: opacity .18s; }
.hub__coreinner.is-swapping { opacity: 0; }
.hub__title { font-size: clamp(1rem, .7rem + 1vw, 1.375rem); font-stretch: var(--wide); font-weight: 760; line-height: 1.12; letter-spacing: -.015em; color: var(--navy); }
.hub__desc { font-size: var(--fs-sm); line-height: 1.4; color: var(--grey); }
.hub__link { margin-top: 4px; font-size: var(--fs-sm); font-weight: 650; color: var(--red); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.hub__link:hover { color: var(--red-700); }

.hub__nodes li { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.hub__node {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px 10px 12px;
  background: var(--white); border: 1px solid var(--rule-2); border-radius: 999px;
  font-size: var(--fs-sm); font-weight: 620; white-space: nowrap; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.hub__node .ico { width: 18px; height: 18px; color: var(--red); transition: color .2s; }
.hub__node:hover { transform: translateY(-2px); border-color: var(--navy); }
.hub__node.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.hub__node.is-active .ico { color: #ff8a9b; }
.js .hub__nodes li { opacity: 0; animation: pop .5s var(--ease) forwards; animation-delay: calc(.6s + var(--d, 0s)); }
.js .hub__nodes li:nth-child(2) { --d: .08s; }
.js .hub__nodes li:nth-child(3) { --d: .16s; }
.js .hub__nodes li:nth-child(4) { --d: .24s; }
.js .hub__nodes li:nth-child(5) { --d: .32s; }
.js .hub__nodes li:nth-child(6) { --d: .40s; }
@keyframes pop { to { opacity: 1; } }

/* =====================================================================
   SERVICES LIST
   ===================================================================== */
.svc { border-top: 2px solid var(--navy); }
.svc__row {
  position: relative; display: grid;
  grid-template-columns: 28px minmax(0, 4.2fr) minmax(0, 5fr) minmax(0, 3.2fr) 28px;
  gap: clamp(16px, 2.4vw, 36px); align-items: start;
  padding: 30px 8px; border-bottom: 1px solid var(--rule);
  transition: background-color .2s;
}
.svc__row::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--red);
  transform: scaleY(0); transform-origin: top; transition: transform .25s var(--ease);
}
.svc__row:hover, .svc__row:focus-within { background: var(--white); }
.svc__row:hover::before, .svc__row:focus-within::before { transform: scaleY(1); }
.svc__ico { color: var(--red); width: 26px; height: 26px; margin-top: 2px; }
.svc__name { font-size: var(--fs-lg); font-stretch: 108%; font-weight: 720; letter-spacing: -.015em; color: var(--navy); }
.svc__name a { text-decoration: none; }
.svc__name a::after { content: ""; position: absolute; inset: 0; } /* whole row is the link */
.svc__name a:focus-visible { outline: none; }
.svc__row:has(a:focus-visible) { outline: 3px solid var(--navy); outline-offset: -3px; }
.svc__what { color: var(--ink); }
.svc__for { font-size: var(--fs-sm); color: var(--grey); }
.svc__for b { display: block; color: var(--ink); font-weight: 650; margin-bottom: 2px; }
.svc__go { width: 24px; height: 24px; color: var(--navy); margin-top: 4px; transition: transform .25s var(--ease), color .2s; }
.svc__row:hover .svc__go { transform: translateX(4px); color: var(--red); }

/* =====================================================================
   WHY (navy)
   ===================================================================== */
.why { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.why__intro { display: grid; gap: 22px; justify-items: start; position: sticky; top: calc(var(--hdr-h) + 32px); }
.sec--navy .why__intro h2 { color: var(--white); }
.why__intro p { color: rgba(255, 255, 255, .82); font-size: var(--fs-md); line-height: 1.5; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 56px); }
.why__list li { padding-block: 28px; border-top: 1px solid rgba(255, 255, 255, .2); }
.why__list h3 { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-md); font-stretch: 106%; font-weight: 700; letter-spacing: -.01em; }
.why__list h3 .bang { margin-top: .3em; }
.why__list p { margin-top: 10px; padding-left: 18px; color: rgba(255, 255, 255, .8); }
.sec--navy :focus-visible { outline-color: var(--white); }

/* =====================================================================
   TYPICAL PROJECTS
   ===================================================================== */
.proj { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.proj__item { display: grid; align-content: start; gap: 14px; padding: clamp(18px, 2.4vw, 28px); background: var(--white); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.proj__item h3 { margin-top: 10px; font-size: var(--fs-lg); font-stretch: 108%; font-weight: 720; letter-spacing: -.015em; color: var(--navy); }
.proj__item > p { color: var(--grey); }
.proj__inc { display: grid; gap: 8px; margin-block: 6px 10px; padding-top: 14px; border-top: 1px solid var(--rule); }
.proj__inc li { position: relative; padding-left: 20px; font-size: var(--fs-sm); }
.proj__inc li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 2px; background: var(--red); }
.proj__item .tlink { justify-self: start; }

/* CSS-drawn interface sketches (decorative) */
.mock { border-radius: var(--r); border: 1px solid var(--rule); background: var(--paper); overflow: hidden; aspect-ratio: 16 / 9; display: flex; flex-direction: column; }
.mock__bar { display: flex; gap: 5px; padding: 9px 11px; background: var(--white); border-bottom: 1px solid var(--rule); }
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--rule-2); }
.mock__bar i:first-child { background: var(--red); }
.mock > div:last-child { flex: 1; padding: 6%; }

.mock__shop { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 2fr; gap: 8px; }
.m-hero { grid-column: 1 / -1; border-radius: 6px; background: linear-gradient(100deg, var(--navy) 0 58%, var(--navy-700) 58%); }
.m-card { display: grid; grid-template-rows: 1fr auto auto; gap: 5px; padding: 6px; background: var(--white); border-radius: 6px; border: 1px solid var(--rule); }
.m-card i { border-radius: 4px; background: var(--tint); }
.m-card b { height: 5px; width: 70%; border-radius: 3px; background: var(--rule-2); }
.m-card em { height: 7px; width: 34%; border-radius: 3px; background: var(--red); }

.mock__site { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto 1fr; gap: 8px 14px; align-content: start; }
.m-h { grid-column: 1; height: 14px; width: 90%; border-radius: 4px; background: var(--navy); }
.m-l { grid-column: 1; height: 6px; width: 80%; border-radius: 3px; background: var(--rule-2); }
.m-l--s { width: 55%; }
.m-form { grid-column: 2; grid-row: 1 / span 3; display: grid; gap: 6px; align-content: start; padding: 8px; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; }
.m-form i { height: 12px; border: 1px solid var(--rule-2); border-radius: 3px; }
.m-form b { height: 14px; width: 60%; border-radius: 3px; background: var(--red); }

.mock__chat { display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.m-msg { height: 18px; border-radius: 9px; }
.m-msg--in { width: 58%; background: var(--white); border: 1px solid var(--rule); }
.m-msg--l { width: 70%; height: 30px; }
.m-msg--out { width: 46%; align-self: flex-end; background: var(--navy); }
.m-type { display: inline-flex; gap: 4px; padding: 7px 10px; background: var(--white); border: 1px solid var(--rule); border-radius: 9px; align-self: flex-start; }
.m-type i { width: 5px; height: 5px; border-radius: 50%; background: var(--grey); opacity: .5; }

.mock__dash { display: grid; grid-template-columns: 14% repeat(3, 1fr); grid-template-rows: auto 1fr; gap: 8px; }
.m-side { grid-row: 1 / -1; border-radius: 6px; background: var(--navy); }
.m-kpi { height: 26px; border-radius: 6px; background: var(--white); border: 1px solid var(--rule); box-shadow: inset 3px 0 0 var(--red); }
.m-chart { grid-column: 2 / -1; display: flex; align-items: flex-end; gap: 7%; padding: 8px 10px 0; background: var(--white); border: 1px solid var(--rule); border-radius: 6px; }
.m-chart i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--navy-700); }
.m-chart i:last-child { background: var(--red); }

/* =====================================================================
   PROCESS
   ===================================================================== */
.steps { position: relative; display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); counter-reset: s; }
.steps::before, .steps::after {
  content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: var(--rule);
}
.steps::after { background: var(--red); transform-origin: left; transform: scaleX(1); }
.js .steps::after { transform: scaleX(0); transition: transform 1.4s var(--ease) .15s; }
.js .steps.is-in::after { transform: scaleX(1); }
.step { position: relative; z-index: 1; }
.step__n {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--navy); color: var(--navy);
  font-weight: 760; font-stretch: var(--wide); font-size: 1rem;
}
.step:last-child .step__n { background: var(--navy); color: var(--white); }
.step h3 { margin-top: 20px; font-size: var(--fs-md); font-stretch: 106%; font-weight: 720; color: var(--navy); }
.step p { margin-top: 8px; font-size: var(--fs-sm); color: var(--grey); }

/* =====================================================================
   PLATFORMS
   ===================================================================== */
.plat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.plat__intro { display: grid; gap: 16px; }
.plat__list { border-top: 2px solid var(--navy); }
.plat__list > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding-block: 16px; border-bottom: 1px solid var(--rule); }
.plat__list dt { font-weight: 650; color: var(--navy); }
.plat__list dd { margin: 0; color: var(--ink); }

/* =====================================================================
   FAQ
   ===================================================================== */
.faqwrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faqwrap__intro { display: grid; gap: 16px; justify-items: start; position: sticky; top: calc(var(--hdr-h) + 32px); }
.faq { border-top: 2px solid var(--navy); }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  position: relative; display: block; cursor: pointer; list-style: none;
  padding: 22px 56px 22px 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: var(--fs-md); font-weight: 650; line-height: 1.3; color: var(--navy); transition: color .2s; }
.faq__item summary:hover h3 { color: var(--red); }
.faq__item summary::before, .faq__item summary::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 16px; height: 2px; background: var(--navy);
  transition: transform .25s var(--ease);
}
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0deg); }
.faq__item p { padding: 0 56px 24px 0; color: var(--ink); max-width: 44em; }
.faq__item p a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.faq__item p a:hover { color: var(--red); }
.faq__item[open] p { animation: fadein .3s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   QUOTE / CONTACT FORM
   ===================================================================== */
.quote { background: var(--paper); border-top: 1px solid var(--rule); }
.quote__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.quote__intro { display: grid; gap: 18px; }
.clist { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid var(--rule-2); }
.clist li { display: flex; gap: 14px; align-items: flex-start; padding-block: 16px; border-bottom: 1px solid var(--rule-2); }
.clist .ico { color: var(--red); margin-top: 2px; }
.clist b { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--grey); }
.clist a, .clist address { font-weight: 600; color: var(--navy); text-decoration: none; overflow-wrap: anywhere; }
.clist a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.formcard { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--red); border-radius: var(--r-lg); padding: clamp(20px, 3.4vw, 44px); box-shadow: 0 40px 80px -48px rgba(1, 33, 105, .4); }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-size: var(--fs-sm); font-weight: 620; }
.req { color: var(--red); }
.opt { font-weight: 400; color: var(--grey); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  background: var(--white); border: 1.5px solid var(--rule-2); border-radius: var(--r-sm);
  font-size: 1rem; line-height: 1.4; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23012169' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--grey); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(1, 33, 105, .18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(197, 15, 44, .2); }
.field__hint { font-size: var(--fs-xs); color: var(--grey); }
.field__err { font-size: var(--fs-xs); font-weight: 600; color: var(--red-700); }
.field__err:empty { display: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__captcha:not([hidden]) { min-height: 65px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__submit { min-width: 200px; }
.form__submit.is-busy span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { font-size: var(--fs-xs); color: var(--grey); }
.form__status:empty { display: none; }
.form__status { padding: 14px 16px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 550; }
.form__status.is-ok { background: #e7f4ec; color: var(--ok); border: 1px solid #b7dcc5; }
.form__status.is-err { background: #fcebee; color: var(--red-700); border: 1px solid #f2c1ca; }
.form__status a { color: inherit; font-weight: 700; }
.form.is-sent .form__row, .form.is-sent > .field, .form.is-sent .form__foot, .form.is-sent .form__captcha { display: none; }
.form__done { display: grid; gap: 10px; }
.form__done:focus { outline: none; }
.form__done h3 { font-size: var(--fs-lg); font-stretch: 108%; color: var(--navy); }
.form__done p { color: var(--grey); }
.form__done button { justify-self: start; margin-top: 6px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.ftr { background: var(--white); border-top: 1px solid var(--rule); padding-block: clamp(48px, 6vw, 80px) 28px; font-size: var(--fs-sm); }
.ftr__top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.6fr)); gap: clamp(28px, 4vw, 56px); }
.ftr__logo img { width: auto; height: 58px; }
.ftr__brand p { margin-top: 18px; color: var(--grey); max-width: 30em; }
.ftr__h { font-size: var(--fs-sm); font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.ftr__col ul { display: grid; gap: 9px; }
.ftr__col a { text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.ftr__col a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.ftr__contact address { color: var(--grey); }
.ftr__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--rule); color: var(--grey); font-size: var(--fs-xs); }
.ftr__top-link { color: var(--navy); font-weight: 600; }

/* =====================================================================
   SCROLL REVEAL (subtle; transform + opacity only, no layout shift)
   ===================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .hdr__tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hdr__tel { width: 46px; height: 46px; justify-content: center; border: 1.5px solid var(--rule-2); border-radius: var(--r-sm); }
}

@media (max-width: 1040px) {
  .nav { display: none; }
  .burger { display: block; }
  .hdr__actions { margin-left: auto; }
  .hero__grid { grid-template-columns: 1fr; }
  .hub { max-width: 520px; }
  .svc__row { grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.2fr) 24px; }
  .svc__for { grid-column: 3; }
  .svc__go { grid-column: 4; grid-row: 1; }
  .why, .plat, .faqwrap, .quote__grid { grid-template-columns: 1fr; }
  .why__intro, .faqwrap__intro { position: static; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { left: 21px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(1); }
  .js .steps::after { transform: scaleY(0); }
  .js .steps.is-in::after { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding-bottom: 28px; }
  .step:last-child { padding-bottom: 0; }
  .step h3 { margin-top: 9px; }
  .step p { grid-column: 2; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
  .ftr__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --hdr-h: 68px; }
  .hdr__in { gap: 12px; }
  .hdr__logo img { height: 40px; }
  .hdr__cta { display: none; }
  .hero__cta .btn { width: 100%; }
  .hero__facts { flex-direction: column; gap: 8px; }
  .svc__row { grid-template-columns: 26px minmax(0, 1fr) 22px; gap: 10px 14px; padding: 24px 4px; }
  .svc__name { grid-column: 2; }
  .svc__what, .svc__for { grid-column: 2 / -1; }
  .svc__go { grid-column: 3; grid-row: 1; }
  .why__list { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr; }
  .plat__list > div { grid-template-columns: 1fr; gap: 4px; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { width: 100%; }
  .faq__item summary { padding-right: 44px; }
  .faq__item p { padding-right: 0; }
}

@media (max-width: 560px) {
  .hub { max-width: 400px; }
  .hub__desc { display: none; }
  .hub__node { padding: 8px 11px 8px 9px; font-size: var(--fs-xs); gap: 6px; }
  .hub__node .ico { width: 15px; height: 15px; }
  .hub__core { width: 46%; box-shadow: 0 0 0 6px rgba(255, 255, 255, .55), 0 20px 40px -24px rgba(1, 33, 105, .45); }
  .hub__coreinner { padding: 10%; gap: 6px; }
  .hub__title { font-size: .9375rem; }
  .hub__link { font-size: var(--fs-xs); }
  .ftr__top { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .hub__node span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hub__node { padding: 10px; }
  .hub__node .ico { width: 18px; height: 18px; }
}

@media print {
  .hdr, .hub, .formcard, .skip, .mnav { display: none !important; }
  .js [data-reveal], .js [data-load] > * { opacity: 1 !important; transform: none !important; }
  body { background: #fff; }
}

/* =====================================================================
   INNER PAGES
   ===================================================================== */
.gridbg {
  background:
    linear-gradient(var(--paper), rgba(243, 245, 248, 0) 35%, rgba(243, 245, 248, 0) 65%, var(--paper)),
    linear-gradient(90deg, rgba(1, 33, 105, .05) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(rgba(1, 33, 105, .05) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--paper);
}

/* breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: var(--fs-sm); color: var(--grey); }
.crumbs li + li::before { content: "/"; margin-inline: 10px; color: var(--rule-2); }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* page hero */
.phero { padding-block: clamp(28px, 4vw, 52px) clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--rule); }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.phero__grid--solo { grid-template-columns: minmax(0, 1fr); }
.phero h1 { font-size: clamp(2.125rem, 1.25rem + 2.7vw, 3.5rem); font-stretch: 112%; font-weight: 800; line-height: 1.05; letter-spacing: -.026em; color: var(--navy); max-width: 17em; }
.phero__lead { margin-top: 20px; font-size: var(--fs-md); line-height: 1.5; color: var(--grey); max-width: 38em; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 22px; font-size: var(--fs-sm); color: var(--grey); }
.glance { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--navy); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); }
.glance__h { font-size: var(--fs-sm); font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.glance dl > div { padding-block: 12px; border-bottom: 1px solid var(--rule); }
.glance dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.glance dt { font-size: var(--fs-xs); font-weight: 600; color: var(--grey); }
.glance dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }

/* included features */
.inc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); border-top: 2px solid var(--navy); }
.inc li { padding-block: 26px 30px; border-bottom: 1px solid var(--rule); }
.inc h3 { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-md); font-stretch: 106%; font-weight: 700; color: var(--navy); }
.inc h3 .bang { margin-top: .3em; }
.inc p { margin-top: 8px; padding-left: 18px; color: var(--grey); }

/* two-column check lists */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); }
.duo h2 { font-size: var(--fs-lg); font-stretch: 110%; font-weight: 760; letter-spacing: -.015em; color: var(--navy); margin-bottom: 20px; }
.checks { display: grid; gap: 0; border-top: 1px solid var(--rule-2); }
.checks li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--rule); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 1.3em; width: 11px; height: 6px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.checks b { color: var(--navy); }

/* related links */
.rel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rel a { position: relative; display: grid; grid-template-columns: 24px 1fr 20px; gap: 4px 14px; align-items: start; padding: 20px; background: var(--white); border: 1px solid var(--rule); border-radius: var(--r); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.rel a:hover { border-color: var(--navy); transform: translateY(-2px); }
.rel .ico { color: var(--red); width: 22px; height: 22px; }
.rel b { font-weight: 700; color: var(--navy); line-height: 1.3; }
.rel small { grid-column: 2; font-size: var(--fs-sm); color: var(--grey); }
.rel .rel__go { grid-column: 3; grid-row: 1; color: var(--navy); width: 18px; height: 18px; transition: transform .2s var(--ease); }
.rel a:hover .rel__go { transform: translateX(3px); color: var(--red); }
.sec__subhead { font-size: var(--fs-lg); font-stretch: 110%; font-weight: 760; color: var(--navy); margin-bottom: 22px; }

/* service list sub-links (services hub) */
.svc__subs { grid-column: 3 / span 2; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: -10px; font-size: var(--fs-sm); position: relative; z-index: 1; }
.svc__subs a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.svc__subs a:hover { color: var(--red); }

/* navy call-to-action band */
.band { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 48px; align-items: center; padding: clamp(28px, 4vw, 52px); background: var(--navy); color: var(--white); border-radius: var(--r-lg); }
.band h2 { font-size: var(--fs-xl); font-stretch: 112%; font-weight: 780; letter-spacing: -.02em; }
.band p { margin-top: 12px; color: rgba(255, 255, 255, .82); font-size: var(--fs-md); max-width: 36em; }
.band__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn--line { border-color: rgba(255, 255, 255, .7); color: var(--white); }
.band .btn--line:hover { background: var(--white); color: var(--navy); }
.band :focus-visible { outline-color: var(--white); }

/* prose (articles, legal, about) */
.prose { max-width: 44rem; font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2.2em; font-size: var(--fs-lg); font-stretch: 108%; font-weight: 740; letter-spacing: -.015em; color: var(--navy); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.prose h3 { margin-top: 1.8em; font-size: var(--fs-md); font-weight: 700; color: var(--navy); }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--red); }
.prose ul li, .prose ol li { position: relative; padding-left: 26px; }
.prose ul li + li, .prose ol li + li { margin-top: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 9px; height: 2px; background: var(--red); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li) "."; position: absolute; left: 0; font-weight: 700; color: var(--navy); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.prose thead th { border-bottom: 2px solid var(--navy); color: var(--navy); }
.prose tbody th { font-weight: 650; }
.keybox { padding: 20px 24px; background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--red); border-radius: var(--r-sm); }
.keybox > b { display: block; color: var(--navy); margin-bottom: 6px; }
.keybox ul { margin-top: 8px; }
.prose .keybox { margin-top: 0; }
.prose .small { font-size: var(--fs-sm); color: var(--grey); }

/* article + legal layout with side column */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.doc__side { position: sticky; top: calc(var(--hdr-h) + 24px); display: grid; gap: 20px; }
.toc { font-size: var(--fs-sm); }
.toc b { display: block; color: var(--navy); margin-bottom: 8px; }
.toc ol { display: grid; gap: 2px; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--grey); text-decoration: none; }
.toc a:hover { color: var(--navy); border-left-color: var(--red); }
.sidecta { padding: 22px; background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--red); border-radius: var(--r-lg); }
.sidecta b { display: block; font-size: var(--fs-md); font-stretch: 106%; color: var(--navy); }
.sidecta p { margin: 8px 0 16px; font-size: var(--fs-sm); color: var(--grey); }

/* post list */
.posts { border-top: 2px solid var(--navy); }
.post { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 24px; gap: 12px clamp(20px, 3vw, 48px); padding: 30px 8px; border-bottom: 1px solid var(--rule); transition: background-color .2s; }
.post:hover, .post:focus-within { background: var(--white); }
.post__meta { font-size: var(--fs-sm); color: var(--grey); }
.post h2, .post h3 { font-size: var(--fs-lg); font-stretch: 108%; font-weight: 720; letter-spacing: -.015em; color: var(--navy); }
.post h2 a, .post h3 a { text-decoration: none; }
.post h2 a::after, .post h3 a::after { content: ""; position: absolute; inset: 0; }
.post p { margin-top: 10px; color: var(--grey); }
.post .ico { color: var(--navy); width: 22px; height: 22px; margin-top: 6px; transition: transform .2s var(--ease); }
.post:hover .ico { transform: translateX(4px); color: var(--red); }
.post:has(a:focus-visible) { outline: 3px solid var(--navy); outline-offset: -3px; }
.post a:focus-visible { outline: none; }

/* contact page: what happens next */
.next { display: grid; gap: 0; counter-reset: n; border-top: 1px solid var(--rule-2); margin-top: 8px; }
.next li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--rule-2); }
.next li::before { counter-increment: n; content: counter(n); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--navy); font-weight: 760; font-size: var(--fs-sm); color: var(--navy); }
.next b { display: block; color: var(--navy); }
.next span { font-size: var(--fs-sm); color: var(--grey); }

/* empty state (work page) */
.empty { display: grid; gap: 14px; justify-items: start; max-width: 46rem; padding: clamp(24px, 3vw, 40px); background: var(--white); border: 1px dashed var(--rule-2); border-radius: var(--r-lg); }
.empty h2 { font-size: var(--fs-lg); font-stretch: 108%; color: var(--navy); }
.empty p { color: var(--grey); }

/* 404 */
.nf { padding-block: clamp(56px, 9vw, 120px); }
.nf__code { font-size: clamp(4rem, 2rem + 8vw, 8rem); font-stretch: 125%; font-weight: 800; line-height: 1; color: var(--rule-2); letter-spacing: -.04em; }
.nf h1 { margin-top: 12px; font-size: var(--fs-xl); font-stretch: 112%; color: var(--navy); }
.nf p { margin-top: 14px; max-width: 34em; color: var(--grey); font-size: var(--fs-md); }
.nf .rel { margin-top: 40px; }

@media (max-width: 1040px) {
  .phero__grid, .doc { grid-template-columns: 1fr; align-items: start; }
  .doc__side { position: static; }
  .inc { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: 1fr; }
  .rel { grid-template-columns: 1fr 1fr; }
  .svc__subs { grid-column: 2 / -1; margin-top: 0; }
  .band { grid-template-columns: 1fr; }
  .post { grid-template-columns: minmax(0, 1fr) 24px; }
  .post__meta { grid-column: 1; }
  .post .ico { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 720px) {
  .inc, .rel { grid-template-columns: 1fr; }
  .svc__subs { grid-column: 2 / -1; }
  .band__cta .btn, .phero__cta .btn { width: 100%; }
}
