/* ===================================================================
   ScrapKart — Main Landing (scrapkart.app)
   Dark atmospheric · Deep Ocean gradient · Routes to b2b / b2c
   ================================================================ */

:root {
  /* Page surfaces — light brand palette */
  --paper:         #FAFAF7;
  --paper-2:       #F4F2EA;
  --paper-3:       #ECE9DD;

  /* Ink (text on light surfaces) */
  --ink:           #0A0A0A;
  --ink-2:         #2D2A22;
  --ink-3:         #57544A;
  --ink-4:         #8B887E;

  /* Frost (text on dark gradient sections — hero, closing, dark cards) */
  --frost:         #ffffff;
  --frost-2:       rgba(255, 255, 255, 0.85);
  --frost-3:       rgba(255, 255, 255, 0.6);
  --frost-4:       rgba(255, 255, 255, 0.32);

  /* Hairlines */
  --line:          #E5E2D8;
  --line-2:        #EFECE2;
  --hairline:      rgba(0, 0, 0, 0.08);
  --hairline-2:    rgba(0, 0, 0, 0.14);
  --whisper:       #57544A;
  --misty:         #8B887E;

  /* ScrapKart brand palette — forest greens */
  --brand-forest:   #0F4D2A;
  --brand-forest-2: #0B3A1F;
  --brand-emerald:  #1a7d4a;
  --brand-mint:     #34D399;
  --brand-tint:     #E8F0EA;

  /* Signature gradient — diagonal emerald → deep forest → near-black-forest */
  --gradient-deep-ocean: linear-gradient(135deg, rgb(52, 211, 153) 0%, rgb(26, 125, 74) 35%, rgb(15, 77, 42) 65%, rgb(8, 38, 20) 100%);

  /* Atmospheric orb colors — keep class names but recolor to brand family */
  --orb-green: rgb(52, 211, 153);   /* mint / emerald highlight */
  --orb-amber: rgb(26, 125, 74);    /* mid emerald */
  --orb-rust:  rgb(15, 77, 42);     /* deep forest */

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Raleway', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale */
  --text-caption: 11px;
  --text-mini: 12px;
  --text-body: 16px;
  --text-subhead: 18px;
  --text-h-sm: 28px;
  --text-h: 39px;
  --text-h-lg: 54px;
  /* Display: tuned to fit "SCRAPKART." inside the 1180px wrap on standard viewports */
  --text-display: clamp(60px, 12.5vw, 168px);

  /* Spacing */
  --sp-8: 8px;
  --sp-12: 12px;
  --sp-16: 16px;
  --sp-24: 24px;
  --sp-32: 32px;
  --sp-48: 48px;
  --sp-64: 64px;
  --sp-96: 96px;
  --sp-128: 128px;
  --sp-152: 152px;

  /* Layout */
  --page-max: 1180px;
  --content-max: 1080px;

  /* Radius */
  --radius-card: 14px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --t-fast: 240ms;
  --t-base: 600ms;
  --t-slow: 1100ms;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--brand-forest); color: var(--frost); }

/* ===================================================================
   Lenis (loaded via CDN, classes added on init)
   ================================================================ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ===================================================================
   Containers
   ================================================================ */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

@media (min-width: 768px) { .wrap { padding: 0 40px; } }

/* ===================================================================
   Type utilities
   ================================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow.on-gradient { color: var(--frost-2); }
.eyebrow.on-dark { color: var(--frost-3); }

.italic-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

/* ===================================================================
   Reveal animation (no-JS fallback: visible)
   ================================================================ */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(16px);
}

html.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Larger displacement for headline reveals */
html.js-ready .reveal-lg { transform: translateY(28px); }
html.js-ready .reveal-lg.is-visible { transform: translateY(0); }

/* Word reveal masking */
.word-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  line-height: 1.05;
}
.word-reveal .word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.4s var(--ease);
}
html.js-ready .word-reveal.reveal { opacity: 1; transform: none; }
.word-reveal.is-visible .word { transform: translateY(0); opacity: 1; }
.word-reveal.is-visible .word:nth-child(1) { transition-delay: 0.05s; }
.word-reveal.is-visible .word:nth-child(2) { transition-delay: 0.16s; }
.word-reveal.is-visible .word:nth-child(3) { transition-delay: 0.27s; }
.word-reveal.is-visible .word:nth-child(4) { transition-delay: 0.38s; }
.word-reveal .line:nth-child(2) .word:nth-child(1) { transition-delay: 0.50s; }
.word-reveal .line:nth-child(2) .word:nth-child(2) { transition-delay: 0.61s; }

/* ===================================================================
   Mobile reveal kill-switch
   On small viewports the IntersectionObserver-driven reveals occasionally
   left content stranded at opacity:0. Mobile gets static visible content;
   desktop keeps the staggered entrance.
   ================================================================ */
@media (max-width: 767px) {
  html.js-ready .reveal,
  html.js-ready .reveal-lg {
    opacity: 1 !important;
    transform: none !important;
  }
  html.js-ready .word-reveal .word {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius-pill);
  padding: 15px 28px;
  cursor: pointer;
  letter-spacing: -0.005em;
  transition:
    transform var(--t-fast) var(--ease),
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    color var(--t-fast) ease;
  white-space: nowrap;
}

.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Solid: white pill on gradient sections (hero/closing). On light pages we use btn-forest instead. */
.btn-solid {
  background: var(--frost);
  color: var(--ink);
  border: 1px solid var(--frost);
}
.btn-solid:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

/* Forest pill — primary CTA on light surfaces */
.btn-forest {
  background: var(--brand-forest);
  color: var(--frost);
  border: 1px solid var(--brand-forest);
}
.btn-forest:hover {
  background: var(--brand-forest-2);
  border-color: var(--brand-forest-2);
  transform: translateY(-1px);
}

/* Ghost on gradient sections (light text + light border) */
.btn-ghost {
  background: rgba(0, 0, 0, 0);
  color: var(--frost);
  border: 1px solid var(--frost-4);
}
.btn-ghost:hover {
  border-color: var(--frost);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

/* Ghost on light surfaces */
.btn-outline {
  background: rgba(255, 255, 255, 0);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--paper-2);
  transform: translateY(-1px);
}

.btn-link {
  background: rgba(0, 0, 0, 0);
  color: var(--ink);
  padding: 0;
  border-radius: 0;
  position: relative;
}
.btn-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 360ms var(--ease);
}
.btn-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ===================================================================
   Floating gradient orbs (atmospheric depth)
   ================================================================ */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.orb-green { width: 620px; height: 620px; background: radial-gradient(circle, var(--orb-green) 0%, transparent 70%); }
.orb-amber { width: 540px; height: 540px; background: radial-gradient(circle, var(--orb-amber) 0%, transparent 70%); }
.orb-rust  { width: 480px; height: 480px; background: radial-gradient(circle, var(--orb-rust)  0%, transparent 70%); }

@keyframes orb-1 { 0%,100% { transform: translate3d(0,0,0)   scale(1);    } 50% { transform: translate3d(40px,-30px,0)  scale(1.05); } }
@keyframes orb-2 { 0%,100% { transform: translate3d(0,0,0)   scale(1);    } 50% { transform: translate3d(-50px,40px,0)  scale(1.08); } }
@keyframes orb-3 { 0%,100% { transform: translate3d(0,0,0)   scale(1);    } 50% { transform: translate3d(30px,50px,0)   scale(0.95); } }

/* ===================================================================
   Splash screen — first paint moment
   ================================================================ */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 700ms var(--ease) 200ms;
}

.splash-orbs { position: absolute; inset: 0; pointer-events: none; opacity: 0.7; }
.splash-orbs .orb-green { top: 20%;  left: 5%;  animation: orb-1 12s ease-in-out infinite; opacity: 0.4; }
.splash-orbs .orb-amber { bottom: 20%; right: 5%; animation: orb-2 14s ease-in-out infinite; opacity: 0.35; }

.splash-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: splash-in 600ms var(--ease) 100ms forwards;
}

.splash-mark img {
  height: 56px;
  width: auto;
  display: block;
}

.splash-mark .splash-tagline {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

@keyframes splash-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.splash-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.splash-bar::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  background: var(--gradient-deep-ocean);
  animation: splash-bar-fill 1.1s var(--ease) 0.2s forwards;
}
@keyframes splash-bar-fill { to { width: 100%; } }

html.splash-done .splash {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 639px) {
  .splash-mark img { height: 44px; }
}

/* ===================================================================
   Scroll progress bar (top of viewport)
   ================================================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gradient-deep-ocean);
  z-index: 60;
  pointer-events: none;
  transition: width 80ms linear;
}

/* ===================================================================
   Sticky nav
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 16px 0;
  transition: background 360ms ease, backdrop-filter 360ms ease;
}

/* Override the .wrap default padding for the nav so the logo sits close to the
   left edge and the CTA close to the right edge — full-width feel. */
.nav .wrap {
  max-width: 100%;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .nav .wrap { padding: 0 32px; }
}

.nav.is-scrolled {
  background: rgba(250, 250, 247, 0.78);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: inline-block;
  position: relative;
  line-height: 0;
}

/* Two logos stacked — one shown over the dark hero, the other when scrolled */
.nav-logo {
  height: 28px;
  width: auto;
  display: block;
  transition: opacity 360ms ease;
}

.nav-logo-black {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.nav.is-scrolled .nav-logo-white { opacity: 0; }
.nav.is-scrolled .nav-logo-black { opacity: 1; }

@media (max-width: 639px) {
  .nav-logo { height: 24px; }
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frost);
  transition: background-color 320ms ease, border-color 320ms ease, color 320ms ease;
}

.nav.is-scrolled .nav-status {
  background: rgba(15, 77, 42, 0.06);
  border-color: rgba(15, 77, 42, 0.18);
  color: var(--brand-forest);
}

.nav-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--frost);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
  animation: nav-pulse 2.2s ease-in-out infinite;
  transition: background-color 320ms ease, box-shadow 320ms ease;
}

.nav.is-scrolled .nav-status-dot {
  background: var(--brand-forest);
  box-shadow: 0 0 0 4px rgba(15, 77, 42, 0.12);
}

@keyframes nav-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06); }
}

.nav.is-scrolled .nav-status-dot {
  animation-name: nav-pulse-forest;
}

@keyframes nav-pulse-forest {
  0%, 100% { box-shadow: 0 0 0 4px rgba(15, 77, 42, 0.12); }
  50%      { box-shadow: 0 0 0 6px rgba(15, 77, 42, 0.04); }
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--brand-forest);
  color: var(--frost);
  border: 1px solid var(--brand-forest);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    transform var(--t-fast) var(--ease),
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease,
    box-shadow var(--t-fast) ease;
  box-shadow: 0 1px 2px rgba(15, 77, 42, 0.06);
}

.nav-cta .arrow {
  transition: transform var(--t-fast) var(--ease);
}

.nav-cta:hover {
  background: var(--brand-forest-2);
  border-color: var(--brand-forest-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 77, 42, 0.14);
}

.nav-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 1023px) {
  .nav-status { display: none; }
}

@media (max-width: 480px) {
  .nav-cta { padding: 10px 16px; font-size: 13px; }
  .nav-cta .arrow { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.005em;
  position: relative;
  padding-bottom: 4px;
  transition: color 320ms ease;
}

.nav-links a:hover { color: var(--frost); }

.nav.is-scrolled .nav-links a { color: var(--ink-2); }
.nav.is-scrolled .nav-links a:hover { color: var(--brand-forest); }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ===================================================================
   Hamburger toggle (mobile only)
   ================================================================ */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  position: relative;
  transition:
    background-color 320ms ease,
    border-color 320ms ease;
  padding: 0;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--frost);
  border-radius: 2px;
  transform-origin: center;
  transform: translate(-50%, -50%);
  transition:
    transform 320ms var(--ease),
    opacity 200ms ease,
    background-color 320ms ease,
    top 320ms var(--ease);
}

.nav-toggle span:nth-child(1) { top: calc(50% - 5px); }
.nav-toggle span:nth-child(2) { top: 50%; }
.nav-toggle span:nth-child(3) { top: calc(50% + 5px); }

.nav.is-scrolled .nav-toggle {
  background: rgba(15, 77, 42, 0.06);
  border-color: rgba(15, 77, 42, 0.20);
}

.nav.is-scrolled .nav-toggle span { background: var(--ink); }

/* Open state — animate to X */
.nav-toggle.is-open span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ===================================================================
   Mobile menu drawer
   ================================================================ */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 49;
  background: var(--paper);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition:
    opacity 320ms ease,
    transform 480ms var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu-inner {
  min-height: 100%;
  padding: 96px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
}

.mobile-menu-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition:
    color 240ms ease,
    transform 280ms var(--ease),
    padding-left 280ms var(--ease);
  /* Stagger reveal each item when drawer opens */
  opacity: 0;
  transform: translateY(8px);
}

.mobile-menu.is-open .mobile-menu-links a {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 480ms var(--ease),
    transform 480ms var(--ease),
    color 240ms ease,
    padding-left 280ms var(--ease);
}

.mobile-menu.is-open .mobile-menu-links a:nth-child(1) { transition-delay: 100ms, 100ms, 0ms, 0ms; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(2) { transition-delay: 160ms, 160ms, 0ms, 0ms; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(3) { transition-delay: 220ms, 220ms, 0ms, 0ms; }
.mobile-menu.is-open .mobile-menu-links a:nth-child(4) { transition-delay: 280ms, 280ms, 0ms, 0ms; }

.mobile-menu-links a:active,
.mobile-menu-links a:hover {
  color: var(--brand-forest);
  padding-left: 6px;
}

.mm-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  min-width: 24px;
}

.mm-text {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.mobile-menu-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.mobile-menu-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 6px;
}

.mobile-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition:
    transform var(--t-fast) var(--ease),
    background-color var(--t-fast) ease,
    border-color var(--t-fast) ease;
}

.mobile-cta-arrow { transition: transform var(--t-fast) var(--ease); }
.mobile-cta:hover .mobile-cta-arrow,
.mobile-cta:active .mobile-cta-arrow { transform: translateX(4px); }

.mobile-cta-b2b {
  background: var(--brand-forest);
  color: var(--frost);
  border: 1px solid var(--brand-forest);
}
.mobile-cta-b2b:hover,
.mobile-cta-b2b:active {
  background: var(--brand-forest-2);
  border-color: var(--brand-forest-2);
}

.mobile-cta-b2c {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.mobile-cta-b2c:hover,
.mobile-cta-b2c:active {
  background: var(--paper-3);
  border-color: var(--ink-4);
}

.mobile-menu-foot {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* Lock body scroll when drawer open */
html.menu-open,
html.menu-open body {
  overflow: hidden;
}

/* When drawer is open, force nav into its scrolled-like state regardless of scroll
   position — otherwise the white logo would be invisible on the paper drawer. */
html.menu-open .nav .nav-logo-white { opacity: 0; }
html.menu-open .nav .nav-logo-black { opacity: 1; }
html.menu-open .nav .nav-toggle {
  background: rgba(15, 77, 42, 0.06);
  border-color: rgba(15, 77, 42, 0.20);
}
html.menu-open .nav .nav-toggle span { background: var(--ink); }

/* ===================================================================
   Mobile-first padding tightening
   ================================================================ */
@media (max-width: 767px) {
  .about,
  .display,
  .worlds,
  .stats { padding: 96px 0; }

  .closing { padding: 120px 0; min-height: 60vh; }

  .hero { padding: 96px 0 64px; }

  .stats-eyebrow { margin-bottom: 40px; }
  .worlds-header { margin-bottom: 48px; }

  .world-card { padding: 32px; min-height: 360px; }
  .about-grid { gap: 48px; }
  .about-manifesto { font-size: clamp(20px, 5.5vw, 28px); }

  .footer { padding: 64px 0 28px; }
  .footer-grid { gap: 36px; }

  .marquee { padding: 16px 0; }
  .marquee-track { gap: 24px; font-size: 11.5px; }

  .nav-cta { display: none; }
}

/* Ultra-narrow safety net (320-359px) */
@media (max-width: 359px) {
  .wrap { padding: 0 18px; }
  .nav .wrap { padding: 0 18px; }
  .world-card { padding: 28px 24px; min-height: 320px; }
  .mobile-menu-inner { padding: 88px 18px 24px; }
}

/* ===================================================================
   Hero
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  padding: 120px 0 80px;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-deep-ocean);
  z-index: -3;
}

.hero-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.32) 50%, rgba(0,0,0,0.7) 100%);
}

.hero-orbs { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-orbs .orb-green { top: -180px; left: -120px;   animation: orb-1 18s ease-in-out infinite; }
.hero-orbs .orb-amber { top: 30%;    right: -160px;  animation: orb-2 22s ease-in-out infinite; }
.hero-orbs .orb-rust  { bottom: -160px; left: 25%;   animation: orb-3 24s ease-in-out infinite; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  width: 100%;
}

.hero-eyebrow { margin-bottom: 28px; }

.hero-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(48px, 8vw, 124px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--frost);
}

.hero-title .italic-accent {
  font-weight: 400;
}

.hero-sub {
  margin-top: 28px;
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  color: var(--frost-2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  margin-top: 44px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--frost-3);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.scroll-cue::after {
  content: "";
  display: block;
  width: 1px;
  height: 28px;
  background: var(--frost-3);
  animation: scroll-line 1.8s var(--ease) infinite;
  transform-origin: top;
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

@media (max-width: 639px) {
  .scroll-cue { display: none; }
}

/* ===================================================================
   Marquee ticker (between hero and about)
   ================================================================ */
.marquee {
  background: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
  padding: 22px 0;
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  /* Animation declared with !important so reduced-motion's universal kill rule
     doesn't freeze it — ticker is content, not decoration. */
  animation: marquee 38s linear infinite !important;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frost);
  will-change: transform;
}

.marquee-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient-deep-ocean);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===================================================================
   About — manifesto + atmospheric orb
   ================================================================ */
.about {
  position: relative;
  padding: 152px 0;
  overflow: hidden;
  isolation: isolate;
}

.about-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.about-orbs .orb-amber { top: 30%; left: 50%; transform: translateX(-50%); animation: orb-3 26s ease-in-out infinite; opacity: 0.10; }

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  max-width: var(--content-max);
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 96px; }
}

.about-eyebrow { margin-bottom: 24px; }

.about-manifesto {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 640px;
}

.about-manifesto em {
  font-style: italic;
  background: var(--gradient-deep-ocean);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper-2);
  transition: border-color var(--t-fast) ease, transform var(--t-fast) ease;
}

.about-card:hover {
  border-color: var(--brand-forest);
  transform: translateX(4px);
}

.about-card-label { margin-bottom: 8px; }
.about-card-body { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0; }

/* ===================================================================
   Display moment — gradient-clipped massive type
   ================================================================ */
.display {
  position: relative;
  padding: 152px 0;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.display-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.display-orbs .orb-green { top: 10%;  left: -200px; animation: orb-1 22s ease-in-out infinite; opacity: 0.18; }
.display-orbs .orb-rust  { bottom: 10%; right: -200px; animation: orb-2 24s ease-in-out infinite; opacity: 0.16; }

.display-content { position: relative; z-index: 1; }
.display-eyebrow { margin-bottom: 28px; }

.display-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-display);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0;
  background: var(--gradient-deep-ocean);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;          /* keep the wordmark on one line */
  max-width: 100%;
  overflow: visible;
}

/* Scale the wordmark down on phones so 'SCRAPKART.' never clips */
@media (max-width: 639px) {
  .display-title {
    font-size: clamp(40px, 13vw, 72px);
    letter-spacing: -0.035em;
  }
}

.display-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ===================================================================
   Two Worlds — the routing CTAs
   ================================================================ */
.worlds {
  position: relative;
  padding: 152px 0;
  isolation: isolate;
}

.worlds-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.worlds-orbs .orb-green { top: 5%;   left: 5%;  animation: orb-1 24s ease-in-out infinite; opacity: 0.08; }
.worlds-orbs .orb-rust  { bottom: 5%; right: 5%; animation: orb-3 26s ease-in-out infinite; opacity: 0.08; }

.worlds-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 80px;
}

.worlds-eyebrow { margin-bottom: 20px; }

.worlds-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}

.worlds-sub {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.worlds-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: var(--content-max);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .worlds-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

.world-card {
  position: relative;
  padding: 48px;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 440px;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  border: 1px solid rgba(0, 0, 0, 0.6);
  background: #000;
  box-shadow: 0 8px 32px rgba(15, 77, 42, 0.06);
}

.world-card:hover { box-shadow: 0 16px 56px rgba(15, 77, 42, 0.12); }

.world-card:hover { transform: translateY(-4px); }

.world-card-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.55;
}

.world-b2b .world-card-bg {
  /* Deeper, sharper, business-like — pure forest with mint highlight */
  background:
    radial-gradient(circle at 78% 22%, rgba(52,211,153,0.32)  0%, transparent 50%),
    radial-gradient(circle at 22% 78%, rgba(15,77,42,0.65)    0%, transparent 60%),
    linear-gradient(135deg, #061a10 0%, #000 100%);
}

.world-b2c .world-card-bg {
  /* Lighter, more inviting — mint-leaning emerald with brand-tint highlight */
  background:
    radial-gradient(circle at 78% 22%, rgba(232,240,234,0.18) 0%, transparent 50%),
    radial-gradient(circle at 22% 78%, rgba(52,211,153,0.40)  0%, transparent 60%),
    linear-gradient(135deg, #0c2a18 0%, #021a0c 100%);
}

/* Cursor-aware spotlight */
.world-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    520px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.10),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 320ms ease;
  pointer-events: none;
}

.world-card:hover::after { opacity: 1; }

.world-card > * { position: relative; z-index: 1; }

.world-decoration {
  position: absolute;
  bottom: -60px;
  right: -20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(180px, 24vw, 320px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.world-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--frost-2);
}

.world-heading {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
}

.world-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--frost-2);
  margin: 0;
  max-width: 480px;
}

.world-card .world-heading,
.world-card h3 { color: var(--frost); }

.world-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  background: var(--frost);
  color: var(--ink);
  transition:
    transform var(--t-fast) var(--ease),
    background-color var(--t-fast) ease;
}

.world-card:hover .world-cta { transform: translateX(6px); }
.world-cta:hover { background: rgba(255,255,255,0.92); }

/* ===================================================================
   Stats — by the numbers
   ================================================================ */
.stats {
  position: relative;
  padding: 152px 0;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}

.stats-eyebrow { margin-bottom: 64px; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: end;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.stats-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: var(--gradient-deep-ocean);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ===================================================================
   Closing band — Built in India
   ================================================================ */
.closing {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 152px 0;
  overflow: hidden;
  isolation: isolate;
}

.closing-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-deep-ocean);
  z-index: -3;
}
.closing-gradient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
}

.closing-orbs { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.closing-orbs .orb-green { top: -120px; right: -160px; animation: orb-2 22s ease-in-out infinite; opacity: 0.5; }
.closing-orbs .orb-amber { bottom: -160px; left: -160px; animation: orb-3 24s ease-in-out infinite; opacity: 0.5; }

.closing-content { position: relative; z-index: 1; max-width: 880px; }

.closing-eyebrow { margin-bottom: 28px; }

.closing-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(44px, 7vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--frost);
}

.closing-body {
  margin-top: 32px;
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--frost-2);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.closing-actions {
  margin-top: 40px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ===================================================================
   Footer
   ================================================================ */
.footer {
  background: var(--paper-2);
  padding: 80px 0 32px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px 28px; }
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 18px;
}

.footer-tag {
  margin: 0 0 24px;
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 320px;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.footer-col h4 {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 14.5px;
  color: var(--ink-2);
  transition: color var(--t-fast) ease;
}
.footer-col a:hover { color: var(--brand-forest); }

.footer-bottom {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}

/* ===================================================================
   Reduced motion
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Splash still shows — the user explicitly wants it on every visit. The
     fade-in is subtle and sub-second; not a vestibular concern. */
  .orb { animation: none !important; }
  .nav-status-dot { animation: none !important; }
  /* Reveals materialise instantly */
  html.js-ready .reveal,
  html.js-ready .reveal-lg,
  .word-reveal .word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  /* Marquee KEEPS running — content, not decoration. The !important on the
     marquee-track rule wins against the universal kill. */
}
