:root {
  --bg: #f7f8f6;
  --bg-elevated: #ffffff;
  --ink: #16201c;
  --ink-soft: #3d4a44;
  --muted: #6b7872;
  --line: #d7ddd8;
  --accent: #1f5c4d;
  --accent-deep: #143f35;
  --accent-soft: #e4efe9;
  --sand: #eef1ec;
  --danger: #8a2f2f;
  --success: #1f5c4d;
  --shadow: 0 18px 50px rgba(22, 32, 28, 0.08);
  --radius: 2px;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::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 500px at 10% -10%, #e7efe9 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e8ece8 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

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: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

.inline-error {
  background: #f8e8e8;
  color: var(--danger);
  border: 1px solid #e2bcbc;
  padding: 0.85rem 1rem;
  margin: 1rem auto;
  max-width: var(--max);
}

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

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

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

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

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

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

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

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

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    padding: 1rem var(--space) 1.5rem;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.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.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 38rem;
}

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

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

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

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

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

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

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: #000;
  color: #fff;
}

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

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

.hero-home-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-home-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 20, 17, 0.35) 0%, rgba(10, 20, 17, 0.72) 55%, rgba(10, 20, 17, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 20, 17, 0.55) 0%, transparent 60%);
}

.hero-home-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 8rem) var(--space) clamp(3rem, 8vh, 5rem);
  width: 100%;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  color: #fff;
  animation: riseIn 0.9s ease both;
}

.hero-home .hero-line {
  max-width: 28rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(244, 247, 245, 0.88);
  margin-bottom: 1.75rem;
  animation: riseIn 1s ease 0.12s both;
}

.hero-home .btn {
  animation: riseIn 1s ease 0.22s both;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.8s ease both;
}

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

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

.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--ink);
  font-weight: 400;
}

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

@media (max-width: 700px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* Featured courses */
.course-preview {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.course-preview-media {
  min-height: 320px;
  overflow: hidden;
}

.course-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.course-preview:hover .course-preview-media img {
  transform: scale(1.03);
}

.course-preview-copy {
  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(--muted);
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
}

@media (max-width: 860px) {
  .course-preview {
    grid-template-columns: 1fr;
  }
}

/* Benefits */
.benefit-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

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

.benefit-item h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

/* Testimonials */
.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: clamp(1.25rem, 2.2vw, 1.65rem);
  color: var(--ink);
  line-height: 1.35;
}

.quote cite {
  display: block;
  margin-top: 0.85rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.92rem;
  font-family: var(--font-body);
}

/* CTA band */
.cta-band {
  background: var(--ink);
  color: #e8eee9;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
}

.cta-band p {
  color: rgba(232, 238, 233, 0.78);
  max-width: 34rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-band .btn-primary:hover {
  background: var(--accent-soft);
}

/* Page heroes (inner) */
.page-hero {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  max-width: 14ch;
}

.page-hero.full-bleed {
  position: relative;
  min-height: 48vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding: 0;
}

.page-hero.full-bleed .page-hero-media {
  position: absolute;
  inset: 0;
}

.page-hero.full-bleed .page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero.full-bleed .page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 22, 18, 0.25), rgba(12, 22, 18, 0.8));
}

.page-hero.full-bleed .wrap {
  position: relative;
  z-index: 1;
  padding-top: clamp(5rem, 14vh, 8rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}

.page-hero.full-bleed h1,
.page-hero.full-bleed .lead,
.page-hero.full-bleed .eyebrow {
  color: #fff;
}

.page-hero.full-bleed .lead {
  color: rgba(255, 255, 255, 0.86);
}

/* Course grid */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.course-tile a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1rem;
}

.course-tile h2,
.course-tile h3 {
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.course-tile p {
  font-size: 0.98rem;
}

/* Pricing */
.pricing-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 2rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.price-tier.is-featured {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.price-tier h2 {
  font-size: 1.8rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--ink);
  margin: 0.5rem 0 0.25rem;
}

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

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

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

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* Reviews */
.review-list {
  display: grid;
  gap: 2.5rem;
}

.review-block {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.review-block .stars {
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.case-study {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-top: 1rem;
}

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

/* Blog */
.blog-list {
  display: grid;
  gap: 2.5rem;
}

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

.blog-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.blog-row h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.blog-row a {
  text-decoration: none;
  color: inherit;
}

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

@media (max-width: 700px) {
  .blog-row {
    grid-template-columns: 1fr;
  }
}

.article-body {
  max-width: 42rem;
}

.article-body h2 {
  margin-top: 2.25rem;
  font-size: 1.75rem;
}

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

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.field {
  margin-bottom: 1.15rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
}

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

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
  min-height: 1.1em;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
}

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

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

.contact-aside {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.75rem;
  height: fit-content;
}

.contact-aside h2 {
  font-size: 1.5rem;
}

@media (max-width: 860px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Legal */
.legal-body {
  max-width: 46rem;
}

.legal-body h2 {
  margin-top: 2.25rem;
  font-size: 1.55rem;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

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

.legal-body th {
  background: var(--sand);
}

/* About */
.split-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split-story img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (max-width: 800px) {
  .split-story {
    grid-template-columns: 1fr;
  }
}

.journey {
  display: grid;
  gap: 0;
}

.journey-step {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.journey-step strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

/* Course detail */
.module-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.module-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

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

.outcomes {
  columns: 2;
  gap: 2rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .outcomes {
    columns: 1;
  }
}

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

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

@media (max-width: 560px) {
  .instructor {
    grid-template-columns: 1fr;
  }
}

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

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

.faq details p {
  margin-top: 0.75rem;
}

/* 404 */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--space);
}

.error-page h1 {
  font-size: clamp(4rem, 14vw, 8rem);
  line-height: 0.9;
  margin-bottom: 0.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 1rem var(--space) 1.25rem;
  animation: riseIn 0.45s ease both;
}

.cookie-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner-inner p {
  margin: 0;
  flex: 1;
  min-width: 220px;
  font-size: 0.94rem;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
}

/* Footer */
.site-footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: #eef1ec;
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--space) 1.5rem;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1.2fr;
  gap: 2rem;
}

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

.footer-tag,
.footer-address {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

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

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

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

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Misc */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 800px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.prose-max {
  max-width: 40rem;
}

.muted {
  color: var(--muted);
}

.stack-sm > * + * {
  margin-top: 0.75rem;
}
