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

:root {
  --bg: #0a0a0d;
  --bg-soft: #101013;
  --tile: #16161b;
  --text: #f4f3ef;
  --muted: #8c8c94;
  --muted-2: #58585f;
  --accent: #6f6cff;
  --accent-soft: rgba(111, 108, 255, 0.35);
  --line: rgba(255, 255, 255, 0.08);
  --ff-display: 'Inter', sans-serif;
  --ff-body: 'Inter', sans-serif;
  --ff-serif: 'Newsreader', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.025;
  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");
  mix-blend-mode: overlay;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.loader__logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__mark-img {
  width: clamp(150px, 22vw, 260px);
  opacity: 0;
  transform: scale(0.92);
}

.loader__count {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem clamp(1.25rem, 4vw, 3.5rem);
  mix-blend-mode: difference;
}

.logo {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.logo span { color: var(--muted); font-weight: 500; }

.nav {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.3s ease;
}
.nav a:hover::after { right: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
}

/* ---------- Section label ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 clamp(1.25rem, 4vw, 3.5rem);
  padding-top: 6.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-label__no { color: var(--accent); font-weight: 700; }
.section-label__line {
  flex: 0 0 3rem;
  height: 1px;
  background: var(--line);
}
.section-label--light .section-label__line { background: rgba(255,255,255,0.2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.hero__tiles {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  z-index: 0;
  pointer-events: none;
}
.hero__tile-row {
  white-space: nowrap;
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 9rem);
  letter-spacing: 0.02em;
  color: var(--tile);
  line-height: 1;
}
.hero__tile-row:nth-child(even) { transform: translateX(-6%); }

.hero__orbit {
  position: absolute;
  width: min(70vw, 640px);
  height: min(70vw, 640px);
  z-index: 1;
  pointer-events: none;
}
.hero__orbit circle {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25;
  opacity: 0.55;
}
.hero__orbit--tl { top: -18%; left: -20%; }
.hero__orbit--br { bottom: -22%; right: -18%; }

.hero__mark {
  position: relative;
  z-index: 1;
  width: clamp(70px, 10vw, 110px);
  margin-bottom: 1.25rem;
}
.mark-ring {
  fill: none;
  stroke: var(--text);
  stroke-width: 2;
}
.mark-ring--b { stroke: var(--accent); }

.hero__content { position: relative; z-index: 2; max-width: 900px; }

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 8vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.reveal-line { display: block; overflow: hidden; }
.reveal-line span { display: inline-block; }

.hero__tagline {
  margin-top: 1.5rem;
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.hero__sub {
  margin: 2rem auto 0;
  max-width: 640px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}

.hero__scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-2);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0.2; transform: scaleY(0.4); transform-origin: bottom; }
}

/* ---------- About ---------- */
.about {
  padding-bottom: 7rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 3rem clamp(1.25rem, 4vw, 3.5rem) 0;
}

.about__heading {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.about__body p {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.stat-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column; gap: 0.4rem; }
.stat__num {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent);
}
.stat__label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Deliver (horizontal pinned) ---------- */
.deliver {
  position: relative;
  background: var(--bg-soft);
}

.deliver__pin {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.deliver .section-label { padding-bottom: 2rem; flex: none; }

.deliver__track {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 0 clamp(1.25rem, 4vw, 3.5rem) 4rem;
  will-change: transform;
}

.pillar {
  flex: 0 0 min(80vw, 560px);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(2rem, 4vw, 3.5rem);
  background: linear-gradient(160deg, rgba(111,108,255,0.05), transparent 60%);
}

.pillar__no {
  display: block;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.pillar__title {
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.pillar__desc {
  color: var(--muted);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.pillar__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.pillar__tags li {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

/* ---------- Founders ---------- */
.founders {
  padding-bottom: 8rem;
}

.founders__heading {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4rem);
  text-transform: uppercase;
  margin: 2rem clamp(1.25rem, 4vw, 3.5rem) 3.5rem;
  letter-spacing: -0.01em;
}

.founders__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 4rem;
  margin: 0 clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
}

.founders__portraits {
  position: relative;
  height: clamp(280px, 32vw, 420px);
}
.portrait {
  position: absolute;
  width: clamp(160px, 20vw, 220px);
  height: clamp(160px, 20vw, 220px);
  border-radius: 50%;
  background: var(--tile);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
}
.portrait--offset {
  top: clamp(60px, 8vw, 110px);
  left: clamp(90px, 12vw, 150px);
  background: linear-gradient(160deg, rgba(111,108,255,0.18), var(--tile));
}
.portrait__initial {
  font-family: var(--ff-display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: var(--muted-2);
}

.founders__lead {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1.75rem;
  color: var(--text);
}

.founders__copy p {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.founders__tag {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--text) !important;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.95rem !important;
}

/* ---------- Contact ---------- */
.contact {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem;
  overflow: hidden;
  background: var(--bg-soft);
}

.contact__tiles {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.contact__tiles .hero__tile-row { color: var(--tile); }

.contact__heading {
  position: relative;
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.2;
  max-width: 780px;
  margin: 1.5rem 0 2.5rem;
  letter-spacing: -0.01em;
}

.contact__email {
  position: relative;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.4rem;
  transition: color 0.25s ease;
}
.contact__email:hover { color: var(--accent); }

.contact__social {
  position: relative;
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__social a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 1.75rem clamp(1.25rem, 4vw, 3.5rem);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------- Reveal animation base state ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal-line span { transform: translateY(110%); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav {
    display: none;
    position: fixed;
    top: 0; right: 0;
    height: 100svh;
    width: min(75vw, 320px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.75rem;
    padding: 2rem clamp(1.5rem, 6vw, 2.5rem);
    font-size: 1.1rem;
    z-index: 99;
    mix-blend-mode: normal;
    border-left: 1px solid var(--line);
  }
  .nav.nav--open { display: flex; }
  .nav-toggle { display: flex; z-index: 101; }

  .deliver__pin { height: auto; }
  .deliver__track { flex-direction: column; }
  .pillar { flex: none; width: 100%; }

  .about__grid,
  .founders__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .founders__portraits { margin-bottom: 1rem; }

  .stat-row { flex-wrap: wrap; gap: 1.75rem; }

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