/* ============================================================
   Charlie Ocean, MSW — design system
   Deep-ocean navy base, iridescent spectrum accents,
   Fraunces display + Inter body. Mobile-first.
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #070b14;
  --ink-2: #0b1120;
  --ink-3: #101830;
  --text: #f4f6fa;
  --muted: #b9c2d6; /* ≥ 9:1 on the ink backgrounds (WCAG AA) */
  --line: rgba(255, 255, 255, 0.14);
  --card: rgba(255, 255, 255, 0.035);

  --pink: #ff5e8a;
  --amber: #ffb35c;
  --mint: #5ce1b9;
  --azure: #5ca8ff;
  --violet: #b07cff;

  --grad: linear-gradient(100deg, var(--pink), var(--amber) 28%, var(--mint) 55%, var(--azure) 78%, var(--violet));

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 72rem;
  --radius: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
ul[class], ol[class] { list-style: none; }
a { color: inherit; }

::selection { background: var(--azure); color: var(--ink); }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  background: var(--mint);
  color: var(--ink);
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* film grain overlay for depth */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 9;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

/* ---------- type helpers ---------- */
.section__eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1.1rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 560;
  font-variation-settings: "opsz" 100;
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 38ch;
  margin-bottom: clamp(2.25rem, 5vw, 3.5rem);
  text-wrap: balance;
}

.grad-text {
  background: var(--grad);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-pan 9s ease-in-out infinite alternate;
}
@keyframes grad-pan {
  from { background-position: 0% center; }
  to { background-position: 100% center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8rem 1.6rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  will-change: transform;
}
.btn--primary {
  color: var(--ink);
  background: linear-gradient(100deg, var(--mint), var(--azure));
  box-shadow: 0 4px 24px rgba(92, 168, 255, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(92, 225, 185, 0.35);
}
.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--xl { padding: 1.2rem 2.6rem; font-size: 1.1rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
}
/* The scrolled blur lives on a pseudo-element, NOT on .site-header itself.
   backdrop-filter on the header would make it the containing block for the
   fixed mobile menu, pinning the open menu to the header instead of the
   viewport when scrolled down. Keeping it on ::before avoids that. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 20, 0.75);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.site-header.is-scrolled::before { opacity: 1; }

.nav {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 60;
}
.nav__logo img { height: 2.4rem; width: auto; max-width: none; }

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

.nav__links {
  display: flex;
  gap: 1.7rem;
}
.nav__links a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--text); }

/* Resources dropdown */
.nav__label {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.25s;
}
.nav__label:hover,
.nav__item:focus-within .nav__label { color: var(--text); }
.nav__sub { list-style: none; }

@media (min-width: 64.01rem) {
  .nav__item { position: relative; }
  .nav__sub {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 50%;
    translate: -50% 0;
    min-width: 17rem;
    display: grid;
    gap: 0.15rem;
    padding: 0.5rem;
    background: rgba(7, 11, 20, 0.95);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    box-shadow: 0 20px 50px rgba(7, 11, 20, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    z-index: 60;
  }
  /* a hover-bridge so the gap between label and panel doesn't drop the hover */
  .nav__item::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 0.8rem;
  }
  .nav__item:hover .nav__sub,
  .nav__item:focus-within .nav__sub {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__sub a {
    display: block;
    padding: 0.55rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
  }
  .nav__sub a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 60;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 26px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__canvas,
.hero__fallback {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero__fallback {
  z-index: -3;
  background:
    radial-gradient(60% 50% at 20% 85%, rgba(255, 94, 138, 0.16), transparent 60%),
    radial-gradient(55% 45% at 80% 80%, rgba(92, 168, 255, 0.18), transparent 60%),
    radial-gradient(70% 60% at 50% 110%, rgba(92, 225, 185, 0.14), transparent 65%),
    var(--ink);
}

.hero::after {
  /* bottom fade into page background */
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 22%;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--ink));
}

.hero__inner {
  text-align: center;
  padding-block: 8rem 5rem;
}

.hero__eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 590;
  font-variation-settings: "opsz" 144;
  font-size: clamp(2.7rem, 9vw, 6.2rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: calc(1.6rem - 0.26em);
}

.hero__line { display: block; overflow: hidden; }
.hero__line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s var(--ease) forwards;
}
.hero__line:nth-child(2) > span { animation-delay: 0.12s; }

@keyframes rise { to { transform: translateY(0); } }

.hero__grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 44ch;
  margin-inline: auto;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  margin-bottom: 2.4rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.6rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.hero__chips li {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}
.hero__chips li::before {
  content: "✓ ";
  color: var(--mint);
}

.hero__scroll {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  translate: -50% 0;
  width: 1.6rem;
  height: 2.6rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  display: grid;
  justify-items: center;
  padding-top: 0.5rem;
}
.hero__scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0.2; }
}

/* ---------- proof bar ---------- */
.proof {
  border-block: 1px solid var(--line);
  background: var(--ink-2);
  padding-block: 3.5rem;
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem clamp(2rem, 6vw, 6rem);
}
.proof__item { text-align: center; }
.proof__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}
.proof__item span {
  font-size: 1rem;
  color: var(--muted);
  display: inline-block;
}

/* ---------- pain ---------- */
.pain__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.pain__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.6rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.pain__card:hover { border-color: rgba(255, 94, 138, 0.4); transform: translateY(-4px); }
.pain__card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.pain__card p { font-size: 1rem; color: var(--muted); }

.pain__stakes {
  margin-top: 2.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-style: italic;
  color: var(--text);
  text-align: center;
}

/* ---------- services ---------- */
.services { background: var(--ink-2); border-block: 1px solid var(--line); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 2.8rem;
}
.service {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 2rem 1.7rem;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s;
}
.service:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.2); }
.service:hover::before { opacity: 1; }

.service__num {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.15em;
}
.service h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  margin-block: 0.8rem 0.7rem;
}
.service p { font-size: 1rem; color: var(--muted); margin-bottom: 1.1rem; }
.service ul { display: grid; gap: 0.45rem; list-style: none; }
.service li {
  font-size: 1rem;
  color: var(--text);
  padding-left: 1.4rem;
  position: relative;
}
.service li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--mint);
}

.services__list-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.tags li {
  font-size: 1rem;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  transition: border-color 0.3s;
}
.tags li:hover { border-color: var(--azure); }

/* ---------- process ---------- */
.process__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.step__num {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--grad);
  margin-bottom: 1.2rem;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.step p { font-size: 1rem; color: var(--muted); }

.process__cta { margin-top: 2.8rem; text-align: center; }

/* ---------- about ---------- */
.about { background: var(--ink-2); border-block: 1px solid var(--line); }

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about__frame {
  position: relative;
  aspect-ratio: 960 / 641;
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
  padding: 6px; /* thickness of the rainbow border */
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(7, 11, 20, 0.55);
}
/* The rainbow lives on a pseudo-element BEHIND the photo, so its shimmer
   animation never recolours the image. */
.about__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: conic-gradient(from 200deg, var(--pink), var(--amber), var(--mint), var(--azure), var(--violet), var(--pink));
  filter: saturate(0.95);
  animation: about-hue 14s ease-in-out infinite alternate;
}
.about__frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.95rem;
  display: block;
}
@keyframes about-hue {
  from { filter: saturate(0.95) hue-rotate(0deg); }
  to { filter: saturate(0.95) hue-rotate(40deg); }
}

.about__content p { color: var(--muted); margin-bottom: 1.1rem; max-width: 56ch; }
.about__content p strong { color: var(--text); }
.about__content p em { color: var(--text); }

.about__location {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint) !important;
  margin-top: 1.6rem;
}

/* ---------- events ---------- */
.events__list { display: grid; gap: 1rem; }

.event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem 1.8rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.event:hover { transform: translateX(4px); border-color: rgba(255, 255, 255, 0.2); }
.event--featured { border-color: rgba(92, 225, 185, 0.35); background: rgba(92, 225, 185, 0.04); }

.event__date {
  display: grid;
  justify-items: center;
  min-width: 4rem;
  padding: 0.6rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: var(--ink-2);
}
.event__month {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}
.event__day {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
}
.event__body h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.event__body p { font-size: 1rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq { background: var(--ink-2); border-block: 1px solid var(--line); }
.faq__container { max-width: 50rem; }
.faq__list { display: grid; gap: 0.8rem; }

.faq__item {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq__item[open] { border-color: rgba(92, 168, 255, 0.4); }

.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--mint);
  transition: rotate 0.3s var(--ease);
}
.faq__item[open] summary::after { rotate: 45deg; }

.faq__answer { padding: 0 1.5rem 1.3rem; }
.faq__answer p { color: var(--muted); font-size: 1rem; }

/* ---------- final cta ---------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 50% 110%, rgba(92, 168, 255, 0.18), transparent 70%),
    radial-gradient(40% 50% at 20% 100%, rgba(255, 94, 138, 0.12), transparent 70%),
    radial-gradient(40% 50% at 80% 100%, rgba(92, 225, 185, 0.12), transparent 70%);
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 590;
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  line-height: 1.1;
  max-width: 24ch;
  margin-inline: auto;
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.cta__sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
}
.cta__alt {
  margin-top: 1.8rem;
  font-size: 1rem;
  color: var(--muted);
}
.cta__alt a { color: var(--mint); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-top: 4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.footer__logo em { font-style: normal; color: var(--muted); font-size: 0.85em; }
.footer__brand p:last-child { color: var(--muted); font-size: 1rem; }

.footer__col h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer__col ul { display: grid; gap: 0.55rem; list-style: none; }
.footer__col a {
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.25s, color 0.25s;
}
.footer__col a:hover { opacity: 1; color: var(--mint); }

.footer__legal {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
/* variants so sections don't all use the same trick */
.reveal--fade { transform: none; }
.reveal--left { transform: translateX(-36px); }
.reveal--zoom { transform: scale(0.95); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* gentle cascade inside grids */
.stagger > :nth-child(2) { transition-delay: 90ms; }
.stagger > :nth-child(3) { transition-delay: 180ms; }
.stagger > :nth-child(4) { transition-delay: 270ms; }
.stagger > :nth-child(5) { transition-delay: 360ms; }
.stagger > :nth-child(6) { transition-delay: 450ms; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 56rem) {
  .pain__grid,
  .services__grid,
  .process__steps { grid-template-columns: 1fr; }

  .about__grid { grid-template-columns: 1fr; }
  .about__frame { max-width: 24rem; margin-bottom: 1rem; }

  .event {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }
  .event__cta { grid-column: 1 / -1; justify-self: start; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 64rem) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(7, 11, 20, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; }

  .nav__links {
    flex-direction: column;
    align-items: center;
    gap: 1.6rem;
  }
  .nav__links a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text);
  }

  .nav__item { text-align: center; }
  .nav__label {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--text);
  }
  .nav__sub { display: grid; gap: 0.9rem; margin-top: 0.9rem; }
  .nav__sub a {
    font-family: var(--font-body) !important;
    font-size: 1.05rem !important;
    color: var(--muted) !important;
  }

  body.menu-open { overflow: hidden; }

  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
}

@media (max-width: 48rem) {
  .hero__inner { padding-block: 7rem 5.5rem; }
  .hero__actions .btn { width: 100%; max-width: 22rem; }

  .proof__grid { grid-template-columns: 1fr; gap: 2.2rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- reduced motion ---------- */
@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;
  }
  .hero__line > span { transform: none; animation: none; }
  .reveal { opacity: 1; transform: none; }
  .hero__canvas { display: none; }
}

/* ---------- blog post ---------- */
.post-page { background: var(--ink); }
.post {
  max-width: 46rem;
  margin-inline: auto;
  padding: 9rem 1.25rem 5rem;
}
.post__eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1rem;
}
.post h1 {
  font-family: var(--font-display);
  font-weight: 590;
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  text-wrap: balance;
}
.post__meta { color: var(--muted); margin-bottom: 2.2rem; }
.post__hero {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 2.6rem;
}
.post h2, .post h3, .post h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 2.4rem 0 0.9rem;
}
.post h2 { font-size: 1.7rem; }
.post h3 { font-size: 1.3rem; }
.post h4 { font-size: 1.15rem; }
.post p, .post li { color: #d4dae7; margin-bottom: 1.1rem; }
.post li { margin-bottom: 0.5rem; }
.post ul, .post ol { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.post a { color: var(--mint); }
.post strong { color: var(--text); }
.post blockquote {
  border-left: 3px solid var(--azure);
  padding: 0.4rem 0 0.4rem 1.3rem;
  margin: 1.6rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
}
.post__cta {
  margin-top: 3.5rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}
.post__cta p { margin-bottom: 1.3rem; }
.post__back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--muted);
  text-decoration: none;
}
.post__back:hover { color: var(--text); }
