:root {
  --bg: #f7f8f5;
  --bg-elevated: #ffffff;
  --bg-soft: #eef1ec;
  --ink: #171a17;
  --ink-muted: #5a615a;
  --accent: #1e4d45;
  --accent-deep: #143832;
  --accent-soft: #d5e5e0;
  --line: #d8ddd6;
  --danger: #8b3a2f;
  --ok: #1e4d45;
  --radius: 2px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Helvetica Neue", sans-serif;
  --shadow: 0 18px 40px rgba(23, 26, 23, 0.06);
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(213, 229, 224, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(238, 241, 236, 0.9), transparent 45%),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0 0 1.25em;
  padding-left: 1.2em;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 245, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 248, 245, 0.96);
}

.header-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 560;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--accent);
}

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

.site-nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.site-nav .nav-cta {
  color: var(--bg);
  background: var(--accent);
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
}

.site-nav .nav-cta:hover {
  background: var(--accent-deep);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #f7f8f5;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #f7f8f5;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 26, 23, 0.15) 0%, rgba(23, 26, 23, 0.72) 72%, rgba(23, 26, 23, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 4rem;
  color: #f7f8f5;
  animation: riseIn 0.9s ease both;
}

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

.hero-line {
  max-width: 28ch;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 400;
  line-height: 1.4;
  color: rgba(247, 248, 245, 0.88);
  margin-bottom: 0.35em;
}

.hero-support {
  max-width: 42ch;
  color: rgba(247, 248, 245, 0.72);
  font-size: 1rem;
  margin-bottom: 0;
}

.hero .btn-primary {
  background: #f7f8f5;
  color: var(--accent-deep);
}

.hero .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.hero .btn-ghost {
  color: #f7f8f5;
  border-color: rgba(247, 248, 245, 0.35);
}

.hero .btn-ghost:hover {
  border-color: #f7f8f5;
  color: #f7f8f5;
}

.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  max-width: 18ch;
}

.section-lead {
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

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

.proof-bar {
  border-block: 1px solid var(--line);
  background: var(--bg-elevated);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.proof-item span {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.25rem;
}

.feature-list li {
  padding-left: 0;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.feature-list h3 {
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.feature-list p {
  color: var(--ink-muted);
  margin: 0;
}

.course-preview {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: stretch;
}

.course-preview-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: var(--radius);
}

.course-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.course-preview-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.5rem 0;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.quote-stack {
  display: grid;
  gap: 2rem;
}

.quote {
  max-width: 48rem;
}

.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  font-weight: 450;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.quote figcaption {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.quote-short blockquote {
  font-size: 1.15rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-hero {
  padding: 4rem 0 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  max-width: 16ch;
}

.page-hero p {
  max-width: 48ch;
  color: var(--ink-muted);
  font-size: 1.1rem;
}

.page-hero-wide {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  margin-bottom: 2rem;
}

.page-hero-wide .hero-media {
  border-radius: 0;
}

.page-hero-wide .hero-content {
  padding: 3rem 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.course-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease;
}

.course-tile:hover {
  transform: translateY(-3px);
}

.course-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.course-tile h3 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.course-tile p {
  color: var(--ink-muted);
  margin: 0;
  font-size: 0.98rem;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-tier:hover {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
}

.price-tier.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, #ffffff 0%, #f2f7f5 100%);
}

.price-tier h3 {
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
}

.price-tier .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  margin: 0.75rem 0;
}

.price-tier .price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.price-tier ul {
  flex: 1;
  color: var(--ink-muted);
  padding-left: 1.1em;
  margin-bottom: 1.5rem;
}

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

.blog-list {
  display: grid;
  gap: 2rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.blog-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.blog-item h2 {
  font-size: 1.55rem;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.blog-item p {
  color: var(--ink-muted);
  margin: 0;
}

.blog-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.prose {
  max-width: 68ch;
}

.prose h2 {
  font-size: 1.7rem;
  margin-top: 2.25rem;
}

.prose h3 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.25rem 0 1.75rem;
}

.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--bg-soft);
  font-weight: 600;
}

.modules {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.module {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.module h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.module p {
  color: var(--ink-muted);
  margin: 0;
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: center;
  margin: 1.5rem 0;
}

.instructor img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  color: var(--ink-muted);
  margin: 0.75rem 0 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 2.5rem;
}

.form {
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font: inherit;
  color: var(--ink);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.field-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-field.has-error .field-error {
  display: block;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--danger);
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
  font-size: 0.95rem;
}

.form-status.is-success {
  display: block;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.form-status.is-error {
  display: block;
  background: #f6e8e5;
  color: var(--danger);
}

.contact-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.contact-card h2 {
  font-size: 1.35rem;
}

.contact-card p {
  color: var(--ink-muted);
}

.review-board {
  display: grid;
  gap: 2rem;
}

.review-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.review-block .stars {
  color: var(--accent);
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.case-study {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem;
  margin-top: 1rem;
}

.case-study h3 {
  font-size: 1.35rem;
}

.site-footer {
  margin-top: 4rem;
  background: var(--ink);
  color: rgba(247, 248, 245, 0.78);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 0.7fr) 1.2fr;
  gap: 1.75rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #f7f8f5;
  margin-bottom: 0.5rem;
}

.footer-tag {
  font-size: 0.95rem;
  max-width: 28ch;
}

.footer-label {
  color: #f7f8f5;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 650;
  margin-bottom: 0.75rem;
}

.footer-col,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: rgba(247, 248, 245, 0.78);
  text-decoration: none;
}

.site-footer a:hover {
  color: #f7f8f5;
}

.footer-bottom {
  width: min(100% - 2.5rem, var(--max));
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 248, 245, 0.12);
  font-size: 0.85rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 420px;
  margin-left: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  border-radius: var(--radius);
  animation: riseIn 0.45s ease both;
}

.cookie-banner p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.cookie-banner .btn-row {
  margin-top: 0;
}

.inline-error {
  background: #f6e8e5;
  color: var(--danger);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 0.75rem 0;
  font-size: 0.92rem;
}

.cta-band {
  background:
    linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #f7f8f5;
  padding: 3.5rem 0;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  max-width: 18ch;
}

.cta-band p {
  max-width: 42ch;
  color: rgba(247, 248, 245, 0.8);
}

.cta-band .btn-primary {
  background: #f7f8f5;
  color: var(--accent-deep);
}

.cta-band .btn-ghost {
  color: #f7f8f5;
  border-color: rgba(247, 248, 245, 0.35);
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.error-page h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  margin-bottom: 0.2em;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

@media (max-width: 960px) {
  .split,
  .split-reverse,
  .course-preview,
  .contact-grid,
  .price-grid,
  .grid-3,
  .proof-grid,
  .footer-grid,
  .blog-item {
    grid-template-columns: 1fr;
  }

  .split-reverse .split-copy {
    order: 0;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(247, 248, 245, 0.98);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.25rem;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.25rem;
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .instructor {
    grid-template-columns: 100px 1fr;
  }
}

@media (max-width: 640px) {
  .wrap,
  .header-inner,
  .hero-content,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 1.5rem, var(--max));
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero-content {
    padding: 3rem 0 2.5rem;
  }
}
