:root {
  --ink: #10262f;
  --ink-soft: #3a5560;
  --baltic: #0d3b4c;
  --baltic-deep: #082833;
  --mist: #7eb8b0;
  --mist-soft: #d5ebe7;
  --sand: #c4a574;
  --sand-soft: #e8d9be;
  --paper: #f3f6f7;
  --paper-warm: #eef2f3;
  --white: #ffffff;
  --line: rgba(16, 38, 47, 0.12);
  --shadow: 0 18px 40px rgba(8, 40, 51, 0.12);
  --radius: 4px;
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.5rem;
}

*,
*::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%, rgba(126, 184, 176, 0.28), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(196, 165, 116, 0.18), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--baltic);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--baltic-deep);
}

p {
  margin: 0 0 1rem;
}

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

.inline-error {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #f8e8e6;
  color: #7a2e24;
  border-bottom: 1px solid #e2b4ad;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 246, 247, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  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.65rem;
  text-decoration: none;
  color: var(--baltic-deep);
}

.brand__mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, var(--mist), transparent 55%),
    linear-gradient(145deg, var(--baltic), var(--baltic-deep));
  box-shadow: inset 0 0 0 2px rgba(196, 165, 116, 0.55);
}

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

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

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

.site-nav a.is-active,
.site-nav a:hover {
  color: var(--baltic-deep);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--baltic);
  color: var(--baltic) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--baltic);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

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

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

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--baltic);
  color: var(--baltic);
}

.btn--outline:hover {
  background: var(--baltic);
  color: var(--white);
}

.cookie-banner .btn--ghost {
  border-color: var(--line);
  color: var(--ink);
}

.cookie-banner .btn--ghost:hover {
  background: var(--mist-soft);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

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

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

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 40, 51, 0.25) 0%, rgba(8, 40, 51, 0.72) 55%, rgba(8, 40, 51, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 40, 51, 0.55), transparent 65%);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto;
  padding: 4.5rem 0 4rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
  max-width: 12ch;
  animation: riseIn 0.9s ease both;
}

.hero__lead {
  max-width: 34rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
  animation: riseIn 0.9s ease 0.12s both;
}

.hero__actions {
  animation: riseIn 0.9s ease 0.22s both;
}

.hero--compact {
  min-height: 52vh;
}

.hero--compact .hero__brand {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: none;
}

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

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

.section--band {
  background: linear-gradient(180deg, rgba(126, 184, 176, 0.16), rgba(126, 184, 176, 0.05));
  border-block: 1px solid rgba(126, 184, 176, 0.28);
}

.section--ink {
  background: linear-gradient(160deg, var(--baltic-deep), var(--baltic));
  color: rgba(255, 255, 255, 0.9);
}

.section--ink h2,
.section--ink h3 {
  color: var(--white);
}

.section-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin: 0 0 0.85rem;
}

.section-lead {
  max-width: 38rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.section--ink .section-lead {
  color: rgba(255, 255, 255, 0.82);
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

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

.media-frame {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.media-frame img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(transparent, rgba(8, 40, 51, 0.35));
  pointer-events: none;
}

/* Proof / metrics */
.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--baltic);
  letter-spacing: -0.03em;
}

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

/* Feature list without cards */
.benefit-list {
  display: grid;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.benefit-list .num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--sand);
}

/* Program preview */
.program-spotlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.program-spotlight__media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.program-spotlight__body {
  padding: 2.25rem;
}

.program-spotlight__meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

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

.course-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.course-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 59, 76, 0.35);
  color: inherit;
}

.course-tile img {
  aspect-ratio: 16 / 11;
  object-fit: cover;
  width: 100%;
}

.course-tile__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.course-tile h3 {
  margin: 0;
  font-size: 1.25rem;
}

.course-tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.course-tile__link {
  margin-top: auto;
  color: var(--baltic);
  font-weight: 600;
  font-size: 0.92rem;
}

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

.quote {
  padding: 0;
  margin: 0;
  border-left: 3px solid var(--mist);
  padding-left: 1.35rem;
}

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

.quote footer {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.quote--short p {
  font-size: 1.05rem;
  font-family: var(--font-body);
}

.stars {
  color: var(--sand);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

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

.price-tier {
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.price-tier--focus {
  border-color: var(--baltic);
  background: linear-gradient(180deg, rgba(126, 184, 176, 0.14), var(--white) 40%);
}

.price-tier h3 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}

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

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

.price-tier li + li {
  margin-top: 0.4rem;
}

.price-note {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

.blog-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.blog-row:hover {
  color: inherit;
}

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

.blog-row h3 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.blog-row p {
  margin: 0;
  color: var(--ink-soft);
}

.meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article > .media-frame {
  margin: 0 0 2rem;
  min-height: 280px;
}

.article > .media-frame img {
  min-height: 280px;
}

.article h2 {
  font-size: 1.6rem;
  margin: 2rem 0 0.75rem;
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-details p {
  color: var(--ink-soft);
}

.form {
  display: grid;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.form-field {
  display: grid;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.75rem 0.85rem;
  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 rgba(126, 184, 176, 0.55);
  outline-offset: 1px;
  border-color: var(--mist);
}

.field-error {
  min-height: 1.1em;
  color: #9a3b30;
  font-size: 0.85rem;
}

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

.form-status--success {
  background: #e5f4ef;
  color: #1f5c4a;
}

.form-status--error {
  background: #f8e8e6;
  color: #7a2e24;
}

/* Legal */
.legal {
  max-width: 760px;
}

.legal h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.7rem;
}

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

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

.legal th {
  background: rgba(126, 184, 176, 0.14);
}

/* Modules / FAQ */
.module-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.module-list li {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.module-list h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

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

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

.faq details p {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

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

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

/* CTA band */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  max-width: 16ch;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  background: var(--baltic-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 1.5rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover {
  color: var(--sand-soft);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 2rem;
}

.brand--footer {
  margin: 0 0 0.75rem;
}

.brand--footer .brand__name {
  color: var(--white);
}

.site-footer__tag {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
  font-size: 1rem;
  color: var(--sand-soft);
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-address {
  font-size: 0.92rem;
  line-height: 1.55;
}

.site-footer__base {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  animation: riseIn 0.45s ease both;
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

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

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.page-intro {
  padding: 3.5rem 0 1.5rem;
}

.page-intro h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin: 0 0 0.75rem;
}

.page-intro p {
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

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

.case-block h3 {
  margin-top: 0;
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
}

.avatar-row img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}

.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  color: var(--sand);
  font-size: 1.2rem;
}

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

.error-page h1 {
  font-size: clamp(3rem, 8vw, 5rem);
  margin: 0 0 0.5rem;
}

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

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

@media (max-width: 960px) {
  .split,
  .split--reverse,
  .program-spotlight,
  .contact-layout,
  .site-footer__grid,
  .price-grid,
  .course-grid,
  .proof-row {
    grid-template-columns: 1fr;
  }

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

  .blog-row {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

  .nav-cta {
    margin-top: 0.5rem;
    text-align: center;
  }

  .site-header {
    position: relative;
  }

  .site-header__inner {
    position: relative;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: min(1120px, calc(100% - 1.5rem));
  }

  .hero__content {
    padding: 3rem 0 2.5rem;
  }

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

  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }
}
