/* ==========================================================
   INTYX HOME — Page styles
   Every rule is specific, intentional, no filler
========================================================== */

html { scroll-behavior: auto; }
body { background: #040d18; }

/* ─── PROGRESS ─── */
#ix-prog {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    #0096c7 20%,
    #00e5ff 50%,
    #0096c7 80%,
    transparent 100%);
  z-index: 300;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* ─── HERO ─── */
.ix-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.ix-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  letter-spacing: .28em;
  color: #0096c7;
  font-weight: 700;
  margin-bottom: 32px;
  opacity: 0;
  animation: ixFade .6s .5s forwards;
}

.ix-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(44px, 9vw, 110px);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.05em;
  color: #eaf4fc;
  margin-bottom: 28px;
  opacity: 0;
  animation: ixFade .8s .7s forwards;
}

.ix-h1 em {
  font-style: normal;
  /* Matches the teal from the campsite image — consistent brand */
  background: linear-gradient(125deg, #0096c7 0%, #00c8d4 45%, #7af0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ix-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  color: #3a5e78;
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 52px;
  opacity: 0;
  animation: ixFade .8s .9s forwards;
}

.ix-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
  opacity: 0;
  animation: ixFade .8s 1.1s forwards;
}

.ix-stats {
  display: flex;
  gap: clamp(32px, 6vw, 80px);
  padding-top: 40px;
  border-top: 1px solid rgba(0,150,200,.1);
  opacity: 0;
  animation: ixFade .8s 1.3s forwards;
}

.ix-stat-n {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1;
  color: #0096c7;
}

.ix-stat-l {
  font-size: 9px;
  letter-spacing: .14em;
  color: #1e3a50;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  margin-top: 6px;
}

.ix-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: ixFade .6s 1.8s forwards;
}

.ix-scroll-hint span {
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  letter-spacing: .22em;
  color: #1a3040;
  font-weight: 700;
}

.ix-chevron {
  width: 10px; height: 10px;
  border-right: 1px solid #1a3040;
  border-bottom: 1px solid #1a3040;
  transform: rotate(45deg);
  animation: chevron 2.4s ease-in-out infinite;
}

@keyframes chevron {
  0%,100% { transform: rotate(45deg) translate(0,0); opacity:.4; }
  50%      { transform: rotate(45deg) translate(2px,2px); opacity:1; }
}

/* ─── ANIMATIONS ─── */
@keyframes ixFade {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: none; }
}

/* ─── SHARED LABEL ─── */
.ix-label {
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  letter-spacing: .24em;
  font-weight: 700;
  color: #0096c7;
  display: block;
  margin-bottom: 18px;
}

.ix-section { padding: 120px 24px; }

/* ─── ORBIT ─── */
.ix-orbit-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 80px 24px;
}

.ix-orbit-svg-wrap {
  width: min(480px, 88vw);
  height: min(480px, 88vw);
  flex-shrink: 0;
}
.ix-orbit-svg-wrap svg { width:100%; height:100%; overflow:visible; }

/* Orbit nodes spring in with cubic-bezier bounce */
.ix-onode {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.4) translateY(10px);
  transition:
    opacity .6s cubic-bezier(.22,1,.36,1),
    transform .6s cubic-bezier(.34,1.56,.64,1);
}
.ix-onode.on { opacity:1; transform: scale(1) translateY(0); }

.ix-orbit-text { text-align:center; max-width:500px; }
.ix-orbit-text h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  color: #eaf4fc;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.ix-orbit-text p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: #2e4e64;
  line-height: 1.8;
}

/* ─── STICKY SLIDES ─── */
#ix-products { height: 600vh; position: relative; }

#ix-products-sticky {
  position: sticky;
  top: 0; height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Each slide is absolutely positioned — only one visible at a time */
.ix-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 80px;
  text-align: center;
  pointer-events: none;
  will-change: transform, opacity;
}

/* ALL child elements share the same transition timing */
.ix-slide > * {
  transition:
    opacity .5s cubic-bezier(.22,1,.36,1),
    transform .5s cubic-bezier(.22,1,.36,1);
}

/* Default: waiting below */
.ix-slide .ix-slide-tag { opacity:0; transform: translateY(40px); transition-delay:.00s; }
.ix-slide h2            { opacity:0; transform: translateY(48px); transition-delay:.06s; }
.ix-slide .ix-slide-desc{ opacity:0; transform: translateY(36px); transition-delay:.12s; }
.ix-slide .ix-slide-pills{opacity:0; transform: translateY(28px); transition-delay:.18s; }

/* Active: everything in */
.ix-slide.active .ix-slide-tag,
.ix-slide.active h2,
.ix-slide.active .ix-slide-desc,
.ix-slide.active .ix-slide-pills {
  opacity:1; transform: translateY(0);
}

/* Past: everything above, fast exit */
.ix-slide.past .ix-slide-tag,
.ix-slide.past h2,
.ix-slide.past .ix-slide-desc,
.ix-slide.past .ix-slide-pills {
  opacity:0;
  transform: translateY(-36px);
  transition-duration: .3s;
  transition-delay: 0s;
}

.ix-slide-tag {
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  letter-spacing: .22em;
  font-weight: 700;
  margin-bottom: 22px;
}

.ix-slide h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(38px, 8vw, 92px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: .93;
  color: #eaf4fc;
  margin-bottom: 26px;
}

.ix-slide-desc {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(14px, 1.7vw, 17px);
  color: #2e4e64;
  max-width: 540px;
  line-height: 1.75;
}

.ix-slide-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.ix-pill {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0,150,200,.18);
  color: #2a6e8a;
  background: rgba(0,120,180,.05);
  letter-spacing: .04em;
}

/* Slide counter dots */
.ix-dots {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
}

.ix-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(0,150,200,.2);
  transition: background .4s, transform .4s, width .4s;
}
.ix-dot.active {
  background: #0096c7;
  width: 20px;
  border-radius: 2px;
}

/* ─── WHY ─── */
.ix-why { max-width: 1040px; margin: 0 auto; }

.ix-why-head { text-align:center; margin-bottom: 88px; }
.ix-why-head h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900;
  color: #eaf4fc;
  letter-spacing: -.035em;
  margin-bottom: 16px;
}
.ix-why-head p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: #2e4e64;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.8;
}

.ix-why-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  /* No gap — cards separated by left border only */
}

.ix-why-card {
  padding: 48px 36px;
  border-left: 1px solid rgba(0,150,200,.12);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s, transform .7s;
}
.ix-why-card.in { opacity:1; transform: none; }

.ix-why-n {
  font-family: 'Outfit', sans-serif;
  font-size: 88px;
  font-weight: 900;
  color: rgba(0,150,200,.06);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -.06em;
}
.ix-why-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #c0d8ec;
  margin-bottom: 14px;
}
.ix-why-card p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  color: #2a4a60;
  line-height: 1.8;
}

/* ─── CTA ─── */
.ix-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid rgba(0,150,200,.12);
  border-radius: 20px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: rgba(2,14,28,.6);
  backdrop-filter: blur(8px);
}
.ix-cta-inner::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 220px;
  background: radial-gradient(ellipse,
    rgba(0,150,200,.12) 0%,
    transparent 65%);
  pointer-events: none;
}
.ix-cta-inner h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 900;
  color: #eaf4fc;
  letter-spacing: -.035em;
  margin-bottom: 14px;
  position: relative;
}
.ix-cta-inner p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  color: #2e4e64;
  margin-bottom: 36px;
  line-height: 1.7;
  position: relative;
}
.ix-cta-btns { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.ix-cta-note {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  color: #162838;
  margin-top: 22px;
  letter-spacing: .06em;
}

/* ─── CAMPSITE FOOTER ─── */
#ix-campsite { position:relative; width:100%; overflow:hidden; }
#campsite-canvas { display:block; width:100%; }

.ix-footer-nav {
  position: absolute;
  bottom: 48px; left:0; right:0;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  z-index: 2;
}
.ix-footer-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(100,180,210,.25);
  text-decoration: none;
  transition: color .3s;
}
.ix-footer-nav a:hover { color: rgba(100,180,210,.6); }

.ix-footer-copy {
  position: absolute;
  bottom: 16px; left:0; right:0;
  text-align: center;
  z-index: 2;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: .1em;
  color: rgba(40,70,90,.4);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .ix-why-grid { grid-template-columns: 1fr; }
  .ix-why-card { border-left:none; border-top:1px solid rgba(0,150,200,.12); padding:36px 16px; }
  .ix-cta-inner { padding:48px 20px; }
  .ix-slide h2 { line-height: .95; }
}
