@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #f4f2ed;
  --bg-alt: #e9ece6;
  --bg-soft: #fdfcf8;
  --surface: #ffffff;
  --text: #1d2421;
  --text-muted: #4d5b56;
  --accent: #355c53;
  --accent-strong: #25453e;
  --border: #cbd3cd;
  --border-strong: #9ca9a2;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1080px;
  --container-narrow: 780px;
  --shadow-soft: 0 18px 40px rgba(32, 42, 37, 0.08);
  --focus: 0 0 0 3px rgba(53, 92, 83, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Helvetica Neue', sans-serif;
  color: var(--text);
  background: var(--bg-main);
  line-height: 1.6;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -120px;
  padding: 0.75rem 1rem;
  background: var(--accent-strong);
  color: #fff;
  z-index: 1000;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: rgba(244, 242, 237, 0.96);
  backdrop-filter: blur(8px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand small {
  display: block;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.primary-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
}

.primary-nav a.active,
.primary-nav a:hover,
.primary-nav a:focus-visible {
  background: rgba(53, 92, 83, 0.1);
  color: var(--accent-strong);
}

.primary-nav a.nav-cta {
  margin-left: 0.35rem;
  background: #b86b2e;
  color: #fffaf5;
  border: 1px solid #a85f27;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(120, 70, 32, 0.25);
}

.primary-nav a.nav-cta:hover,
.primary-nav a.nav-cta:focus-visible {
  background: #a15824;
  color: #fff;
  border-color: #8f4f1f;
}

main {
  min-height: 70vh;
}

.section {
  padding: clamp(2.6rem, 5vw, 5rem) 1rem;
  border-bottom: 1px solid rgba(171, 184, 176, 0.45);
  background: var(--bg-main);
}

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

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

.section-inner {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.section-inner--narrow {
  width: min(100%, var(--container-narrow));
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: 0.01em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
  margin: 0;
  color: var(--text);
  font-size: 1.06rem;
}

p + p {
  margin-top: 0.95rem;
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.subheading {
  margin: 0.2rem 0 0.75rem;
  color: var(--text-muted);
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  line-height: 1.3;
}

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

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-title {
  margin-bottom: 1rem;
}

.section-intro {
  width: min(100%, 76ch);
  margin-bottom: 1.8rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3.2rem);
  align-items: center;
}

.split--top {
  align-items: flex-start;
}

.split--reverse > :first-child {
  order: 2;
}

.split--reverse > :last-child {
  order: 1;
}

.image-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.55rem;
  box-shadow: var(--shadow-soft);
}

.image-frame img {
  border-radius: calc(var(--radius) - 4px);
  width: 100%;
  object-fit: cover;
}

.image-frame--portrait {
  max-width: 410px;
}

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

.btn-row--center {
  justify-content: center;
}

.btn,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.72rem 1.2rem;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

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

.btn:hover {
  background: var(--accent-strong);
  color: #fff;
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 1rem;
}

.link-arrow::after {
  content: '\2192';
}

.kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.9rem 0 1rem;
}

.kicker-row span {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: 1.1rem;
}

.card-grid > .card:not(.home-course-card),
.split > .card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.split > .card .btn-row,
.split > .card .link-arrow {
  margin-top: auto;
}

.card h3,
.card h4 {
  margin-bottom: 0.55rem;
}

.card p {
  color: var(--text-muted);
  font-size: 1rem;
}

.card:hover {
  border-color: var(--border-strong);
  background: #fff;
}

.home-course-card {
  position: relative;
  min-height: 320px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #20312a;
}

.home-course-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.3s ease;
}

.home-course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 22, 20, 0.2) 0%, rgba(14, 22, 20, 0.86) 76%);
  z-index: 1;
}

.home-course-card__content {
  position: relative;
  z-index: 2;
  padding: 1.05rem;
  color: #f6faf7;
}

.home-course-card h3 {
  color: #f6faf7;
}

.home-course-card p {
  color: rgba(246, 250, 247, 0.95);
}

.home-course-card .link-arrow {
  color: #f6faf7;
  margin-top: 0.8rem;
}

.home-course-card:hover {
  border-color: rgba(255, 255, 255, 0.65);
}

.home-course-card:hover .home-course-card__image {
  transform: scale(1.05);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(53, 92, 83, 0.12);
  border: 1px solid rgba(53, 92, 83, 0.25);
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  margin-bottom: 0.9rem;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.list-tight,
.list-compact {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

.list-tight li + li,
.list-compact li + li {
  margin-top: 0.38rem;
}

.list-compact {
  color: var(--text-muted);
}

.case-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.3rem;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem 1.1rem;
}

.case-card p {
  color: var(--text);
}

.vertical-rule {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.info-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.82);
}

.info-box h3 {
  margin-bottom: 0.6rem;
}

.info-box ul {
  margin: 0;
  padding-left: 1.1rem;
}

.two-col-list {
  columns: 2;
  gap: 2rem;
  padding-left: 1.1rem;
  margin: 0;
}

.two-col-list li {
  break-inside: avoid;
  margin-bottom: 0.45rem;
}

.deep-section {
  display: grid;
  gap: 1.4rem;
}

.highlight-box {
  border-left: 3px solid var(--accent);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.85rem 1rem;
  color: var(--text);
}

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

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.price-table th {
  font-weight: 700;
  background: rgba(53, 92, 83, 0.08);
}

.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  overflow: hidden;
}

.accordion details {
  border-top: 1px solid var(--border);
}

.accordion details:first-child {
  border-top: none;
}

.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1rem;
  font-weight: 600;
  position: relative;
  padding-right: 2.4rem;
}

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

.accordion summary::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 0.87rem;
  color: var(--accent);
  font-size: 1.15rem;
}

.accordion details[open] summary::after {
  content: '\2212';
}

.accordion .answer {
  padding: 0 1rem 0.95rem;
  color: var(--text-muted);
}

.credentials-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.credentials-strip span {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.64);
  padding: 0.33rem 0.6rem;
  border-radius: 999px;
  color: var(--text-muted);
}

.hero-note {
  margin-top: 0.95rem;
  font-size: 0.96rem;
  color: var(--text-muted);
}

.course-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0fr);
  gap: 1.2rem;
  align-items: flex-start;
  transition: grid-template-columns 0.45s ease, gap 0.35s ease;
}

.course-page-shell > div {
  width: min(100%, 980px);
  margin: 0 auto;
  min-width: 0;
  transition: width 0.4s ease, margin 0.4s ease;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  transition: grid-template-columns 0.4s ease;
}

.course-group-title {
  margin: 0 0 1rem;
}

.course-catalog-group {
  margin-bottom: 1.2rem;
}

.course-catalog-group--alt {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.course-page-shell.panel-open .course-grid {
  grid-template-columns: 1fr;
}

.course-page-shell.panel-open {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
}

.course-page-shell.panel-open > div {
  width: 100%;
  margin: 0;
}

.course-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  padding: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.3s ease;
}

.course-card:hover {
  border-color: var(--accent);
  background: #fff;
}

.course-card.active {
  border-color: var(--accent-strong);
  background: rgba(53, 92, 83, 0.08);
}

.course-image-wrap {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(145deg, #fdfcf7, #e8ede7);
  padding: 0.38rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
  position: relative;
}

.course-card:hover .course-image-wrap img {
  transform: scale(1.018);
}

.course-image-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  transition: transform 0.25s ease;
}

.course-image-wrap .course-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 120px;
  height: auto;
  z-index: 3;
  border-radius: 0;
  aspect-ratio: auto;
}

.course-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.course-card .course-short {
  font-size: 0.98rem;
  color: var(--text-muted);
}

.course-card .course-meta {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.course-detail-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  padding: 1rem;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 105px);
  overflow: auto;
  min-width: 0;
  opacity: 0;
  transform: translateX(18px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}

.course-page-shell.panel-open .course-detail-panel {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.course-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.course-detail-close {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
}

.course-detail-block + .course-detail-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.course-detail-list {
  margin: 0;
  padding-left: 1.2rem;
}

.course-detail-list li + li {
  margin-top: 0.45rem;
}

.course-expanded-meta {
  margin-bottom: 1.35rem;
}

.course-curriculum {
  display: grid;
  gap: 0.65rem;
}

.curriculum-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  overflow: hidden;
}

.curriculum-section summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.88rem;
  font-weight: 600;
}

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

.curriculum-count {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.curriculum-lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.curriculum-lesson-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.56rem 0.88rem;
  font-size: 0.94rem;
}

.curriculum-lesson-list li + li {
  border-top: 1px solid rgba(41, 66, 60, 0.1);
}

.curriculum-lesson-title {
  color: var(--text);
}

.curriculum-lesson-duration {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.course-includes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.52rem;
}

.course-includes-list li {
  display: flex;
  align-items: center;
  gap: 0.58rem;
}

.include-icon {
  width: 1.34rem;
  height: 1.34rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 0.72rem;
  color: var(--accent-strong);
  background: rgba(53, 92, 83, 0.08);
}

.course-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18, 24, 22, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 80;
}

.course-overlay.open {
  display: grid;
}

.course-overlay-inner {
  margin: auto;
  width: min(92vw, 720px);
  max-height: 92vh;
  overflow: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.showcase-shell {
  position: relative;
}

.showcase-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.showcase-controls button {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.app-showcase {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(520px, 66vw);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 0.6rem;
}

.app-showcase-card {
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-showcase-card img {
  order: -1;
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.status-chip {
  display: inline-block;
  margin-top: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.feature-stack {
  display: grid;
  gap: 1rem;
}

.feature-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem;
}

.featured-book {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: clamp(1rem, 2vw, 1.8rem);
}

.featured-book .split {
  align-items: flex-start;
}

.featured-book .book-meta {
  margin: 0.8rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.featured-book .series-cue {
  margin-top: 0.85rem;
  color: var(--text-muted);
}

.featured-text {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.timeline-list {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  padding: 1rem;
}

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

.qual-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  padding: 1rem;
}

.qual-panel ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.centered-copy {
  width: min(100%, 760px);
  margin: 0 auto;
}

.calendar-embed {
  margin-top: 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.calendar-embed iframe {
  display: block;
  width: 100%;
  height: 1280px;
  border: 0;
}

@media (max-width: 920px) {
  .calendar-embed iframe {
    height: 1460px;
  }
}

.ml-signup {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  margin-top: 1.3rem;
}

.ml-signup p {
  color: var(--text-muted);
}

.ml-form {
  margin-top: 0.85rem;
}

.js-enhanced .ml-signup .ml-form {
  display: none;
}

.js-enhanced .ml-signup.ml-open .ml-form {
  display: block;
  animation: reveal 0.26s ease;
}

.ml-row {
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
}

.ml-field {
  flex: 1;
  min-width: 0;
}

.ml-signup label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.ml-signup input[type='email'],
.ml-signup input[type='text'] {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.64rem 0.68rem;
  font-size: 1rem;
  background: #fff;
}

.ml-signup input.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.ml-msg {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  min-height: 1.4rem;
}

.ml-msg.success {
  color: #1a5a3c;
}

.ml-msg.error {
  color: #7d3129;
}

.contact-form-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  margin-top: 1.3rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-field label,
.captcha-box label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.87rem;
  color: var(--text-muted);
}

.contact-field input,
.contact-field textarea,
.captcha-box input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.64rem 0.68rem;
  font-size: 1rem;
  background: #fff;
  font-family: inherit;
}

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

.contact-form input.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.captcha-box {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  background: rgba(233, 236, 230, 0.52);
}

.captcha-title {
  margin: 0 0 0.38rem;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.recaptcha-wrap {
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.contact-form-msg {
  margin-top: 0.2rem;
  min-height: 1.35rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.contact-form-msg.success {
  color: #1a5a3c;
}

.contact-form-msg.error {
  color: #7d3129;
}

.footer {
  background: #dde4de;
  border-top: 1px solid var(--border);
  padding: 2rem 1rem;
}

.footer-inner {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0.45rem;
  border-radius: 7px;
}

.footer-nav a:hover {
  background: rgba(53, 92, 83, 0.1);
}

.footer small {
  color: var(--text-muted);
}

.footer-join-btn {
  white-space: nowrap;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-full {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  align-items: end;
  border-bottom: 1px solid rgba(171, 184, 176, 0.45);
  overflow: hidden;
  isolation: isolate;
}

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

.hero-full__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: clamp(1.1rem, 2.5vw, 2.2rem);
  display: grid;
  align-items: end;
  background: linear-gradient(180deg, rgba(20, 28, 25, 0.18) 0%, rgba(20, 28, 25, 0.58) 55%, rgba(20, 28, 25, 0.78) 100%);
}

.hero-full__content {
  position: relative;
  z-index: 2;
  width: min(100%, 1080px);
  margin: 0 auto;
  color: #f7faf7;
  min-height: min(68vh, 720px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-full__intro {
  display: grid;
  gap: 1rem;
  width: min(100%, 880px);
  margin-top: clamp(0.5rem, 3vw, 2rem);
}

.hero-full__intro > h1,
.hero-full__intro > .lead {
  color: #f7faf7;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-full__intro > .lead {
  color: rgba(247, 250, 247, 0.95);
}

.hero-full__footer {
  margin-top: auto;
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  width: min(100%, 880px);
  padding-bottom: clamp(0.4rem, 1vw, 1rem);
}

.hero-full__footer .btn-row {
  margin-top: 0;
  justify-content: center;
}

.hero-full__credentials {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(247, 250, 247, 0.95);
}

.hero-full .btn-ghost {
  border-color: rgba(255, 255, 255, 0.75);
  color: #f7faf7;
}

.hero-full .btn-ghost:hover {
  border-color: #f7faf7;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 920px) {
  .split,
  .app-showcase-card,
  .course-page-shell {
    grid-template-columns: 1fr;
  }

  .split--reverse > :first-child,
  .split--reverse > :last-child {
    order: initial;
  }

  .image-frame--portrait {
    max-width: 360px;
  }

  .course-detail-panel {
    display: none;
  }

  .course-page-shell.panel-open .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-showcase {
    grid-auto-columns: 88%;
  }

  .app-showcase-card img {
    max-width: none;
  }

  .location-grid,
  .qual-grid {
    grid-template-columns: 1fr;
  }

  .two-col-list {
    columns: 1;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav {
    justify-content: flex-start;
  }

  .card-grid,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .home-course-card {
    min-height: 290px;
  }

  .btn,
  .btn-ghost,
  .ml-row .btn {
    width: 100%;
  }

  .footer-top .btn,
  .footer-top .btn-ghost {
    width: auto;
  }

  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ml-row {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .showcase-controls {
    display: none;
  }

  .app-showcase {
    grid-auto-columns: 90%;
  }

  .course-overlay-inner {
    width: min(94vw, 560px);
  }

  .section {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .hero-full {
    min-height: 80vh;
  }

  .hero-full__content {
    min-height: min(72vh, 620px);
  }

  .hero-full__footer .btn-row {
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
