:root {
  --navy-950: #050A34;
  --navy-800: #092676;
  --blue-500: #085CF0;
  --blue-200: #AFE9FD;
  --blue-50:  #F0F9FC;
  --ink: var(--navy-950);
  --font: "Anybody", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--blue-50);
  color: var(--ink);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

/* -------- brand diagonal pattern -------- */
.diag-pattern {
  background-image: repeating-linear-gradient(
    18deg,
    var(--blue-500) 0px, var(--blue-500) 40px,
    var(--navy-800) 40px, var(--navy-800) 80px
  );
}

/* -------- nav -------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 22px 5vw;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.nav.is-solid {
  background: rgba(5, 10, 52, 0.92);
  backdrop-filter: blur(8px);
  padding: 14px 5vw;
  box-shadow: 0 1px 0 rgba(175,233,253,0.12);
}
.nav__brand { flex-shrink: 0; min-width: 0; }
.nav__logo { height: 22px; width: auto; display: block; }
.nav__links { display: flex; align-items: center; gap: 28px; flex-shrink: 0; }
.nav__links a {
  color: var(--blue-50); text-decoration: none;
  font-size: 0.92rem; font-weight: 400; letter-spacing: 0.01em;
  opacity: 0.88; transition: opacity .2s; white-space: nowrap;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  background: var(--blue-500); padding: 10px 20px; border-radius: 999px;
  font-style: italic; font-weight: 600; opacity: 1 !important;
  white-space: nowrap;
}
.nav__cta-short { display: none; }

@media (max-width: 820px) {
  .nav__links a:not(.nav__cta) { display: none; }
}
@media (max-width: 480px) {
  .nav { padding: 16px 5vw; gap: 8px; }
  .nav.is-solid { padding: 12px 5vw; }
  .nav__logo { height: 16px; }
  .nav__cta { padding: 9px 16px; font-size: 0.85rem; }
  .nav__cta-full { display: none; }
  .nav__cta-short { display: inline; }
}

/* -------- hero / scroll-scrub -------- */
.hero { position: relative; background: var(--navy-950); }
.hero__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: flex-end;
}
/* #top height is intrinsic: pin (100svh) + 5 stages (100vh each) = 600vh of scroll-driven space */

#scrub {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; background: var(--navy-950);
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,10,52,.55) 0%, rgba(5,10,52,.05) 30%, rgba(5,10,52,.15) 60%, rgba(5,10,52,.85) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative; z-index: 2; color: var(--blue-50);
  padding: 0 6vw 96px; width: 100%;
  transition: opacity .15s linear;
}
.hero__eyebrow {
  font-style: italic; font-weight: 600; color: var(--blue-200);
  letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem;
  margin-bottom: 14px;
}
.hero__title {
  font-style: italic; font-weight: 800; font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.02; letter-spacing: -0.01em; max-width: 16ch;
}
.hero__sub {
  margin-top: 20px; max-width: 42ch; font-size: 1.05rem;
  color: rgba(240,249,252,0.8); font-weight: 400;
}

.hero__rail {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px;
}
.hero__rail-track { width: 100%; height: 100%; background: rgba(175,233,253,0.18); }
.hero__rail-fill { height: 100%; width: 0%; background: var(--blue-500); }

.hero__hint {
  position: absolute; right: 6vw; bottom: 40px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--blue-200); font-size: 0.78rem; font-style: italic;
  transition: opacity .4s ease; animation: bob 1.6s ease-in-out infinite;
}
.hero__hint.is-hidden { opacity: 0; }
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(6px);} }

.loader {
  position: absolute; inset: 0; z-index: 10; background: var(--navy-950);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; transition: opacity .5s ease;
}
.loader__label { color: var(--blue-200); font-style: italic; font-size: 0.9rem; }
.loader__track { width: 220px; height: 3px; background: rgba(175,233,253,0.2); }
.loader__bar { width: 0%; height: 100%; background: var(--blue-500); transition: width .15s linear; }
.loader.is-done { opacity: 0; pointer-events: none; }

.stage {
  position: relative; z-index: 4; height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 6vw; color: var(--blue-50);
  opacity: 0.25; transition: opacity .4s ease;
  pointer-events: none;
}
.stage.is-active { opacity: 1; }
.stage__num {
  font-style: italic; font-weight: 600; color: var(--blue-200);
  letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 10px;
}
.stage h2 {
  font-style: italic; font-weight: 800; font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  line-height: 1.08; max-width: 18ch;
}

/* -------- generic sections -------- */
.section { padding: 120px 6vw; }
.section--dark { background: var(--navy-950); color: var(--blue-50); }
.section--cta { background: var(--blue-500); color: var(--blue-50); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.section__head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.eyebrow {
  display: inline-block; font-style: italic; font-weight: 600;
  color: var(--blue-500); letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.82rem; margin-bottom: 14px;
}
.section--dark .eyebrow { color: var(--blue-200); }
.section__head h2 {
  font-style: italic; font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.1;
}
.section__sub { margin-top: 14px; opacity: 0.75; }

/* -------- quote -------- */
.quote { max-width: 760px; margin: 0 auto; text-align: center; }
.quote__mark { font-size: 4rem; font-style: italic; color: var(--blue-500); line-height: 1; }
.quote__text {
  font-style: italic; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.25; margin-top: 4px;
}
.quote__sub { margin-top: 20px; opacity: 0.7; font-size: 1rem; max-width: 56ch; margin-inline: auto; }

/* -------- method grid -------- */
.method-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px; max-width: 1200px; margin: 0 auto;
}
.method-card {
  background: rgba(175,233,253,0.05); border: 1px solid rgba(175,233,253,0.12);
  padding: 32px 26px;
}
.method-card__n {
  font-style: italic; font-weight: 800; font-size: 1.8rem; color: var(--blue-500);
}
.method-card h3 { font-style: italic; font-weight: 600; margin: 14px 0 10px; font-size: 1.1rem; }
.method-card p { opacity: 0.72; font-size: 0.92rem; line-height: 1.5; }

/* -------- before/after slider -------- */
.ba {
  position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16/9;
  border-radius: 4px; overflow: hidden; cursor: ew-resize; user-select: none;
  box-shadow: 0 30px 60px -20px rgba(5,10,52,0.35);
  touch-action: none;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after-wrap {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(0 0 0 var(--split));
}
.ba__after-wrap .ba__img { position: absolute; inset: 0; }
.ba__handle {
  position: absolute; top: 50%; left: var(--split); transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(5,10,52,0.3);
}
.ba::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: var(--split);
  width: 2px; background: var(--blue-50); transform: translateX(-1px);
}
.ba__tag {
  position: absolute; top: 16px; font-style: italic; font-weight: 600;
  font-size: 0.8rem; padding: 6px 14px; border-radius: 999px; color: var(--blue-50);
  background: rgba(5,10,52,0.55); backdrop-filter: blur(4px);
}
.ba__tag--before { left: 16px; }
.ba__tag--after { right: 16px; }

/* -------- services -------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; max-width: 1100px; margin: 0 auto;
}
.service-card {
  background: linear-gradient(160deg, rgba(8,92,240,0.14), rgba(175,233,253,0.04));
  border: 1px solid rgba(175,233,253,0.14); border-radius: 8px; padding: 34px 28px;
}
.service-card h3 { font-style: italic; font-weight: 700; font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { opacity: 0.72; font-size: 0.94rem; line-height: 1.55; }

/* -------- cta -------- */
.cta { text-align: center; max-width: 640px; margin: 0 auto; }
.cta h2 {
  font-style: italic; font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05;
}
.cta p { margin-top: 18px; opacity: 0.88; font-size: 1.05rem; }
.btn {
  display: inline-block; margin-top: 30px; padding: 15px 34px; border-radius: 999px;
  text-decoration: none; font-style: italic; font-weight: 700; font-size: 0.98rem;
  transition: transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--navy-950); color: var(--blue-50); }

/* -------- footer -------- */
.footer {
  background: var(--navy-950); color: rgba(240,249,252,0.55);
  text-align: center; padding: 48px 6vw 40px; font-size: 0.85rem;
}
.footer__iso { height: 26px; width: auto; margin: 0 auto 16px; opacity: 0.9; }

@media (max-width: 640px) {
  .section { padding: 84px 6vw; }
  .hero__content { padding-bottom: 72px; }
}
