/* ==========================================================================
   Aether Analytics — aetheranalytics.in
   Single stylesheet. Organised as:
   1. Tokens  2. Reset/base  3. Layout  4. Components
   5. Header/Footer  6. Page sections  7. Responsive  8. Motion/print
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  /* Ink (deep navy) */
  --ink-900: #070d1a;
  --ink-800: #0b1424;
  --ink-700: #111e33;
  --ink-600: #1b2c46;

  /* Paper */
  --paper: #ffffff;
  --paper-2: #f6f7fa;
  --paper-3: #eef1f6;

  /* Text */
  --text: #101c2f;
  --text-2: #3d4c62;
  --muted: #64748b;
  --line: #e3e7ef;
  --line-strong: #cfd6e4;

  /* Accent */
  --accent: #2b5be3;
  --accent-ink: #1f47bb;
  --accent-soft: #eaefff;
  --aqua: #57d3cd;

  /* On-dark */
  --on-dark: #f4f7fc;
  --on-dark-muted: #a7b4c8;
  --on-dark-line: rgba(255, 255, 255, 0.12);

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  /* Space & shape */
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(16, 28, 47, 0.06);
  --shadow: 0 8px 28px -12px rgba(16, 28, 47, 0.18);
  --shadow-lg: 0 24px 60px -28px rgba(16, 28, 47, 0.35);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* 2. Reset & base ------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

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

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  line-height: 1.15;
}

h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
h4 { font-size: 1rem; }

p { margin: 0 0 1.15em; color: var(--text-2); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.15rem; color: var(--text-2); }
li { margin-bottom: 0.4em; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--section-y) 0;
}

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

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink-900);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; text-decoration: none; }

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

/* 3. Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--paper2 { background: var(--paper-2); }
.section--bordered { border-top: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: clamp(2.25rem, 4vw, 3.25rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(2rem, 5vw, 4.5rem); }
.grid--sidebar { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.stack > * + * { margin-top: 1.15rem; }

/* 4. Components --------------------------------------------------------- */

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow--on-dark { color: var(--aqua); }
.section-head--center .eyebrow { justify-content: center; }

/* Lead paragraph */
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-2);
}
.lead--on-dark { color: var(--on-dark-muted); }

/* Buttons */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-border: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease), color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--accent); --btn-border: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-ink); --btn-border: var(--accent-ink); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
}
.btn--ghost:hover { --btn-bg: var(--paper-2); --btn-border: var(--muted); }

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--on-dark);
  --btn-border: rgba(255, 255, 255, 0.28);
}
.btn--on-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: rgba(255, 255, 255, 0.5);
}

.btn--sm { padding: 0.6rem 1.15rem; font-size: 0.88rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent-ink);
}
.link-arrow svg { transition: transform 0.18s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover svg { transform: translateX(3px); }

/* Card */
.card {
  position: relative;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { font-size: 0.96rem; margin-bottom: 0; }

.card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.15rem;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.card__icon svg { width: 21px; height: 21px; }

.card__index {
  display: block;
  margin-bottom: 0.85rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

/* Value / feature list */
.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.85rem;
  color: var(--text-2);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.85rem;
  height: 1px;
  background: var(--accent);
}
.tick-list li strong { display: block; color: var(--text); font-weight: 600; }

/* Stat / figure blocks */
.figure-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.figure__value {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.figure__label { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* Definition rows (contact details, etc.) */
.detail-list { margin: 0; }
.detail-list div + div { margin-top: 1.4rem; }
.detail-list dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}
.detail-list dd { margin: 0; color: var(--text); font-size: 1.02rem; }
.detail-list dd a { color: var(--text); }
.detail-list dd a:hover { color: var(--accent-ink); }

/* Pull quote */
.pullquote {
  margin: 0;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.015em;
}

/* Panel (soft tinted block) */
.panel {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.panel--accent { background: var(--accent-soft); border-color: #d8e1ff; }

/* Forms */
.form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.45rem; }
.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}
.field .optional { color: var(--muted); font-weight: 400; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9aa5b6; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 91, 227, 0.14);
}
.field--error input,
.field--error textarea { border-color: #c8372d; }

.field__error {
  font-size: 0.82rem;
  color: #c8372d;
  min-height: 1rem;
}

.form__note { font-size: 0.85rem; color: var(--muted); margin: 0; }

.form__status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  background: var(--accent-soft);
  border: 1px solid #d8e1ff;
  color: var(--accent-ink);
}
.form__status.is-visible { display: block; }

/* 5. Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px -12px rgba(16, 28, 47, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { white-space: nowrap; }
.brand__name span { font-weight: 400; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 2rem; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-list a:hover { color: var(--text); text-decoration: none; }
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--text); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text);
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

/* 6. Page sections ------------------------------------------------------ */

/* Dark canvas shared by hero + CTA + footer */
.canvas-dark {
  position: relative;
  isolation: isolate;
  background: var(--ink-900);
  color: var(--on-dark);
  overflow: hidden;
}
.canvas-dark::before {
  /* luminous "aether" glows */
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 130%;
  background:
    radial-gradient(58% 62% at 18% 8%, rgba(43, 91, 227, 0.38), transparent 62%),
    radial-gradient(45% 55% at 88% 22%, rgba(87, 211, 205, 0.20), transparent 65%),
    radial-gradient(60% 60% at 60% 100%, rgba(43, 91, 227, 0.14), transparent 60%);
  z-index: -2;
  pointer-events: none;
}
.canvas-dark::after {
  /* fine data grid */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 20%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}
.canvas-dark h1,
.canvas-dark h2,
.canvas-dark h3 { color: var(--on-dark); }
.canvas-dark p { color: var(--on-dark-muted); }

/* Home hero */
.hero { padding-block: clamp(4.5rem, 11vw, 8.5rem); }
.hero__inner { max-width: 760px; }
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .accent {
  display: block;
  background: linear-gradient(96deg, #a9c4ff 0%, var(--aqua) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { max-width: 560px; font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
  margin-top: 3.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.88rem;
  color: var(--on-dark-muted);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero__meta span::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--aqua);
  flex: none;
}

/* Inner page hero */
.page-hero { padding-block: clamp(3.5rem, 8vw, 6rem); }
.page-hero .container { max-width: 820px; }
.page-hero h1 { margin-bottom: 1.1rem; }

/* Intro statement band */
.statement p {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: var(--text);
}
.statement p + p { font-family: var(--font-sans); font-size: 1.05rem; color: var(--text-2); letter-spacing: 0; line-height: 1.65; margin-top: 1.5rem; }

/* Services listing */
.service-list { display: grid; gap: 0; }
.service-item {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
.service-item:last-child { border-bottom: 1px solid var(--line); }
.service-item__num {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--accent);
  padding-top: 0.35rem;
}
.service-item h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: 0; letter-spacing: -0.015em; }
.service-item p { margin-bottom: 0; }
.service-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}
.service-item__tags li {
  margin: 0;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}

/* Process steps */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  color: var(--line-strong);
  letter-spacing: -0.03em;
}
.step h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.step p { margin-bottom: 0; max-width: 62ch; }

/* Alternating feature rows */
.feature-row { align-items: center; }
.feature-row + .feature-row { margin-top: clamp(3rem, 6vw, 5rem); }

/* CTA band */
.cta { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta h2 { margin-bottom: 0.5rem; max-width: 18ch; }
.cta p { margin: 0; max-width: 46ch; }
.cta .btn-row { margin-top: 0; }

/* Map / location block */
.location-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--paper-2), var(--paper-3));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.location-embed p { font-size: 0.92rem; color: var(--muted); }

/* 7. Footer ------------------------------------------------------------- */
.site-footer { padding-block: clamp(3.5rem, 7vw, 5rem) 2rem; }
.site-footer .brand { color: var(--on-dark); }
.site-footer .brand__name span { color: var(--on-dark-muted); }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.footer-about p {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}
.footer-col h4 {
  margin-bottom: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark);
  opacity: 0.65;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.7rem; }
.footer-col a,
.footer-col address {
  color: var(--on-dark-muted);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.6;
}
.footer-col a:hover { color: var(--on-dark); text-decoration: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--on-dark-line);
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}
.footer-bottom p { margin: 0; color: inherit; font-size: inherit; }

/* 8. Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-about { grid-column: 1 / -1; }
}

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

  .site-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    display: block;
    max-height: calc(100dvh - 74px);
    overflow-y: auto;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease),
      visibility 0.18s var(--ease);
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav-list { display: block; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list a { display: block; padding: 0.95rem 0; font-size: 1.02rem; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--accent-ink); }

  .nav-cta { margin-top: 1.5rem; width: 100%; }

  body.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .grid--2,
  .grid--3,
  .grid--split,
  .grid--sidebar { grid-template-columns: minmax(0, 1fr); }

  .service-item { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .service-item__body { grid-column: 2; }
  .service-item__num { padding-top: 0.15rem; }

  .step { grid-template-columns: 3rem minmax(0, 1fr); }

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

  .hero__meta { gap: 0.5rem; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .btn-row .btn { width: 100%; }
  .figure-row { grid-template-columns: minmax(0, 1fr); }
}

/* 9. Motion & print ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta, .nav-toggle, .skip-link { display: none !important; }
  .canvas-dark { background: #fff; color: #000; }
  .canvas-dark::before, .canvas-dark::after { display: none; }
  .canvas-dark h1, .canvas-dark h2, .canvas-dark p { color: #000; }
  body { font-size: 11pt; }
  a { text-decoration: underline; }
}
