:root {
  --bg: #000000;
  --accent: #50207a;
  --accent-2: #d6b9fc;
  --accent-3: #838ce5;
  --muted: rgba(247, 245, 250, 0.14);
  --text: #f7f5fa;
  --content-width: 820px;
  --section-gap: clamp(6rem, 12vh, 8.75rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", "Space Grotesk", "DM Sans", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.page-main {
  flex: 1;
  padding: clamp(7rem, 14vh, 10rem) 0 clamp(5rem, 10vh, 7rem);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(1.5rem, 1fr) minmax(0, var(--content-width)) minmax(1.5rem, 1fr);
  align-items: start;
  position: relative;
}

.page-content {
  grid-column: 2;
  display: grid;
  gap: var(--section-gap);
}

.section-marker {
  grid-column: 1;
  justify-self: end;
  align-self: start;
  position: sticky;
  top: clamp(6rem, 12vh, 8rem);
  display: grid;
  gap: 0.7rem;
  font-size: 0.65rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(247, 245, 250, 0.55);
  opacity: 0.7;
}

.section-marker__title {
  font-size: 0.6rem;
}

.section-marker__rule {
  width: 1px;
  height: 36px;
  background: rgba(214, 185, 252, 0.35);
  justify-self: end;
}

.section-marker__item {
  font-size: 0.62rem;
}

.about-intro,
.about-section {
  position: relative;
  isolation: isolate;
}

.about-intro {
  display: grid;
  gap: 1.4rem;
}

.about-intro::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 260px;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(214, 185, 252, 0.16), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(131, 140, 229, 0.12), transparent 50%),
    repeating-linear-gradient(120deg, rgba(214, 185, 252, 0.08) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(60deg, rgba(131, 140, 229, 0.07) 0 1px, transparent 1px 100px);
  opacity: 0.25;
  filter: blur(0.5px);
  z-index: -1;
}

.intro__micro {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(214, 185, 252, 0.8);
}

.intro__line {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(247, 245, 250, 0.92);
}

.intro__copy {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(247, 245, 250, 0.8);
}

.about-section {
  display: grid;
  gap: 1.4rem;
}

.about-section h2 {
  margin: 0;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(214, 185, 252, 0.65);
}

.about-section p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(247, 245, 250, 0.82);
}

.section-why {
  padding-left: clamp(1rem, 2.5vw, 2rem);
}

.section-why::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  width: 1px;
  background: rgba(214, 185, 252, 0.25);
}

.section-why::after {
  content: "";
  position: absolute;
  left: -42%;
  top: 8%;
  width: 120%;
  height: 70%;
  background-image:
    repeating-linear-gradient(120deg, rgba(214, 185, 252, 0.12) 0 1px, transparent 1px 70px),
    repeating-linear-gradient(40deg, rgba(131, 140, 229, 0.1) 0 1px, transparent 1px 80px);
  opacity: 0.2;
  filter: blur(1.2px);
  z-index: -1;
}

.chapter-label {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(214, 185, 252, 0.7);
}

.pause-line {
  font-size: 1.05rem;
  color: rgba(247, 245, 250, 0.7);
  margin-top: 0.8rem;
}

.section-belief::before {
  content: "";
  position: absolute;
  right: -18%;
  top: 5%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(214, 185, 252, 0.2);
  box-shadow: inset 0 0 0 1px rgba(131, 140, 229, 0.18), 0 0 40px rgba(80, 32, 122, 0.25);
  background:
    radial-gradient(circle at 50% 50%, rgba(214, 185, 252, 0.08), transparent 60%),
    radial-gradient(circle at 30% 30%, rgba(131, 140, 229, 0.12), transparent 65%);
  opacity: 0.45;
  z-index: -1;
}

.pull-quote {
  margin: 0;
  padding: 1.4rem 1.6rem;
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  line-height: 1.6;
  color: rgba(247, 245, 250, 0.92);
  border: 1px solid rgba(214, 185, 252, 0.2);
  border-radius: 18px;
  background: rgba(80, 32, 122, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.section-work::before {
  content: "";
  position: absolute;
  left: -18%;
  top: 18%;
  width: 260px;
  height: 200px;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(214, 185, 252, 0.18), transparent 45%),
    radial-gradient(circle at 55% 25%, rgba(131, 140, 229, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(247, 245, 250, 0.1), transparent 45%),
    linear-gradient(90deg, rgba(214, 185, 252, 0.12), transparent 70%);
  opacity: 0.28;
  filter: blur(0.8px);
  z-index: -1;
}

.soft-divider {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  background: rgba(214, 185, 252, 0.35);
  margin: 0.6rem 0 0.2rem;
}

.short-paragraph {
  font-size: 1.02rem;
  color: rgba(247, 245, 250, 0.75);
}

.side-note {
  margin: 1rem 0 0;
  max-width: 18rem;
  font-size: 0.95rem;
  color: rgba(214, 185, 252, 0.68);
  border-left: 1px solid rgba(214, 185, 252, 0.3);
  padding-left: 1rem;
}

.section-teams {
  padding: 0.6rem 0;
}

.section-teams::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -12%;
  width: 100vw;
  height: 120%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 100%, rgba(214, 185, 252, 0.18), transparent 60%),
    linear-gradient(180deg, transparent 0%, rgba(80, 32, 122, 0.18) 65%, rgba(80, 32, 122, 0.32) 100%);
  opacity: 0.35;
  z-index: -1;
}

.section-teams::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 10%;
  width: 180px;
  height: 240px;
  background:
    radial-gradient(circle at 50% 22%, rgba(247, 245, 250, 0.2) 0 18%, transparent 20%),
    radial-gradient(ellipse at 50% 70%, rgba(214, 185, 252, 0.18) 0 38%, transparent 42%);
  opacity: 0.45;
  filter: blur(0.6px);
  z-index: -1;
}

.closing-line {
  font-size: 1.05rem;
  color: rgba(247, 245, 250, 0.72);
}

.section-future::before {
  content: "";
  position: absolute;
  left: -14%;
  top: 8%;
  width: 260px;
  height: 260px;
  border-radius: 28px;
  border: 1px solid rgba(214, 185, 252, 0.16);
  background:
    radial-gradient(circle at 60% 40%, rgba(214, 185, 252, 0.12), transparent 60%),
    linear-gradient(140deg, rgba(131, 140, 229, 0.08), transparent 70%);
  opacity: 0.4;
  filter: blur(0.6px);
  z-index: -1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.65rem 2.8rem;
  display: flex;
  justify-content: center;
  z-index: 30;
  backdrop-filter: blur(0px);
  transform: translateY(-80%);
  opacity: 0;
  pointer-events: none;
  transition: padding 0.3s ease, backdrop-filter 0.3s ease, background-color 0.3s ease;
}

.site-header.header--scrolled {
  padding: 1.2rem 2.8rem;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
}

.header__inner {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.header__brand {
  justify-self: start;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
}

.header__nav {
  display: inline-flex;
  justify-content: center;
  gap: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 1.08rem;
}

.header__link {
  position: relative;
  text-decoration: none;
  color: rgba(247, 245, 250, 0.82);
  padding: 0.25rem 0;
  transition: color 0.2s ease, transform 0.25s ease;
}

.header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: center;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.header__link:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.header__link:hover::after {
  transform: scaleX(1);
}

.header__login {
  justify-self: end;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 1.08rem;
  color: rgba(214, 185, 252, 0.9);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.25s ease;
}

.header__login:hover {
  color: var(--text);
  background: rgba(80, 32, 122, 0.2);
  transform: translateY(-2px);
}

.page-ready .site-header {
  animation: headerReveal 0.8s ease-out forwards;
  pointer-events: auto;
}

.header__burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(214, 185, 252, 0.3);
  background: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
  justify-self: end;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.header__burger:hover {
  transform: translateY(-1px);
  border-color: rgba(131, 140, 229, 0.6);
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.site-header.header--menu-open .header__burger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.page-ready .header__link:nth-child(1) {
  animation: navRise 0.5s ease-out 0.1s both;
}

.page-ready .header__link:nth-child(2) {
  animation: navRise 0.5s ease-out 0.18s both;
}

.page-ready .header__link:nth-child(3) {
  animation: navRise 0.5s ease-out 0.26s both;
}

.page-ready .header__login {
  animation: navRise 0.5s ease-out 0.34s both;
}

@keyframes navRise {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header.header--menu-open .header__burger span:nth-child(2) {
  opacity: 0;
}

.site-header.header--menu-open .header__burger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
  .header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, -12px);
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(214, 185, 252, 0.2);
    border-radius: 12px;
    display: grid;
    grid-auto-rows: auto;
    gap: 0.7rem;
    width: min(280px, 90vw);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .site-header.header--menu-open .header__nav {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 12px);
  }

  .header__nav .header__link {
    text-align: center;
    font-size: 1.02rem;
  }

  .header__link::after {
    display: none;
  }

  .header__login {
    display: none;
  }

  .header__burger {
    display: inline-flex;
  }
}

@keyframes headerReveal {
  0% {
    transform: translateY(-80%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.footer {
  width: 100%;
  background: #050505;
  padding: clamp(2.8rem, 6vh, 4rem) clamp(1.6rem, 4.6vw, 3.2rem);
  color: rgba(247, 245, 250, 0.8);
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.2rem);
  align-items: start;
}

.footer__heading {
  margin: 0 0 0.6rem 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(214, 185, 252, 0.9);
}

.footer__text {
  margin: 0 0 0.4rem 0;
  color: rgba(247, 245, 250, 0.82);
  line-height: 1.6;
}

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.footer__logo {
  width: 32px;
  height: 32px;
  display: block;
}

.footer__text--muted {
  color: rgba(247, 245, 250, 0.65);
  font-size: 0.95rem;
}

.footer__nav {
  display: grid;
  gap: 0.35rem;
}

.footer__link {
  color: rgba(247, 245, 250, 0.82);
  text-decoration: none;
  font-size: 0.98rem;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text);
}

.footer__bottom {
  margin-top: clamp(1.8rem, 3vh, 2.4rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1rem;
  display: grid;
  gap: 0.2rem;
}

.footer__bottom-text {
  margin: 0;
  color: rgba(247, 245, 250, 0.68);
  font-size: 0.95rem;
}

.footer__bottom-text--muted {
  color: rgba(247, 245, 250, 0.55);
}

.page-fade {
  opacity: 0;
  transition: opacity 1.1s ease;
}

body.page-ready .page-fade {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .section-why::after {
    animation: parallaxShift 1s linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 100%;
  }

  .pull-quote {
    opacity: 0;
    animation: quoteFade 0.9s ease forwards;
    animation-timeline: view();
    animation-range: entry 10% entry 60%;
  }

  .side-note {
    opacity: 0;
    animation: sideNoteFade 1s ease forwards;
    animation-timeline: view();
    animation-range: entry 20% entry 70%;
  }

  .section-teams::before {
    opacity: 0;
    animation: tintFade 0.9s ease forwards;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
}

@keyframes parallaxShift {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(12px);
  }
}

@keyframes quoteFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes tintFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.35;
  }
}

@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: 1fr;
  }

  .page-content {
    grid-column: 1;
    padding: 0 1.6rem;
  }

  .section-marker {
    display: none;
  }

  .section-belief::before {
    right: -8%;
  }

  .section-work::before {
    left: -6%;
  }

  .section-teams::after {
    right: 2%;
    opacity: 0.35;
  }

  .section-future::before {
    left: -4%;
    opacity: 0.32;
  }

  .side-note {
    position: static;
    max-width: none;
  }
}

@media (min-width: 1100px) {
  .side-note {
    position: absolute;
    right: -12rem;
    top: 4.2rem;
    margin: 0;
    max-width: 12rem;
  }
}

@media (max-width: 600px) {
  .intro__line {
    font-size: 1.35rem;
  }

  .about-section p {
    font-size: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-fade {
    transition: none;
  }

  .section-why::after,
  .pull-quote,
  .side-note,
  .section-teams::before {
    animation: none;
  }
}
