:root {
  --bg: #faf9f7;
  --bg-deep: #f0ebe3;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #6a645c;
  --line: #ddd6cb;
  --accent: #3d5a4c;
  --accent-soft: #e6efe9;
  --accent-hover: #2f463b;
  --warn: #8a4b2f;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(28, 27, 25, 0.06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

*,
*::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%, #e8efe9 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #f3ebe0 0%, transparent 45%),
    var(--bg);
  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-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  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.55rem); }

p { margin: 0 0 1rem; color: var(--muted); }
p.lead { font-size: 1.2rem; color: var(--ink); max-width: 42rem; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

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

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

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

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 4px;
  background: linear-gradient(145deg, var(--accent) 0%, #5a7a6a 100%);
}

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

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

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  color: var(--bg) !important;
  background: var(--accent);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-hover);
}

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

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

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

.nav-toggle-bar::before { top: -5px; }
.nav-toggle-bar::after { top: 5px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

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

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

.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 variants */
.hero {
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}

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

.hero-plane {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(250, 249, 247, 0.92) 28%, rgba(250, 249, 247, 0.35) 55%, rgba(250, 249, 247, 0.1) 100%),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  animation: heroFade 1.2s ease both;
}

.hero-home .shell {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4rem;
  max-width: var(--shell);
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise 0.7s ease 0.2s forwards;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.8s ease 0.35s forwards;
}

.hero-statement {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  max-width: 28rem;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.8s ease 0.5s forwards;
}

.hero-home .btn-row {
  opacity: 0;
  animation: rise 0.8s ease 0.65s forwards;
}

.page-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.page-hero p {
  max-width: 40rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

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

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

.section-head {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

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

.split-reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

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

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

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

/* Course / blog listings — interaction containers */
.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.25s ease;
}

.item:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  color: inherit;
}

.item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.item-body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-body h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.item-meta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Stats / proof */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  border-block: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.03em;
}

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

/* Benefits list */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.benefit-list li {
  padding-left: 1.5rem;
  border-left: 2px solid var(--accent);
}

.benefit-list h3 {
  margin-bottom: 0.35rem;
}

/* Testimonials */
.quote-stack {
  display: grid;
  gap: 1.75rem;
}

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

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

.quote blockquote {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.35;
  color: var(--ink);
  font-weight: 400;
}

.quote cite {
  font-style: normal;
  font-size: 0.92rem;
  color: var(--muted);
}

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

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

.price-tier {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

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

/* Forms */
.form-panel {
  max-width: 36rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
  color: var(--ink);
}

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

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

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

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

.form-group.is-invalid .field-error {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--warn);
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

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

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

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

.contact-details {
  padding: 1.5rem;
  background: var(--bg-deep);
  border-radius: var(--radius);
}

.contact-details dt {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1rem;
}

.contact-details dt:first-child {
  margin-top: 0;
}

.contact-details dd {
  margin: 0.25rem 0 0;
  color: var(--ink);
}

/* Modules / FAQ */
.module-list,
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.module-list li:last-child,
.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.module-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

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

.faq-list p {
  margin-top: 0.65rem;
}

/* Legal */
.legal {
  max-width: 46rem;
  padding-bottom: 4rem;
}

.legal h2 {
  margin-top: 2.25rem;
}

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

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

.legal th {
  background: var(--bg-deep);
  color: var(--ink);
}

/* 404 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.not-found h1 {
  font-size: clamp(4rem, 12vw, 7rem);
  margin-bottom: 0.25rem;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: #f3efe8;
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr) 1.2fr;
  gap: 1.5rem;
}

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

.footer-tag {
  max-width: 16rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.footer-col a,
.footer-contact a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 0.4rem;
}

.footer-col a:hover,
.footer-contact a:hover {
  color: var(--ink);
}

.footer-contact p {
  margin-bottom: 0.4rem;
  color: var(--muted);
}

.footer-base {
  margin-top: 2.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.footer-base p {
  margin: 0;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(28, 27, 25, 0.08);
  padding: 1rem 0;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-inner p {
  margin: 0;
  max-width: 48rem;
}

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

.inline-error {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #f7e8e2;
  color: var(--warn);
  border-radius: var(--radius);
}

.instructor {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--bg-deep);
}

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

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

.case-study h3 {
  margin-bottom: 0.75rem;
}

.prose-wide {
  max-width: 42rem;
}

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

.article-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
}

.cover {
  margin: 0 0 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.cover img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

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

@keyframes heroFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

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

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

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0;
    display: none;
  }

  .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;
  }

  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

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

  .hero-home .shell {
    padding: 3.5rem 0 3rem;
  }

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