/* ==========================================================================
   Meginteractive Solutions — site styles
   Single stylesheet, no build step. Organized: tokens, base, layout,
   components, page sections, responsive.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --ink:        #0A0E1A;
  --ink-2:      #111930;
  --ink-3:      #1A2440;
  --paper:      #FFFFFF;
  --paper-2:    #F4F7FB;
  --paper-3:    #EDF2F9;

  /* Type */
  --text:       #141A26;
  --text-2:     #49536A;
  --muted:      #6C7789;
  --on-ink:     #EEF2FA;
  --on-ink-2:   #A3AFC6;

  /* Lines */
  --line:       #E1E8F2;
  --line-2:     #CFD9E8;
  --line-ink:   #232F4D;

  /* Brand */
  --accent:      #2F6BFF;
  --accent-deep: #1D4FD8;
  --accent-soft: #EAF0FF;
  --accent-glow: #6E9BFF;
  --signal:      #12D8A6;

  /* Geometry */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --wrap:      1160px;
  --wrap-tight: 880px;
  --header-h:  72px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(10, 14, 26, .05), 0 4px 12px rgba(10, 14, 26, .05);
  --shadow-md: 0 2px 6px rgba(10, 14, 26, .05), 0 18px 40px -14px rgba(10, 14, 26, .20);
  --shadow-lg: 0 4px 10px rgba(10, 14, 26, .06), 0 34px 70px -20px rgba(10, 14, 26, .28);

  /* Fonts */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.022em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.35rem + 3.4vw, 4rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.85rem, 1.25rem + 2.1vw, 2.85rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.45rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); }

img, svg { max-width: 100%; height: auto; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin-bottom: .4em; }

strong { font-weight: 650; color: var(--text); }

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

::selection { background: var(--accent); color: #fff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

.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;
}

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap--tight { max-width: var(--wrap-tight); }

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section--snug { padding: clamp(48px, 6vw, 80px) 0; }
.section--tint { background: var(--paper-2); }
.section--line { border-top: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  font-size: 1.12rem;
  color: var(--text-2);
  margin-bottom: 0;
}

.lede {
  font-size: clamp(1.1rem, 1.02rem + .4vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow--on-ink { color: var(--accent-glow); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: inherit;
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(47, 107, 255, .55);
}
.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(47, 107, 255, .6);
}

.btn--outline {
  background: transparent;
  border-color: var(--line-2);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--text);
  color: var(--text);
  background: var(--paper-2);
}

.btn--ghost-ink {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
}
.btn--ghost-ink:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .4);
  color: #fff;
}

.btn--lg { padding: 16px 30px; font-size: 1.02rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--accent-deep);
}
.link-arrow svg { transition: transform .18s ease; flex: none; }
.link-arrow:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(10, 14, 26, .5);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
}

/* The logo is a wordmark — it carries the company name on its own, so there is
   no accompanying brand text. The name lives in the image's alt attribute. */
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  flex: none;
}
.brand-logo {
  display: block;
  width: auto;
  height: 40px;
  transition: opacity .18s ease;
}
.brand:hover .brand-logo { opacity: .7; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list li { margin: 0; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: .94rem;
  font-weight: 550;
  color: var(--text-2);
  transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: var(--text); background: var(--paper-2); }
.nav-link[aria-current="page"] { color: var(--accent-deep); }

.nav-cta { margin-left: 8px; }

/* Services dropdown */
.has-menu { position: relative; }
.has-menu > .nav-link svg { transition: transform .18s ease; opacity: .6; }
.has-menu:hover > .nav-link svg,
.has-menu:focus-within > .nav-link svg { transform: rotate(180deg); }

.sub-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 6px);
  min-width: 268px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.has-menu:hover .sub-menu,
.has-menu:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.sub-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 550;
  color: var(--text-2);
}
.sub-menu a:hover { background: var(--accent-soft); color: var(--accent-deep); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}
/* :not(.sr-only) so the visually-hidden label isn't drawn as a third bar. */
.nav-toggle span:not(.sr-only) {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: background-color .15s ease;
}
.nav-toggle span:not(.sr-only)::before,
.nav-toggle span:not(.sr-only)::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease;
}
.nav-toggle span:not(.sr-only)::before { top: -6px; }
.nav-toggle span:not(.sr-only)::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span:not(.sr-only) { background: transparent; }
.nav-toggle[aria-expanded="true"] span:not(.sr-only)::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:not(.sr-only)::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 120%;
  z-index: -2;
  background:
    radial-gradient(58% 48% at 22% 8%,  rgba(47, 107, 255, .34), transparent 68%),
    radial-gradient(48% 42% at 88% 32%, rgba(18, 216, 166, .16), transparent 66%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(85% 70% at 50% 22%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(85% 70% at 50% 22%, #000 25%, transparent 78%);
}

.hero h1, .hero h2, .hero h3 { color: #fff; }
.hero a:not(.btn) { color: var(--accent-glow); }

.hero--home { padding: clamp(72px, 9vw, 124px) 0 clamp(56px, 7vw, 88px); }
.hero--page { padding: clamp(60px, 7vw, 92px) 0 clamp(52px, 6vw, 76px); }

.hero-inner { max-width: 820px; }
.hero-sub {
  margin: 0 0 20px;
  font-size: clamp(1.15rem, 1.02rem + .6vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--accent-glow);
}
.hero p.lede { color: var(--on-ink-2); max-width: 68ch; }
.hero .btn-row { margin-top: 30px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--on-ink-2);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--signal);
  flex: none;
}

/* Breadcrumb */
.crumbs {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: var(--on-ink-2);
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: 8px; }
.crumbs li:not(:last-child)::after { content: "/"; opacity: .4; }
.crumbs a { color: var(--on-ink-2); }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }

/* --------------------------------------------------------------------------
   7. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card h3 { margin-bottom: .45em; }
.card p { color: var(--text-2); font-size: .98rem; }
.card .link-arrow { margin-top: auto; padding-top: 20px; }

.card--link:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card--link:hover .link-arrow svg { transform: translateX(4px); }

/* Whole-card click target without nesting interactive elements */
.card--link .stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  flex: none;
}
.card-icon svg { width: 22px; height: 22px; }

.card-num {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Value props (bordered, flat) */
.prop {
  padding: 26px 0 0;
  border-top: 2px solid var(--ink);
}
.prop h3 { font-size: 1.12rem; margin-bottom: .5em; }
.prop p { margin: 0; color: var(--text-2); font-size: .98rem; }

/* --------------------------------------------------------------------------
   8. Check lists
   -------------------------------------------------------------------------- */
.check-list {
  display: grid;
  gap: 12px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-list li {
  position: relative;
  margin: 0;
  padding-left: 30px;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231D4FD8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* --------------------------------------------------------------------------
   9. Integration diagram
   -------------------------------------------------------------------------- */
.diagram { margin-top: clamp(40px, 5vw, 64px); }
.diagram svg { display: block; width: 100%; height: auto; }

.dg-node { fill: rgba(255, 255, 255, .045); stroke: rgba(255, 255, 255, .16); }
.dg-label {
  fill: var(--on-ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 550;
}
.dg-hub { fill: rgba(47, 107, 255, .16); stroke: rgba(110, 155, 255, .55); }
.dg-hub-label { fill: #fff; font-family: var(--sans); font-weight: 700; font-size: 19px; }
.dg-hub-sub {
  fill: var(--accent-glow);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .14em;
}
.dg-wire {
  fill: none;
  stroke: rgba(255, 255, 255, .2);
  stroke-width: 1.4;
}
.dg-pulse {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.6;
  stroke-dasharray: 5 190;
  opacity: .85;
  animation: dg-flow 4.5s linear infinite;
}
@keyframes dg-flow { to { stroke-dashoffset: -390; } }

/* Mobile fallback for the diagram */
.diagram-list { display: none; }
.diagram-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.diagram-list li {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  font-size: .88rem;
  font-weight: 550;
  color: var(--on-ink);
}
.diagram-hub-note {
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px solid rgba(110, 155, 255, .45);
  border-radius: 12px;
  background: rgba(47, 107, 255, .14);
  color: #fff;
  font-weight: 650;
  text-align: center;
}

/* --------------------------------------------------------------------------
   10. Technology chips
   -------------------------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  margin: 0;
  padding: 9px 17px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.chips li:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   11. Split content (text + panel)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}
.split--narrow-right { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

.panel {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel--tint { background: var(--paper-2); box-shadow: none; }
.panel h3 { font-size: 1.1rem; }

/* Numbered process steps */
.steps { counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li {
  position: relative;
  margin: 0;
  padding: 0 0 26px 52px;
  color: var(--text-2);
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 12px;
  width: 1px;
  background: var(--line-2);
}
.steps strong { display: block; color: var(--text); font-size: 1.02rem; margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 7vw, 96px) 0;
  background: var(--ink-2);
  color: var(--on-ink);
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 120% at 15% 0%, rgba(47, 107, 255, .3), transparent 70%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-ink-2); max-width: 62ch; }
.cta-band .btn-row { margin-top: 28px; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .16);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: #D64545; }

.form-note { font-size: .85rem; color: var(--muted); }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#form-status { padding: 12px 14px; border-radius: var(--radius-sm); font-size: .92rem; }
#form-status.is-ok {
  background: #E8F7F1;
  border: 1px solid #9BDCC4;
  color: #10614A;
}
#form-status.is-error {
  background: #FDECEC;
  border: 1px solid #F0B4B4;
  color: #8C2020;
}

.contact-aside dl { margin: 0; }
.contact-aside dt {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-aside dd {
  margin: 0 0 22px;
  font-size: 1rem;
  color: var(--text);
}
.contact-aside dd:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(52px, 6vw, 72px) 0 32px;
  background: var(--ink);
  color: var(--on-ink-2);
  font-size: .93rem;
}
.site-footer a { color: var(--on-ink-2); }
.site-footer a:hover { color: #fff; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-ink);
}
.footer-brand .brand { margin: 0 0 18px; }
.footer-brand .brand-logo { height: 44px; }
.footer-brand p { max-width: 34ch; margin: 0; }

.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #fff;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 9px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: .86rem;
}

/* --------------------------------------------------------------------------
   15. Reveal on scroll (opt-in via JS; content visible if JS is off)
   -------------------------------------------------------------------------- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1),
              transform .6s cubic-bezier(.22, .61, .36, 1);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1040px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split,
  .split--narrow-right { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: block;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: 14px 24px 26px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-link { padding: 12px 4px; font-size: 1.02rem; }
  .has-menu > .nav-link svg { display: none; }

  .sub-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    padding: 2px 0 8px 14px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    margin-left: 4px;
  }
  .sub-menu a { padding: 9px 8px; }

  .nav-cta { margin: 14px 0 0; width: 100%; }

  .check-list--2 { grid-template-columns: minmax(0, 1fr); }
}

/* The diagram stays legible well below the nav breakpoint, so it swaps to the
   text equivalent on its own terms. */
@media (max-width: 720px) {
  .diagram svg { display: none; }
  .diagram-list { display: block; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-logo { height: 34px; }
  .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 26px 22px; }
  .panel { padding: 24px; }
  .btn-row .btn { width: 100%; }
  .diagram-list ul { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
}

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

@media print {
  .site-header, .cta-band, .site-footer, .btn-row { display: none; }
  body { font-size: 12pt; color: #000; }
  .hero { background: none; color: #000; }
  .hero h1, .hero h2 { color: #000; }
  .hero p.lede, .hero-sub { color: #333; }
}
