:root {
  --page-bg: #000000;
  --text-main: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.9);
  --accent: #ff1510;
  --accent-dark: #ca0805;
  --focus: rgba(255, 255, 255, 0.72);
  --site-font:
    "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  --display-font: "Oranienbaum", Georgia, "Times New Roman", serif;
  --site-text-size: 17.5px;
  --site-line-height: 1.06;
  font-family: var(--site-font);
  color: var(--text-main);
  background: var(--page-bg);
  letter-spacing: 0;
}

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

html {
  min-width: 320px;
  background: var(--page-bg);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 18rem),
    var(--page-bg);
  color: var(--text-main);
  overflow-x: hidden;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hero {
  --hero-pad-x: 4.75rem;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  min-height: 100svh;
  padding: 3.5rem var(--hero-pad-x) 3.6rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 5rem 5rem;
}

.hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  justify-self: center;
  gap: 1.5rem;
  width: 100%;
  min-height: 3.5rem;
}

.brand,
.hero__mark,
.tagline,
.cta,
.hero__bottom p {
  font-family: var(--site-font);
  font-size: var(--site-text-size);
  font-weight: 400;
  line-height: var(--site-line-height);
  letter-spacing: 0;
}

.brand,
.hero__mark {
  color: var(--text-soft);
  justify-self: center;
  white-space: nowrap;
}

.brand--link {
  justify-self: start;
}

.brand--right {
  justify-self: end;
}

.brand--link:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0.35rem;
}

.hero__center {
  align-self: center;
  justify-self: center;
  display: grid;
  grid-template-columns: minmax(0, 100%);
  justify-items: center;
  gap: 1rem;
  width: 100vw;
  margin-inline: calc(var(--hero-pad-x) * -1);
  padding-block: 0;
  transform: translateY(-5svh);
}

.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(86rem, calc(100vw - 1rem));
  height: 20rem;
  touch-action: pan-y;
}

#logo-canvas,
.logo-fallback {
  display: block;
  width: 100%;
  height: 100%;
}

#logo-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.logo-fallback {
  position: relative;
  z-index: 1;
  opacity: 0.9;
  filter:
    drop-shadow(0 1.2rem 1.8rem rgba(255, 255, 255, 0.12))
    drop-shadow(0 0 0.9rem rgba(255, 255, 255, 0.18));
  transition: opacity 260ms ease;
}

.logo-fallback img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html.is-webgl-ready .logo-fallback {
  opacity: 0;
  visibility: hidden;
}

.tagline {
  max-width: min(100%, 76rem);
  margin: 0 0 1.35rem;
  color: var(--text-main);
  text-align: center;
  text-wrap: balance;
}

.tagline__dot {
  display: inline-block;
  margin-inline: clamp(0.18rem, 0.7vw, 0.36rem);
}

.cta {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --shift-x: 0px;
  --shift-y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18rem;
  min-height: 3.2rem;
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  white-space: normal;
  overflow: hidden;
  box-shadow:
    0 0.85rem 2.4rem rgba(255, 21, 16, 0.18),
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.28);
  transform:
    perspective(700px)
    rotateX(var(--tilt-y))
    rotateY(var(--tilt-x))
    translate3d(var(--shift-x), var(--shift-y), 0);
  transition:
    transform 260ms ease,
    background-color 260ms ease,
    box-shadow 260ms ease;
  will-change: transform;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -45% -70%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.18) 44%,
    rgba(255, 255, 255, 0.76) 50%,
    rgba(255, 255, 255, 0.18) 56%,
    transparent 65%
  );
  transform: translateX(-70%) skewX(-12deg);
  opacity: 0;
  pointer-events: none;
}

.cta:hover {
  background: #ff211d;
  box-shadow:
    0 1rem 2.7rem rgba(255, 21, 16, 0.3),
    inset 0 0.08rem 0 rgba(255, 255, 255, 0.34);
}

.cta:hover::before {
  animation: button-glint 2.8s cubic-bezier(0.18, 0.72, 0.18, 1) both;
}

.cta:active {
  background: var(--accent-dark);
}

.hero__bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  justify-self: center;
  gap: 2rem;
  width: 100%;
  min-height: 4rem;
  color: var(--text-main);
}

.hero__bottom p {
  max-width: 50rem;
  margin: 0;
}

.lesson-count {
  display: block;
  margin-left: auto;
  margin-right: clamp(0.45rem, 1vw, 1rem);
  text-align: right;
  white-space: nowrap;
}

.lesson-count__dot {
  flex: 0 0 auto;
  margin-right: 0.42em;
  color: var(--accent);
  font: inherit;
  line-height: 1;
  text-shadow: 0 0 0.8rem rgba(255, 21, 16, 0.72);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.glass-section {
  position: relative;
  isolation: isolate;
  min-height: 330svh;
  background: #000000;
}

.glass-sticky {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100svh;
  pointer-events: none;
}

.glass-stage {
  --detail-exit-y: 0px;
  --detail-anchor-y: -5svh;
  position: relative;
  display: grid;
  place-items: center;
  width: min(58rem, 74vw);
  height: min(58rem, 74vw);
  max-height: 74svh;
  transform: translate3d(0, calc(var(--detail-anchor-y) + var(--detail-exit-y)), 0);
  will-change: transform;
}

#glass-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

#glass-canvas {
  z-index: 4;
}

.glass-words {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 330svh;
  margin-top: -100svh;
  padding: 82svh 2rem 96svh;
  color: #ffffff;
}

.glass-words p {
  display: grid;
  justify-items: center;
  gap: clamp(0.25rem, 0.72vw, 0.85rem);
  width: min(76rem, calc(100vw - 2rem));
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(5.4rem, 8.6vw, 8.9rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 1.6rem rgba(255, 255, 255, 0.08);
}

.glass-words span {
  display: block;
  max-width: 100%;
  white-space: normal;
  text-wrap: balance;
  transform: scaleX(0.86);
  transform-origin: center;
}

.no-break {
  white-space: nowrap;
}

.final-section {
  --hero-pad-x: 4.75rem;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: stretch center;
  min-height: 88svh;
  padding: clamp(1.9rem, 3.4svh, 3rem) var(--hero-pad-x, 4.75rem) clamp(2.4rem, 4.1svh, 3.8rem);
  overflow: hidden;
  background: #000000;
}

.final-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 5rem 5rem;
}

.final-section::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16%;
  z-index: -1;
  width: min(50rem, 86vw);
  height: 16rem;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 21, 16, 0.2), transparent 72%);
  filter: blur(1.2rem);
  transform: translateX(-50%);
}

.final-section__inner {
  align-self: center;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: clamp(1.35rem, 2.6svh, 2.35rem);
  width: min(96rem, 100%);
  transform: translateY(-5svh);
}

.final-title {
  width: min(84rem, 100%);
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(4.2rem, 9.4vw, 10.5rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
  text-transform: uppercase;
  transform: scaleX(0.88);
  transform-origin: center;
}

.final-cta {
  margin-top: clamp(0.15rem, 0.8svh, 0.65rem);
}

.final-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  justify-self: center;
  align-self: end;
  gap: 1.5rem;
  width: 100%;
  min-height: 3.5rem;
}

@media (min-width: 120rem) {
  .hero {
    --hero-pad-x: 6rem;
    padding-inline: 6rem;
  }

  .final-section {
    --hero-pad-x: 6rem;
  }

  .logo-stage {
    width: 84rem;
    height: 22rem;
  }

  .glass-words p {
    width: min(84rem, calc(100vw - 3rem));
    font-size: clamp(7.6rem, 7.5vw, 10.4rem);
  }
}

@media (max-width: 75rem) {
  .hero {
    --hero-pad-x: 2.5rem;
    padding: 2.5rem var(--hero-pad-x) 2.7rem;
  }

  .logo-stage {
    width: min(76rem, calc(100vw - 1rem));
    height: 18rem;
  }

  .cta {
    min-width: 18rem;
    min-height: 3.2rem;
  }

  .glass-stage {
    width: min(48rem, 84vw);
    height: min(48rem, 84vw);
    --detail-anchor-y: -4svh;
  }

  .glass-words p {
    width: min(70rem, calc(100vw - 1.5rem));
    font-size: clamp(4.7rem, 9.2vw, 7rem);
  }

  .final-title {
    font-size: clamp(3.6rem, 10vw, 7.5rem);
  }

  .final-section {
    --hero-pad-x: 2.5rem;
  }
}

@media (max-width: 48rem) {
  .hero {
    --hero-pad-x: 1rem;
    padding: 1.35rem var(--hero-pad-x) 1.55rem;
  }

  .hero__top {
    min-height: 2.8rem;
    gap: 0.75rem;
  }

  .hero__center {
    gap: 0.8rem;
    padding-block: 0.5rem;
    transform: translateY(-4svh);
  }

  .logo-stage {
    width: 100vw;
    height: clamp(19rem, 46svh, 24rem);
  }

  .tagline {
    width: calc(100vw - 2rem);
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .cta {
    width: min(calc(100vw - 2rem), 18rem);
    min-width: 0;
    min-height: 3.2rem;
    padding: 0.7rem 1rem;
  }

  .hero__bottom {
    display: grid;
    justify-items: center;
    gap: 0.75rem;
    text-align: center;
  }

  .hero__bottom p {
    width: calc(100vw - 2rem);
    max-width: 100%;
  }

  .lesson-count {
    width: calc(100vw - 2rem);
    margin-inline: auto;
    text-align: center;
    white-space: normal;
  }

  .glass-section {
    min-height: 322svh;
  }

  .glass-stage {
    width: 92vw;
    height: 92vw;
    max-height: 56svh;
    --detail-anchor-y: -15svh;
  }

  .glass-words {
    min-height: 322svh;
    padding: 70svh 0.85rem 98svh;
  }

  .glass-words p {
    width: calc(100vw - 1rem);
    gap: 0.42rem;
    font-size: clamp(3.15rem, 13vw, 4.35rem);
    line-height: 0.94;
  }

  .final-section {
    --hero-pad-x: 1rem;
    min-height: 86svh;
    padding: 2rem var(--hero-pad-x) 1.55rem;
  }

  .final-section__inner {
    gap: clamp(1.15rem, 2.3svh, 1.75rem);
    transform: translateY(-4svh);
  }

  .final-title {
    width: 100%;
    font-size: clamp(3.1rem, 15vw, 5.7rem);
    line-height: 0.94;
  }

  .final-footer {
    min-height: 2.8rem;
    gap: 0.75rem;
  }
}

@media (max-height: 43rem) and (orientation: landscape) {
  .hero {
    padding-block: 1rem;
  }

  .hero__top,
  .hero__bottom {
    min-height: 2.5rem;
  }

  .hero__center {
    gap: 0.85rem;
    padding-block: 0.5rem;
    transform: translateY(-2svh);
  }

  .logo-stage {
    height: 9rem;
  }

  .cta {
    min-height: 3.7rem;
    padding-block: 0.85rem;
  }

  .glass-stage {
    width: min(34rem, 56vw);
    height: min(34rem, 56vw);
    max-height: 76svh;
    --detail-anchor-y: -2svh;
  }

  .glass-words {
    padding-top: 96svh;
    padding-bottom: 90svh;
  }

  .glass-words p {
    font-size: clamp(3.6rem, 7.2vw, 5rem);
    line-height: 0.94;
  }

  .final-section {
    min-height: 104svh;
    padding-block: 1.6rem;
  }

  .final-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 0.94;
  }
}

@keyframes button-glint {
  0% {
    opacity: 0;
    transform: translateX(-70%) skewX(-12deg);
  }

  18% {
    opacity: 0.95;
  }

  72% {
    opacity: 0.75;
  }

  100% {
    opacity: 0;
    transform: translateX(70%) skewX(-12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
