:root {
  --paper: #fbf7ef;
  --ink: #1f211d;
  --muted: #6b675f;
  --line: rgba(31, 33, 29, 0.16);
  --green: #496d5b;
  --red: #a84634;
  --blue: #536f92;
  --yellow: #e7b954;
  --rose: #d8a79a;
  --white: #fffdf8;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(31, 33, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid transparent;
  background: rgba(251, 247, 239, 0.82);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(251, 247, 239, 0.94);
}

.brand,
.main-nav,
.header-action {
  font-size: 14px;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 46%, var(--ink) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 46%, var(--ink) 46% 54%, transparent 54%);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 32px);
}

.main-nav a,
.header-action {
  position: relative;
}

.main-nav a::after,
.header-action::after {
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.main-nav a:hover::after,
.header-action:hover::after {
  transform: scaleX(1);
}

.header-action {
  justify-self: end;
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: end;
  min-height: calc(100svh - 64px);
  padding: clamp(52px, 8vw, 92px) 0 clamp(42px, 7vw, 74px);
}

.hero-copy {
  padding-bottom: clamp(0px, 4vw, 46px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 0.96;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(58px, 9vw, 128px);
}

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

h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.08;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 33, 29, 0.14);
}

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

.button-secondary {
  background: transparent;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: minmax(220px, 1fr) minmax(180px, 0.72fr);
  gap: 14px;
  min-height: clamp(460px, 70vh, 720px);
}

.photo-card,
.space-item,
.teacher-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo-card img,
.space-item img,
.teacher-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.photo-card-large {
  grid-row: 1 / 3;
}

.placeholder-image {
  display: flex;
  min-height: 220px;
  align-items: flex-end;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.44), rgba(255, 253, 248, 0)),
    repeating-linear-gradient(45deg, rgba(31, 33, 29, 0.08) 0 1px, transparent 1px 16px),
    linear-gradient(135deg, #c75f45, #e7b954 45%, #496d5b);
}

.placeholder-image::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 253, 248, 0.48);
  border-radius: calc(var(--radius) - 2px);
  content: "";
}

.placeholder-image span {
  position: relative;
  max-width: 220px;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  text-shadow: 0 2px 16px rgba(31, 33, 29, 0.32);
}

.placeholder-image.warm {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.38), rgba(255, 253, 248, 0)),
    repeating-linear-gradient(-25deg, rgba(31, 33, 29, 0.08) 0 1px, transparent 1px 15px),
    linear-gradient(135deg, #d8a79a, #a84634);
}

.placeholder-image.cool,
.placeholder-image.ink {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.34), rgba(255, 253, 248, 0)),
    repeating-linear-gradient(25deg, rgba(31, 33, 29, 0.08) 0 1px, transparent 1px 15px),
    linear-gradient(135deg, #536f92, #243b53);
}

.placeholder-image.clay {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.32), rgba(255, 253, 248, 0)),
    repeating-linear-gradient(50deg, rgba(31, 33, 29, 0.08) 0 1px, transparent 1px 16px),
    linear-gradient(135deg, #a84634, #d8a79a);
}

.placeholder-image.mint {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.32), rgba(255, 253, 248, 0)),
    repeating-linear-gradient(-45deg, rgba(31, 33, 29, 0.08) 0 1px, transparent 1px 16px),
    linear-gradient(135deg, #496d5b, #9ebf9b);
}

.placeholder-image.sun {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.3), rgba(255, 253, 248, 0)),
    repeating-linear-gradient(35deg, rgba(31, 33, 29, 0.08) 0 1px, transparent 1px 16px),
    linear-gradient(135deg, #e7b954, #c75f45);
}

.mission-band {
  padding: clamp(72px, 10vw, 132px) 0;
  color: var(--white);
  background: var(--green);
}

.mission-layout {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
}

.mission-layout .section-kicker {
  color: var(--yellow);
}

.mission-layout p:last-child {
  max-width: 610px;
  margin: 12px 0 0 auto;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(18px, 2vw, 22px);
}

.split-section,
.formats,
.teacher-section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr;
  gap: clamp(20px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(28px, 5vw, 58px);
}

.section-heading.compact {
  grid-template-columns: 0.5fr 1fr;
}

.space-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-rows: minmax(280px, 0.9fr) minmax(280px, 1fr);
  gap: 14px;
}

.space-item:first-child {
  grid-row: 1 / 3;
}

.space-note {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.space-note p,
.format-item p,
.teacher-copy p,
.contact-card p {
  color: var(--muted);
}

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

.format-item {
  display: grid;
  grid-template-columns: 96px minmax(180px, 0.7fr) minmax(260px, 1fr);
  gap: clamp(18px, 4vw, 56px);
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.format-number {
  color: var(--red);
  font-weight: 800;
}

.format-item p {
  max-width: 540px;
  margin-bottom: 0;
  font-size: 18px;
}

.teacher-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.74fr) minmax(0, 1fr);
  gap: clamp(26px, 6vw, 84px);
  align-items: center;
}

.teacher-photo {
  min-height: clamp(420px, 58vw, 680px);
}

.teacher-copy p {
  max-width: 620px;
  font-size: clamp(18px, 2vw, 22px);
}

.quote {
  margin-top: 28px;
  padding-left: 22px;
  border-left: 3px solid var(--red);
  color: var(--ink) !important;
  font-weight: 700;
}

.contact-section {
  padding: clamp(70px, 10vw, 128px) 0;
  color: var(--white);
  background: var(--ink);
}

.contact-section .section-kicker {
  color: var(--yellow);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.8fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.08);
}

.contact-card a {
  width: fit-content;
  border-bottom: 1px solid rgba(255, 253, 248, 0.5);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
}

.contact-card p {
  margin: 12px 0 0;
  color: rgba(255, 253, 248, 0.68);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 54px);
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
  font-weight: 700;
}

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

  .main-nav {
    display: none;
  }

  .hero,
  .mission-layout,
  .section-heading,
  .section-heading.compact,
  .teacher-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-gallery {
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
  }

  .mission-layout p:last-child {
    margin-left: 0;
  }

  .space-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .space-item:first-child {
    grid-row: auto;
  }

  .space-item {
    min-height: 320px;
  }

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

  .format-item p {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    padding: 14px;
  }

  .brand span:last-child {
    max-width: 130px;
    line-height: 1.05;
  }

  .header-action {
    padding: 10px 12px;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
  }

  .header-action::after {
    display: none;
  }

  h1 {
    font-size: clamp(46px, 15vw, 76px);
  }

  h2 {
    font-size: clamp(34px, 11vw, 54px);
  }

  .hero-actions {
    display: grid;
  }

  .hero-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: 0;
  }

  .photo-card-large,
  .photo-card,
  .space-item,
  .teacher-photo {
    min-height: 300px;
  }

  .format-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .format-item p {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
