/* ==========================================================================
   Apex Digital Group
   Design tokens inherited from the Apex product system so the marketing site
   and the applications read as one company.
   ========================================================================== */

:root {
  /* Ground and surfaces */
  --bg:          #08090A;
  --sunken:      #0C0E10;
  --surface:     #121517;
  --surface-2:   #191D20;
  --hairline:    #23282C;
  --overlay:     #2A3035;

  /* Text.
     --tx-lo and --tx-dim come from the product palette, where they carry
     de-emphasized metadata inside a dense UI. On this ground they measure
     3.5:1 and 2.2:1, which is below AA — fine for a chart gridline, not for
     a label somebody has to read. --tx-label is the readable step between
     lo and mid (5.5:1) so small caps labels keep their tonal position
     without failing contrast. Reserve lo/dim for decoration only. */
  --tx-hi:       #ECEFF2;
  --tx-mid:      #9AA3AC;  /* 7.8:1  — body copy */
  --tx-label:    #7F8891;  /* 5.5:1  — small labels, captions, metadata */
  --tx-lo:       #5F6871;  /* 3.5:1  — decorative only */
  --tx-dim:      #3E464D;  /* 2.2:1  — separators, rules */

  /* Brand — violet marks what we build, teal marks what we run */
  --violet:      #8B7BF7;
  --teal:        #34D2C6;
  --amber:       #FFC24B;
  --ok:          #5FD98A;

  /* Radii */
  --r-card:      20px;
  --r-tile:      14px;
  --r-btn:       10px;
  --r-pill:      999px;

  /* Type */
  --font: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont,
          "Segoe UI Variable Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;

  /* Layout */
  --wrap:        1120px;
  --gutter:      clamp(20px, 4vw, 40px);
  --header-h:    64px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx-hi);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--tx-hi);
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { margin: 0; color: var(--tx-mid); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

/* Sections are jump targets under a fixed header — offset without JS. */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Accessibility
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 2000;
  padding: 11px 18px;
  border-radius: var(--r-btn);
  background: var(--teal);
  color: #08090A;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.18s ease;
}

.skip-link:focus { top: 12px; }

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

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

/* --------------------------------------------------------------------------
   Header and navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(8, 9, 10, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.wordmark .mark {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background-image: linear-gradient(135deg, var(--violet), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordmark .name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--tx-label);
  white-space: nowrap;
}

.wordmark .name strong { color: var(--tx-hi); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-mid);
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--tx-hi); }

.nav-cta {
  flex: none;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  background: var(--teal);
  color: #08090A;
  font-size: 13.5px;
  font-weight: 600;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.nav-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Menu button — hidden on desktop, the only nav on narrow screens */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--tx-hi);
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, background-color 0.18s ease;
}

.btn-primary {
  background-image: linear-gradient(120deg, var(--violet), var(--teal));
  color: #08090A;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--hairline);
  color: var(--tx-hi);
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-secondary:hover { background: var(--surface-2); filter: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.btn-row-center { justify-content: center; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */

main { padding-top: var(--header-h); }

.section { padding-block: clamp(52px, 8vw, 88px); }
.section-tight { padding-block: clamp(36px, 5vw, 56px); }

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tx-label);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--tx-label);
}

.section-head .note { font-size: 13.5px; color: var(--tx-label); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(56px, 9vw, 96px) clamp(8px, 2vw, 16px); }

.hero h1 {
  max-width: 15ch;
  margin-bottom: 22px;
  font-size: clamp(34px, 7vw, 62px);
  font-weight: 300;
  letter-spacing: -0.032em;
  line-height: 1.03;
}

.hero h1 .grad {
  font-weight: 400;
  background-image: linear-gradient(120deg, var(--violet), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 58ch;
  margin-bottom: 30px;
  font-size: clamp(15.5px, 2vw, 17.5px);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   The two lines of business
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pillar {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
}

.pillar-build::before {
  background-image: linear-gradient(90deg, var(--violet), rgba(139, 123, 247, 0.12));
}

.pillar-run::before {
  background-image: linear-gradient(90deg, var(--teal), rgba(52, 210, 198, 0.12));
}

.pillar .tag {
  display: block;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pillar-build .tag { color: var(--violet); }
.pillar-run .tag   { color: var(--teal); }

.pillar h3 {
  margin-bottom: 10px;
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 600;
}

.pillar p { margin-bottom: 16px; font-size: 14.5px; line-height: 1.58; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chips li {
  padding: 5px 11px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--sunken);
  font-size: 12px;
  font-weight: 500;
  color: var(--tx-mid);
}

/* --------------------------------------------------------------------------
   Selected work
   -------------------------------------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.project {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.project-badge {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #08090A;
}

.project-kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tx-label);
}

.project h3 { margin-bottom: 8px; font-size: 17px; font-weight: 600; }
.project p  { flex: 1; margin-bottom: 16px; font-size: 13.5px; line-height: 1.55; }

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

.stack li {
  padding: 3px 7px;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--tx-label);
}

/* --------------------------------------------------------------------------
   Capabilities
   -------------------------------------------------------------------------- */

.group-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.group-build .group-label { color: var(--violet); }
.group-run .group-label   { color: var(--teal); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.card {
  display: block;
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-tile);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

a.card:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.group-build a.card:hover { border-color: rgba(139, 123, 247, 0.45); }
.group-run a.card:hover   { border-color: rgba(52, 210, 198, 0.45); }

.card .icon {
  width: 20px;
  height: 20px;
  margin-bottom: 12px;
  display: block;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.group-build .card .icon { stroke: var(--violet); }
.group-run .card .icon   { stroke: var(--teal); }

.card h3 { margin-bottom: 6px; font-size: 15px; font-weight: 600; }
.card p  { font-size: 13px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Closing band
   -------------------------------------------------------------------------- */

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-top: clamp(36px, 5vw, 52px);
  border-top: 1px solid var(--hairline);
}

.band h2 {
  max-width: 22ch;
  margin-bottom: 8px;
  font-size: clamp(23px, 4vw, 34px);
  font-weight: 300;
  letter-spacing: -0.028em;
  line-height: 1.1;
}

.band p { max-width: 46ch; font-size: 15px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.contact-lead {
  margin-bottom: 16px;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 300;
  letter-spacing: -0.028em;
  line-height: 1.12;
}

.contact-intro { margin-bottom: 26px; }

.contact-detail + .contact-detail { margin-top: 20px; }

.contact-detail h3 {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-label);
}

.contact-detail p,
.contact-detail a { font-size: 15.5px; color: var(--tx-hi); }
.contact-detail a:hover { color: var(--teal); }

.form-card {
  padding: 26px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--tx-mid);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-btn);
  background: var(--sunken);
  color: var(--tx-hi);
  font-family: var(--font);
  /* 16px minimum stops iOS zooming the page on focus */
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.field textarea { min-height: 128px; resize: vertical; }

.field input::placeholder,
.field textarea::placeholder { color: var(--tx-lo); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--surface-2);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }

.form-status {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.form-status:empty { margin-top: 0; }
.form-status[data-state="ok"]   { color: var(--ok); }
.form-status[data-state="error"]{ color: var(--amber); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(52px, 8vw, 80px);
  border-top: 1px solid var(--hairline);
  background: var(--sunken);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-block: 44px 36px;
}

.footer-blurb {
  max-width: 40ch;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-col h3 {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tx-label);
}

.footer-col li + li { margin-top: 8px; }

.footer-col a {
  font-size: 14px;
  color: var(--tx-mid);
  transition: color 0.18s ease;
}

.footer-col a:hover { color: var(--tx-hi); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-block: 20px 28px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--tx-label);
}

/* --------------------------------------------------------------------------
   Service detail pages
   -------------------------------------------------------------------------- */

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--tx-label);
}

.crumb a:hover { color: var(--tx-hi); }
/* Decorative separator, aria-hidden — exempt from AA, but not invisible. */
.crumb span { color: var(--tx-lo); }

.service-hero { padding-block: clamp(44px, 7vw, 72px) clamp(8px, 2vw, 16px); }

.service-hero .line-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  padding: 5px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-hero .line-tag i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  font-style: normal;
}

.line-build .line-tag { color: var(--violet); }
.line-build .line-tag i { background: var(--violet); }
.line-run .line-tag { color: var(--teal); }
.line-run .line-tag i { background: var(--teal); }

.service-hero h1 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(30px, 5.4vw, 50px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.06;
}

.service-hero .lede {
  max-width: 56ch;
  font-size: clamp(15.5px, 2vw, 17.5px);
  line-height: 1.6;
}

.prose { max-width: 62ch; }
.prose h2 { margin: 34px 0 12px; font-size: clamp(20px, 3vw, 25px); font-weight: 600; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 14px; font-size: 15.5px; line-height: 1.68; }

.checklist { margin: 4px 0 18px; }

.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--tx-mid);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--teal);
}

.line-build .checklist li::before { background: var(--violet); }

.service-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.service-aside h2 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.service-aside p { margin-bottom: 16px; font-size: 14px; line-height: 1.55; }

.service-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.related { padding-top: 8px; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.related-grid a {
  padding: 14px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-tile);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--tx-mid);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.related-grid a:hover { background: var(--surface-2); color: var(--tx-hi); }

/* --------------------------------------------------------------------------
   Error page
   -------------------------------------------------------------------------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - 200px);
  text-align: center;
}

.error-page .code {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--tx-label);
  margin-bottom: 14px;
}

.error-page h1 {
  margin-bottom: 14px;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 300;
  letter-spacing: -0.03em;
}

.error-page p { max-width: 46ch; margin: 0 auto 26px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .pillars,
  .work-grid,
  .related-grid { grid-template-columns: 1fr; }

  .card-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-grid,
  .service-layout { grid-template-columns: 1fr; gap: 28px; }

  .service-aside { position: static; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* The menu button replaces the inline links. Both states are defined here —
   a toggle that adds a class with no rule behind it is how the old site
   ended up with a hamburger that did nothing. */
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(8, 9, 10, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--hairline);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--hairline);
    font-size: 16px;
    color: var(--tx-hi);
  }

  .nav-links li:last-child a { border-bottom: 0; }

  .nav-cta { display: none; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .band { align-items: start; }
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
