:root {
  --bg: #0c0d10;
  --ink: #f6f3ec;
  --muted: #aaa59b;
  --line: rgba(246, 243, 236, 0.14);
  --lime: #d6f25c;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --nav: 76px;
  --pad: clamp(20px, 4vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  font-weight: 500;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { font-family: inherit; }
::selection { background: var(--lime); color: #14160c; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 2px;
  width: 0;
  background: var(--lime);
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.intro p {
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  letter-spacing: -0.03em;
  font-size: 22px;
}
.intro i {
  display: block;
  width: 120px;
  height: 2px;
  background: var(--line);
  position: relative;
  overflow: hidden;
  justify-self: center;
}
.intro i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  animation: load 0.9s ease forwards;
}
.intro.done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@keyframes load { to { transform: scaleX(1); } }

.nav {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 13, 16, 0.82);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.logo {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.links {
  display: flex;
  gap: 22px;
}
.links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.links a:hover,
.links a.active { color: var(--ink); }
.links a:hover::after,
.links a.active::after { transform: scaleX(1); }

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  cursor: pointer;
}
.menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 100px var(--pad);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
}
.menu.open {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.menu a {
  text-decoration: none;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(32px, 8vw, 56px);
  letter-spacing: -0.04em;
}

.kicker {
  margin: 0 0 14px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: Unbounded, Manrope, sans-serif;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
h1 { font-size: clamp(34px, 4.6vw, 68px); max-width: 14em; }
h2 { font-size: clamp(32px, 4vw, 56px); }
.lead, .point {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
}
.point strong, h3 { color: var(--ink); font-weight: 650; }
h3 {
  font-family: Manrope, sans-serif;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  animation: drift 18s ease-in-out alternate infinite;
}
@keyframes drift {
  to { transform: scale(1.14) translate3d(0, -1.5%, 0); }
}
.veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 10, 0.82) 0%, rgba(8, 8, 10, 0.28) 54%, rgba(8, 8, 10, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 8, 10, 0.12) 0%, rgba(8, 8, 10, 0.78) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav) + 40px) var(--pad) 96px;
  max-width: 1080px;
}
.hero-copy .kicker,
.hero-copy h1,
.hero-copy .brand {
  animation: rise 0.9s ease both;
}
.hero-copy h1 { animation-delay: 0.12s; }
.hero-copy .brand { animation-delay: 0.24s; }
.brand {
  margin: 22px 0 0;
  font-size: 18px;
  font-weight: 700;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.scroll {
  position: absolute;
  z-index: 1;
  right: var(--pad);
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.scroll i {
  width: 18px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 99px;
  position: relative;
}
.scroll i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  border-radius: 99px;
  background: var(--lime);
  transform: translateX(-50%);
  animation: bob 1.4s ease-in-out infinite;
}
@keyframes bob {
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.marquee p {
  margin: 0;
  padding-right: 0.4em;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateX(-50%); } }

.block, .chapter, .practice, .company {
  padding: clamp(72px, 10vw, 120px) var(--pad);
}
.platform {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  margin: 32px 0 8px;
}
.spec { flex: 0 0 auto; }
.spec b {
  display: block;
  font-family: Unbounded, Manrope, sans-serif;
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.spec > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  max-width: 11em;
}
.points { display: grid; gap: 16px; margin-top: 28px; }
.frame {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #16171b;
  box-shadow: var(--shadow);
  min-height: 320px;
}
.frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 1.1s ease;
}
.frame:hover img { transform: scale(1); }

.chapter-head { max-width: 16em; margin-bottom: 36px; }
.chapter-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.chapter.flip .frame { order: 2; }
.chapter + .chapter { padding-top: 0; }

.practice {
  border-top: 1px solid var(--line);
}
.practice-head { max-width: 40em; }
.practice .lead { margin-top: 18px; }
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.practice article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.practice article span {
  display: block;
  margin-bottom: 18px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.practice article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 17px;
}

.company {
  display: grid;
  gap: 42px;
}
.company .lead + .lead { margin-top: 14px; }
.meta {
  margin-top: 22px;
  font-weight: 700;
}
.meta a, .foot a { color: var(--lime); text-decoration: none; }
.people {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.person { margin: 0; }
.photo {
  border-radius: 22px;
  overflow: hidden;
  background: #1a1b1f;
  aspect-ratio: 3 / 4;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.7s ease;
}
.person:hover img { transform: scale(1.045); }
.person p { margin: 12px 0 0; font-weight: 700; font-size: 16px; }
.person span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--pad) 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.foot p { margin: 0; }

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: none;
}
.js .reveal.in {
  animation: rise 0.85s ease both;
  animation-delay: var(--d, 0s);
}

@media (max-width: 980px) {
  .links { display: none; }
  .menu-btn { display: inline-flex; }
  .platform, .chapter-body, .practice-grid { grid-template-columns: 1fr; }
  .chapter.flip .frame { order: 0; }
  .frame img { min-height: 280px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scroll { display: none; }
}
@media (max-width: 640px) {
  .foot { flex-direction: column; }
  .specs { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .intro { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
