/* ============================================================
   CYREMEDY — design tokens + base + components
   Dark mode primary. Single accent, used sparingly.
   ============================================================ */

:root {
  /* Color */
  --bg: #0A0E1A;
  --surface: #111726;
  --surface-2: #1A2236;
  --card: #070A12;        /* near-black card surface (reference dark-glass look) */
  --text: #E8ECF5;
  --text-muted: #8A93A8;
  --text-dim: #5A6378;
  --border: #1F2940;
  --accent: #00D9C0;      /* tweakable */
  --accent-dim: #0A6F62;  /* tweakable */

  /* Type */
  --font-display: 'Geist', system-ui, -apple-system, sans-serif; /* tweakable */
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --maxw: 1280px;
  --pad: clamp(24px, 6vw, 80px);
  --rhythm: clamp(84px, 12vw, 160px);

  color-scheme: dark;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg); }

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

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--rhythm); }
.bordered-top { border-top: 1px solid var(--border); }

.measure { max-width: 62ch; }
.measure-wide { max-width: 880px; }

/* ---------- typography ---------- */
.h-hero {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.1rem, 7.6vw, 6rem);
  line-height: 1.0;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 4.6vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-sub {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.lede {
  font-size: clamp(1.25rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}
.body-muted { color: var(--text-muted); text-wrap: pretty; }
.dim { color: var(--text-dim); }

/* mono eyebrow label, e.g. "01 — Capabilities" */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: inline-flex;
  gap: 0.5em;
}
.eyebrow b { color: var(--accent); font-weight: 500; }

.mono { font-family: var(--font-mono); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.wordmark:hover { color: var(--text); }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
/* Unified text-link nav. All three items share one treatment:
   muted → text on hover, with an animated underline that wipes in.
   Contact is the single primary action, set in the accent color. */
.nav a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color .15s ease;
  position: relative;
  padding-block: 2px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
/* current page → persistent accent underline */
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--accent); }
.nav-toggle { display: none; }

/* ---------- buttons + links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 11px 13px 11px 24px;
  border: 1px solid var(--accent);
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover {
  background: color-mix(in srgb, var(--accent) 90%, #ffffff);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.9);
}
.btn .arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 16%, transparent);
  font-size: 14px; line-height: 1;
  transition: transform .2s ease;
}
.btn:hover .arr { transform: translateX(3px); }

/* secondary / ghost button */
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn--ghost .arr { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.btn--ghost:hover {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}

.link-accent {
  color: var(--accent);
  font-family: var(--font-mono);
  transition: color .15s ease;
}
.link-accent:hover { color: var(--text); }

/* crafted arrow-link (card CTAs, "view services") */
.inline-link {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: color .15s ease, gap .15s ease;
}
.inline-link span {
  display: inline-flex;
  transition: transform .2s ease;
}
.inline-link:hover { color: var(--accent); gap: 12px; }
.inline-link:hover span { transform: translateX(2px); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px); /* stable against the mobile URL bar */
  padding-block: clamp(56px, 9vh, 110px);
}
.hero > .container { position: relative; z-index: 2; }
/* Looping hero video + readability scrim */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 74%, transparent) 42%,
      color-mix(in srgb, var(--bg) 28%, transparent) 100%),
    linear-gradient(0deg,
      var(--bg) 0%,
      transparent 28%,
      transparent 72%,
      color-mix(in srgb, var(--bg) 55%, transparent) 100%);
}
.hero__inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__lede {
  margin-top: clamp(28px, 3.5vw, 40px);
  max-width: 720px;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}
.hero__lede .strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}
.hero__cta { margin-top: clamp(36px, 4vw, 48px); }

/* ---------- capabilities: particle-field background ---------- */
.cap-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;           /* contain the tint blend to this section */
  padding-top: calc(var(--rhythm) * 0.62);   /* pull section up after eyebrow removal */
}
.cap-section > .container { position: relative; z-index: 3; }

/* looping particle-mesh video (poster = matching still for instant paint) */
.cap__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  filter: brightness(0.9) contrast(1.02);
}
/* legibility scrim — darker top/bottom + vignette so glass cards always read */
.cap__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 58%, transparent) 22%,
      color-mix(in srgb, var(--bg) 44%, transparent) 52%,
      color-mix(in srgb, var(--bg) 72%, transparent) 86%,
      var(--bg) 100%),
    radial-gradient(120% 100% at 50% 50%, transparent 52%,
      color-mix(in srgb, var(--bg) 55%, transparent) 100%);
}

/* ---------- capabilities grid ---------- */
.cap-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: clamp(48px, 6vw, 72px); }
.cap-head .lede { max-width: 60ch; }
/* word-by-word reveal heading (signature of this section) */
.cap-head__title { display: flex; flex-wrap: wrap; gap: 0.04em 0.28em; }
.cap-head__title .word { display: inline-block; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.4vw, 32px);
  background: color-mix(in srgb, var(--card) 91%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
/* soft teal glow blob bleeding in from a corner (clipped by overflow:hidden) */
.cap-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -120px;
  left: -120px;          /* left column → glow frames the outer-left edge */
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #ffffff;
  filter: blur(60px);
  opacity: 0.14;
  pointer-events: none;
  transition: opacity .22s ease;
}
.cap-card:nth-child(even)::before { left: auto; right: -120px; }  /* right column → outer-right */
.cap-card > * { position: relative; z-index: 1; }
.cap-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 64px -34px rgba(0, 0, 0, 0.92), 0 10px 30px -18px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cap-card:hover::before { opacity: 0.28; }
.cap-card:hover .cap-card__link { color: var(--accent); gap: 12px; }
.cap-card:hover .cap-card__link span { transform: translateX(2px); }
/* plain mono index — no boxed badge */
.cap-card__num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  transition: color .2s ease;
}
.cap-card:hover .cap-card__num { color: var(--accent); }
.cap-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.6vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: -2px;
}
.cap-card__desc { color: var(--text-muted); font-size: 15px; line-height: 1.5; max-width: 42ch; }
/* services as one quiet inline mono line, middot-separated */
.cap-card__tags { display: block; line-height: 1.8; margin-top: 1px; }
.svc-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  transition: color .2s ease;
}
.svc-chip:not(:last-child)::after { content: " · "; color: var(--border); }
.cap-card:hover .svc-chip { color: var(--text-muted); }
.cap-card__link {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  transition: color .15s ease, gap .15s ease, border-color .22s ease;
}
.cap-card:hover .cap-card__link { border-top-color: color-mix(in srgb, var(--accent) 22%, var(--border)); }

/* ---------- closing CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.cta > .container { position: relative; z-index: 2; }
/* Looping CTA video + readability scrim */
.cta__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.cta__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg,
      var(--surface) 0%,
      color-mix(in srgb, var(--surface) 72%, transparent) 30%,
      color-mix(in srgb, var(--surface) 72%, transparent) 70%,
      var(--surface) 100%);
}
.cta__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-block: clamp(72px, 10vw, 130px); }
.cta__sub { color: var(--text-muted); max-width: 48ch; font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.cta__mail {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--accent);
  letter-spacing: -0.01em;
  transition: color .15s ease;
}
.cta__mail:hover { color: var(--text); }

/* ---------- services ---------- */
.svc-hero { padding-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(40px, 5vw, 64px); }
.svc-hero .lede { max-width: 56ch; margin-top: 22px; }

/* scroll-scrubbed background stack (services page) */
.svc-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background: var(--bg) url('svc-frames/frame-0000.jpg') center / cover no-repeat;
}
.svc-bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg,
      color-mix(in srgb, var(--bg) 88%, transparent) 0%,
      color-mix(in srgb, var(--bg) 35%, transparent) 30%,
      color-mix(in srgb, var(--bg) 25%, transparent) 70%,
      color-mix(in srgb, var(--bg) 62%, transparent) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%,
      color-mix(in srgb, var(--bg) 45%, transparent) 100%);
}
@media (max-width: 680px) {
  .svc-bg-scrim {
    background:
      linear-gradient(0deg,
        color-mix(in srgb, var(--bg) 90%, transparent) 0%,
        color-mix(in srgb, var(--bg) 62%, transparent) 30%,
        color-mix(in srgb, var(--bg) 55%, transparent) 70%,
        color-mix(in srgb, var(--bg) 72%, transparent) 100%),
      radial-gradient(120% 90% at 50% 50%, transparent 45%,
        color-mix(in srgb, var(--bg) 55%, transparent) 100%);
  }
}
.svc-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 101;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.svc-stage { position: relative; z-index: 2; }
.svc-page .site-header { position: relative; z-index: 100; background: var(--bg); }
.svc-page .cta {
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 92%, var(--surface));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.svc-page .site-footer { position: relative; z-index: 2; background: var(--bg); }

/* hero scrub modifier — base .svc-hero stays as-is for about.html */
.svc-hero--scrub {
  min-height: calc(100svh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding-block: 0;
}
.svc-hero--scrub [data-char-scrub] span { display: inline-block; will-change: transform, opacity; }
.svc-hero__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--bg) 78%, transparent) 0%,
    color-mix(in srgb, var(--bg) 55%, transparent) 50%,
    transparent 85%);
}
.svc-hero--scrub .container { position: relative; }
.svc-hero__hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* one viewport-height slot per category; the card rises within it */
.svc-slot {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: clamp(48px, 7vh, 96px);
}
.svc-card {
  position: relative;
  width: min(1080px, 100%);
  margin-inline: auto;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 16px;
  overflow: hidden;
  background: color-mix(in srgb, var(--card) 87%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  will-change: transform;
}
/* soft teal glow blob in the top-right corner (clipped by overflow:hidden) */
.svc-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -160px;
  right: -140px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: #ffffff;
  filter: blur(80px);
  opacity: 0.1;
  pointer-events: none;
}
.svc-card > * { position: relative; z-index: 1; }
.svc-card__head {
  display: grid;
  gap: 14px;
  max-width: 64ch;
  margin-bottom: clamp(28px, 3.5vw, 44px);
}
.svc-card__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.svc-card__desc { color: var(--text-muted); font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.5; }
.svc-card__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 30px) clamp(20px, 2.6vw, 36px);
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  padding-top: clamp(22px, 2.6vw, 32px);
}
.svc-cell { display: grid; gap: 7px; align-content: start; }
.svc-cell__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}
.svc-cell__desc { color: var(--text-muted); font-size: 13.5px; line-height: 1.45; }

/* static fallback (no-JS keeps cards visible; JS adds .svc-static under reduced motion or on phones) */
.svc-static .svc-slot { min-height: 0; }
.svc-static .svc-hero--scrub {
  min-height: 0;
  padding-top: clamp(70px, 9vw, 120px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.svc-static .svc-progress,
.svc-static .svc-hero__hint { display: none; }
@media (prefers-reduced-motion: reduce) {
  .svc-slot { min-height: 0; }
  .svc-hero--scrub {
    min-height: 0;
    padding-top: clamp(70px, 9vw, 120px);
    padding-bottom: clamp(40px, 5vw, 64px);
  }
  .svc-progress, .svc-hero__hint { display: none; }
}

/* ---------- about: full-page background video ---------- */
.about-bg__video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  /* color-grade toward the navy/teal brand */
  filter: brightness(0.58) contrast(1.07) saturate(0.9);
}
.about-bg__scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 78%, transparent) 34%,
      color-mix(in srgb, var(--bg) 42%, transparent) 80%,
      color-mix(in srgb, var(--bg) 30%, transparent) 100%),
    linear-gradient(180deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 55%, transparent) 18%,
      color-mix(in srgb, var(--bg) 48%, transparent) 78%,
      var(--bg) 100%),
    radial-gradient(120% 90% at 72% 26%, transparent 38%,
      color-mix(in srgb, var(--accent) 8%, transparent) 100%),
    radial-gradient(140% 100% at 50% 48%, transparent 52%,
      color-mix(in srgb, var(--bg) 52%, transparent) 100%);
}
/* lift real content above the fixed video + scrim */
.about-page > main,
.about-page > footer { position: relative; z-index: 2; }
/* header intentionally NOT overridden — it keeps its native sticky z-index:100, which sits above
   the fixed video/scrim (z 0/1) and main (z 2). On iOS the sticky (promoted) layer receives taps
   correctly, so the open mobile menu is tappable; forcing position:relative broke this. */

/* hero lead paragraph */
.about-hero .about-lead { max-width: 60ch; margin-top: 26px; color: var(--text); }

/* closing CTA over the fixed page video — translucent, like .svc-page .cta */
.about-page .cta {
  background: color-mix(in srgb, var(--bg) 88%, var(--surface));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* how we work — rule-separated columns, no cards */
.about-how__label { display: inline-block; margin-bottom: clamp(30px, 4vw, 48px); }
.ways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.way {
  position: relative;
  padding: 4px clamp(26px, 3vw, 44px);
}
/* minimal divider: short fading stub instead of a full-height rule */
.way + .way::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 1px;
  height: 64px;
  background: linear-gradient(180deg, var(--border), transparent);
}
.way:first-child { padding-left: 0; }
.way:last-child { padding-right: 0; }
.way__n {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.way__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-top: 16px;
}
.way__body {
  margin-top: 14px;
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .ways { grid-template-columns: 1fr; }
  .way {
    padding: clamp(22px, 5vw, 30px) 0;
  }
  /* stacked layout: short horizontal stub instead of a full-width rule */
  .way + .way::before {
    top: 0;
    left: 0;
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
  }
  .way:first-child { padding-top: 0; }
}

/* ---------- contact ---------- */
/* ---------- contact: full-page background video ---------- */
.contact-bg__video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  /* color-grade the source toward the navy/teal brand */
  filter: brightness(0.5) contrast(1.05) saturate(0.5) hue-rotate(165deg);
}
.contact-bg__scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* even navy wash so the centered copy stays legible */
    linear-gradient(180deg,
      var(--bg) 0%,
      color-mix(in srgb, var(--bg) 62%, transparent) 22%,
      color-mix(in srgb, var(--bg) 52%, transparent) 72%,
      var(--bg) 100%),
    /* teal breath from the centre, matches brand accent */
    radial-gradient(120% 90% at 50% 42%, transparent 34%,
      color-mix(in srgb, var(--accent) 9%, transparent) 100%),
    /* vignette to pull focus inward */
    radial-gradient(150% 110% at 50% 50%, transparent 44%,
      color-mix(in srgb, var(--bg) 78%, transparent) 100%);
}
/* lift real content above the fixed video + scrim */
.contact-page > main,
.contact-page > footer { position: relative; z-index: 2; }
/* header intentionally NOT overridden — see the .about-page note above (native sticky z-index:100
   keeps the open mobile menu tappable on iOS). */

.contact-wrap {
  min-height: calc(100vh - 76px - 52px);
  min-height: calc(100svh - 76px - 52px); /* stable against the mobile URL bar */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 26px; padding-block: clamp(60px, 10vw, 120px); }
.contact-inner .h-hero { font-size: clamp(3rem, 7vw, 5rem); }
.contact-inner .lede { max-width: 46ch; }
.contact-mail {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  color: var(--accent);
  transition: color .15s ease;
}
.contact-mail:hover { color: var(--text); }
.contact-meta { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--text-dim); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer__row {
  padding-block: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
}
.site-footer__row .sep { color: var(--border); }
.site-footer__row a { color: var(--text-dim); transition: color .15s ease; }
.site-footer__row a:hover { color: var(--accent); }

/* ---------- scroll reveal ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(20px); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cap-grid { grid-template-columns: 1fr; }
  .svc-card__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .nav {
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--pad) 22px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .site-header[data-open="true"] .nav { transform: none; opacity: 1; pointer-events: auto; }
  .site-header[data-open="true"] { background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .nav a { font-size: 18px; padding-block: 8px; }
  .nav a::after { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    width: 44px;   /* >=44px tap target; bars stay 28px */
    height: 44px;
    padding: 0 8px;
    margin-right: -8px; /* keep bars visually aligned with the container edge */
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span { height: 1.5px; width: 100%; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
  .site-header[data-open="true"] .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .site-header[data-open="true"] .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header[data-open="true"] .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .svc-card__grid { grid-template-columns: 1fr; }
  /* services on phones: compact static sections, solid cards (no flow bleed-through) */
  .svc-slot { min-height: 0; padding-block: 18px; }
  .svc-hero--scrub { min-height: 0; padding-top: clamp(70px, 9vw, 120px); padding-bottom: 40px; }
  .svc-progress, .svc-hero__hint { display: none; }
  .svc-card {
    background: color-mix(in srgb, var(--card) 97%, transparent);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .cap-card { -webkit-backdrop-filter: blur(11px) saturate(1.1); backdrop-filter: blur(11px) saturate(1.1); }
  .cap-card::before { width: 240px; height: 240px; filter: blur(48px); }
  .svc-card::before { width: 320px; height: 320px; filter: blur(60px); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
