:root {
  --ink: #1a2b2b;
  --ink-soft: #3d5252;
  --muted: #6a7f7f;
  --line: #d5e0df;
  --paper: #f7faf9;
  --white: #ffffff;
  --accent: #1f6f6a;
  --accent-deep: #14524e;
  --accent-soft: #e4f1f0;
  --warm: #c4a574;
  --shadow: 0 18px 50px rgba(26, 43, 43, 0.08);
  --radius: 2px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #e8f3f1 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f3efe6 0%, transparent 45%),
    var(--paper);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

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;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }

p { margin: 0 0 1em; color: var(--ink-soft); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 249, 0.86);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 250, 249, 0.95);
}

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

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

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

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--ink);
  color: var(--ink) !important;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  cursor: pointer;
}

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

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

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

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

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

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

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

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

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin-bottom: 0.85rem;
}

.lead {
  font-size: 1.12rem;
  max-width: 38rem;
}

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

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

/* Home hero — editorial brand-first, full-bleed plane */
.hero-home {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

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

.hero-home__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slow-drift 28s ease-in-out infinite alternate;
}

.hero-home__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 32, 32, 0.35) 0%, rgba(15, 32, 32, 0.72) 70%, rgba(15, 32, 32, 0.88) 100%);
}

.hero-home__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: 5rem 0 4rem;
}

.hero-home .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  margin: 0 0 1.25rem;
  color: var(--white);
  letter-spacing: -0.03em;
  animation: fade-up 0.9s var(--ease) both;
}

.hero-home h1 {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-family: var(--font-body);
  font-weight: 500;
  max-width: 22ch;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
  animation: fade-up 0.9s 0.12s var(--ease) both;
}

.hero-home .hero-support {
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 1.75rem;
  animation: fade-up 0.9s 0.22s var(--ease) both;
}

.hero-home .btn-primary {
  animation: fade-up 0.9s 0.32s var(--ease) both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes slow-drift {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

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

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.35rem;
}

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

.featured-block {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.featured-block img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  filter: saturate(0.92);
}

.benefit-list {
  display: grid;
  gap: 1.75rem;
  max-width: 46rem;
}

.benefit-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.benefit-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--warm);
}

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

.quote {
  max-width: 40rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
}

.quote p {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  line-height: 1.4;
}

.quote footer {
  color: var(--muted);
  font-size: 0.9rem;
}

.cta-band {
  background: var(--ink);
  color: var(--white);
}

.cta-band h2,
.cta-band p { color: rgba(255, 255, 255, 0.92); }

.cta-band p { color: rgba(255, 255, 255, 0.7); }

.page-hero {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem;
}

.page-hero h1 { margin-bottom: 0.4em; }

.page-hero .lead { margin-bottom: 0; }

.course-grid,
.blog-grid,
.tier-grid,
.review-grid {
  display: grid;
  gap: 1.75rem;
}

.course-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-grid {
  grid-template-columns: repeat(2, 1fr);
}

.tier-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

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

.media-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease);
}

.media-tile:hover { transform: translateY(-4px); }

.media-tile img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  margin-bottom: 1rem;
}

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

.media-tile p {
  margin: 0;
  font-size: 0.95rem;
}

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

.tier {
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tier.is-featured {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: var(--shadow);
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink);
  line-height: 1;
}

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

.tier ul {
  margin: 0.5rem 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  flex: 1;
}

.tier li { margin-bottom: 0.45rem; }

.prose {
  max-width: 44rem;
}

.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }

.module-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.module-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.module-list strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
}

.instructor {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

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

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

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq p { margin: 0.75rem 0 0.25rem; }

.form {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
}

.form-field label {
  display: block;
  font-size: 0.88rem;
  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);
  background: var(--white);
  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: #9b3a3a;
  font-size: 0.84rem;
  margin-top: 0.3rem;
  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: #9b3a3a; }

.form-status {
  padding: 0.85rem 1rem;
  display: none;
  font-size: 0.92rem;
}

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

.form-status.is-error {
  display: block;
  background: #f8e8e8;
  color: #9b3a3a;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}

.address-block {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.address-block p { margin-bottom: 0.7rem; }

.case-study {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.rating {
  letter-spacing: 0.08em;
  color: var(--warm);
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: #eef4f3;
  padding: 3.5rem 0 1.5rem;
}

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

.footer-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.footer-tag { font-size: 0.92rem; }

.footer-heading {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--accent); }

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
}

.footer-base {
  width: min(100% - 2.5rem, var(--max));
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 520px;
  margin-left: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
  display: none;
}

.cookie-banner.is-visible { display: block; animation: fade-up 0.45s var(--ease); }

.cookie-banner p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.cookie-actions .btn { padding: 0.65rem 1rem; font-size: 0.88rem; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

th { background: var(--accent-soft); color: var(--ink); }

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

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 0.9;
  color: var(--accent);
  margin: 0;
}

.inline-script-error {
  margin: 1rem auto;
  width: min(100% - 2.5rem, var(--max));
  padding: 0.85rem 1rem;
  background: #f8e8e8;
  color: #9b3a3a;
  font-size: 0.9rem;
}

.split-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-height: 52vh;
  position: relative;
  overflow: hidden;
}

.split-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-hero .overlay-copy {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, rgba(247, 250, 249, 0.96) 0%, rgba(247, 250, 249, 0.9) 48%, rgba(247, 250, 249, 0.2) 100%);
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

@media (max-width: 960px) {
  .course-grid,
  .tier-grid,
  .featured-block,
  .contact-layout,
  .footer-grid,
  .review-grid,
  .blog-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .instructor {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-grid { gap: 2rem; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(247, 250, 249, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
    border-bottom: 1px solid var(--ink) !important;
  }
}
