:root {
  --bg: #f5f3ef;
  --bg-elevated: #ffffff;
  --bg-soft: #ebe8e2;
  --ink: #2f3430;
  --ink-muted: #5f6660;
  --ink-faint: #8a9089;
  --line: #d9d4cb;
  --accent: #3d5a4c;
  --accent-hover: #2f463b;
  --accent-soft: #dce6df;
  --warn: #8a4b3a;
  --ok: #3d5a4c;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 12px 40px rgba(47, 52, 48, 0.06);
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
  --header-h: 4.25rem;
  --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);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: 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;
  transition: color 0.2s var(--ease);
}

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

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

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 243, 239, 0.88);
  backdrop-filter: blur(12px);
  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(245, 243, 239, 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: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(145deg, var(--accent) 0%, #6f8a78 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

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

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #f7f5f1 !important;
}

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

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

.nav-toggle-bar {
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: calc(var(--header-h) - 0.25rem);
    left: 1.25rem;
    right: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .site-nav a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
  }
  .nav-cta {
    justify-content: center;
    margin-top: 0.35rem;
  }
}

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

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

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

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

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

.btn-ghost:hover {
  border-color: var(--ink-faint);
  color: var(--ink);
  background: rgba(255,255,255,0.5);
}

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

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.lead {
  font-size: 1.15rem;
  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 — full-bleed visual plane */
.hero-home {
  position: relative;
  min-height: min(92vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f5f3ef;
}

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

.hero-home__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-home__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(47,52,48,0.25) 0%, rgba(47,52,48,0.72) 55%, rgba(47,52,48,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-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  color: #f7f5f1;
  max-width: 12ch;
  animation: fadeUp 0.9s var(--ease) both;
}

.hero-home h1 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #e8e4dc;
  max-width: 28rem;
  margin-bottom: 0.85rem;
  animation: fadeUp 0.9s 0.12s var(--ease) both;
}

.hero-home p {
  color: rgba(245, 243, 239, 0.82);
  max-width: 30rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.9s 0.22s var(--ease) both;
}

.hero-home .btn-row {
  animation: fadeUp 0.9s 0.32s var(--ease) both;
}

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

.hero-home .btn-primary {
  background: #e8e4dc;
  color: var(--ink);
}

.hero-home .btn-primary:hover {
  background: #fff;
  color: var(--ink);
}

.hero-home .btn-ghost {
  border-color: rgba(255,255,255,0.35);
  color: #f5f3ef;
}

.hero-home .btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}

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

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

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

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

.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--ink);
}

.proof-grid span {
  font-size: 0.9rem;
  color: var(--ink-faint);
}

@media (max-width: 700px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}

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

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

.soft-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

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

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

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

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

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

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

@media (max-width: 900px) {
  .course-grid,
  .blog-grid,
  .tier-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
}

.course-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease);
}

.course-card:hover {
  transform: translateY(-4px);
}

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

.course-card h3 {
  margin-bottom: 0.4rem;
}

.course-card p {
  flex: 1;
  font-size: 0.98rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 0.75rem;
}

.quote-block {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

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

.quote-block cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.page-hero h1 {
  max-width: 16ch;
}

.page-hero .lead {
  margin-top: 0.5rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.5rem;
}

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

.prose ul, .prose ol {
  color: var(--ink-muted);
  padding-left: 1.2rem;
}

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

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

.module-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.module-list .num {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
}

.tier {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

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

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

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

.tier ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.75rem;
  flex: 1;
}

.tier li {
  padding: 0.4rem 0;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--bg-soft);
}

.tier li:last-child { border-bottom: 0; }

.review-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

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

.review-item .attr {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

.case-study {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}

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

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

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--ink-faint);
}

.faq details[open] summary::after { content: "–"; }

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

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

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

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  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 {
  display: none;
  color: var(--warn);
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.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(--warn);
}

.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

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

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

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
}

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

.contact-card p { margin-bottom: 0.5rem; }

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

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

.blog-card .date {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}

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

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

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

.legal-toc {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.legal-toc a {
  display: block;
  padding: 0.25rem 0;
  text-decoration: none;
}

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

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

.cookie-table th {
  background: var(--bg-soft);
  color: var(--ink);
  font-weight: 600;
}

.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(4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.site-footer {
  margin-top: 3rem;
  background: #2f3430;
  color: #c9cdc7;
  padding: 3.5rem 0 2rem;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #f5f3ef;
  margin-bottom: 0.5rem;
}

.footer-tag {
  color: #a8aea6;
  max-width: 22rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

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

.footer-heading {
  color: #f5f3ef;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

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

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

.site-footer a {
  color: #c9cdc7;
  text-decoration: none;
}

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

.footer-address {
  color: #a8aea6;
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #8a9089;
}

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

.cookie-banner.is-visible { display: block; animation: fadeUp 0.4s var(--ease); }

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

.cookie-banner .btn-row { gap: 0.5rem; }

.cookie-banner .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.9rem;
}

.inline-error {
  background: #f3e4df;
  color: var(--warn);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin: 0.75rem 0;
  font-size: 0.9rem;
}

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

.feature-list li {
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink-muted);
}

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

.timeline {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 1rem;
}

.timeline-item .dot {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.chip {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

.cta-band {
  text-align: center;
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
}

.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { max-width: 34rem; margin-inline: auto  auto; margin-bottom: 1.5rem; }

.path-adjust {
  /* relative path helper for nested pages via body[data-root] */
}
