:root {
  --ink: #22302d;
  --muted: #6e7872;
  --paper: #fbf8f1;
  --paper-deep: #f2ebdc;
  --line: #ded5c5;
  --sage: #82927d;
  --moss: #405748;
  --navy: #08265f;
  --clay: #b7835f;
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(64, 87, 72, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(130, 146, 125, 0.06) 1px, transparent 1px) 0 0 / 84px 84px,
    var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(183, 131, 95, 0.11), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(130, 146, 125, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.44), transparent 42%);
  animation: ambientLight 18s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(251, 248, 241, 0.82);
  border-bottom: 1px solid rgba(222, 213, 197, 0.62);
  backdrop-filter: blur(18px);
  animation: headerDrop 700ms ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.site-footer a {
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav a {
  padding: 9px 15px;
}

.nav a:hover,
.nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  border-color: rgba(64, 87, 72, 0.42);
  color: var(--moss);
  background: rgba(255, 253, 248, 0.58);
  transform: translateY(-1px);
}

.header-cta {
  justify-self: end;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.header-cta:hover {
  border-color: var(--moss);
  color: var(--moss);
  transform: translateY(-1px);
}

.hero {
  min-height: calc(100svh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 92px);
  padding: clamp(56px, 8vw, 108px) clamp(18px, 6vw, 88px) 44px;
}

.hero__copy {
  max-width: 860px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--moss);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(66px, 11vw, 152px);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 86px);
}

h3 {
  margin-bottom: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 2.7vw, 36px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 590px;
  color: var(--muted);
  font-size: clamp(20px, 2.4vw, 31px);
  line-height: 1.35;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  border: 1px solid var(--moss);
  border-radius: 999px;
  background: var(--moss);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--ink);
}

.button--ghost {
  background: transparent;
  color: var(--moss);
}

.button--ghost:hover {
  color: var(--white);
}

.hero__visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
}

.hero__visual::before {
  content: "";
  position: absolute;
  width: min(35vw, 500px);
  aspect-ratio: 0.86;
  border: 1px solid var(--line);
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.76), rgba(242, 235, 220, 0.32));
  box-shadow: var(--shadow);
  transform: rotate(-2.5deg);
}

.hero__visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: min(35vw, 500px);
  aspect-ratio: 0.86;
  border: 1px solid rgba(222, 213, 197, 0.96);
  border-radius: 999px 999px 8px 8px;
  transform: rotate(-2.5deg);
  pointer-events: none;
}

.hero__image {
  position: relative;
  z-index: 2;
  width: min(50vw, 720px);
  aspect-ratio: 4 / 5;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: portraitFloat 7s ease-in-out infinite;
}

.hero__image::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 15%;
  height: 22%;
  background:
    radial-gradient(ellipse, rgba(64, 87, 72, 0.18), transparent 66%);
  filter: blur(18px);
  pointer-events: none;
}

.hero__image img {
  position: absolute;
  left: 44%;
  bottom: 8%;
  width: 130%;
  height: auto;
  max-width: none;
  transform: translateX(-50%) scale(1.02);
  animation: imageBreath 12s ease-in-out infinite alternate;
}

.hero__note {
  position: absolute;
  z-index: 2;
  right: 5%;
  bottom: 13%;
  max-width: 210px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.84);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  animation: noteFloat 5.8s ease-in-out infinite 600ms;
}

.hero__note span,
.program-list span,
.relation-grid span,
.format-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__note strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 27px;
  line-height: 1.02;
}

.section {
  padding: clamp(74px, 11vw, 150px) clamp(18px, 6vw, 88px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
  max-width: none;
  padding-top: clamp(50px, 7vw, 92px);
  padding-bottom: clamp(50px, 7vw, 92px);
}

.intro p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(20px, 2.15vw, 31px);
  line-height: 1.34;
}

.intro h2 {
  justify-self: end;
  width: 100%;
  max-width: 820px;
  text-align: right;
}

.relation-grid,
.format-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.relation-grid article,
.format-grid article {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  padding: clamp(24px, 3vw, 42px);
  background: rgba(255, 253, 248, 0.7);
  transition: background 220ms ease, transform 220ms ease;
}

.relation-grid {
  position: relative;
  z-index: 1;
  border-color: rgba(222, 213, 197, 0.72);
  background: rgba(222, 213, 197, 0.72);
  box-shadow: 0 26px 80px rgba(64, 87, 72, 0.08);
}

.relation-grid article {
  background: rgba(255, 253, 248, 0.76);
}

.relation-grid article:hover,
.format-grid article:hover {
  background: rgba(255, 253, 248, 0.96);
  transform: translateY(-4px);
}

.relation-grid p,
.format-grid p,
.program-list p,
.author__copy p,
.section-heading > p,
.enroll p {
  color: var(--muted);
}

.quote-band {
  position: relative;
  overflow: hidden;
  margin: 0 clamp(18px, 6vw, 88px);
  padding: clamp(44px, 7vw, 92px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-band p {
  position: relative;
  max-width: 1030px;
  margin: 0;
  background: linear-gradient(90deg, var(--ink) 0 34%, var(--clay) 45%, var(--moss) 55%, var(--ink) 68% 100%);
  background-size: 240% 100%;
  color: transparent;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 5.5vw, 82px);
  line-height: 1.08;
  -webkit-background-clip: text;
  background-clip: text;
  animation: quoteTextWash 7s ease-in-out infinite;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.38fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  margin-bottom: clamp(34px, 6vw, 76px);
}

.section-heading > p {
  margin-bottom: 6px;
  font-size: 18px;
}

.program-list {
  border-top: 1px solid var(--line);
}

.program-list details {
  border-bottom: 1px solid var(--line);
}

.program-list summary {
  display: grid;
  grid-template-columns: 120px minmax(260px, 0.7fr) minmax(260px, 1fr) 44px;
  gap: clamp(20px, 4vw, 70px);
  padding: clamp(28px, 4vw, 52px) 0;
  cursor: pointer;
  list-style: none;
  transition: color 180ms ease, padding-left 220ms ease;
}

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

.program-list summary::after {
  content: "+";
  justify-self: end;
  align-self: center;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  grid-column: 4;
  grid-row: 1;
  border: 1px solid rgba(64, 87, 72, 0.28);
  border-radius: 50%;
  color: var(--moss);
  font-size: 22px;
  line-height: 1;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease;
}

.program-list details[open] summary {
  color: var(--moss);
}

.program-list details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
  background: var(--moss);
  color: var(--white);
}

.program-list summary:hover {
  padding-left: 10px;
}

.program-list h3,
.program-list p {
  margin-bottom: 0;
}

.program-list ol {
  max-width: 820px;
  margin: 0 0 clamp(30px, 4vw, 52px) 120px;
  padding: 0 0 0 24px;
  color: var(--muted);
}

.program-list li {
  margin: 12px 0;
  padding-left: 10px;
}

.program-list li::marker {
  color: var(--clay);
  font-weight: 800;
}

.program-list details[open] ol {
  animation: detailsOpen 320ms ease both;
}

.author {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 0.9fr);
  gap: clamp(34px, 7vw, 100px);
  align-items: center;
  background: var(--paper-deep);
}

.author__portrait {
  position: relative;
  min-height: 560px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.author__portrait img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: 58% 50%;
  transition: transform 700ms ease;
}

.author__portrait:hover img {
  transform: scale(1.035);
}

.author__copy {
  max-width: 710px;
}

.author__copy h2 {
  margin-bottom: clamp(26px, 4vw, 48px);
}

.author__copy p {
  font-size: 18px;
}

.author__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.author__facts span {
  padding: 10px 14px;
  border: 1px solid rgba(64, 87, 72, 0.28);
  border-radius: 999px;
  color: var(--moss);
  font-size: 13px;
  font-weight: 700;
}

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

.enroll {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin: clamp(44px, 8vw, 98px) clamp(18px, 6vw, 88px);
  padding: clamp(34px, 5.5vw, 74px);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.enroll .section-kicker {
  color: #d9b997;
}

.enroll p {
  max-width: 640px;
  margin: 20px 0 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 18px;
}

.enroll__side {
  display: grid;
  gap: 30px;
  justify-items: end;
  align-self: end;
  padding-bottom: 4px;
}

.price {
  text-align: right;
}

.price span {
  display: block;
  margin-bottom: 8px;
  color: #d9b997;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price strong {
  display: block;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 600;
  line-height: 0.95;
}

.enroll .button {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.enroll .button:hover {
  background: transparent;
  color: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 88px) 42px;
  color: var(--muted);
  font-size: 14px;
}

.back-top {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(64, 87, 72, 0.42);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.74);
  color: var(--moss);
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(64, 87, 72, 0.1);
}

.back-top:hover,
.back-top:focus-visible {
  border-color: var(--moss);
  background: var(--moss);
  color: var(--white);
  transform: translateY(-3px);
}

.back-top:active {
  transform: translateY(-1px) scale(0.92);
  box-shadow: 0 0 0 8px rgba(64, 87, 72, 0.12);
}

.reveal,
.relation-grid article,
.format-grid article,
.program-list details {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms ease, transform 720ms ease;
}

.reveal.is-visible,
.relation-grid article.is-visible,
.format-grid article.is-visible,
.program-list details.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.relation-grid article:nth-child(2),
.format-grid article:nth-child(2),
.program-list details:nth-child(2) {
  transition-delay: 80ms;
}

.relation-grid article:nth-child(3),
.format-grid article:nth-child(3),
.program-list details:nth-child(3) {
  transition-delay: 160ms;
}

.relation-grid article:nth-child(4),
.program-list details:nth-child(4) {
  transition-delay: 240ms;
}

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

@keyframes ambientLight {
  from {
    opacity: 0.66;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, -18px, 0);
  }
}

@keyframes portraitFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes imageBreath {
  from {
    transform: translateX(-50%) scale(1.02);
  }
  to {
    transform: translateX(-50%) scale(1.06);
  }
}

@keyframes noteFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

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

@keyframes quoteTextWash {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .relation-grid article,
  .format-grid article,
  .program-list details {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .intro,
  .author,
  .section-heading,
  .enroll {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__visual {
    min-height: 470px;
  }

  .hero__visual::before {
    width: min(72vw, 420px);
  }

  .hero__visual::after {
    width: min(72vw, 420px);
  }

  .hero__image {
    width: min(96vw, 560px);
  }

  .intro h2 {
    justify-self: start;
    text-align: left;
  }

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

  .program-list summary {
    grid-template-columns: 1fr 44px;
    gap: 10px;
  }

  .program-list summary::after {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .program-list ol {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand span {
    display: none;
  }

  .header-cta {
    padding: 9px 13px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 74px);
  }

  .hero {
    padding-inline: 16px;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .relation-grid,
  .format-grid {
    grid-template-columns: 1fr;
  }

  .relation-grid article,
  .format-grid article {
    min-height: auto;
  }

  .quote-band {
    margin-inline: 16px;
    padding-inline: 0;
  }

  .author__portrait {
    min-height: 420px;
  }

  .enroll {
    margin-inline: 16px;
  }

  .enroll__side,
  .price {
    justify-items: start;
    text-align: left;
  }
}
