/* ============================================================
   LavaWave — Section layouts
   Each section is its own distinct moment.
   ============================================================ */

/* ============ 1 · HERO — "Surface" ============ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 8rem var(--gutter) 6rem; position: relative; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-grade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 64% at 50% 52%, rgba(5,10,22,0.7), rgba(5,10,22,0.22) 58%, transparent 82%),
    linear-gradient(180deg, rgba(5,10,22,0.55) 0%, rgba(6,11,24,0.28) 38%, rgba(6,11,24,0.72) 82%, var(--ocean-abyss) 100%);
}
/* Lift the hero content above the video */
.hero-eyebrow, .hero-title, .hero-sub, .hero-scroll { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1.2rem 0.45rem 0.6rem; margin-bottom: 2.5rem;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 100px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.eyebrow-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ocean-surface), var(--lava-orange));
  display: flex; align-items: center; justify-content: center;
}
.eyebrow-dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lava-glow);
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse { 0%,100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
.eyebrow-text { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(4rem, 12vw, 10rem); letter-spacing: -0.05em; line-height: 0.9;
  filter: drop-shadow(0 3px 22px rgba(0,0,0,0.55));
}
.hero-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-line-inner { display: block; }
.hero-line:nth-child(1) .hero-line-inner { color: var(--text-bright); }
.hero-line:nth-child(2) .hero-line-inner {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 60px rgba(255,107,44,0.15)); background-size: 200% 100%;
}
.hero-sub {
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  color: var(--text-secondary); max-width: 520px; line-height: 1.6; margin-top: 1.6rem;
}
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.hero-scroll span { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--ocean-light), transparent); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--lava-orange); animation: scrollDrop 2s ease-in-out infinite; }
@keyframes scrollDrop { 0% { top: -50%; } 100% { top: 150%; } }

/* ============ 2 · MANIFESTO — "The Descent" ============ */
.manifesto { padding-top: 12rem; padding-bottom: 12rem; }
.manifesto .section-inner { max-width: 1000px; }
.manifesto-eyebrow { margin-bottom: 2.5rem; }
.manifesto-line {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 3.7rem); line-height: 1.22; letter-spacing: -0.02em;
  color: var(--text-bright);
}
.manifesto-line .m-word { display: inline-block; }
.manifesto-line em {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  background: var(--grad-lava); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.manifesto-support {
  margin-top: 2.5rem; max-width: 560px; font-size: 1.05rem; line-height: 1.85; color: var(--text-secondary);
}

/* ============ 3 · CURRENTS — capabilities (editorial list, normal scroll) ============ */
.currents { padding: 9rem var(--gutter); }
.currents-head { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 3.5rem; }
.currents-head h2 { max-width: 660px; }
.cap-list { list-style: none; border-top: 1px solid var(--hairline); }
.cap-row {
  display: grid; grid-template-columns: 68px minmax(200px, 0.8fr) 1fr 34px; gap: 2rem; align-items: baseline;
  padding: 2.3rem 0.25rem; position: relative;
}
/* base divider — draws itself in as the row arrives */
.cap-row::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--hairline);
  transform: scaleX(0); transform-origin: left; transition: transform 0.9s var(--ease-out-expo);
}
.cap-row.is-in::before { transform: scaleX(1); }
/* lava line fills for the row that's mid-screen (and on hover) */
.cap-row::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--grad-lava); transition: width 0.6s var(--ease-out-expo);
}
.cap-row.is-active::after,
.cap-row:hover::after { width: 100%; }

.cap-index {
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.12em;
  color: var(--text-muted); transition: color 0.45s var(--ease-out-expo);
}
.cap-row.is-active .cap-index,
.cap-row:hover .cap-index { color: var(--lava-orange); }

.cap-title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  letter-spacing: -0.02em; line-height: 1.1; color: var(--text-secondary);
  overflow: hidden; padding-bottom: 0.14em;
  transition: color 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.cap-title-inner { display: inline-block; }
.cap-row.is-active .cap-title { color: var(--text-bright); transform: translateX(6px); }
.cap-row:hover .cap-title { color: var(--text-bright); transform: translateX(12px); }

.cap-desc { font-size: 1rem; line-height: 1.7; color: var(--text-secondary); transition: color 0.5s ease; }
.cap-row.is-active .cap-desc,
.cap-row:hover .cap-desc { color: var(--text-primary); }

.cap-arrow {
  justify-self: end; color: var(--lava-orange); font-size: 1.25rem; line-height: 1;
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}
.cap-row.is-active .cap-arrow,
.cap-row:hover .cap-arrow { opacity: 1; transform: translateX(0); }

/* ============ 4 · CORE — principles (sticky heading + flowing, normal scroll) ============ */
.core { padding: 9rem var(--gutter); }
.core-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
.core-aside { position: sticky; top: 24vh; align-self: start; display: flex; flex-direction: column; gap: 1.4rem; }
.core-aside h2 { max-width: 340px; }
.core-rail { display: flex; gap: 0.6rem; margin-top: 0.6rem; }
.core-tick { width: 34px; height: 3px; border-radius: 3px; background: rgba(255,255,255,0.1); transition: background 0.45s var(--ease-out-expo); }
.core-tick.is-active { background: var(--grad-lava); }
.core-list { display: flex; flex-direction: column; gap: 4.5rem; padding: 0.5rem 0; }
.principle { display: flex; flex-direction: column; gap: 1rem; }
.principle-num { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--lava-orange); letter-spacing: 0.08em; }
.principle-title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.2rem);
  letter-spacing: -0.03em; line-height: 1; color: var(--text-secondary);
  transition: color 0.5s var(--ease-out-expo);
}
.principle-title em { font-family: var(--font-serif); font-weight: 400; font-style: italic; color: inherit; }
.principle.is-active .principle-title { color: var(--text-bright); }
.principle.is-active .principle-title em { color: var(--ocean-glow); }
.principle-desc { font-size: 1.1rem; line-height: 1.75; color: var(--text-secondary); max-width: 480px; }

/* ============ 5 · AVENLY — living phone ============ */
.avenly { overflow: hidden; }
.avenly-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.avenly-info { display: flex; flex-direction: column; }
.product-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content;
  padding: 0.35rem 0.9rem; margin-bottom: 1.5rem; border-radius: 100px;
  background: rgba(255,107,44,0.06); border: 1px solid rgba(255,107,44,0.14);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lava-amber);
}
.badge-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--lava-orange); animation: dotPulse 2s ease-in-out infinite; }
.product-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 3.6rem); letter-spacing: -0.04em; color: var(--text-bright); line-height: 1; }
.product-tagline { font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--ocean-glow); margin: 0.5rem 0 1.4rem; }
.product-desc { font-size: 1.02rem; line-height: 1.8; color: var(--text-secondary); max-width: 460px; margin-bottom: 1.8rem; }
.product-features { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.feature-tag {
  padding: 0.45rem 0.95rem; background: rgba(255,255,255,0.03); border: 1px solid var(--hairline);
  border-radius: 8px; font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); letter-spacing: 0.01em;
}

.avenly-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 560px; }
.avenly-stage::before {
  content: ''; position: absolute; width: 70%; height: 70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,44,0.16), rgba(255,107,44,0.04) 45%, transparent 70%);
  filter: blur(20px);
}
.phone {
  position: relative; width: 264px; height: 540px; border-radius: 42px;
  background: linear-gradient(155deg, #131c30 0%, #0f1830 55%, #0b1226 100%);
  border: 1.5px solid rgba(255,255,255,0.1);
  box-shadow: 0 50px 90px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.03), inset 0 1px 0 rgba(255,255,255,0.06);
  padding: 0.5rem; will-change: transform;
}
.phone-notch { width: 110px; height: 26px; background: #06090f; border-radius: 0 0 16px 16px; margin: 0 auto 0.5rem; }
.phone-screen { height: calc(100% - 26px - 0.5rem); border-radius: 34px; background: linear-gradient(180deg, #0b1428, #0a1020); padding: 1.3rem 1.15rem; display: flex; flex-direction: column; gap: 0.85rem; overflow: hidden; position: relative; }
.pg-greeting { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--text-bright); }
.pg-greeting span { color: var(--text-muted); font-weight: 400; font-size: 0.72rem; display: block; margin-top: 2px; }
.pg-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 0.85rem 0.9rem; }
.pg-card-label { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); display: flex; justify-content: space-between; }
.pg-card-label b { color: var(--text-secondary); font-weight: 600; }
.pg-bar { height: 5px; border-radius: 5px; background: rgba(255,255,255,0.07); margin-top: 0.6rem; overflow: hidden; }
.pg-bar i { display: block; height: 100%; width: 0%; border-radius: 5px; }
.fill-lava { background: linear-gradient(90deg, var(--lava-orange), var(--lava-amber)); }
.fill-ocean { background: linear-gradient(90deg, var(--ocean-surface), var(--ocean-glow)); }
.fill-mixed { background: linear-gradient(90deg, var(--ocean-light), var(--lava-orange)); }
.pg-nav { display: flex; justify-content: space-around; margin-top: auto; padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05); }
.pg-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.pg-dot.active { background: var(--lava-orange); box-shadow: 0 0 8px rgba(255,107,44,0.5); }
.pg-toast {
  position: absolute; left: 0.9rem; right: 0.9rem; top: 0.9rem;
  background: rgba(20,32,56,0.92); border: 1px solid rgba(255,159,67,0.25); border-radius: 12px;
  padding: 0.65rem 0.8rem; display: flex; gap: 0.6rem; align-items: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4); opacity: 0; transform: translateY(-16px);
}
.pg-toast-icon { width: 22px; height: 22px; border-radius: 6px; background: var(--grad-lava); flex: 0 0 auto; }
.pg-toast-text { font-size: 0.62rem; line-height: 1.35; color: var(--text-primary); }
.pg-toast-text b { color: var(--text-bright); display: block; font-size: 0.66rem; }

/* ============ 6 · PROOF — "Depth" ============ */
.proof { padding-top: 7rem; padding-bottom: 7rem; text-align: center; }
.proof-statement {
  max-width: 720px; margin: 0 auto 3.5rem; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.4; letter-spacing: -0.02em; color: var(--text-primary);
}
.proof-statement em { font-family: var(--font-serif); font-style: italic; color: var(--lava-amber); }
.marquee { position: relative; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; align-items: center; gap: 2.6rem; white-space: nowrap; will-change: transform; }
.marquee-item { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -0.01em; color: var(--text-bright); opacity: 0.85; }
.marquee-sep { color: var(--lava-orange); font-size: 1.2rem; }

/* ============ 7 · CONTACT — "Return to Surface" ============ */
.contact { text-align: center; padding-top: 10rem; padding-bottom: 8rem; }
.contact h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: -0.04em; line-height: 1.02; color: var(--text-bright); max-width: 900px; margin: 0.8rem auto 0; }
.contact h2 em { font-family: var(--font-serif); font-weight: 400; font-style: italic; background: var(--grad-lava); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.contact-sub { margin: 1.8rem auto 2.6rem; max-width: 480px; font-size: 1.05rem; line-height: 1.7; color: var(--text-secondary); }
.contact-email { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3.4vw, 2.2rem); }
.contact-actions { display: flex; gap: 1rem; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; }

/* ============ 8 · FOOTER ============ */
footer { padding: 4rem var(--gutter) 3rem; position: relative; z-index: var(--z-content); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--hairline-soft); margin-bottom: 2rem; }
.footer-brand { max-width: 340px; }
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.footer-contact-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.8rem; }
.footer-contact { text-align: right; }
.footer-email { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-copy, .footer-location { font-size: 0.78rem; color: var(--text-muted); }
.footer-location { display: flex; align-items: center; gap: 0.4rem; }
.footer-location::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ocean-light); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .avenly-grid { grid-template-columns: 1fr; gap: 3rem; }
  .avenly-stage { min-height: 480px; order: -1; }
  .core-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .core-aside { position: static; top: auto; }
}
@media (max-width: 768px) {
  section { padding: 6rem var(--gutter); }
  .nav-links { display: none; }
  .manifesto { padding-top: 8rem; padding-bottom: 8rem; }
  .footer-top { flex-direction: column; }
  .footer-contact { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .phone { width: 220px; height: 452px; }
  /* Capabilities list stacks on mobile */
  .cap-row { grid-template-columns: 1fr; gap: 0.6rem; padding: 1.8rem 0.25rem; }
  .cap-arrow { display: none; }
  .core-list { gap: 3rem; }
}
