/* ============================================
   Harmonic — Landing
   ============================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #FAFAF7;
  --surface: #F4F2EC;
  --ink: #15151A;
  --ink-soft: #2A2A33;
  --muted: #6B6B72;
  --hairline: rgba(20, 20, 25, 0.08);
  --hairline-strong: rgba(20, 20, 25, 0.16);

  --teal: #15C2A4;
  --coral: #F25C54;
  --royal: #2D4FE5;
  --amber: #F5B82E;

  --font: "General Sans", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max: 1400px;
  --gutter: clamp(1.5rem, 5vw, 5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html { scroll-behavior: auto; }
body { font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
em { font-style: normal; }

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

/* ---------- Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Background gradient orbs ---------- */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  mix-blend-mode: multiply;
  animation: orb-drift 20s ease-in-out infinite;
}
.orb--teal {
  width: clamp(500px, 58vw, 960px);
  height: clamp(500px, 58vw, 960px);
  background: radial-gradient(circle, rgba(21,194,164,0.38) 0%, transparent 70%);
  top: -18%; left: -12%;
  animation-duration: 22s; animation-delay: 0s;
}
.orb--coral {
  width: clamp(440px, 50vw, 840px);
  height: clamp(440px, 50vw, 840px);
  background: radial-gradient(circle, rgba(242,92,84,0.30) 0%, transparent 70%);
  top: -12%; right: -14%;
  animation-duration: 26s; animation-delay: -7s;
}
.orb--royal {
  width: clamp(520px, 60vw, 1000px);
  height: clamp(520px, 60vw, 1000px);
  background: radial-gradient(circle, rgba(45,79,229,0.24) 0%, transparent 70%);
  bottom: -22%; left: -10%;
  animation-duration: 24s; animation-delay: -12s;
}
.orb--amber {
  width: clamp(420px, 46vw, 800px);
  height: clamp(420px, 46vw, 800px);
  background: radial-gradient(circle, rgba(245,184,46,0.32) 0%, transparent 70%);
  bottom: -16%; right: -10%;
  animation-duration: 28s; animation-delay: -18s;
}
@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(40px, -50px) scale(1.05); }
  66%      { transform: translate(-28px, 32px) scale(0.96); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.9rem, 1.8vw, 1.4rem) var(--gutter);
  pointer-events: none;
  transition: padding 0.35s var(--ease-out);
}
.nav > * { pointer-events: auto; position: relative; z-index: 1; }
.nav__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: rgba(250,250,247,0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out);
}
.nav.is-scrolled { padding-top: 0.7rem; padding-bottom: 0.7rem; }
.nav.is-scrolled .nav__bg {
  background: rgba(250,250,247,0.82);
  border-bottom-color: var(--hairline);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__logo {
  display: block;
  height: clamp(24px, 2.6vw, 32px);
  width: auto;
  transition: height 0.35s var(--ease-out);
}
.nav.is-scrolled .nav__logo { height: clamp(20px, 2.2vw, 26px); }
.nav__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.2rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.25s var(--ease-out);
  cursor: pointer;
}
.nav__chip:hover {
  background: rgba(255,255,255,0.95);
  border-color: var(--hairline-strong);
  transform: translateY(-1px);
}
.nav.is-scrolled .nav__chip { background: rgba(240,240,236,0.75); }

/* ---------- Section base ---------- */
section {
  position: relative;
  z-index: 1;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- ACT 1: Hero — bold headline ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(6rem, 14vh, 10rem);
  padding-bottom: clamp(5rem, 10vh, 7rem);
  position: relative;
}
.hero__inner {
  max-width: var(--max);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 2.5vh, 2rem);
}
.hero__eyebrow {
  margin: 0;
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Headline ---------- */
.headline {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(3.2rem, 8.5vw, 10.5rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}
/* Each line is a clipping container for the slide-up reveal.
   padding-bottom + negative margin gives descenders (j, y, g) room to breathe */
.headline__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  position: relative;
}
.headline__line + .headline__line { margin-top: 0.02em; }
.headline__inner {
  display: inline-block;
  will-change: transform, opacity;
}
.headline__line--accent em {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.headline__line--accent em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.1em;
  background: linear-gradient(to right, var(--teal), var(--coral) 33%, var(--royal) 66%, var(--amber));
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out) 0.4s;
}
.headline.is-revealed .headline__line--accent em::after { transform: scaleX(1); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: clamp(2rem, 5vh, 3.5rem);
  left: var(--gutter);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted);
}
.scroll-cue__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-cue__arrow {
  display: inline-flex;
  animation: arrow-bob 2s var(--ease-in-out) infinite;
}
@keyframes arrow-bob {
  0%, 100% { transform: translateY(0);   opacity: 0.45; }
  50%      { transform: translateY(5px); opacity: 1; }
}

/* ---------- ACT 2: Diagnosis ---------- */
.diagnosis {
  padding-top: clamp(7rem, 16vh, 12rem);
  padding-bottom: clamp(7rem, 16vh, 12rem);
}
.diagnosis__inner {
  max-width: var(--max);
  width: 100%;
}
.diagnosis__lede {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  line-height: 1.35;
  letter-spacing: -0.018em;
  color: var(--ink);
  max-width: 26ch;
  margin: 0 0 clamp(3.5rem, 9vh, 6rem) 0;
}
.diagnosis__lede em {
  font-style: normal;
  position: relative;
}
.diagnosis__lede em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.06em;
  height: 1px;
  background: var(--hairline-strong);
}
.symptoms {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vh, 2.5rem);
  max-width: 700px;
}
.symptom {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink-soft);
  letter-spacing: -0.012em;
  will-change: transform, opacity;
}
.symptom__bullet {
  flex-shrink: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  margin-top: 0.6em;
}
.symptom__text { flex: 1; }
.symptom--teal  .symptom__bullet { background: var(--teal);  box-shadow: 0 0 0 3px rgba(21,194,164,0.15); }
.symptom--coral .symptom__bullet { background: var(--coral); box-shadow: 0 0 0 3px rgba(242,92,84,0.15); }
.symptom--royal .symptom__bullet { background: var(--royal); box-shadow: 0 0 0 3px rgba(45,79,229,0.15); }
.symptom--amber .symptom__bullet { background: var(--amber); box-shadow: 0 0 0 3px rgba(245,184,46,0.15); }


/* ---------- ACT 3: Resolution ---------- */
.resolution {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(6rem, 12vh, 9rem);
  padding-bottom: clamp(6rem, 12vh, 9rem);
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
}
.resolution__inner {
  max-width: var(--max);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(2.5rem, 6vh, 4rem);
}
.resolution__markwrap {
  width: clamp(100px, 16vw, 200px);
  height: clamp(100px, 16vw, 200px);
  display: grid;
  place-items: center;
  will-change: transform, opacity;
}
.resolution__mark {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 60px rgba(20,20,25,0.1));
}
.resolution__copy {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(1.2rem, 2.2vw, 1.9rem);
  line-height: 1.45;
  letter-spacing: -0.016em;
  color: var(--ink);
  max-width: 32ch;
  margin: 0;
}
.hl {
  position: relative;
  display: inline;
  font-weight: 600;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.1em;
  border-radius: 999px;
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out);
}
.hl--teal::after  { background: var(--teal);  transition-delay: 0.2s; }
.hl--coral::after { background: var(--coral); transition-delay: 0.45s; }
.is-revealed .hl::after { transform: scaleX(1); }

/* ---------- Our Approach ---------- */
.approach {
  padding-top: clamp(7rem, 16vh, 12rem);
  padding-bottom: clamp(7rem, 16vh, 12rem);
}
.approach__inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}
.approach__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem clamp(3rem, 8vw, 8rem);
  margin-bottom: clamp(4rem, 10vh, 7rem);
  align-items: start;
}
.approach__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.3em;
}
.approach__lede {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--ink-soft);
  max-width: 52ch;
}

/* Steps list */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--hairline);
}
.step {
  display: grid;
  grid-template-columns: 5rem 1fr 2fr;
  gap: 0 clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(1.5rem, 3.5vh, 2.5rem) 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
  transition: background 0.3s var(--ease-out);
  cursor: default;
}
.step::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -1);
  background: transparent;
  transition: background 0.3s var(--ease-out);
  z-index: -1;
  border-radius: 4px;
}
.step:hover::before { background: rgba(20,20,25,0.03); }
.step__num {
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 0.25em;
  transition: color 0.3s var(--ease-out);
  font-variant-numeric: tabular-nums;
}
.step:hover .step__num { color: var(--ink); }
.step__name {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.step__desc {
  margin: 0;
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
  padding-top: 0.3em;
}

@media (max-width: 900px) {
  .approach__header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .step {
    grid-template-columns: 3.5rem 1fr;
    grid-template-rows: auto auto;
  }
  .step__desc {
    grid-column: 2;
    padding-top: 0.5rem;
  }
}
@media (max-width: 600px) {
  .step {
    grid-template-columns: 2.5rem 1fr;
  }
  .headline {
    font-size: 12vw;
  }
  .orb {
    mix-blend-mode: normal;
    opacity: 0.55;
    will-change: auto;
    animation: none;
  }
}

/* ---------- ACT 4: CTA ---------- */
.cta-section {
  position: relative;
  z-index: 2;
  background: var(--ink);
  padding-top: clamp(7rem, 16vh, 12rem);
  padding-bottom: clamp(9rem, 20vh, 14rem);
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(21,194,164,0.11) 0%, transparent 65%),
    radial-gradient(ellipse 60% 70% at 85% 40%, rgba(242,92,84,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 50% 95%, rgba(45,79,229,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.cta-wrap {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 2.5vh, 2rem);
  text-align: center;
}
.cta__heading {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: #fff;
}
.cta__sub {
  margin: 0;
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  font-weight: 400;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.005em;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem 2.5rem;
  background: #0A0A0A;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--font);
  font-weight: 600;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
  will-change: transform;
  min-height: 56px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(0.75rem, 2vh, 1.5rem);
  width: 100%;
}
.cta-actions .cta {
  width: 100%;
  max-width: 340px;
  justify-content: center;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
  .cta-actions .cta {
    flex: 0 0 280px;
    width: 280px;
    max-width: none;
  }
}
.cta--secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}
.cta--secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.4);
}
.cta__icon {
  display: inline-flex;
  align-items: center;
}
.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -12px rgba(0,0,0,0.6);
  border-color: rgba(255,255,255,0.22);
}
.cta:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 4px;
}
.cta__arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.4s var(--ease-out);
}
.cta:hover .cta__arrow { transform: translateX(5px); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 2;
  padding: clamp(1.75rem, 4vh, 2.5rem) var(--gutter);
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  background: var(--bg);
}
.footer__brand {
  display: inline-flex;
  align-items: center;
}
.footer__brand img {
  height: 22px;
  width: auto;
}
.footer__locations {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.footer__dot { opacity: 0.4; }
.footer__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.footer__legal {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 768px) {
  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.9rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .footer__brand { justify-content: center; }
  .footer__locations { flex-wrap: wrap; justify-content: center; }
  .footer__legal { text-align: center; }
}

/* ---------- Reveal states ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: transform, opacity;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Headline lines use an inner clip-reveal (slide up from overflow hidden) */
.headline__line[data-reveal] {
  opacity: 1;
  transform: none;
}
.headline__line[data-reveal] .headline__inner {
  display: inline-block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 1s var(--ease-out), opacity 0.8s var(--ease-out);
}
.headline__line[data-reveal].is-revealed .headline__inner {
  transform: translateY(0);
  opacity: 1;
}
/* Stagger each line */
.headline__line:nth-child(2)[data-reveal] .headline__inner { transition-delay: 0.08s; }
.headline__line:nth-child(3)[data-reveal] .headline__inner { transition-delay: 0.16s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
  .orb { animation: none; }
  [data-reveal], .headline__line[data-reveal] { opacity: 1; transform: none; }
  .headline__line[data-reveal] .headline__inner { opacity: 1; transform: none; }
  .scroll-cue__arrow { animation: none; opacity: 0.5; }
  .headline.is-revealed .headline__line--accent em::after { transform: scaleX(1); }
  .is-revealed .hl::after { transform: scaleX(1); }
}
