/* ==========================================================================
   Eastwing Solutions — theme styles
   Design system: near-black purple authority sections, light editorial
   surfaces, green conversion accents, mono data labels, restrained motion.
   ========================================================================== */

/* ---------- Fonts (bundled, no third-party requests) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-400-900-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-600-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0F0D1F;
  --ink-2: #17132B;
  --deep-purple: #281251;
  --purple: #613BB8;
  --purple-soft: #8B6AD9;
  --green: #2DB773;
  --green-bright: #46D68F;
  --green-soft: #8FE7BC;

  --paper: #FDFDFE;
  --paper-tint: #F6F5FA;
  --text: #1C1830;
  --muted: #5E5A70;
  --line: #E7E5EF;
  --line-dark: rgba(255, 255, 255, 0.12);
  --text-inverse: rgba(255, 255, 255, 0.72);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1200px;
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-card: 0 1px 2px rgba(15, 13, 31, 0.05), 0 12px 32px -12px rgba(15, 13, 31, 0.12);
  --shadow-lift: 0 2px 4px rgba(15, 13, 31, 0.06), 0 24px 48px -16px rgba(15, 13, 31, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 600ms;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 16px; }
h1, h2, h3 { margin: 0 0 18px; font-weight: 760; line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 72px); letter-spacing: -0.045em; }
h2 { font-size: clamp(30px, 4.2vw, 48px); letter-spacing: -0.04em; }
h3 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 680; }
.container { width: min(var(--container), calc(100% - 44px)); margin-inline: auto; }
.section { padding: clamp(76px, 9.5vw, 132px) 0; position: relative; }
.section--dark { background: var(--ink); color: #fff; }
.section--muted { background: var(--paper-tint); }
.section__header { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__header--center { margin-inline: auto; text-align: center; }
.section__header p:last-child, .split p:last-of-type { margin-bottom: 0; }
.section--dark p { color: var(--text-inverse); }

/* Mono eyebrow — the "reporting data" voice */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 20px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--green);
  transform: rotate(45deg);
  flex: none;
}
.section--dark .eyebrow { color: var(--green-bright); }
.section--dark .eyebrow::before { background: var(--green-bright); }

/* Green highlight inside headlines (poster style: one phrase in green) */
.hl { color: var(--green); font-style: normal; }
.section--dark .hl,
.hero .hl { color: var(--green-bright); }

/* ---------- Accessibility helpers ---------- */
.skip-link { position: absolute; left: 20px; top: -80px; z-index: 200; padding: 10px 14px; background: var(--green); color: var(--ink); border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 20px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.button::after {
  content: '→';
  font-weight: 600;
  transition: transform 220ms var(--ease-out);
}
.button:hover { background: var(--green-bright); box-shadow: 0 10px 28px -8px rgba(45, 183, 115, 0.55); }
.button:hover::after { transform: translateX(4px); }
.button--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); }
.button--ghost:hover { background: rgba(255, 255, 255, 0.14); box-shadow: none; }
.button--ghost::after { content: '↓'; }
.button--inverse { background: #fff; color: var(--ink); }
.button--inverse:hover { background: var(--green-soft); box-shadow: none; }
.button--small { min-height: 42px; padding-inline: 20px; font-size: 0.9rem; }
.button--small::after { content: none; }

/* Text links inside cards */
.route-card a, .page-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-weight: 650;
  font-size: 0.95rem;
  text-decoration: none;
}
.route-card a::after, .page-card a::after { content: '→'; transition: transform 220ms var(--ease-out); }
.route-card a:hover::after, .page-card a:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 253, 254, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms, box-shadow 300ms;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -12px rgba(15, 13, 31, 0.12); }
.site-header__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 76px; gap: 28px; }
.site-brand img { max-height: 44px; width: auto; }
.primary-nav__list { display: flex; align-items: center; justify-content: flex-end; gap: 30px; margin: 0; padding: 0; list-style: none; }
.primary-nav a {
  position: relative;
  padding: 6px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.96rem;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.primary-nav a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(97, 59, 184, 0.34), transparent 62%),
    radial-gradient(900px 480px at -8% 108%, rgba(45, 183, 115, 0.16), transparent 58%),
    linear-gradient(175deg, var(--ink) 0%, var(--deep-purple) 130%);
}
.hero::before {
  /* subtle data-grid texture */
  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: 44px 44px;
  -webkit-mask-image: radial-gradient(720px 480px at 72% 34%, #000 0%, transparent 74%);
  mask-image: radial-gradient(720px 480px at 72% 34%, #000 0%, transparent 74%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr); gap: clamp(40px, 7vw, 90px); align-items: center; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(70, 214, 143, 0.6);
  animation: pulse-dot 2.6s ease-out infinite;
}
.hero h1 { margin-bottom: 22px; }
.hero__lead { max-width: 640px; color: var(--text-inverse); font-size: clamp(1.05rem, 1.8vw, 1.22rem); line-height: 1.7; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(70, 214, 143, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(70, 214, 143, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 214, 143, 0); }
}

/* ---------- Hero dashboard mock (pure CSS/SVG, animated) ---------- */
.dash { position: relative; }
.dash__panel {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF, #F8F7FC);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -30px rgba(5, 3, 16, 0.75), 0 0 0 1px rgba(15, 13, 31, 0.06);
  padding: 18px 20px 20px;
  color: var(--text);
}
.dash__bar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.dash__dots { display: flex; gap: 5px; }
.dash__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.dash__title { margin: 0 0 0 6px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); }
.dash__refresh {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(45, 183, 115, 0.12);
  color: #1E7A4E;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dash__refresh::before { content: '↻'; font-size: 0.85rem; animation: spin-slow 5s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.dash__body { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; padding-top: 16px; }
.dash__chart-label, .dash__side-label { margin: 0 0 10px; font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.dash__bars { display: flex; align-items: flex-end; gap: 9px; height: 130px; }
.dash__bars i {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--purple-soft), var(--purple));
  height: calc(var(--h) * 1%);
  transform-origin: bottom;
  animation: bar-grow 900ms var(--ease-out) both;
  animation-delay: calc(var(--i) * 90ms + 250ms);
}
.dash__bars i:nth-child(3n) { background: linear-gradient(180deg, var(--green-bright), var(--green)); }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.dash__axis { display: flex; gap: 9px; margin-top: 8px; }
.dash__axis span { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.06em; color: var(--muted); }

.dash__side { display: flex; flex-direction: column; gap: 12px; }
.dash__spark { background: var(--paper-tint); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 12px 8px; }
.dash__spark svg { display: block; width: 100%; height: 44px; overflow: visible; }
.dash__spark path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw-line 1.6s var(--ease-out) 500ms forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.dash__rows { display: grid; gap: 8px; }
.dash__row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text); }
.dash__row::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--purple); }
.dash__row:nth-child(2)::before { background: var(--green); }
.dash__row:nth-child(3)::before { background: var(--purple-soft); }
.dash__row em { margin-left: auto; font-style: normal; color: #1E7A4E; }

/* floating chip */
.dash__chip {
  position: absolute;
  left: -26px;
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 44px -14px rgba(5, 3, 16, 0.8);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  animation: float-y 7s ease-in-out infinite;
}
.dash__chip::before { content: '✓'; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: var(--ink); font-size: 0.7rem; font-weight: 800; }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Pain section ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pain-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 22px;
  box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms;
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #DCD8EA; }
.pain-card h3 { margin-bottom: 8px; }
.pain-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card-icon { width: 46px; height: 46px; margin-bottom: 18px; padding: 10px; border-radius: 12px; background: linear-gradient(140deg, rgba(45, 183, 115, 0.14), rgba(97, 59, 184, 0.1)); }

/* ---------- Solution section ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.split--wide { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
.solution-section p { color: #3A3650; font-size: 1.02rem; }
.section-visual { margin: 0; }
.section-visual img, .flow { border-radius: var(--radius-lg); }

/* Animated flow diagram (solution section) */
.flow {
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lift);
  padding: clamp(22px, 3.5vw, 36px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
}
.flow__node { display: grid; gap: 8px; }
.flow__node figcaption, .flow__node .flow__cap { color: rgba(255, 255, 255, 0.6); font-family: var(--font-mono); font-size: 0.64rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-align: center; margin-top: 10px; }
.flow__stack { display: grid; gap: 7px; }
.flow__doc { height: 34px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); position: relative; overflow: hidden; }
.flow__doc::after { content: ''; position: absolute; inset: 10px 30% 10px 12px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); }
.flow__node--out .flow__doc { border-color: rgba(70, 214, 143, 0.4); background: rgba(45, 183, 115, 0.1); }
.flow__node--out .flow__doc::after { background: rgba(70, 214, 143, 0.4); }
.flow__link { width: clamp(54px, 7vw, 92px); }
.flow__link svg { display: block; width: 100%; overflow: visible; }
.flow__link path { fill: none; stroke: var(--green-bright); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 9; animation: dash-flow 1.4s linear infinite; }
@keyframes dash-flow { to { stroke-dashoffset: -15; } }

/* ---------- Routing section ---------- */
.route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.route-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms;
}
.route-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: #DCD8EA; }
.route-card--featured {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(140deg, var(--purple), var(--green)) border-box;
  border: 1.5px solid transparent;
}
.route-card__badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(97, 59, 184, 0.12), rgba(45, 183, 115, 0.14));
  color: var(--purple);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.route-card__eyebrow { margin-bottom: 10px; color: var(--purple); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.route-card p { color: var(--muted); font-size: 0.97rem; }
.route-card__fit { margin-top: auto; padding-top: 16px; font-size: 0.9rem; }
.route-card a { margin-top: 14px; }

.credibility-strip {
  margin-top: 34px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper-tint);
  color: var(--muted);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ---------- Why Eastwing ---------- */
.why-section {
  background:
    radial-gradient(900px 480px at 108% 0%, rgba(97, 59, 184, 0.3), transparent 60%),
    var(--ink);
}
.why-list { display: grid; gap: 16px; }
.why-list article {
  padding: 26px 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(4px);
  transition: background 260ms, border-color 260ms;
}
.why-list article:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); }
.why-list h3 { margin-bottom: 8px; color: #fff; }
.why-list p { margin: 0; color: var(--text-inverse); font-size: 0.98rem; }

/* ---------- Consultation ---------- */
.consultation-section { background: var(--paper-tint); }
.consultation-card {
  position: relative;
  overflow: hidden;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(40px, 6.5vw, 72px);
  text-align: center;
  background:
    radial-gradient(620px 300px at 50% -40%, rgba(97, 59, 184, 0.38), transparent 70%),
    var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.consultation-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(420px 260px at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(420px 260px at 50% 0%, #000, transparent 78%);
  pointer-events: none;
}
.consultation-card > * { position: relative; }
.consultation-card p { color: var(--text-inverse); max-width: 520px; margin-inline: auto; }
.consultation-card .button { margin-top: 10px; }

/* ---------- Sub-pages ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 10vw, 136px) 0;
  background:
    radial-gradient(900px 460px at 88% -20%, rgba(97, 59, 184, 0.32), transparent 62%),
    linear-gradient(175deg, var(--ink), var(--deep-purple) 140%);
  color: #fff;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(640px 380px at 80% 20%, #000, transparent 76%);
  mask-image: radial-gradient(640px 380px at 80% 20%, #000, transparent 76%);
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 860px; }
.page-hero p { color: var(--text-inverse); font-size: 1.14rem; }
.page-section { padding: clamp(68px, 8vw, 108px) 0; }
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.page-card {
  position: relative;
  padding: 28px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 260ms;
}
.page-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #DCD8EA; }
.page-card--wide { grid-column: span 2; }
.page-card h2 { font-size: clamp(1.28rem, 2vw, 1.5rem); letter-spacing: -0.02em; margin: 0 0 10px; }
.page-card p { color: var(--muted); font-size: 0.97rem; }
.anchor-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.anchor-list a {
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 200ms, border-color 200ms;
}
.anchor-list a:hover { background: rgba(45, 183, 115, 0.18); border-color: rgba(70, 214, 143, 0.5); }
.prose { max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding: 68px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 0.7fr 1.1fr; gap: 44px; }
.site-footer__brand { display: inline-flex; padding: 9px 14px; border-radius: 12px; background: #fff; margin-bottom: 20px; }
.site-footer__brand img { max-height: 42px; width: auto; }
.site-footer p, .site-footer a { color: rgba(255, 255, 255, 0.62); }
.site-footer .button--inverse { color: var(--ink); }
.site-footer .button--inverse:hover { color: var(--ink); }
.site-footer__heading { margin: 4px 0 16px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-bright); }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer__links a { text-decoration: none; transition: color 180ms; }
.site-footer__links a:hover { color: #fff; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 0.88rem; }
.site-footer__bottom p { margin: 0; }

/* ---------- Scroll reveal (JS adds .is-visible) ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-group] > * { opacity: 0; transform: translateY(26px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
[data-reveal-group].is-visible > * { opacity: 1; transform: none; }
[data-reveal-group].is-visible > :nth-child(1) { transition-delay: 0ms; }
[data-reveal-group].is-visible > :nth-child(2) { transition-delay: 80ms; }
[data-reveal-group].is-visible > :nth-child(3) { transition-delay: 160ms; }
[data-reveal-group].is-visible > :nth-child(4) { transition-delay: 240ms; }
[data-reveal-group].is-visible > :nth-child(5) { transition-delay: 320ms; }
[data-reveal-group].is-visible > :nth-child(6) { transition-delay: 400ms; }

/* No-JS and reduced-motion safety: never hide content */
html:not(.js) [data-reveal], html:not(.js) [data-reveal-group] > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  [data-reveal], [data-reveal-group] > * { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .route-grid, .pain-grid, .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .site-header__inner { grid-template-columns: auto auto auto; justify-content: space-between; gap: 14px; }
  .nav-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
  .nav-toggle__line, .nav-toggle__line::before, .nav-toggle__line::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); content: ''; }
  .nav-toggle__line::before { transform: translateY(-6px); }
  .nav-toggle__line::after { transform: translateY(4px); }
  .primary-nav { display: none; grid-column: 1 / -1; width: 100%; padding: 0 0 18px; order: 4; }
  .primary-nav.is-open { display: block; }
  .primary-nav__list { align-items: flex-start; flex-direction: column; gap: 16px; }
}
@media (max-width: 860px) {
  .hero__grid, .split, .split--wide, .site-footer__grid { grid-template-columns: 1fr; }
  .section, .page-section { padding: 68px 0; }
  .dash__chip { left: 10px; bottom: -14px; }
}
@media (max-width: 700px) {
  .route-grid, .pain-grid, .page-grid { grid-template-columns: 1fr; }
  .page-card--wide { grid-column: auto; }
}
@media (max-width: 600px) {
  .container { width: min(100% - 30px, var(--container)); }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .button { width: 100%; }
  .site-header__cta { min-width: 64px; padding: 0 14px; font-size: 0; }
  .site-header__cta::after { content: 'Book'; font-size: 0.86rem; }
  .site-footer__bottom { flex-direction: column; }
  .credibility-strip { border-radius: var(--radius); }
  .dash__body { grid-template-columns: 1fr; }
}
