:root {
  --bg: #0a0a0b;
  --bg-soft: #111113;
  --line: #1f1f23;
  --text: #e8e6e3;
  --muted: #8a8a93;
  --accent: #c9f24d;
  --radius: 14px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0a0b; }

a { color: inherit; text-decoration: none; }

/* --- Background texture --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  top: -30vh;
  left: 50%;
  width: 90vw;
  max-width: 900px;
  height: 90vh;
  /* drifts down and dims as the page scrolls, so the light never feels pinned */
  transform: translateX(-50%) translateY(calc(var(--scroll-progress, 0) * 34vh));
  opacity: calc(1 - var(--scroll-progress, 0) * 0.55);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 50% 40%, rgba(201, 242, 77, 0.09), transparent 62%);
  filter: blur(30px);
}

/* --- Scroll progress bar --- */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 60;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.04);
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(201, 242, 77, 0.3), var(--accent));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: 0 50%;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px max(24px, calc((100vw - var(--maxw)) / 2));
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav__logo {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.nav__logo::after {
  content: '.';
  color: var(--accent);
}

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}

.nav__links a {
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Covers the viewport so the grains can drift anywhere on screen, and stays
   put while the page scrolls: the crumbling runs all the way to the contacts
   section, long after the hero itself has gone. */
.hero__doves {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.62;
  /* a touch of softness sells the frosted look and rounds off grain edges */
  filter: blur(0.4px);
}

.hero__doves.is-spent {
  visibility: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* whole block lifts and fades out over the first screen of scrolling */
  transform: translateY(calc(var(--hero-progress, 0) * -46px));
  opacity: calc(1 - var(--hero-progress, 0) * 1.05);
  will-change: transform, opacity;
}

.hero__kicker {
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-shadow: 0 2px 14px rgba(10, 10, 11, 0.9);
}

.hero__kicker::before,
.hero__kicker::after {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: clamp(76px, 21vw, 250px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  display: flex;
  justify-content: center;
  /* moves slightly faster than the rest of the block for depth */
  transform: translateY(calc(var(--hero-progress, 0) * -34px));
}

.hero__letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.35em);
  animation: letterIn 1s var(--ease) forwards;
}

.hero__letter:nth-child(1) { animation-delay: 0.05s; }
.hero__letter:nth-child(2) { animation-delay: 0.14s; }
.hero__letter:nth-child(3) { animation-delay: 0.23s; }
.hero__letter:nth-child(4) { animation-delay: 0.32s; color: var(--accent); }

@keyframes letterIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lead {
  max-width: 480px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 19px;
  /* lifts the copy off the wings behind it */
  text-shadow: 0 2px 16px rgba(10, 10, 11, 0.9), 0 0 6px rgba(10, 10, 11, 0.75);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn:hover {
  border-color: #35353c;
  background: var(--bg-soft);
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0b;
  font-weight: 600;
}

.btn--primary:hover {
  background: #d6ff5e;
  border-color: #d6ff5e;
}

.hero__scroll {
  margin-top: 64px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c5c66;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 14px;
}

.hero__scroll span {
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.2s var(--ease) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 110px 24px;
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 54px;
}

.section__num {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.section__title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.03em;
}

/* --- About --- */
.about {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__text p + p { margin-top: 18px; }
.about__text strong { color: var(--accent); font-weight: 600; }

.stack { list-style: none; }

.stack li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.stack li span {
  font-weight: 500;
  white-space: nowrap;
}

.stack li em {
  font-style: normal;
  color: var(--muted);
  font-size: 15px;
  text-align: right;
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 72px;
}

.stat {
  padding: 24px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.stat:hover {
  border-color: #35353c;
  transform: translateY(-3px);
}

.stat b {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stat span {
  font-size: 14px;
  color: var(--muted);
}

/* --- Contact --- */
.contact { max-width: 640px; }

.contact__lead {
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 26px;
}

.contact__handle {
  display: inline-block;
  font-family: 'Unbounded', sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 6vw, 56px);
  letter-spacing: -0.04em;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.45s var(--ease), color 0.3s var(--ease);
}

.contact__handle:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

.contact__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.contact__links a {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact__links a:hover {
  color: var(--text);
  border-color: #35353c;
  transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 24px 46px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 14px;
  color: #5c5c66;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  /* shift flips sign so a block always returns from the edge it left through */
  transform: translateY(var(--reveal-shift, 30px)) scale(0.985);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Section titles get a line that draws itself in as the heading appears */
.section__head::after {
  content: '';
  flex: 1;
  align-self: center;
  height: 1px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--ease) 0.15s;
}

.section__head.is-visible::after {
  transform: scaleX(1);
}

/* --- Responsive --- */
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__links { gap: 18px; font-size: 14px; }
  /* keeps the kicker on one line so the accent dashes stay aligned with it */
  .hero__kicker { font-size: 11.5px; letter-spacing: 0.1em; gap: 10px; }
  .hero__kicker::before, .hero__kicker::after { width: 16px; }
  .section { padding: 80px 20px; }
  .hero { padding: 100px 20px; }
  .hero__doves { opacity: 0.7; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 30px; }
  .stat { padding: 20px 16px; }
  .stat span { font-size: 12.5px; }
}

/* On the narrowest phones the dashes no longer fit beside the kicker */
@media (max-width: 400px) {
  .hero__kicker::before, .hero__kicker::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .hero__letter { opacity: 1; transform: none; filter: none; }
  .hero__inner, .hero__title { transform: none; opacity: 1; }
  .glow { transform: translateX(-50%); opacity: 1; }
  .section__head::after { transform: scaleX(1); }
}
