:root {
  color-scheme: light;
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Atkinson Hyperlegible", Verdana, sans-serif;
  --primary: #08645e;
  --secondary-green: #00be9c;
  --secondary-orange: #e76b44;
  --secondary-yellow: #eabd1f;
  --secondary-purple: #9747ff;
  --tertiary-green: #d9ffed;
  --tertiary-orange: #ffd8cc;
  --ink: oklch(17% 0.036 184);
  --ink-soft: oklch(34% 0.032 184);
  --surface: oklch(98% 0.012 154);
  --paper: oklch(94.5% 0.03 157);
  --line: color-mix(in oklch, var(--primary) 18%, var(--surface));
  --muted: color-mix(in oklch, var(--primary) 8%, var(--surface));
  --radius: 8px;
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;
  --space-5xl: 6rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.62;
}

body::selection {
  background: var(--secondary-yellow);
  color: var(--ink);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  appearance: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: var(--space-lg);
  left: 50%;
  display: grid;
  width: min(1120px, calc(100% - 32px));
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm);
  color: var(--surface);
  background: color-mix(in oklch, var(--primary) 96%, transparent);
  border: 1px solid color-mix(in oklch, var(--surface) 22%, transparent);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px color-mix(in oklch, var(--ink) 18%, transparent);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand,
.nav-date,
.nav-cta,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1;
}

.brand {
  grid-column: 1;
  justify-self: start;
  justify-content: flex-start;
  padding: 0 var(--space-sm);
  border: 0;
  color: inherit;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 750;
  background: transparent;
  cursor: pointer;
}

.brand-short {
  display: none;
}

.nav-date {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.nav-cta {
  grid-column: 3;
  justify-self: end;
  padding: 0 var(--space-lg);
  border: 0;
  color: var(--primary);
  background: var(--surface);
  cursor: pointer;
}

.button {
  padding: 0 var(--space-xl);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms var(--ease-out-quint), background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--surface);
  background: var(--primary);
  border-color: var(--primary);
}

.button.primary:hover {
  background: color-mix(in oklch, var(--primary) 86%, var(--ink));
  border-color: color-mix(in oklch, var(--primary) 86%, var(--ink));
}

.button.ghost {
  color: var(--primary);
  background: color-mix(in oklch, var(--surface) 58%, transparent);
  border-color: color-mix(in oklch, var(--primary) 22%, transparent);
}

.button:focus-visible,
.brand:focus-visible,
.nav-cta:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--secondary-green);
  outline-offset: 3px;
}

.hero {
  display: grid;
  min-height: 88svh;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 6.2rem max(1rem, calc((100vw - 1180px) / 2)) 2.4rem;
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in oklch, var(--primary) 6%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in oklch, var(--primary) 6%, transparent) 1px, transparent 1px),
    linear-gradient(180deg, color-mix(in oklch, var(--surface) 86%, var(--tertiary-green)) 0%, var(--tertiary-green) 100%);
  background-size: 56px 56px, 56px 56px, auto;
  overflow: hidden;
  scroll-margin-top: 6rem;
}

.hero-copy {
  display: grid;
  gap: var(--space-xl);
  max-width: 36rem;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--secondary-orange);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--secondary-orange);
  font-size: 1.05rem;
  line-height: 1.15;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 750;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  color: var(--primary);
  font-size: 5.3rem;
  line-height: 0.9;
}

h2 {
  max-width: 12ch;
  font-size: 4.6rem;
  line-height: 0.92;
}

h3 {
  color: var(--primary);
  font-size: 1.7rem;
  line-height: 1;
}

.hero-copy p:not(.eyebrow),
.ifs-lead p,
.parts-definition p,
.split p,
.details-copy p,
.instructor-copy p,
.enroll-copy p {
  margin: 0;
  color: color-mix(in oklch, currentColor 72%, transparent);
}

.hero-copy p:not(.eyebrow) {
  max-width: 38rem;
  color: color-mix(in oklch, var(--ink) 76%, transparent);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.parts-stage {
  --pointer-x: 0px;
  --pointer-y: 0px;
  position: relative;
  min-height: min(62svh, 560px);
  margin: 0;
  overflow: visible;
  transform: translate(var(--pointer-x), var(--pointer-y));
  transition: transform 160ms ease-out;
}

.parts-wheel-svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(49vw, 620px);
  max-width: min(100%, 620px);
  overflow: visible;
  transform: translate(-50%, -50%);
  animation: wheel-breathe 8s var(--ease-out-quint) 1.2s infinite;
}

.wheel-glow {
  fill: color-mix(in oklch, var(--secondary-green) 12%, transparent);
  filter: drop-shadow(0 34px 48px color-mix(in oklch, var(--primary) 22%, transparent));
}

.wheel-orbit {
  fill: none;
  stroke: color-mix(in oklch, var(--primary) 12%, transparent);
  vector-effect: non-scaling-stroke;
}

.orbit-one {
  stroke-width: 1.4;
}

.orbit-two {
  stroke-width: 1;
  stroke-dasharray: 7 12;
  animation: orbit-drift 14s linear infinite;
  transform-box: view-box;
  transform-origin: center;
}

.wheel-chart {
  animation: wheel-drift 14s ease-in-out 1.4s infinite;
  transform-box: view-box;
  transform-origin: center;
}

.parts-wheel-svg:hover .wheel-chart,
.parts-wheel-svg:focus-within .wheel-chart,
.parts-wheel-svg.is-user-interacting .wheel-chart,
.parts-wheel-svg:hover .orbit-two,
.parts-wheel-svg:focus-within .orbit-two,
.parts-wheel-svg.is-user-interacting .orbit-two {
  animation-play-state: paused;
}

.wheel-slice {
  --hover-x: 0px;
  --hover-y: 0px;
  opacity: 0;
  cursor: pointer;
  animation: slice-arrive 580ms var(--ease-out-quint) forwards;
  animation-delay: var(--delay);
  transform: translate(0, 0) scale(1);
  transform-box: view-box;
  transform-origin: center;
  transition: filter 220ms var(--ease-out-quint), transform 220ms var(--ease-out-quint);
}

.wheel-slice path {
  stroke: color-mix(in oklch, var(--surface) 86%, transparent);
  stroke-linejoin: round;
  stroke-width: 12;
  transition: stroke 220ms ease;
  vector-effect: non-scaling-stroke;
}

.wheel-slice:hover,
.wheel-slice:focus-visible,
.wheel-slice.is-idle-highlighted {
  filter: drop-shadow(0 18px 22px color-mix(in oklch, var(--primary) 22%, transparent));
  transform: translate(var(--hover-x), var(--hover-y)) scale(1.035);
}

.wheel-slice:hover path,
.wheel-slice:focus-visible path,
.wheel-slice.is-idle-highlighted path {
  stroke: color-mix(in oklch, var(--surface) 96%, transparent);
}

.wheel-slice:focus-visible {
  outline: none;
}

.slice-label {
  fill: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 750;
  letter-spacing: 0;
  opacity: 0;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
  transform: scale(0.96);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 180ms ease, transform 220ms var(--ease-out-quint);
}

.slice-4 .slice-label,
.slice-5 .slice-label,
.slice-7 .slice-label,
.slice-8 .slice-label {
  fill: var(--surface);
}

.wheel-slice:hover .slice-label,
.wheel-slice:focus-visible .slice-label,
.wheel-slice.is-idle-highlighted .slice-label {
  opacity: 1;
  transform: scale(1);
}

.slice-1 {
  --hover-x: 7.7px;
  --hover-y: -18.5px;
  --delay: 80ms;
}

.slice-1 path {
  fill: color-mix(in oklch, var(--secondary-green) 80%, var(--surface));
}

.slice-2 {
  --hover-x: 18.5px;
  --hover-y: -7.7px;
  --delay: 150ms;
}

.slice-2 path {
  fill: color-mix(in oklch, var(--secondary-yellow) 88%, var(--surface));
}

.slice-3 {
  --hover-x: 18.5px;
  --hover-y: 7.7px;
  --delay: 220ms;
}

.slice-3 path {
  fill: color-mix(in oklch, var(--tertiary-orange) 84%, var(--secondary-yellow));
}

.slice-4 {
  --hover-x: 7.7px;
  --hover-y: 18.5px;
  --delay: 290ms;
}

.slice-4 path {
  fill: color-mix(in oklch, var(--secondary-orange) 80%, var(--tertiary-orange));
}

.slice-5 {
  --hover-x: -7.7px;
  --hover-y: 18.5px;
  --delay: 360ms;
}

.slice-5 path {
  fill: var(--secondary-orange);
}

.slice-6 {
  --hover-x: -18.5px;
  --hover-y: 7.7px;
  --delay: 430ms;
}

.slice-6 path {
  fill: color-mix(in oklch, var(--secondary-purple) 74%, var(--surface));
}

.slice-7 {
  --hover-x: -18.5px;
  --hover-y: -7.7px;
  --delay: 500ms;
}

.slice-7 path {
  fill: color-mix(in oklch, var(--primary) 78%, var(--secondary-green));
}

.slice-8 {
  --hover-x: -7.7px;
  --hover-y: -18.5px;
  --delay: 570ms;
}

.slice-8 path {
  fill: color-mix(in oklch, var(--secondary-purple) 72%, var(--primary));
}

.wheel-core {
  opacity: 0;
  animation: core-arrive 720ms var(--ease-out-quint) 620ms forwards;
  transform-box: view-box;
  transform-origin: center;
}

.wheel-center {
  fill: color-mix(in oklch, var(--surface) 88%, var(--tertiary-green));
  stroke: color-mix(in oklch, var(--primary) 20%, transparent);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.wheel-center-dot {
  fill: var(--primary);
}

.wheel-center-label {
  fill: var(--surface);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 750;
  letter-spacing: 0;
  text-anchor: middle;
  dominant-baseline: central;
}

section:not(.hero) {
  padding: var(--space-5xl) max(1rem, calc((100vw - 1120px) / 2));
  scroll-margin-top: 6rem;
}

.ifs-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
  background: var(--surface);
}

.ifs-lead,
.parts-definition {
  display: grid;
  gap: var(--space-xl);
}

.ifs-lead p {
  max-width: 35rem;
  font-size: 1.12rem;
}

.parts-definition {
  padding: var(--space-2xl);
  background: color-mix(in oklch, var(--tertiary-green) 58%, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.parts-definition p {
  font-size: 1.05rem;
}

.split,
.details-section,
.instructor-section,
.enroll-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.learn-list {
  display: grid;
  gap: var(--space-xl);
  max-width: 42rem;
  font-size: 1.08rem;
}

.learn-list strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.22rem;
}

.learn-section {
  background: var(--tertiary-green);
}

.details-section {
  background: var(--secondary-green);
}

.details-section h2 {
  color: var(--ink);
}

.details-section .section-kicker {
  color: color-mix(in oklch, var(--primary) 72%, var(--ink));
}

.details-copy {
  display: grid;
  gap: var(--space-xl);
}

.details-copy p {
  max-width: 35rem;
  font-size: 1.08rem;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin: 0;
}

.details-grid div {
  min-height: 7rem;
  padding: var(--space-lg) var(--space-xl);
  background: color-mix(in oklch, var(--surface) 86%, var(--tertiary-green));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

dt {
  color: color-mix(in oklch, var(--primary) 66%, var(--ink));
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: var(--space-sm) 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 750;
  line-height: 1.05;
}

.instructor-photo {
  width: min(100%, 22rem);
  aspect-ratio: 1;
  justify-self: center;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.instructor-copy,
.enroll-copy {
  display: grid;
  gap: var(--space-xl);
}

.instructor-copy p,
.enroll-copy p {
  max-width: 36rem;
  font-size: 1.08rem;
}

.enroll-copy .limited-note {
  color: var(--tertiary-green);
  font-weight: 700;
}

.instructor-section {
  color: var(--surface);
  background: var(--primary);
}

.instructor-section h2 {
  color: var(--surface);
}

.instructor-section .section-kicker,
.enroll-section .section-kicker {
  color: var(--secondary-green);
}

.enroll-section {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  color: var(--surface);
  background: var(--ink);
}

.enroll-section h2 {
  color: var(--surface);
}

.enroll-section .enroll-copy {
  max-width: 44rem;
  justify-items: center;
}

.button.checkout-button {
  min-height: 56px;
  width: fit-content;
  justify-self: center;
  margin-top: var(--space-sm);
  padding: 0 var(--space-2xl);
  color: var(--ink);
  font-size: 1.05rem;
  background: var(--secondary-green);
  border-color: var(--secondary-green);
}

.button.checkout-button:hover {
  background: color-mix(in oklch, var(--secondary-green) 84%, var(--primary));
  border-color: color-mix(in oklch, var(--secondary-green) 84%, var(--primary));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms var(--ease-out-quint), transform 520ms var(--ease-out-quint);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes wheel-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.99);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.015);
  }
}

@keyframes wheel-drift {
  0%,
  100% {
    transform: rotate(-2deg);
  }

  50% {
    transform: rotate(2deg);
  }
}

@keyframes orbit-drift {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slice-arrive {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes core-arrive {
  0% {
    opacity: 0;
    transform: scale(0.86);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 940px) {
  .hero,
  .ifs-section,
  .split,
  .details-section,
  .instructor-section,
  .enroll-section {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: var(--space-xl);
    padding-top: 6.5rem;
  }

  .hero-copy {
    order: 2;
  }

  .parts-stage {
    order: 1;
    min-height: 36svh;
  }

  .parts-wheel-svg {
    width: min(96vw, 430px);
  }

  h1 {
    max-width: 11ch;
    font-size: 4.1rem;
  }

  h2 {
    max-width: 11ch;
    font-size: 3.2rem;
  }
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand-full {
    display: none;
  }

  .brand-short {
    display: inline;
  }

  .nav-cta {
    grid-column: 2;
  }
}

@media (max-width: 660px) {
  .site-header {
    top: var(--space-sm);
    width: calc(100% - 16px);
    grid-template-columns: 1fr auto;
    gap: var(--space-xs);
  }

  .nav-date {
    font-size: 0.7rem;
  }

  .nav-cta {
    grid-column: 2;
    padding: 0 var(--space-sm);
  }

  .hero {
    min-height: auto;
    padding-top: 5.75rem;
    padding-bottom: var(--space-4xl);
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero-copy p:not(.eyebrow) {
    display: none;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  section:not(.hero) {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .details-grid div {
    min-height: auto;
  }

  .button.checkout-button {
    width: fit-content;
  }

  .parts-definition {
    padding: var(--space-xl);
  }

  .instructor-photo {
    width: min(74vw, 18rem);
  }
}

@media (max-width: 360px) {
  .nav-date {
    max-width: 10rem;
    line-height: 1.08;
    text-align: center;
    white-space: normal;
  }
}

@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
