/* ===== Reset & base ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #050506;
  --fg: #ffffff;
  --fg-hero: #dcdcdf;
  --fg-dim: #c7c7cf;
  --fg-faint: #8d8d94;
  --card-bg: #232326;
  --card-border: rgba(255,255,255,0.07);
  --ease: cubic-bezier(.16,.84,.44,1);
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
  cursor: default;
}

img { max-width: 100%; display: block; user-select: none; -webkit-user-drag: none; }

a { color: inherit; text-decoration: none; }

::selection { background: #ffffff; color: #000000; }

/* ===== Texture / atmosphere ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 620px; height: 620px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0) 70%);
  transform: translate3d(-50%,-50%,0);
  will-change: transform;
}
@media (hover:none) { .cursor-glow { display: none; } }

.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #ffffff, #9a9aa2);
  z-index: 60;
  transition: width 0.1s linear;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.7rem clamp(1.5rem, 5vw, 4rem);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(5,5,6,0.55);
  backdrop-filter: blur(14px) saturate(140%);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav__logo {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.35em;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.nav.is-scrolled .nav__logo { opacity: 1; transform: translateY(0); }
.nav__cta {
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fg-dim);
  position: relative;
  padding-bottom: 3px;
}
.nav__cta::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__cta:hover { color: var(--fg); }
.nav__cta:hover::after { transform: scaleX(1); transform-origin: left; }

/* ===== Layout base ===== */
main { position: relative; z-index: 2; }

.slide {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: clip;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem clamp(1.5rem, 6vw, 6rem);
}

.section-title {
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.eyebrow {
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 400;
  color: #e8e8ea;
}

.copy {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--fg-dim);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.7;
  max-width: 46ch;
}
.copy--center { max-width: 58ch; margin: 0 auto; }

.brandmark {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

/* ===== Background ambient glows ===== */
.bg-glow {
  position: absolute;
  width: 55vw; height: 55vw;
  max-width: 800px; max-height: 800px;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 68%);
}
.bg-glow--tr { top: -20%; right: -15%; }
.bg-glow--bl { bottom: -20%; left: -15%; }
.bg-glow--tl { top: -18%; left: -12%; }
.bg-glow--l  { top: 20%; left: -20%; }

/* ===== Chrome floating art ===== */
.chrome {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.chrome img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55)); }

.chrome__float { will-change: transform; }
.chrome__float--a { animation: floatA 9s ease-in-out infinite; }
.chrome__float--b { animation: floatB 11s ease-in-out infinite; }
.chrome__float--c { animation: floatC 13s ease-in-out infinite; }
.chrome__float--d { animation: floatD 10s ease-in-out infinite; }

@keyframes floatA {
  0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(0,-22px,0) rotate(2.2deg); }
}
@keyframes floatB {
  0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(14px,16px,0) rotate(-2deg); }
}
@keyframes floatC {
  0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(-12px,-18px,0) rotate(1.6deg); }
}
@keyframes floatD {
  0%,100% { transform: translate3d(0,0,0) rotate(0deg); }
  50% { transform: translate3d(10px,-14px,0) rotate(-1.8deg); }
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===================================================== */
/* HERO */
/* ===================================================== */
.hero { padding: 0 clamp(1.5rem, 6vw, 6rem); align-items: center; }

.chrome--hero-a { top: -12%; left: -10%; width: min(48vw, 620px); }
.chrome--hero-b { bottom: -14%; right: -14%; width: min(50vw, 640px); }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 0 auto;
}
.hero__title {
  font-size: clamp(4.2rem, 13vw, 10rem);
  font-weight: 800;
  color: var(--fg-hero);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.95;
  margin: 0.3rem 0;
}
.eyebrow--right { text-align: center; }

.scroll-cue {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
  opacity: 0.6;
  animation: cueFade 2.6s ease-in-out infinite;
}
.scroll-cue span {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0));
}
.scroll-cue em {
  font-style: normal;
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
@keyframes cueFade {
  0%,100% { opacity: 0.25; transform: translate(-50%, 0); }
  50% { opacity: 0.75; transform: translate(-50%, 6px); }
}

/* ===================================================== */
/* WHAT WE DO */
/* ===================================================== */
.whatwedo { align-items: flex-end; }
.chrome--wwd { top: -8%; left: -18%; width: min(60vw, 760px); }
.brandmark { position: absolute; top: 2.4rem; right: clamp(1.5rem,6vw,6rem); z-index: 2; }
.whatwedo__text {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  max-width: 480px;
  margin-bottom: 4rem;
}
.whatwedo__title {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  margin-top: 3rem;
}

/* ===================================================== */
/* CENTERED (VISION / MISSION) */
/* ===================================================== */
.centered { align-items: center; text-align: center; }
.centered__inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.centered__inner .section-title { margin-bottom: 1.6rem; }

.chrome--vision-tr { top: -14%; right: -16%; width: min(42vw, 520px); }
.chrome--vision-bl { bottom: -18%; left: -14%; width: min(38vw, 460px); }

.chrome--mission-l { top: -10%; left: -16%; width: min(38vw, 460px); }
.chrome--mission-r { bottom: -16%; right: -16%; width: min(42vw, 520px); }

/* ===================================================== */
/* MARKET OVERVIEW */
/* ===================================================== */
.market { justify-content: flex-start; padding-top: 11rem; }
.chrome--market { top: -16%; left: -18%; width: min(50vw, 620px); }
.market__title { position: relative; z-index: 2; margin-left: auto; margin-right: 8%; text-align: right; max-width: 720px; }

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 6rem;
  text-align: center;
}
.stat__num {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 0.6rem;
  font-family: 'Inter', sans-serif;
  color: var(--fg-dim);
  font-size: clamp(0.85rem, 1vw, 1rem);
  line-height: 1.5;
}

/* ===================================================== */
/* HOW IT WORKS */
/* ===================================================== */
.how { justify-content: flex-start; padding-top: 10rem; }
.chrome--how-tr { top: -6%; right: -18%; width: min(40vw, 480px); }
.chrome--how-bl { bottom: -20%; left: -16%; width: min(38vw, 440px); }
.how__title { position: relative; z-index: 2; margin-bottom: 4rem; }

.cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  max-width: 1100px;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 2.4rem 1.9rem;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-10px);
  border-color: rgba(255,255,255,0.22);
  background: #28282c;
  box-shadow: 0 25px 50px rgba(0,0,0,0.45);
}
.card__num {
  font-size: clamp(2.2rem, 3.4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1.4rem;
}
.card__list {
  list-style: none;
  font-family: 'Inter', sans-serif;
  color: var(--fg-dim);
  font-size: 0.98rem;
  line-height: 1.9;
}
.card__list li { position: relative; padding-left: 1.1rem; }
.card__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fg-faint);
}

/* ===================================================== */
/* ABOUT */
/* ===================================================== */
.about { justify-content: center; }
.chrome--about-tr { top: -10%; right: -14%; width: min(48vw, 600px); }
.chrome--about-bl { bottom: -22%; left: -20%; width: min(44vw, 560px); }
.about__text { position: relative; z-index: 2; align-self: center; max-width: 420px; }
.about__title {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  margin-top: 3.5rem;
  text-align: right;
}

/* ===================================================== */
/* CONTACT */
/* ===================================================== */
.contact { justify-content: flex-start; padding-top: 11rem; }
.chrome--contact-tr { top: -14%; right: -18%; width: min(46vw, 560px); }
.chrome--contact-bl { bottom: -48%; left: -20%; width: min(26vw, 320px); }
.contact__title { position: relative; z-index: 2; margin-bottom: 3.5rem; }

.contact__rows {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  max-width: 640px;
}
.contact__row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contact__label {
  font-family: 'Inter', sans-serif;
  color: var(--fg-faint);
  font-size: 1rem;
}
.contact__value {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--fg);
  position: relative;
  width: fit-content;
}
.contact__value::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.contact__value:hover::after { transform: scaleX(1); }

.footer {
  position: relative;
  z-index: 2;
  margin-top: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--fg-faint);
}

/* ===================================================== */
/* RESPONSIVE — collapse to document flow below ~900px   */
/* ===================================================== */
@media (max-width: 900px) {
  .slide {
    min-height: auto;
    padding: 6.5rem 1.5rem 5rem;
    align-items: center !important;
    text-align: center;
  }

  .chrome { position: relative; z-index: 1; margin: 1.5rem 0; opacity: 0.9; }
  .chrome--hero-a, .chrome--hero-b,
  .chrome--vision-tr, .chrome--vision-bl,
  .chrome--mission-l, .chrome--mission-r,
  .chrome--market, .chrome--how-tr, .chrome--how-bl,
  .chrome--about-tr, .chrome--about-bl,
  .chrome--contact-tr, .chrome--contact-bl,
  .chrome--wwd {
    top: auto; left: auto; right: auto; bottom: auto;
    width: min(82vw, 420px);
  }

  /* keep one accent shape per section on small screens — two full-bleed
     renders before the copy makes phones scroll too far to reach content */
  .chrome--vision-bl,
  .chrome--mission-r,
  .chrome--how-bl,
  .chrome--about-bl,
  .chrome--contact-bl {
    display: none;
  }

  /* let each surviving shape peek in from a screen edge (matching its
     desktop corner) instead of sitting fully visible in the center —
     .slide has overflow:clip at full viewport width, so the overhang
     crops cleanly at the edge. Sides strictly alternate section-to-section
     (hero L/R, wwd L, vision R, mission L, market R, how L, about R,
     contact L) so no two consecutive sections ever bleed the same side. */
  .chrome--hero-a, .chrome--wwd, .chrome--mission-l,
  .chrome--how-tr, .chrome--contact-tr {
    margin-left: -20vw;
    margin-right: auto;
  }
  .chrome--hero-b, .chrome--vision-tr, .chrome--market,
  .chrome--about-tr {
    margin-right: -20vw;
    margin-left: auto;
  }

  .hero { display: flex; flex-direction: column; }
  .hero__content { order: 2; }
  .chrome--hero-a { order: 1; }
  .chrome--hero-b { order: 3; }

  .whatwedo { display: flex; flex-direction: column; align-items: center; }
  .brandmark { position: static; margin-bottom: 1rem; }
  .whatwedo__text { align-self: center; margin-bottom: 2rem; text-align: center; }
  .whatwedo__text .copy { margin: 0 auto; }
  .whatwedo__title { align-self: center; }

  .market { text-align: center; }
  .market__title { text-align: center; margin: 0 auto; }
  .stats { grid-template-columns: 1fr; gap: 2.6rem; margin-top: 3rem; }

  .cards { grid-template-columns: 1fr; }

  .about { display: flex; flex-direction: column; align-items: center; }
  .about__text { text-align: center; margin: 0 auto 1rem; }
  .about__title { align-self: center; text-align: center; }

  .contact__row { grid-template-columns: 1fr; gap: 0.3rem; text-align: center; }

  .footer { flex-direction: column; gap: 0.6rem; text-align: center; }

  .bg-glow { width: 90vw; height: 90vw; }
}

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