:root {
  --maroon: #900c27;
  --white: #ffffff;
  --font-display: "Futura", "Futura PT", "Century Gothic", "Trebuchet MS", sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--maroon);
  font-family: var(--font-body);
  min-height: 100vh;
}

/* ── Floating top bar ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 36px;
  background: var(--white);
  color: var(--maroon);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: start;
}

.social {
  display: inline-flex;
  color: var(--maroon);
  transition: opacity 0.2s ease;
}

.social:hover {
  opacity: 0.7;
}

.social svg {
  width: 22px;
  height: 22px;
  display: block;
}

.topbar-center {
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  color: var(--maroon);
  text-decoration: none;
}

.menu-toggle {
  justify-self: end;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--maroon);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* hamburger → X */
body.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

body.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Fullscreen menu overlay ── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--maroon);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  padding: 110px 8vw 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .menu-overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}

.menu-links {
  list-style: none;
}

.menu-links li {
  border-top: 1px solid var(--white);
}

.menu-links li:last-child {
  border-bottom: 1px solid var(--white);
}

.menu-links a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 6.5vw, 4rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.25s ease, color 0.25s ease, padding 0.25s ease;
}

body.menu-open .menu-links a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(var(--i, 0) * 70ms + 120ms), calc(var(--i, 0) * 70ms + 120ms), 0s, 0s, 0s;
}

.menu-links a:hover {
  background: var(--white);
  color: var(--maroon);
  padding-left: 20px;
}

/* current page */
body.menu-open .menu-links a.active {
  opacity: 0.4;
}

.menu-links a.active:hover {
  background: transparent;
  color: var(--white);
  padding-left: 0;
}

.menu-foot {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease 0.45s;
}

body.menu-open .menu-foot {
  opacity: 0.7;
}

/* ── 01 · Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  margin: 0 2vw;
  background: var(--maroon);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: 140px 6vw 80px;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--white);
  isolation: isolate;
}

.hero-inner {
  max-width: 1000px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 24px;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

/* Typewriter line */
.hero-typed {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  min-height: 1.2em;
  color: var(--white);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards;
}

.caret {
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 6px;
  background: var(--white);
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 48px;
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--white);
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  color: var(--maroon);
  background: var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
}

.btn-ghost {
  color: var(--white);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--maroon);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 6vw;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: var(--white);
  transform-origin: top;
  animation: scroll-pulse 1.8s ease-in-out infinite;
}

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

/* ── Shared section bits ── */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6vw;
}

.kicker {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-lead {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  max-width: 46ch;
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── 02 · Modes (white) ── */
.modes {
  padding: 140px 0;
  background: var(--white);
  color: var(--maroon);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 72px;
  border: 1px solid var(--maroon);
}

.mode-card {
  padding: 44px 36px 56px;
  border-right: 1px solid var(--maroon);
  transition: background 0.25s ease, color 0.25s ease;
  cursor: default;
}

.mode-card:last-child {
  border-right: none;
}

.mode-card:hover {
  background: var(--maroon);
  color: var(--white);
}

.mode-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 56px;
}

.mode-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.mode-card p {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ── 03 · Capabilities (maroon panel) ── */
.capabilities {
  margin: 0 2vw;
  padding: 140px 0;
  background: var(--maroon);
  color: var(--white);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 64px;
  margin-top: 72px;
}

.cap-item {
  border-top: 1px solid var(--white);
  padding-top: 24px;
}

.cap-item h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.cap-item p {
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 38ch;
}

/* ── 04 · Stats (white) ── */
.stats {
  padding: 120px 0;
  background: var(--white);
  color: var(--maroon);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-num,
.stat-suffix {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── 05 · CTA (maroon panel) ── */
.cta {
  margin: 0 2vw 2vw;
  padding: 160px 0;
  background: var(--maroon);
  color: var(--white);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.96;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cta .hero-cta {
  margin-top: 40px;
  justify-content: center;
  opacity: 1;
  animation: none;
}

/* ── Inner pages: hero strip ── */
.page-hero {
  margin: 0 2vw;
  padding: 200px 0 110px;
  background: var(--maroon);
  color: var(--white);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7.5vw, 6.5rem);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.page-hero .section-lead {
  margin-top: 24px;
}

/* ── About: story ── */
.story {
  padding: 140px 0;
  background: var(--white);
  color: var(--maroon);
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}

.story-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.story-body p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 22px;
}

.story-body p:last-child {
  margin-bottom: 0;
}

/* ── Features: rows ── */
.feature-list {
  padding: 120px 0 140px;
  background: var(--white);
  color: var(--maroon);
}

.feature-row {
  display: grid;
  grid-template-columns: 90px 1fr 1.3fr;
  gap: 32px;
  align-items: start;
  padding: 52px 0;
  border-top: 1px solid var(--maroon);
}

.feature-row:last-child {
  border-bottom: 1px solid var(--maroon);
}

.feature-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  padding-top: 6px;
}

.feature-row h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.feature-detail p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 48ch;
}

.feature-detail ul {
  list-style: none;
}

.feature-detail li {
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 0;
  border-top: 1px solid var(--maroon);
  max-width: 48ch;
}

/* ── Contact: channel list ── */
.contact-section {
  padding: 100px 0 160px;
  background: var(--white);
  color: var(--maroon);
}

.contact-list {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--maroon);
  color: var(--maroon);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, padding 0.25s ease;
}

.contact-list .contact-item:last-child {
  border-bottom: 1px solid var(--maroon);
}

a.contact-item:hover {
  background: var(--maroon);
  color: var(--white);
  padding-left: 24px;
  padding-right: 24px;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: right;
}

/* ── Footer (white) ── */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 64px 6vw 48px;
  background: var(--white);
  color: var(--maroon);
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--maroon);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.footer-links a:hover {
  border-bottom-color: var(--maroon);
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .mode-card {
    border-right: none;
    border-bottom: 1px solid var(--maroon);
  }

  .mode-card:last-child {
    border-bottom: none;
  }

  .cap-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 24px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 40px 0;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact-value {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 18px 20px;
  }

  .topbar-center {
    font-size: 1.2rem;
  }

  .topbar-left {
    gap: 14px;
  }

  .social svg {
    width: 19px;
    height: 19px;
  }

  .hero {
    padding: 120px 8vw 100px;
  }

  .hero-cta {
    width: 100%;
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-scroll {
    bottom: 24px;
  }

  .modes,
  .capabilities,
  .story {
    padding: 100px 0;
  }

  .stats {
    padding: 90px 0;
  }

  .cta {
    padding: 120px 0;
  }

  .page-hero {
    padding: 150px 0 80px;
  }

  .feature-list {
    padding: 80px 0 100px;
  }

  .contact-section {
    padding: 70px 0 110px;
  }

  .menu-overlay {
    justify-content: flex-end;
    gap: 36px;
    padding: 100px 7vw 36px;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-typed,
  .hero-cta,
  .hero-scroll,
  .reveal {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }

  .scroll-line,
  .caret {
    animation: none;
  }
}
