/* ============================================================
   WOOFID — AI Consulting
   Aesthetic: institutional cream × ink navy × electric blue
   Display: El Messiri · Body: Poppins
   ============================================================ */

:root {
  --cream: #F8F7F2;
  --cream-2: #EFEDE3;
  --ink: #141413;
  --muted: #6E6B62;
  --border: rgba(20, 20, 19, 0.12);
  --border-strong: rgba(20, 20, 19, 0.22);

  --navy: #131B26;
  --navy-2: #1B2533;
  --navy-border: rgba(248, 247, 242, 0.10);
  --on-navy: #F3F2EC;
  --on-navy-muted: #9BA3B0;

  --blue: #1870F3;
  --blue-deep: #0E5BD8;
  --amber: #F39E09;
  --gold: #FDD835;

  --font-display: "El Messiri", Georgia, serif;
  --font-body: "Poppins", "Segoe UI", sans-serif;

  --container: min(92vw, 1400px);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 0.9rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.js { scroll-behavior: auto; } /* ScrollSmoother owns scrolling */

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.06rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

.container { width: var(--container); margin-inline: auto; }

/* Visually hidden but available to screen readers */
.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;
}

.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.stars { color: var(--amber); letter-spacing: 0.05em; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -5%;
  width: 110%; height: 110%;
  pointer-events: none;
  z-index: 200;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(2) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-1.5%, 1%); }
  100% { transform: translate(1%, -1.5%); }
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0;
  z-index: 400;
  background: var(--cream);
  display: grid;
  place-items: center;
}
html:not(.js) .preloader { display: none; }
.preloader__inner {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.preloader__mark {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--blue);
}
.preloader__count {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.preloader__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (pointer: fine) {
  html.js .cursor { display: block; }
  html.js body { cursor: none; }
  html.js a, html.js button { cursor: none; }
  .cursor__dot, .cursor__ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none;
    z-index: 300;
    border-radius: 50%;
    will-change: transform;
  }
  .cursor__dot {
    width: 7px; height: 7px;
    background: var(--blue);
    margin: -3.5px 0 0 -3.5px;
  }
  .cursor__ring {
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1.5px solid rgba(110, 107, 98, 0.55);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
                margin 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
                background-color 0.3s var(--ease-out);
  }
  .cursor--hover .cursor__ring {
    width: 54px; height: 54px;
    margin: -27px 0 0 -27px;
    border-color: var(--blue);
    background: rgba(24, 112, 243, 0.10);
  }
}

/* ---------- Focus visible ---------- */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.section--dark a:focus-visible,
.section--dark button:focus-visible,
.footer a:focus-visible {
  outline-color: var(--amber);
}
/* Mirror hover underline on focus for nav links */
.header__link:focus-visible::after { transform: scaleX(1); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color 0.45s ease, backdrop-filter 0.45s ease,
              border-color 0.45s ease, box-shadow 0.45s ease;
  border-bottom: 1px solid transparent;
}
.header--scrolled {
  background: rgba(248, 247, 242, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(20, 20, 19, 0.06);
}
.header__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex; align-items: center; gap: 2.5rem;
  padding-block: 0.9rem;
}
.header__logo {
  display: flex; align-items: center; gap: 0.55rem;
  margin-right: auto;
}
.header__logo-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
}
.brand-symbol {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}
.brand-symbol--loading {
  width: 96px;
  height: 96px;
}
.brand-symbol--footer {
  width: 64px;
  height: 64px;
  padding: 7px;
  border-radius: 14px;
  background: var(--cream);
}
.header__logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.header__nav { display: flex; gap: 2rem; }
.header__link {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 0.3s ease, color 0.3s ease;
  padding-block: 0.35rem;
}
.header__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  border-radius: 2px;
  background: var(--blue-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .header__link:hover { opacity: 1; color: var(--blue-deep); }
  .header__link:hover::after { transform: scaleX(1); transform-origin: left; }
}

.header__burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  margin-right: -10px;
}
.header__burger span {
  position: absolute; left: 10px; right: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.header__burger span:nth-child(1) { top: 18px; }
.header__burger span:nth-child(2) { top: 26px; }
.header__burger--open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.header__burger--open span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0;
  z-index: 90;
  background: var(--cream);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
  overscroll-behavior: contain;
  overflow-y: auto;
}
.menu--open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
}
.menu__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 8.5vw, 3.2rem);
  line-height: 1.3;
  color: var(--ink);
  display: flex; align-items: baseline; gap: 1rem;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s ease, color 0.3s ease;
}
.menu--open .menu__link { transform: translateY(0); opacity: 1; }
.menu--open .menu__link:nth-child(1) { transition-delay: 0.08s; }
.menu--open .menu__link:nth-child(2) { transition-delay: 0.14s; }
.menu--open .menu__link:nth-child(3) { transition-delay: 0.20s; }
.menu--open .menu__link:nth-child(4) { transition-delay: 0.26s; }
.menu--open .menu__link:nth-child(5) { transition-delay: 0.32s; }
.menu__link span {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--blue-deep);
  letter-spacing: 0.15em;
}
.menu__link--cta { color: var(--blue); }
.menu__link:active { color: var(--blue-deep); }
/* Footer sits as a flex child so it scrolls with the menu in short viewports */
.menu__foot {
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; flex-direction: column; gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu__foot a { color: var(--blue-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  padding: 0.85rem 1.8rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--blue-deep);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
  border-radius: inherit;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: translateY(0); }
  .btn--solid:hover { border-color: var(--blue-deep); box-shadow: 0 14px 36px rgba(24, 112, 243, 0.36); }
  .btn--ghost:hover { color: var(--cream); border-color: var(--ink); }
}
.btn--solid {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 10px 28px rgba(24, 112, 243, 0.28);
}
.btn--ghost {
  color: var(--ink);
  border-color: var(--border-strong);
  /* Solid fill for legibility over the particle canvas */
  background: rgba(248, 247, 242, 0.72);
}
.btn--ghost::before { background: var(--ink); }
.btn--lg { padding: 1.15rem 2.5rem; font-size: 0.92rem; }

/* ---------- Sections (shared) ---------- */
.section { padding-block: clamp(5.5rem, 13vh, 10rem); position: relative; }
.section--dark {
  background: var(--navy);
  color: var(--on-navy);
}
.section__eyebrow {
  color: var(--blue-deep);
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  display: inline-block;
}
.section--dark .section__eyebrow { color: var(--amber); }
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  max-width: 24ch;
  text-wrap: balance;
}
.section__title em, .cta__title em, .hero__title em {
  font-style: normal;
  color: var(--blue);
}
.section--dark .section__title em, .cta__title em { color: var(--amber); }

/* Hidden-until-revealed (JS only) */
html.js [data-reveal] { opacity: 0; transform: translateY(42px); }
html.js [data-hero-fade] { opacity: 0; transform: translateY(28px); }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal], html.js [data-hero-fade] { opacity: 1; transform: none; }
}

/* ---------- Hero (light) ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
  overflow: hidden;
  background: var(--cream);
}
.hero__atmosphere {
  position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 72% 100%, rgba(24, 112, 243, 0.12) 0%, rgba(24, 112, 243, 0.04) 40%, transparent 70%),
    radial-gradient(60% 50% at 30% 110%, rgba(243, 158, 9, 0.10) 0%, transparent 60%),
    radial-gradient(70% 55% at 85% -10%, rgba(24, 112, 243, 0.06) 0%, transparent 60%);
}
/* Cream scrim: protect body copy and proof strip from the particle field */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 28%,
    rgba(248, 247, 242, 0.45) 58%,
    rgba(248, 247, 242, 0.82) 100%
  );
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: clamp(7rem, 15vh, 9.5rem);
}
.hero__eyebrow { margin-bottom: clamp(1.4rem, 3vh, 2.5rem); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 7.6vw, 7rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 14ch;
  margin-bottom: clamp(1.75rem, 4.5vh, 3rem);
  text-wrap: balance;
}
.hero__row {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  gap: 2rem 4rem;
  margin-bottom: clamp(2.5rem, 7vh, 4.5rem);
}
.hero__sub {
  max-width: 48ch;
  color: var(--ink);
  opacity: 0.78;
  font-size: clamp(0.98rem, 1.1vw, 1.1rem);
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero__proof {
  display: flex; flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: clamp(1.5rem, 3vh, 2.25rem);
  gap: clamp(2rem, 6vw, 6rem);
}
.hero__proof-item { display: flex; flex-direction: column; gap: 0.45rem; }
.hero__proof-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: var(--ink);
  line-height: 1.1;
}
.hero__proof-num .stars { font-size: 0.72em; vertical-align: 0.08em; }
.hero__proof-label { font-size: 0.68rem; }
.hero__scrollcue {
  position: absolute;
  right: calc((100vw - var(--container)) / 2);
  bottom: clamp(2.5rem, 6vh, 4.5rem);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  font-size: 0.68rem;
}
.hero__scrollcue-line {
  width: 1.5px; height: 56px;
  border-radius: 2px;
  background: linear-gradient(to bottom, transparent, var(--blue));
  position: relative;
  overflow: hidden;
}
.hero__scrollcue-line::after {
  content: "";
  position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--amber));
  animation: scroll-drip 2.2s var(--ease-out) infinite;
}
@keyframes scroll-drip {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--border);
  padding-block: 1.05rem;
  overflow: hidden;
  background: var(--cream-2);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee-roll 40s linear infinite;
  font-size: 0.72rem;
  color: var(--muted);
}
/* Pause marquee on hover/focus for users who find motion distracting */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}
@keyframes marquee-roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__scrollcue-line::after { animation: none; }
  .grain { animation: none; }
}

/* ---------- Metrics (dark) ---------- */
.metrics__title { max-width: 22ch; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.metrics__body {
  max-width: 52ch;
  color: var(--on-navy-muted);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  margin-bottom: clamp(3rem, 7vh, 5rem);
}
.metrics__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}
.stat {
  background: var(--navy-2);
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 2.8vw, 2.4rem);
  display: flex; flex-direction: column; gap: 0.8rem;
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease;
}
@media (hover: hover) and (pointer: fine) {
  .stat:hover { transform: translateY(-5px); border-color: rgba(243, 158, 9, 0.4); }
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  line-height: 1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.stat__unit { font-size: 0.42em; color: var(--on-navy-muted); margin-left: 0.25em; }
.stat__label { max-width: 24ch; font-size: 0.72rem; line-height: 1.7; color: var(--on-navy-muted); }

/* Comparison strip */
.compare {
  display: flex; align-items: stretch; gap: clamp(0.75rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}
.compare__card {
  flex: 1 1 260px;
  border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  display: flex; flex-direction: column; gap: 1rem;
  border: 1px solid var(--navy-border);
  background: var(--navy-2);
}
.compare__card--new {
  border-color: rgba(24, 112, 243, 0.55);
  background: linear-gradient(150deg, rgba(24, 112, 243, 0.16) 0%, var(--navy-2) 60%);
}
/* Both compare tags need readable color on dark background */
.compare__card .compare__tag { color: var(--on-navy-muted); font-size: 0.72rem; }
.compare__card--new .compare__tag { color: var(--blue); filter: brightness(1.5); }
.compare__rows {
  display: flex; gap: clamp(1rem, 3vw, 2.5rem); flex-wrap: wrap;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.5rem);
  color: var(--on-navy);
}
.compare__card--old .compare__rows { color: var(--on-navy-muted); }
.compare__card--old .compare__cost { text-decoration: line-through; text-decoration-color: rgba(243, 158, 9, 0.6); }
.compare__card--new .compare__cost { color: var(--amber); }
.compare__vs {
  align-self: center;
  color: var(--on-navy-muted);
  font-size: 0.72rem;
}

/* ---------- Method (light, pinned) ---------- */
.method { background: var(--cream); border-block: 1px solid var(--border); }
.method__pin {
  padding-block: clamp(4rem, 9vh, 6.5rem);
  /* overflow: hidden only when pinned — prevents clipping the stacked layout */
  display: flex; flex-direction: column;
  gap: clamp(2.5rem, 6vh, 4rem);
}
.method--pinned .method__pin { overflow: hidden; }

.method__head { display: flex; flex-direction: column; }
.method__progress {
  /* Hidden by default; shown only when the JS pin is active */
  display: none;
  margin-top: 1.75rem;
  width: min(420px, 60vw);
  height: 2px;
  border-radius: 2px;
  background: var(--border);
}
.method--pinned .method__progress { display: block; }
.method__progress span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}

/* Default: stacked column (works for no-JS, reduced-motion, no-ScrollTrigger) */
.method__rail {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  padding-inline: calc((100vw - var(--container)) / 2);
}

/* Pinned horizontal rail (JS adds .method--pinned to the section) */
.method--pinned .method__rail {
  flex-direction: row;
  padding-left: calc((100vw - var(--container)) / 2);
  padding-right: calc((100vw - var(--container)) / 2);
  width: max-content;
}

.method__panel {
  width: 100%; /* stacked default */
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #FFFFFF;
  box-shadow: 0 18px 48px rgba(20, 20, 19, 0.05);
  padding: clamp(1.75rem, 3.2vw, 2.75rem);
  display: flex; flex-direction: column; gap: 1.3rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}
.method--pinned .method__panel { width: min(540px, 78vw); }
.method__panel::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 56px; height: 3px;
  border-radius: 0 0 3px 0;
  background: var(--blue);
}
@media (hover: hover) and (pointer: fine) {
  .method__panel:hover { border-color: rgba(24, 112, 243, 0.45); transform: translateY(-4px); }
}
.method__index { color: var(--blue-deep); }
.method__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.12;
}
.method__desc { color: var(--muted); max-width: 46ch; }
.method__meta {
  margin-top: auto; padding-top: 1.4rem;
  font-size: 0.72rem;
  border-top: 1px solid var(--border);
}

/* ---------- Services (light) ---------- */
.services { background: var(--cream); }
.services__list {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--border);
}
.service {
  display: grid;
  grid-template-columns: 4.5rem 1.05fr 1.2fr 3rem;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  padding-block: clamp(1.4rem, 2.6vw, 2rem);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding-left 0.45s var(--ease-out);
}
.service::before {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--blue-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .service:hover::before { transform: scaleX(1); }
  .service:hover { padding-left: 0.75rem; }
  .service:hover .service__name { color: var(--blue-deep); }
  .service:hover .service__arrow { transform: translateX(8px); color: var(--blue-deep); }
}
.service__idx { color: var(--blue-deep); font-size: 0.72rem; }
.service__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  line-height: 1.2;
  transition: color 0.3s ease;
}
.service__desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.service__arrow {
  font-size: 1.3rem;
  color: var(--muted);
  justify-self: end;
  transition: transform 0.45s var(--ease-out), color 0.3s ease;
}

@media (max-width: 760px) {
  .service {
    grid-template-columns: 3rem 1fr 2rem;
    grid-template-areas: "idx name arrow" ". desc desc";
    row-gap: 0.5rem;
  }
  .service__idx { grid-area: idx; }
  .service__name { grid-area: name; }
  .service__desc { grid-area: desc; }
  .service__arrow { grid-area: arrow; }
}

/* ---------- Results (dark) ---------- */
.results__quote { margin-block: clamp(1.5rem, 4vh, 3rem) clamp(3.5rem, 9vh, 6rem); }
.results__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.2;
  letter-spacing: -0.005em;
  max-width: 22ch;
  color: var(--on-navy);
}
html.js .results__text .word { opacity: 0.14; }
html:not(.js) .results__text .word { opacity: 1; }
.results__attr { margin-top: 1.75rem; color: var(--amber); }
.results__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.rcard {
  border: 1px solid var(--navy-border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  display: flex; flex-direction: column; gap: 0.75rem;
  position: relative;
  overflow: hidden;
  background: var(--navy-2);
  transition: border-color 0.4s ease, transform 0.5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .rcard:hover { border-color: rgba(24, 112, 243, 0.5); transform: translateY(-6px); }
  .rcard:hover .rcard__plate { opacity: 0.28; }
}
.rcard__plate {
  position: absolute; inset: 0;
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.rcard__plate--rings {
  background: repeating-radial-gradient(circle at 85% 15%, transparent 0 18px, rgba(24, 112, 243, 0.8) 18px 19px);
}
.rcard__plate--lines {
  background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(24, 112, 243, 0.65) 14px 15px);
}
.rcard__plate--dots {
  background-image: radial-gradient(rgba(24, 112, 243, 0.9) 1px, transparent 1.5px);
  background-size: 18px 18px;
}
.rcard__sector { color: var(--amber); font-size: 0.72rem; position: relative; }
.rcard__metric {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  line-height: 1;
  position: relative;
  color: var(--on-navy);
}
.rcard__desc { color: var(--on-navy-muted); font-size: 0.88rem; position: relative; max-width: 30ch; }

@media (max-width: 860px) {
  .results__cards { grid-template-columns: 1fr; }
}

/* ---------- Blog (light) ---------- */
.blog { background: var(--cream); }
.blog__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.bcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  background: #FFFFFF;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(20, 20, 19, 0.05);
  transition: border-color 0.4s ease, transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}
@media (hover: hover) and (pointer: fine) {
  .bcard:hover {
    border-color: rgba(24, 112, 243, 0.45);
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(20, 20, 19, 0.09);
  }
  .bcard:hover .bcard__title { color: var(--blue-deep); }
  .bcard:hover .bcard__read { color: var(--blue-deep); letter-spacing: 0.22em; }
}
.bcard__plate {
  height: clamp(140px, 16vw, 200px);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.bcard__plate::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(19, 27, 38, 0.85), transparent 60%);
}
.bcard__plate--a {
  background:
    repeating-conic-gradient(from 0deg at 50% 120%, rgba(24, 112, 243, 0.5) 0deg 1deg, transparent 1deg 12deg),
    radial-gradient(100% 100% at 50% 120%, rgba(24, 112, 243, 0.4), transparent 65%),
    var(--navy);
}
.bcard__plate--b {
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(24, 112, 243, 0.55) 26px 27px),
    linear-gradient(180deg, transparent 30%, rgba(243, 158, 9, 0.18)),
    var(--navy);
}
.bcard__plate--c {
  background:
    repeating-radial-gradient(circle at 20% 80%, transparent 0 24px, rgba(24, 112, 243, 0.6) 24px 25px),
    var(--navy);
}
.bcard__meta { padding: 1.3rem 1.5rem 0; font-size: 0.72rem; color: var(--blue-deep); }
.bcard__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.25;
  padding: 0.65rem 1.5rem 0;
  transition: color 0.3s ease;
}
.bcard__excerpt {
  padding: 0.7rem 1.5rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.bcard__read {
  padding: 1.3rem 1.5rem 1.5rem;
  margin-top: auto;
  font-size: 0.72rem;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

@media (max-width: 860px) {
  .blog__grid { grid-template-columns: 1fr; }
}

/* ---------- CTA (dark) ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(80% 110% at 50% 130%, rgba(24, 112, 243, 0.22) 0%, transparent 60%),
    var(--navy);
}
.cta .section__eyebrow { display: inline-block; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-inline: auto;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.5rem);
  color: var(--on-navy);
  text-wrap: balance;
}
.cta__sub {
  color: var(--on-navy-muted);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: clamp(2.25rem, 5.5vh, 3.5rem);
}
.cta__list {
  list-style: none;
  display: grid; gap: 0.7rem;
  max-width: 34rem;
  margin: 0 auto clamp(2.25rem, 5.5vh, 3.5rem);
  padding: 0;
  text-align: left;
  color: var(--on-navy);
}
.cta__list li { position: relative; padding-left: 1.75rem; }
.cta__list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--amber);
  font-weight: 600;
}
.cta__actions {
  display: flex; flex-direction: column; align-items: center; gap: 1.3rem;
}
.cta__alt { font-size: 0.72rem; text-transform: none; letter-spacing: 0.1em; color: var(--on-navy-muted); }

/* ---------- Footer (dark) ---------- */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-border);
  color: var(--on-navy-muted);
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vh, 5rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 6vh, 4.5rem);
}
.footer__col { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.88rem; }
.footer__col a { transition: color 0.3s ease; }
.footer__col a:hover { color: var(--blue); filter: brightness(1.4); }
.footer__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--on-navy);
  line-height: 1.1;
  display: flex; align-items: center; gap: 0.55rem;
}
.footer__mark span {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 1.3rem;
}
.footer__tag { max-width: 34ch; line-height: 1.7; }
.footer__head { font-size: 0.72rem; color: var(--on-navy); margin-bottom: 0.4rem; }
.footer__legal {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding-block: 1.5rem;
  border-top: 1px solid var(--navy-border);
  font-size: 0.68rem;
  text-transform: none;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 1;
  color: var(--on-navy-muted);
}
.footer__watermark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 17.5vw, 16rem);
  letter-spacing: 0.04em;
  line-height: 0.8;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(24, 112, 243, 0.22);
  user-select: none;
  pointer-events: none;
  transform: translateY(16%);
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}

/* ---------- Responsive: header ---------- */
@media (max-width: 899.98px) {
  .header__nav, .header__cta { display: none; }
  .header__burger { display: block; }
  .metrics__stats { grid-template-columns: 1fr; }
  .hero__scrollcue { display: none; }
  .compare__vs { display: none; }
}

/* Short-viewport landscape: shrink menu link size */
@media (max-height: 520px) {
  .menu__link { font-size: clamp(1.5rem, 6vw, 2.1rem); }
}

/* ================================================================
   BLOG POST PAGE
   ================================================================ */
.post-hero {
  background: var(--navy);
  padding: clamp(6rem, 14vh, 10rem) 0 clamp(3rem, 7vh, 5rem);
  border-bottom: 1px solid var(--navy-border);
}
.post-hero__back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-navy-muted);
  transition: color 0.3s ease;
  margin-bottom: clamp(2rem, 4vh, 3rem);
}
.post-hero__back:hover { color: var(--blue); }
.post-hero__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.post-hero__cat {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(24, 112, 243, 0.15); padding: 0.28em 0.9em;
  border-radius: 50px; border: 1px solid rgba(24, 112, 243, 0.3);
}
.post-hero__date, .post-hero__read { font-size: 0.8rem; color: var(--on-navy-muted); }
.post-hero__sep { color: var(--navy-border); }
.post-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--on-navy);
  max-width: 22ch;
  text-wrap: balance;
}
.post-hero__title em { font-style: italic; color: var(--blue); }

.post-body {
  background: var(--cream);
  padding: clamp(3.5rem, 8vh, 6rem) 0;
}
.post-content {
  max-width: 740px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.post-content p {
  margin-bottom: 1.4em;
  color: var(--ink);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  line-height: 1.78;
}
.post-lead {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem) !important;
  color: var(--muted) !important;
  line-height: 1.65 !important;
  margin-bottom: 2.4em !important;
}
.post-content h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 2.8em;
  margin-bottom: 0.6em;
}
.post-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.3;
  color: var(--ink);
  margin-top: 2em;
  margin-bottom: 0.45em;
}
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.4em;
}
.post-content li {
  margin-bottom: 0.5em;
  line-height: 1.72;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
}
.post-content strong { font-weight: 700; }
.post-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 1.2rem 1.6rem;
  margin: 2.4em 0;
  background: rgba(24, 112, 243, 0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0;
}
.post-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 0.3em;
}
.post-divider { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }
.post-cta-box {
  background: var(--navy);
  border-radius: var(--radius);
  padding: clamp(2rem, 4vw, 3rem);
  margin: 3.5rem 0;
  text-align: center;
}
.post-cta-box p { color: var(--on-navy-muted); margin-bottom: 1.5rem; }
.post-cta-box .btn { display: inline-flex; }

/* ================================================================ */

/* ---------- Reduced motion: global ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  html.js .results__text .word { opacity: 1; }
  /* Restore native cursor when custom cursor animation is disabled */
  html.js body,
  html.js a,
  html.js button { cursor: auto; }
  html.js .cursor { display: none !important; }
}

/* Homepage program hook */
.hero__title--program{max-width:25ch;font-size:clamp(2.5rem,6vw,6rem)}
.hero__title--program>span{display:block}
.hero__action-word{color:var(--blue)}
