/* =========================
   WhiteBlend — styles.css
   Hero simple + Enter (right scroll)
   ========================= */

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body{
  margin: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial;
  background: #f6f7f8;
  color: rgba(10,10,12,0.92);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* Tokens */
:root{
  --container: 1120px;
  --pad: clamp(16px, 3vw, 22px);

  --muted: rgba(10,10,12,0.56);

  --glass: rgba(255,255,255,0.55);
  --glass-2: rgba(255,255,255,0.78);
  --blur: 22px;

  --shadow: 0 18px 50px rgba(8,10,20,0.10);

  --title: clamp(2.2rem, 4vw, 4rem);
  --h2: clamp(1.4rem, 2.1vw, 2.1rem);
}

/* Background texture */
body::after{
  content:"";
  position:fixed;
  inset:0;
  background-image: radial-gradient(rgba(0,0,0,0.05) 0.6px, transparent 0.7px);
  background-size: 26px 26px;
  opacity: 0.10;
  pointer-events:none;
  z-index:-1;
}

/* Helpers */
.container{
  width: min(var(--container), calc(100% - (var(--pad) * 2)));
  margin-inline:auto;
}

.section{
  padding: clamp(90px, 12vh, 140px) 0;
}

.section-title{
  font-size: var(--h2);
  margin: 0 0 18px 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.kicker{
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px 0;
}

.muted{ color: var(--muted); }

.micro{
  font-size: 0.9rem;
  color: rgba(10,10,12,0.45);
  margin-top: 24px;
}

.lead{ font-size: 1.08rem; margin:0 0 10px 0; }

/* Liquid Glass */
.glass{
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid rgba(10,10,12,0.10);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.7);
  backdrop-filter: blur(var(--blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.2);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}
.glass::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(800px 140px at 15% 0%, rgba(255,255,255,0.7), transparent 55%),
    radial-gradient(600px 120px at 85% 0%, rgba(255,255,255,0.4), transparent 55%);
  opacity: 0.75;
  pointer-events:none;
}
.glass::after{
  content:"";
  position:absolute;
  inset:0;
  background-image: radial-gradient(rgba(0,0,0,0.05) 0.7px, transparent 0.8px);
  background-size: 18px 18px;
  opacity: 0.08;
  pointer-events:none;
}

/* Header / Nav */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 14px 0;
}
.header-inner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 14px;
}
.brand-logo{ width: 140px; opacity: 0.95; }

@media (max-width: 720px){
  .site-header{ padding: 10px 0; }
  .brand-logo{ width: 112px; }
}

.site-nav{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) scale(1);
  display:flex;
  gap: 6px;
  padding: 10px 10px;
  transition: top 320ms ease, bottom 320ms ease, transform 320ms ease;
}
body.scrolled .site-nav{
  top: 14px;
  bottom: auto;
  transform: translateX(-50%) scale(0.985);
}
.site-nav a{
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: rgba(10,10,12,0.85);
  transition: background 220ms ease, transform 220ms ease;
}
.site-nav a:hover{ background: rgba(0,0,0,0.05); transform: translateY(-1px); }
.site-nav a.cta{ background: rgba(0,0,0,0.08); }

@media (max-width: 720px){
  .site-nav{
    width: calc(100% - 24px);
    left: 12px;
    transform: none;
    justify-content: space-between;
  }
  body.scrolled .site-nav{ left: 12px; transform:none; }
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(10,10,12,0.12);
  font-size: 0.98rem;
  color: rgba(10,10,12,0.88);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 220ms ease, background 220ms ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: rgba(10,10,12,0.10); }
.btn-ghost{ background: rgba(255,255,255,0.35); }

/* HERO simple */
.hero{
  min-height: 100vh;
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
  padding-top: 100px;
}
.hero-inner{ max-width: 72ch; position:relative; z-index:2; }
.hero-title{
  font-size: var(--title);
  line-height: 1.05;
  margin: 0 0 18px 0;
  letter-spacing: -0.02em;
}
.hero-text{ margin:0 0 24px 0; color: rgba(10,10,12,0.70); }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }

.hero-media{ position:absolute; inset:0; z-index:1; }
.hero-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter: brightness(0.96) contrast(1.02);
  transform: scale(1.05);
  transition: transform 900ms cubic-bezier(.2,.8,.2,1);
}
body.scrolled .hero-media img{ transform: scale(1.02); }
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(to bottom, rgba(246,247,248,0.62), rgba(246,247,248,0.94));
  z-index:1;
}

/* ENTER (right scroll illusion) */
.enter{
  height: 320vh; /* controls duration */
  background: #ffffff;
}
.enter-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  padding-top: 90px;
  display: grid;
  align-content: start;
}
.enter-head{ position: relative; z-index: 2; }

.enter-viewport{
  margin-top: 22px;
  height: 62vh;
  overflow: hidden;
  position: relative;
}
.enter-track{
  height: 100%;
  display: flex;
  width: 400vw; /* 4 panels */
  transform: translate3d(calc(var(--enter-x, 0px)), 0, 0);
  transition: transform 60ms linear;
  will-change: transform;
}
.enter-panel{
  width: 100vw;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 var(--pad);
}
.enter-card{
  width: min(560px, 92vw);
  padding: 22px;
  border-radius: 28px; /* override pill */
  transform:
    translate3d(0,0,0)
    rotateY(calc(var(--card-ry, 0deg)))
    scale(var(--card-scale, 1));
  opacity: var(--card-op, 1);
  transition: transform 80ms linear, opacity 120ms linear;
  will-change: transform, opacity;
}
.enter-card .panel-title{
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1.12rem;
}
.enter-card p{ margin:0; }

.enter-progress{
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 44px));
  height: 3px;
  background: rgba(10,10,12,0.10);
  border-radius: 999px;
  overflow: hidden;
}
.enter-bar{
  height: 100%;
  width: 0%;
  background: rgba(10,10,12,0.65);
  border-radius: 999px;
}

/* Intent / What */
.intent-grid{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items:start;
}
@media (max-width: 900px){
  .intent-grid{ grid-template-columns:1fr; gap:18px; }
}

.what-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.what-title{
  margin:0 0 8px 0;
  font-weight:600;
  letter-spacing:-0.01em;
}
@media (max-width: 980px){
  .what-grid{ grid-template-columns: 1fr; }
}

/* Signals timeline */
.signals-timeline{
  position:relative;
  max-width: 72ch;
  margin-top:10px;
  padding-left:22px;
}
.signals-timeline::before{
  content:"";
  position:absolute;
  left:9px; top:6px; bottom:6px;
  width:1px;
  background: rgba(10,10,12,0.12);
}
.signal{
  display:grid;
  grid-template-columns: 22px 1fr;
  gap:16px;
  padding: 10px 0 20px;
}
.signal .dot{
  width: 10px; height: 10px; border-radius: 999px;
  margin-top: 6px;
  background: rgba(10,10,12,0.80);
  box-shadow: 0 0 0 6px rgba(10,10,12,0.06);
}
.signal .title{
  margin:0 0 6px 0;
  font-weight:600;
  letter-spacing:-0.01em;
}
.signal .muted{ margin:0; }

/* Contact */
.contact-cards{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.contact-card{
  padding: 18px;
  border-radius: 28px; /* override pill */
  display:grid;
  gap: 10px;
}
.contact-card strong{
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: rgba(10,10,12,0.92);
}
@media (max-width: 720px){
  .contact-cards{ grid-template-columns:1fr; }
}

/* Footer */
.site-footer{
  padding: 60px 0 120px;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.footer-inner{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(10,10,12,0.45);
}
@media (max-width: 720px){
  .footer-inner{ flex-direction: column; align-items:flex-start; }
}

/* Reveal animations */
.reveal{
  opacity:0;
  transform: translateY(14px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
.reveal[data-reveal="fade"]{ transform:none; }
.reveal[data-reveal="left"]{ transform: translateX(-18px); }
.reveal[data-reveal="right"]{ transform: translateX(18px); }
.reveal[data-reveal="up"]{ transform: translateY(18px); }
.is-visible{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
  html{ scroll-behavior:auto; }
}

/* Keep anchor jumps comfortable under fixed chrome */
@media (max-width: 720px){
  html{ scroll-padding-top: 74px; }
}


/* =========================
   V3: extra scroll wow (still Apple)
   ========================= */

/* Soft moving light in Enter section */
.enter{
  position: relative;
  overflow: clip;
}
.enter::before{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 320px at var(--spot-x, 40%) 42%,
      rgba(0,0,0,0.06),
      transparent 62%);
  opacity: 0.9;
}

/* Active card highlight */
.enter-card{
  box-shadow: 0 22px 60px rgba(8,10,20,0.10);
}
.enter-card.is-active{
  box-shadow: 0 30px 80px rgba(8,10,20,0.14);
  transform: translate3d(0,-6px,0) rotateY(calc(var(--card-ry, 0deg))) scale(var(--card-scale, 1));
}

/* Magnetic feel for main CTA */
.btn{
  will-change: transform;
}


/* =========================
   V4: Plunge section (Human + AI)
   ========================= */
.plunge{
  height: 320vh;
  background: #ffffff;
  position: relative;
  overflow: clip;
}
.plunge-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  padding-top: 90px;
  display: grid;
  align-content: start;
}

.plunge-stage{
  margin-top: 22px;
  height: 62vh;
  display: grid;
  place-items: center;
  perspective: 1200px;
  position: relative;
}

.plunge-surface{
  width: min(920px, calc(100% - 44px));
  height: min(460px, 62vh);
  border-radius: 28px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(10,10,12,0.10);
  box-shadow: 0 30px 90px rgba(8,10,20,0.10);
  position: relative;
  overflow: hidden;

  transform-style: preserve-3d;
  transform:
    translate3d(var(--pl-x, 0px), var(--pl-y, 0px), 0px)
    rotateX(var(--pl-rx, 0deg))
    rotateY(var(--pl-ry, 0deg))
    scale(var(--pl-s, 1));
  transition: transform 60ms linear;
  will-change: transform;
}

/* subtle vignette */
.plunge-surface::before{
  content:"";
  position:absolute;
  inset:-1px;
  background:
    radial-gradient(900px 420px at 50% 40%, rgba(0,0,0,0.03), transparent 60%),
    radial-gradient(600px 320px at 20% 10%, rgba(0,0,0,0.02), transparent 55%);
  pointer-events:none;
}

.plunge-lines{
  position: absolute;
  inset: 0;
  padding: 34px;
  display: grid;
  align-content: center;
  gap: 14px;
}

.pl-line{
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: rgba(10,10,12,0.82);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms ease, transform 420ms cubic-bezier(.2,.8,.2,1);
}
.pl-line.strong{
  font-weight: 600;
  color: rgba(10,10,12,0.92);
}

.pl-line.is-on{
  opacity: 1;
  transform: none;
}

.plunge-cursor{
  position: absolute;
  left: 34px;
  bottom: 24px;
  font-size: 1.1rem;
  color: rgba(10,10,12,0.35);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.plunge-progress{
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 44px));
  height: 3px;
  background: rgba(10,10,12,0.10);
  border-radius: 999px;
  overflow: hidden;
}
.plunge-bar{
  height: 100%;
  width: 0%;
  background: rgba(10,10,12,0.65);
  border-radius: 999px;
}


/* V5: Mobile nav stays bottom */
@media (max-width: 720px){
  body.scrolled .site-nav{
    top: auto;
    bottom: 18px;
    transform: none;
  }
}


/* =========================
   V5: Plunge polish (no doors)
   ========================= */
.plunge-surface{
  background: rgba(255,255,255,0.98);
}
.plunge-surface::after{
  content:"";
  position:absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px solid rgba(10,10,12,0.06);
  pointer-events:none;
  opacity: 0.7;
}

/* Small screens: keep UI clear + avoid overlaps with bottom nav */
@media (max-width: 720px){
  .enter-progress,
  .plunge-progress{ bottom: 86px; }
  .plunge-stage{ height: 58vh; }
  .plunge-lines{ padding: 22px; }
  .plunge-cursor{ left: 22px; bottom: 18px; }
  .pl-line{ font-size: 1rem; }
}

@media (max-width: 380px){
  .site-nav a{ font-size: 0.88rem; padding: 9px 10px; }
}
