/* ============ WASCAR PREMIUM — LIGHT ============ */
:root {
  --bg: #faf9f5;
  --bg-2: #f0eee8;
  --ink: #101014;
  --ink-dim: #5f5c66;
  --accent: #e89a0c; /* amber — slightly deeper for light bg contrast */
  --accent-2: #ff8a00;
  --line: rgba(0, 0, 0, 0.08);
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

/* ---- Loader ---- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .8s ease, visibility .8s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { text-align: center; }
.loader-logo {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  letter-spacing: .4em; color: var(--ink);
}
.loader-bar {
  width: 220px; height: 2px; background: #e4e1d8;
  margin: 24px auto 0; overflow: hidden; border-radius: 2px;
}
.loader-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s ease;
}

/* ---- Grain ---- */
.grain {
  position: fixed; inset: -50%; z-index: 999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) }
  40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-2%) }
  80% { transform: translate(3%,3%) }
}

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  transition: background .4s, backdrop-filter .4s, padding .4s;
}
.nav.scrolled {
  background: rgba(250, 249, 245, .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 14px 48px;
  border-bottom: 1px solid var(--line);
}
.nav-logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: .18em; color: var(--ink); text-decoration: none;
}
.nav-logo span { color: var(--accent); font-weight: 300; margin-left: 6px; letter-spacing: .3em; font-size: .7em; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  transition: color .3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; text-decoration: none;
  font-weight: 600; font-size: .85rem; padding: 12px 22px; border-radius: 100px;
  transition: transform .3s, box-shadow .3s;
}
.nav-cta:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(16,16,20,.25); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #2ecc71;
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46,204,113,.6) }
  70% { box-shadow: 0 0 0 9px rgba(46,204,113,0) }
  100% { box-shadow: 0 0 0 0 rgba(46,204,113,0) }
}

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
#webgl {
  position: fixed; inset: 0; width: 100%; height: 100vh;
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 48px; max-width: 900px;
  margin-top: 6vh;
}
.hero-eyebrow {
  font-size: .78rem; letter-spacing: .35em; color: var(--accent);
  margin-bottom: 28px; font-weight: 600;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9.5vw, 8.5rem);
  font-weight: 800; line-height: .95; letter-spacing: -.02em;
  margin-bottom: 32px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); }
.hero-title .accent > span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 480px; color: var(--ink-dim);
  font-size: 1.05rem; line-height: 1.7; font-weight: 400;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  font-size: .95rem; padding: 16px 34px; border-radius: 100px;
  transition: transform .3s, box-shadow .3s, background .3s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(16,16,20,.25); }
.btn-ghost {
  color: var(--ink); border: 1px solid rgba(0,0,0,.22);
}
.btn-ghost:hover { background: rgba(0,0,0,.05); transform: translateY(-3px); }
.btn-light { background: #fff; color: #000; margin-top: 40px; }
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.18); }

.reveal { opacity: 0; transform: translateY(30px); }

.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--ink-dim); font-size: .68rem; letter-spacing: .3em;
}
.scroll-line {
  width: 1px; height: 56px; background: rgba(0,0,0,.15); position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ""; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: scrollDrop 1.8s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes scrollDrop { to { top: 110%; } }

/* ---- Story (pinned 3D scroll) ---- */
.story { position: relative; z-index: 2; height: 400vh; }
.story-pin {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center;
}
.story-captions { position: relative; width: 100%; }
.story-caption {
  position: absolute; top: 50%; transform: translateY(-40%);
  left: 8vw; max-width: 420px; opacity: 0;
  pointer-events: none;
}
.story-caption:nth-child(even) { left: auto; right: 8vw; text-align: right; }
.story-num {
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .3em;
  color: var(--accent); display: block; margin-bottom: 14px;
}
.story-caption h2 {
  font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px;
}
.story-caption p { color: var(--ink-dim); font-size: 1.02rem; line-height: 1.7; font-weight: 400; }
.story-progress {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  width: 180px; height: 2px; background: rgba(0,0,0,.1); border-radius: 2px;
}
.story-progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px;
}

/* ---- Sections base ---- */
section { position: relative; }
.stats, .services, .process, .about, .contact { background: var(--bg); z-index: 2; }

.section-head { padding: 0 48px; margin-bottom: 80px; }
.section-eyebrow {
  font-size: .75rem; letter-spacing: .35em; color: var(--accent);
  margin-bottom: 20px; font-weight: 600;
}
.section-eyebrow.light { color: rgba(0,0,0,.55); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -.02em;
}
.section-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Stats ---- */
.stats { padding: 140px 48px; border-top: 1px solid var(--line); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  max-width: 1200px; margin: 0 auto;
}
.stat { text-align: center; }
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.4rem); font-weight: 800;
  display: block;
  background: linear-gradient(180deg, #16161c, #6a6a74);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label {
  display: block; margin-top: 10px; color: var(--ink-dim);
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
}

/* ---- Marquee ---- */
.marquee {
  overflow: hidden; padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2); position: relative; z-index: 2;
}
.marquee-track {
  display: flex; white-space: nowrap; will-change: transform;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,0,0,.3);
}

/* ---- Services ---- */
.services { padding: 160px 0 120px; }
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
  padding: 0 48px; max-width: 1280px; margin: 0 auto;
}
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px; padding: 48px 42px;
  box-shadow: 0 2px 20px rgba(0,0,0,.04);
  transition: border-color .4s, box-shadow .4s, transform .1s linear;
  transform-style: preserve-3d; will-change: transform;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(232,154,12,.09), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.service-card:hover::before { opacity: 1; }
.service-card:hover { border-color: rgba(232,154,12,.45); box-shadow: 0 18px 50px rgba(0,0,0,.09); }
.service-icon { font-size: 2.4rem; margin-bottom: 26px; }
.service-card h3 {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 700;
  margin-bottom: 14px; letter-spacing: -.01em;
}
.service-card p { color: var(--ink-dim); line-height: 1.7; font-weight: 400; font-size: .96rem; }
.service-arrow {
  position: absolute; top: 42px; right: 42px; font-size: 1.4rem;
  color: var(--accent); opacity: 0; transform: translateX(-10px);
  transition: opacity .35s, transform .35s;
}
.service-card:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ---- Process (horizontal) ---- */
.process { height: 300vh; background: var(--bg-2); }
.process-pin {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.process-head { margin-bottom: 60px; }
.process-track {
  display: flex; gap: 28px; padding: 0 48px;
  width: max-content; will-change: transform;
}
.process-step {
  width: min(460px, 78vw); flex-shrink: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px; padding: 52px 44px;
  box-shadow: 0 2px 20px rgba(0,0,0,.04);
}
.process-num {
  font-family: var(--font-display); font-size: 3.6rem; font-weight: 800;
  color: transparent; -webkit-text-stroke: 1px var(--accent);
  display: block; margin-bottom: 24px;
}
.process-step h3 {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 14px;
}
.process-step p { color: var(--ink-dim); line-height: 1.7; font-weight: 400; }

/* ---- About ---- */
.about { padding: 180px 48px; }
.about-inner { max-width: 1100px; margin: 0 auto; }
.about-big {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  font-weight: 600; line-height: 1.35; letter-spacing: -.01em;
  margin-top: 28px;
}
.about-big .word { opacity: .14; transition: opacity .3s; }

/* ---- Contact ---- */
.contact {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000; padding: 160px 48px;
  border-radius: 48px 48px 0 0;
}
.contact-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 800; line-height: 1; letter-spacing: -.02em;
  margin-bottom: 48px;
}
.contact-title em { font-style: normal; color: rgba(255,255,255,.75); }
.contact-phone {
  font-family: var(--font-display);
  display: inline-block;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem); font-weight: 800;
  color: #000; text-decoration: none;
  border-bottom: 3px solid rgba(0,0,0,.3);
  padding-bottom: 8px;
  transition: transform .3s, border-color .3s;
}
.contact-phone:hover { transform: scale(1.04); border-color: #000; }
.contact-meta { margin-top: 44px; font-size: 1rem; line-height: 1.8; color: rgba(0,0,0,.7); }
.contact-meta a { color: #000; font-weight: 600; text-decoration: none; }

/* ---- Footer ---- */
.footer {
  display: flex; justify-content: space-between;
  padding: 28px 48px; font-size: .8rem; color: var(--ink-dim);
  background: var(--bg); position: relative; z-index: 2;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .hero-content { padding: 0 24px; }
  .section-head, .stats, .about, .contact { padding-left: 24px; padding-right: 24px; }
  .services-grid { grid-template-columns: 1fr; padding: 0 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .story-caption { left: 24px; right: 24px; max-width: none; }
  .story-caption:nth-child(even) { text-align: left; }
  .process-track { padding: 0 24px; }
  .footer { flex-direction: column; gap: 6px; }
}
