/* =============================================================
   Genesis One — genesisoneos.com
   Design source: Figma "Genesis One" / node 1:2 (MacBook Pro 16" — 1728px)
   Fluid responsive layout from ~360px to wide desktop.
   ============================================================= */

/* ---------------------------------------------- design tokens */
:root {
  /* palette */
  --c-base:        #57514a;   /* page background */
  --c-ink:         #ffffff;
  --c-accent:      #ffd2ae;   /* warm eyebrow / highlight */
  --c-accent-soft: #ffe9d6;
  --c-muted:       #9e9090;   /* hero tagline */
  --c-nav-ink:     #f2f2f2;
  --c-rule-warm:   #8f7f6b;   /* hero CTA border */
  --c-rule-gold:   #a08e76;   /* nav demo border */
  --c-nav-fill:    rgba(191, 191, 191, .2);
  --c-hairline:    rgba(255, 255, 255, .45);

  /* type — fluid across viewports */
  --font: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.125rem, 1.2rem + 4.2vw, 5.25rem);
  --lh-display: 1.05;
  --fs-h2:      clamp(2rem, 1.15rem + 3.2vw, 4.125rem);
  --fs-h2-sm:   clamp(1.75rem, 1.05rem + 2.6vw, 3.5rem);
  --fs-lead:    clamp(1.0625rem, 0.95rem + 0.45vw, 1.375rem);
  --fs-body:    clamp(1rem, 0.92rem + 0.35vw, 1.25rem);
  --fs-module:  clamp(0.9375rem, 0.85rem + 0.4vw, 1.25rem);
  --fs-brand:   17px;
  --fs-label:   15px;
  --fs-eyebrow: clamp(0.8125rem, 0.75rem + 0.25vw, 0.9375rem);
  --fs-micro:   clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);

  /* layout */
  --frame:  1728px;   /* Figma frame width */
  --gutter: clamp(1.25rem, 2.5vw, 6.875rem);
  --inner:  1508px;   /* frame - 2 x gutter */
  --pad-section: clamp(4.5rem, 8vw, 11.75rem);
  --pad-section-sm: clamp(3.5rem, 6vw, 8rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ------------------------------------------- smooth motion system */
.section:not(.hero) .reveal,
.module,
.wilderness__word {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity .55s cubic-bezier(.22, .61, .36, 1),
    transform .55s cubic-bezier(.22, .61, .36, 1);
}
.section:not(.hero) .reveal.is-visible,
.module.is-visible,
.wilderness__word.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.module:nth-child(2).is-visible { transition-delay: .06s; }
.module:nth-child(3).is-visible { transition-delay: .10s; }
.module:nth-child(4).is-visible { transition-delay: .14s; }
.module:nth-child(5).is-visible { transition-delay: .18s; }
.module:nth-child(6).is-visible { transition-delay: .22s; }

/* hero intro — runs once when page is ready */
.nav__inner > *,
.hero .eyebrow,
.hero__title-text,
.hero__body,
.hero__cta,
.hero__tagline-item,
.hero__tagline-sep {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity .5s cubic-bezier(.22, .61, .36, 1),
    transform .5s cubic-bezier(.22, .61, .36, 1);
}
.hero__title-text { transform: translate3d(0, 100%, 0); }

.is-ready .nav__inner > *:nth-child(1) { opacity: 1; transform: none; transition-delay: .05s; }
.is-ready .nav__inner > *:nth-child(2) { opacity: 1; transform: none; transition-delay: .10s; }
.is-ready .nav__inner > *:nth-child(3) { opacity: 1; transform: none; transition-delay: .15s; }
.is-ready .hero .eyebrow { opacity: 1; transform: none; transition-delay: .18s; }
.is-ready .hero__title-line:nth-child(1) .hero__title-text { opacity: 1; transform: none; transition-delay: .24s; }
.is-ready .hero__title-line:nth-child(2) .hero__title-text { opacity: 1; transform: none; transition-delay: .30s; }
.is-ready .hero__body { opacity: 1; transform: none; transition-delay: .36s; }
.is-ready .hero__cta { opacity: 1; transform: none; transition-delay: .42s; }
.is-ready .hero__tagline-item:nth-child(1) { opacity: 1; transform: none; transition-delay: .48s; }
.is-ready .hero__tagline-sep:nth-child(2) { opacity: 1; transform: none; transition-delay: .52s; }
.is-ready .hero__tagline-item:nth-child(3) { opacity: 1; transform: none; transition-delay: .56s; }
.is-ready .hero__tagline-sep:nth-child(4) { opacity: 1; transform: none; transition-delay: .60s; }
.is-ready .hero__tagline-item:nth-child(5) { opacity: 1; transform: none; transition-delay: .64s; }

body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-ink);
  font-family: var(--font);
  font-weight: 400;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }

a,
a:link,
a:visited,
a:active {
  color: #fff;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: #fff;
  color: #201d1a;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------- shared structure */
.section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 70vh;
  min-height: 70svh;
}

.section__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.section__inner {
  position: relative;
  width: 100%;
  max-width: var(--inner);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------- type primitives */
.eyebrow {
  color: var(--c-accent);
  font-size: var(--fs-micro);
  font-weight: 400;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow--lg { font-size: var(--fs-eyebrow); }

.h2 {
  font-size: var(--fs-h2);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.h2--sm { font-size: var(--fs-h2-sm); }

/* allow intentional line breaks to collapse on narrow screens */
@media (max-width: 640px) {
  .h2 br { display: none; }
}

.body {
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: .01em;
}
.body--544 { max-width: 544px; }

/* ---------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color .25s var(--ease),
              border-color .25s var(--ease),
              color .25s var(--ease),
              transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--outline,
.btn--outline:link,
.btn--outline:visited {
  position: relative;
  width: min(258px, 100%);
  height: 56px;
  border: 1px solid rgba(143, 127, 107, .55);
  border-radius: 100px;
  color: var(--c-ink);
  overflow: visible;
}
.btn__label {
  position: relative;
  z-index: 1;
}
.btn__trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.btn__trace-path {
  fill: none;
  stroke: var(--c-accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0;
  transition: opacity .2s ease;
}
.btn--outline:hover {
  background: rgba(255, 210, 174, .12);
  border-color: transparent;
}
.btn--outline:hover .btn__trace-path {
  opacity: 1;
  filter: drop-shadow(0 0 4px rgba(255, 210, 174, .55));
  animation: btnOutlineTrace .7s cubic-bezier(.22, .61, .36, 1) forwards;
}

@keyframes btnOutlineTrace {
  0%   { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn--outline:hover {
    border-color: var(--c-accent);
  }
  .btn--outline:hover .btn__trace-path {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

.btn--pill,
.btn--pill:link,
.btn--pill:visited {
  height: 49px;
  padding-inline: 24px;
  border: 1px solid var(--c-rule-gold);
  border-radius: 100px;
  color: var(--c-nav-ink);
  font-size: 13px;
  font-weight: 500;
}
.btn--pill:hover {
  background: rgba(255, 210, 174, .14);
  border-color: var(--c-accent);
  color: #fff;
}

/* ======================================================= NAV */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-top: clamp(16px, 3vw, 45px);
}

.nav__inner {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: clamp(16px, 2.5vw, 40px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(12px, 2vw, 24px);
}

.nav__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 12px;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}
.nav__toggle-bar {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #fff;
  transition: transform .25s var(--ease), opacity .2s ease;
}
.nav.is-open .nav__toggle-bar:nth-child(1) {
  transform: translateY(3.75px) rotate(45deg);
}
.nav.is-open .nav__toggle-bar:nth-child(2) {
  transform: translateY(-3.75px) rotate(-45deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: start;
}
.brand__logo {
  height: 48px;
  width: auto;
  opacity: .92;
  transition: opacity .25s var(--ease);
}
.brand:hover .brand__logo { opacity: 1; }

.mainnav {
  justify-self: center;
  height: 56px;
  padding-inline: 56px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 2px 10px rgba(0, 0, 0, .08);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}
.mainnav__list {
  display: flex;
  align-items: center;
  gap: 36px;
}
.mainnav__list a,
.mainnav__list a:link,
.mainnav__list a:visited {
  position: relative;
  display: block;
  color: var(--c-nav-ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: uppercase;
  transition: color .25s var(--ease);
}
.mainnav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.mainnav__list a:hover { color: #fff; }
.mainnav__list a:hover::after { transform: scaleX(1); }

.nav__demo { justify-self: end; }
.nav__actions .nav__demo { justify-self: auto; }

/* ====================================================== HERO */
.hero {
  min-height: 90vh;
  min-height: 90svh;   /* stable against mobile browser chrome */
  display: flex;
  flex-direction: column;
}

.hero__bg {
  background-color: #211d1f;

  /* fallback for browsers without image-set() */
  background-image:
    url("assets/img/hero-portal.jpg"),
    radial-gradient(58% 62% at 74% 38%, rgba(255, 231, 205, .30) 0%, rgba(255, 200, 150, .10) 38%, rgba(0,0,0,0) 68%),
    linear-gradient(180deg, #1b1a20 0%, #2f2a2b 45%, #4a4038 78%, #5a4f45 100%);

  background-image:
    image-set(url("assets/img/hero-portal.webp") type("image/webp"),
              url("assets/img/hero-portal.jpg")  type("image/jpeg")),
    radial-gradient(58% 62% at 74% 38%, rgba(255, 231, 205, .30) 0%, rgba(255, 200, 150, .10) 38%, rgba(0,0,0,0) 68%),
    linear-gradient(180deg, #1b1a20 0%, #2f2a2b 45%, #4a4038 78%, #5a4f45 100%);

  background-size: cover, cover, cover;
  background-position: center, center, center;
  transform: scale(1.07);
  will-change: transform;
}

/* narrow viewports: lighter source, and keep the portal in frame */
@media (max-width: 900px) {
  .hero__bg {
    background-image:
      url("assets/img/hero-portal@1x.jpg"),
      radial-gradient(58% 62% at 74% 38%, rgba(255, 231, 205, .30) 0%, rgba(255, 200, 150, .10) 38%, rgba(0,0,0,0) 68%),
      linear-gradient(180deg, #1b1a20 0%, #2f2a2b 45%, #4a4038 78%, #5a4f45 100%);
    background-image:
      image-set(url("assets/img/hero-portal@1x.webp") type("image/webp"),
                url("assets/img/hero-portal@1x.jpg")  type("image/jpeg")),
      radial-gradient(58% 62% at 74% 38%, rgba(255, 231, 205, .30) 0%, rgba(255, 200, 150, .10) 38%, rgba(0,0,0,0) 68%),
      linear-gradient(180deg, #1b1a20 0%, #2f2a2b 45%, #4a4038 78%, #5a4f45 100%);
    background-size: cover, cover, cover;
    background-position: 66% center, center, center;
  }
}

/* Interactive portal overlay — sits on the circle in the hero art */
.hero__portal {
  position: absolute;
  top: 46%;
  left: 72%;
  z-index: 1;
  width: min(42vw, 560px);
  height: min(42vw, 560px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
html.is-ready .hero__portal { opacity: 1; }

.hero__portal-glow {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 242, 220, .55) 0%,
    rgba(255, 220, 180, .28) 32%,
    rgba(180, 210, 255, .2) 52%,
    rgba(0, 0, 0, 0) 72%
  );
  opacity: .62;
  filter: blur(10px);
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform, opacity;
  animation: portalPulse 2.6s ease-in-out infinite alternate;
}
.hero__portal.is-active .hero__portal-glow {
  animation-play-state: paused;
}
.hero__portal-core {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 245, 230, .28) 0%,
    rgba(210, 230, 255, .18) 40%,
    rgba(255, 230, 200, .06) 62%,
    rgba(0, 0, 0, 0) 78%
  );
  opacity: .65;
  transform: translate3d(0, 0, 0) scale(1);
  will-change: transform, opacity;
}

@keyframes portalPulse {
  from { opacity: .55; }
  to   { opacity: .85; }
}

@media (max-width: 900px) {
  .hero__portal {
    top: 48%;
    left: 66%;
    width: min(58vw, 360px);
    height: min(58vw, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__portal-glow { animation: none; }
  .hero__bg { transform: none; will-change: auto; }
}

.hero .section__inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  /* scales with the shorter hero, never crowds the nav or the CTA */
  padding-top: clamp(150px, 22vh, 304px);
  padding-bottom: clamp(40px, 6vh, 62px);
}

.hero__content { max-width: min(900px, 100%); }

.hero__title {
  margin-top: 24px;
  font-size: var(--fs-display);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.hero__title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero__title-text {
  display: block;
}

@media (min-width: 1041px) {
  .hero__title-line,
  .hero__title-text {
    white-space: nowrap;
  }
}

.hero__body {
  margin-top: 22px;
  max-width: 659px;
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: .01em;
}

.hero__cta { margin-top: 35px; }

.hero__tagline {
  margin-top: auto;
  color: var(--c-muted);
  font-size: var(--fs-eyebrow);
  font-weight: 300;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero__tagline-sep { padding-inline: 8px; }
.hero__tagline-item,
.hero__tagline-sep {
  display: inline-block;
}

/* =================================================== JOURNEY */
.journey {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3.5rem, 7vh, 5.5rem);
}

.journey__bg {
  background-color: #3a332c;
  background-image:
    url("assets/img/journey-landscape.jpg"),
    linear-gradient(180deg, #1d2028 0%, #4a3a2e 52%, #7a5636 66%, #4b3d31 82%, #38312a 100%);
  background-image:
    image-set(url("assets/img/journey-landscape.webp") type("image/webp"),
              url("assets/img/journey-landscape.jpg")  type("image/jpeg")),
    linear-gradient(180deg, #1d2028 0%, #4a3a2e 52%, #7a5636 66%, #4b3d31 82%, #38312a 100%);
  background-size: cover, cover;
  background-position: center, center;
}
.journey__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
}

.journey__head .h2 { margin-top: 10px; }
.journey__head .body { margin-top: 20px; }

.journey__diagram {
  position: relative;
  width: min(98vw, 1680px);
  margin-inline: auto;
  margin-top: clamp(-48px, -5vw, -110px);
  pointer-events: none;
}
.journey__diagram svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

@media (min-width: 1400px) {
  .stage__num { font-size: 11px; }
  .stage__name { font-size: 12px; }
}

.journey__area,
.journey__baseline,
.journey__curve-glow {
  pointer-events: none;
}

.journey__curve,
.journey__curve-glow {
  transition: stroke-dashoffset 1.15s cubic-bezier(.22, .61, .36, 1);
}
.journey__curve.is-visible,
.journey__curve-glow.is-visible {
  stroke-dashoffset: 0 !important;
}

.journey__area,
.journey__baseline {
  opacity: 0;
  transition: opacity .6s cubic-bezier(.22, .61, .36, 1) .15s;
}
.journey__area.is-visible,
.journey__baseline.is-visible {
  opacity: 1;
}

.stage {
  opacity: 0;
  transition: opacity .4s cubic-bezier(.22, .61, .36, 1);
}
.stage.is-visible { opacity: 1; }
.stage[data-stage="1"].is-visible { transition-delay: .15s; }
.stage[data-stage="2"].is-visible { transition-delay: .28s; }
.stage[data-stage="3"].is-visible { transition-delay: .40s; }
.stage[data-stage="4"].is-visible { transition-delay: .52s; }
.stage[data-stage="5"].is-visible { transition-delay: .64s; }

.stage__num {
  fill: var(--c-accent);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
}
.stage__name {
  fill: rgba(255, 255, 255, .92);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
}

.journey__steps { display: none; }

/* ================================================ WILDERNESS */
.wilderness {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3.5rem, 7vh, 5.5rem);
  text-align: center;
}

.wilderness__bg {
  background-color: #6b5a45;
  background-image:
    url("assets/img/wilderness.jpg"),
    linear-gradient(180deg, #8a7354 0%, #9c8460 30%, #7d6a51 62%, #574b3d 100%);
  background-image:
    image-set(url("assets/img/wilderness.webp") type("image/webp"),
              url("assets/img/wilderness.jpg")  type("image/jpeg")),
    linear-gradient(180deg, #8a7354 0%, #9c8460 30%, #7d6a51 62%, #574b3d 100%);
  background-size: cover, cover;
  background-position: center, center;
}
.wilderness__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .2);
}

/* "The Wilderness" set vertically along the right edge */
.wilderness__word {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-height: calc(100% - 48px);
  margin-block: auto;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.wilderness__head { max-width: min(900px, 100%); margin-inline: auto; }
.wilderness__head .h2 { margin-top: 12px; }
.wilderness__head .body {
  margin-top: 20px;
  margin-inline: auto;
  text-align: center;
}

/* module grid — 3 x 2 with dashed separators */
.modules {
  --mod-col-gap: clamp(1.5rem, 8vw, 172px);
  --mod-row-gap: clamp(1.25rem, 5vw, 101px);
  position: relative;
  width: min(1091px, 100%);
  max-width: 100%;
  margin: clamp(2rem, 4vw, 58px) auto 0;
  padding-block: clamp(1.5rem, 3vw, 37px) clamp(2.5rem, 6vw, 97px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--mod-col-gap);
  row-gap: var(--mod-row-gap);
}

/* dashed vertical rules between columns */
.modules::before,
.modules::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, .45);
}
.modules::before { left: 30.89%; }
.modules::after  { left: 69.66%; }

.module {
  position: relative;
  min-height: 64px;
  height: clamp(64px, 6vw, 79px);
  padding-inline: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.25px solid rgba(255, 233, 214, .75);
  border-radius: 10px;
  font-size: var(--fs-module);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-align: center;
  background: rgba(255, 255, 255, 0);
  box-shadow: 0 0 6px rgba(255, 210, 174, .35);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.module.is-visible:hover {
  background: rgba(255, 210, 174, .08);
  border-color: rgba(255, 233, 214, .95);
  box-shadow: 0 0 10px rgba(255, 210, 174, .5);
  transform: translate3d(0, -2px, 0);
}

.module__label {
  position: relative;
  z-index: 1;
}

/* dashed horizontal rule between the two rows */
.modules > .module:nth-child(4)::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--mod-row-gap) / -2);
  width: calc(300% + 2 * var(--mod-col-gap));
  height: 0;
  border-top: 1px dashed rgba(255, 255, 255, .45);
}

/* ================================================== PLATFORM */
.platform {
  /* match platform-trails art (2560×1547) so the full image shows */
  min-height: 0;
  aspect-ratio: 2560 / 1547;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: clamp(3.5rem, 7vh, 5.5rem);
  padding-bottom: clamp(2rem, 4vh, 3rem);
  text-align: center;
}

.platform__bg {
  background-color: #1a2733;
  background-image:
    url("assets/img/platform-trails.jpg"),
    radial-gradient(45% 55% at 74% 46%, rgba(150, 200, 255, .35) 0%, rgba(60, 110, 170, .18) 45%, rgba(0,0,0,0) 75%),
    linear-gradient(180deg, #14202c 0%, #2d3a42 40%, #6b5236 74%, #3a2f26 100%);
  background-image:
    image-set(url("assets/img/platform-trails.webp") type("image/webp"),
              url("assets/img/platform-trails.jpg")  type("image/jpeg")),
    radial-gradient(45% 55% at 74% 46%, rgba(150, 200, 255, .35) 0%, rgba(60, 110, 170, .18) 45%, rgba(0,0,0,0) 75%),
    linear-gradient(180deg, #14202c 0%, #2d3a42 40%, #6b5236 74%, #3a2f26 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%;
  background-position: center, center, center;
}

.platform__paths {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .5s ease;
}
.platform__paths.is-visible {
  opacity: 1;
}
.platform__light {
  stroke-width: 3.5;
  opacity: .8;
  stroke-dasharray: 120 1800;
  stroke-dashoffset: 0;
  animation: platformFlow 4.5s cubic-bezier(.4, 0, .2, 1) infinite;
  animation-play-state: paused;
}
.platform__paths.is-visible .platform__light {
  animation-play-state: running;
}
.platform__light:nth-child(2) { animation-delay: .25s; animation-duration: 4.8s; }
.platform__light:nth-child(3) { animation-delay: .5s;  animation-duration: 5.1s; }
.platform__light:nth-child(4) { animation-delay: .7s;  animation-duration: 4.6s; }
.platform__light:nth-child(5) { animation-delay: .9s;  animation-duration: 5s; }
.platform__light:nth-child(6) { animation-delay: 1.1s; animation-duration: 4.7s; }
.platform__light:nth-child(7) { animation-delay: 1.3s; animation-duration: 5.2s; }
.platform__light:nth-child(8) { animation-delay: 1.5s; animation-duration: 4.9s; }
.platform__light:nth-child(9) { animation-delay: 1.7s; animation-duration: 5.4s; }

@keyframes platformFlow {
  to { stroke-dashoffset: -1920; }
}

.platform .section__inner {
  position: relative;
  z-index: 2;
}

.platform__head .h2 { margin-top: 12px; }

/* =================================================== CLOSING */
.closing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(4rem, 8vh, 6rem);
}

.closing__bg {
  background-color: #2b2f33;
  background-image:
    url("assets/img/closing-valley.jpg"),
    linear-gradient(180deg, #1e2733 0%, #3b4048 45%, #5a4c3f 78%, #6a5a49 100%);
  background-image:
    image-set(url("assets/img/closing-valley.webp") type("image/webp"),
              url("assets/img/closing-valley.jpg")  type("image/jpeg")),
    linear-gradient(180deg, #1e2733 0%, #3b4048 45%, #5a4c3f 78%, #6a5a49 100%);
  background-size: cover, cover;
  background-position: center, center;
}
.closing__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .3);
}

.closing__head { padding-left: clamp(0px, 6vw, 108px); }
.closing__head .h2   { margin-top: 18px; }
.closing__head .body { margin-top: 20px; }

/* =============================================================
   Responsive — progressive fluid step-downs
   ============================================================= */

@media (max-width: 1500px) {
  .wilderness__word { max-height: calc(100% - 40px); }
  .modules::before { left: 32.4%; }
  .modules::after  { left: 67.6%; }
}

@media (max-width: 1200px) {
  .hero .section__inner { padding-top: clamp(120px, 18vh, 220px); }

  .closing__head { padding-left: 0; }

  .mainnav {
    height: 48px;
    padding-inline: clamp(18px, 2.5vw, 28px);
    border-radius: 12px;
  }
  .mainnav__list { gap: clamp(14px, 2vw, 26px); }
  .mainnav__list a { font-size: 12px; }
  .btn--pill { height: 44px; padding-inline: 18px; font-size: 12px; }
  .brand__logo { height: 42px; }
}

/* tablet + mobile: hamburger menu */
@media (max-width: 1040px) {
  .nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 12px;
  }
  .nav__toggle { display: inline-flex; }

  .mainnav {
    position: absolute;
    top: calc(100% + 10px);
    left: clamp(16px, 2.5vw, 40px);
    right: clamp(16px, 2.5vw, 40px);
    height: auto;
    padding: 14px;
    border-radius: 16px;
    justify-self: stretch;
    display: none;
    z-index: 30;
  }
  .nav.is-open .mainnav { display: block; }
  .mainnav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .mainnav__list a {
    font-size: 14px;
    padding: 14px 12px;
    border-radius: 10px;
  }
  .mainnav__list a::after { display: none; }
  .mainnav__list a:hover { background: rgba(255, 255, 255, .08); }
  .mainnav__list li + li a {
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .brand,
  .nav__demo { justify-self: auto; }
  .btn--pill { height: 40px; padding-inline: 16px; font-size: 11px; }
  .brand__logo { height: 36px; }

  .hero .section__inner {
    padding-top: clamp(100px, 18vh, 150px);
    padding-bottom: clamp(28px, 5vh, 40px);
  }
  .hero__content { max-width: 100%; }
  .hero__title { margin-top: 16px; }
  .hero__body  { margin-top: 16px; max-width: 36rem; }
  .hero__cta   { margin-top: 22px; width: 100%; max-width: 300px; }
  .hero__tagline {
    margin-top: clamp(32px, 8vh, 48px);
    font-size: 12px;
    letter-spacing: .08em;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 0;
    align-items: center;
  }

  /* diagram → vertical step list */
  .journey__diagram { display: none; }
  .journey__steps {
    display: block;
    margin-top: clamp(28px, 6vw, 40px);
    border-left: 1px solid var(--c-hairline);
    padding-left: 22px;
  }
  .journey__steps li {
    position: relative;
    padding: 16px 0;
    font-size: clamp(15px, 3.8vw, 17px);
    letter-spacing: .06em;
    text-transform: uppercase;
  }
  .journey__steps li + li { border-top: 1px solid rgba(255,255,255,.14); }
  .journey__steps li::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -4.5px;
    border-radius: 50%;
    background: var(--c-accent-soft);
    box-shadow: 0 0 0 5px rgba(158, 198, 255, .22);
  }
  .journey__num { color: var(--c-accent); margin-right: 10px; }

  .wilderness__word {
    max-height: calc(100% - 32px);
    max-width: 48px;
    opacity: .7;
    right: 4px;
  }
  .wilderness__head { max-width: 100%; padding-right: clamp(40px, 12vw, 64px); }

  .modules {
    width: 100%;
    margin-top: clamp(2rem, 6vw, 3rem);
    padding-block: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 12px;
  }
  .modules::before,
  .modules::after { display: none; }
  .modules > .module:nth-child(4)::before { display: none; }
  .module { height: 64px; border-width: 1.25px; }
}

@media (max-width: 900px) {
  .journey__bg,
  .wilderness__bg,
  .closing__bg {
    background-size: cover, cover, cover;
    background-position: center, center, center;
  }
  .journey__bg    { background-image: image-set(url("assets/img/journey-landscape@1x.webp") type("image/webp"),
              url("assets/img/journey-landscape@1x.jpg")  type("image/jpeg")), linear-gradient(180deg, #1d2028 0%, #4a3a2e 52%, #7a5636 66%, #4b3d31 82%, #38312a 100%); }
  .wilderness__bg { background-image: image-set(url("assets/img/wilderness@1x.webp") type("image/webp"),
              url("assets/img/wilderness@1x.jpg")  type("image/jpeg")), linear-gradient(180deg, #8a7354 0%, #9c8460 30%, #7d6a51 62%, #574b3d 100%); }
  .platform__bg   { background-image: image-set(url("assets/img/platform-trails@1x.webp") type("image/webp"),
              url("assets/img/platform-trails@1x.jpg")  type("image/jpeg")), radial-gradient(45% 55% at 74% 46%, rgba(150, 200, 255, .35) 0%, rgba(60, 110, 170, .18) 45%, rgba(0,0,0,0) 75%), linear-gradient(180deg, #14202c 0%, #2d3a42 40%, #6b5236 74%, #3a2f26 100%); }
  .closing__bg    { background-image: image-set(url("assets/img/closing-valley@1x.webp") type("image/webp"),
              url("assets/img/closing-valley@1x.jpg")  type("image/jpeg")), linear-gradient(180deg, #1e2733 0%, #3b4048 45%, #5a4c3f 78%, #6a5a49 100%); }

  /* keep full image; allow room for copy on short viewports */
  .platform {
    min-height: min(70svh, 520px);
    aspect-ratio: 2560 / 1547;
  }
}

@media (max-width: 480px) {
  .nav__demo { display: none; }
  .modules { grid-template-columns: 1fr; }
  .wilderness__word { display: none; }
  .wilderness__head { padding-right: 0; }
  .hero__tagline { row-gap: 6px; }
  .btn--outline { height: 52px; }
  .platform__light { stroke-width: 2.5; }
}

/* ------------------------------------------------ motion off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .section:not(.hero) .reveal,
  .module,
  .wilderness__word,
  .nav__inner > *,
  .hero .eyebrow,
  .hero__title-text,
  .hero__body,
  .hero__cta,
  .hero__tagline-item,
  .hero__tagline-sep,
  .stage,
  .journey__area,
  .journey__baseline,
  .platform__paths {
    opacity: 1 !important;
    transform: none !important;
  }
  .platform__light { animation: none !important; opacity: .5; }
}
