/* ===== Design tokens ===== */
:root {
  --bg: #e2dfd5;
  --bg-soft: #d6d4d0;
  --surface: #d1c3ab;
  --accent: #beab93;
  --accent-deep: #aa9371;
  --ink: #1a1a1a;
  --ink-muted: #4a4540;
  --cta: #111111;
  --cta-text: #f5f2ec;
  --spark: #b91c1c;
  --line: rgba(26, 26, 26, 0.12);
  --overlay: linear-gradient(
    105deg,
    rgba(226, 223, 213, 0.92) 0%,
    rgba(226, 223, 213, 0.72) 38%,
    rgba(226, 223, 213, 0.15) 68%,
    transparent 100%
  );
  --overlay-mobile: linear-gradient(
    180deg,
    rgba(226, 223, 213, 0.55) 0%,
    rgba(26, 26, 26, 0.55) 100%
  );
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(209, 195, 171, 0.55), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 20%, rgba(190, 171, 147, 0.28), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 50%, var(--bg) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ===== Typography ===== */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1rem;
}

h1,
h2,
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-muted);
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

.punch {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  margin: 1.75rem 0 0;
  max-width: 32rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(226, 223, 213, 0.78);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(226, 223, 213, 0.94);
  box-shadow: 0 8px 28px rgba(26, 26, 26, 0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.25s var(--ease);
}

.nav-link:hover {
  color: var(--ink);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border: 1px solid transparent;
  background: var(--cta);
  color: var(--cta-text);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn:hover {
  background: var(--spark);
  color: #fff;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(26, 26, 26, 0.28);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--cta-text);
  border-color: var(--ink);
}

.btn--sm {
  padding: 0.65rem 1.15rem;
  font-size: 0.72rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  transform: scale(1.04);
  transition: transform 1.4s var(--ease);
}

.hero.is-visible .hero__media img {
  transform: scale(1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 5rem;
}

.hero .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 500;
  line-height: 0.95;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 500;
  max-width: 18ch;
}

.hero .lead {
  color: var(--ink-muted);
}

/* ===== Sections ===== */
.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  position: relative;
  max-width: 100%;
  overflow-x: hidden;
}

.section--surface {
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.section--deep {
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--accent) 35%, var(--bg)) 0%,
    color-mix(in srgb, var(--surface) 50%, var(--bg-soft)) 100%
  );
}

.section--tight {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

#final {
  padding-bottom: calc(clamp(4rem, 8vw, 6rem) + env(safe-area-inset-bottom));
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--reverse .split__media {
  order: 2;
}

.split--reverse .split__text {
  order: 1;
}

.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 1.2s var(--ease), opacity 0.8s var(--ease);
  opacity: 0.92;
}

.reveal.is-visible .media-frame img,
.media-frame.is-visible img {
  transform: scale(1);
  opacity: 1;
}

.media-frame--landscape {
  aspect-ratio: 4 / 5;
}

.rule {
  width: 3.5rem;
  height: 1px;
  background: var(--accent-deep);
  margin: 0 0 1.5rem;
  border: 0;
}

/* ===== Checklist ===== */
.check-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding: 1.15rem 0 1.15rem 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.check-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent-deep);
}

.skills {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.skills li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  font-size: 1.05rem;
  color: var(--ink-muted);
}

.skills li span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent-deep);
  line-height: 1.2;
}

/* ===== Course / Price ===== */
.course-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-style: italic;
  line-height: 1.3;
  margin: 0 0 1.75rem;
  max-width: 28ch;
}

.price-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.price {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1.25rem;
}

.price span {
  font-size: 0.45em;
  letter-spacing: 0;
}

.final {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.final h2 {
  margin-bottom: 1.5rem;
}

.final .btn-group {
  justify-content: center;
  margin-top: 2rem;
}

.final-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

/* ===== Trust facts ===== */
.facts {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.facts p {
  padding-left: 1.15rem;
  border-left: 2px solid var(--accent-deep);
  color: var(--ink-muted);
  margin: 0;
}

/* ===== Success page ===== */
.success-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 3rem 1.25rem;
}

.success-card {
  width: min(100%, 36rem);
  text-align: center;
}

.success-card h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
}

.success-card .lead {
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.success-card .btn {
  margin-top: 1.5rem;
}

.success-ornament {
  width: 4rem;
  height: 1px;
  background: var(--accent-deep);
  margin: 0 auto 2rem;
}

/* ===== Reveal motion ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

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

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse .split__media,
  .split--reverse .split__text {
    order: initial;
  }

  .split__media {
    max-width: 28rem;
    margin-inline: auto;
    width: 100%;
  }

  .price-block {
    grid-template-columns: 1fr;
  }

  .nav-link {
    display: none;
  }

  .hero__veil {
    background: var(--overlay-mobile);
  }

  .hero__content {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 34rem;
    padding:
      3rem
      max(1.25rem, env(safe-area-inset-right))
      4rem
      max(1.25rem, env(safe-area-inset-left));
    justify-content: flex-end;
    min-height: calc(100svh - var(--header-h));
  }

  .hero .brand-mark,
  .hero h1 {
    color: #f7f4ee;
  }

  .hero .lead {
    color: rgba(247, 244, 238, 0.88);
  }

  .hero .eyebrow {
    color: var(--surface);
  }

  .hero .btn--ghost {
    color: #f7f4ee;
    border-color: rgba(247, 244, 238, 0.45);
  }

  .hero .btn--ghost:hover {
    background: #f7f4ee;
    color: var(--ink);
  }

  .hero__media img {
    object-position: center top;
  }
}

@media (max-width: 520px) {
  .container {
    padding-inline: 1rem;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero__media img,
  .media-frame img,
  .btn {
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
