:root {
  color-scheme: light;
  --ink: #101827;
  --muted: #657894;
  --paper: #f8faff;
  --soft: #eef4ff;
  --line: #dce7fb;
  --accent: #315fdf;
  --accent-dark: #173a9b;
  --gold: #d7b46a;
  --sage: #5f7db2;
  --footer: #102858;
  --charcoal: #12306d;
  --charcoal-soft: #244b96;
  --blue-bright: #4777f1;
  --blue-ice: #e3ecff;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-soft: 0 10px 30px rgba(8, 38, 168, 0.08);
  --shadow-lift: 0 18px 40px rgba(8, 38, 168, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(49, 95, 223, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, rgba(49, 95, 223, 0.03) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: rgba(23, 72, 255, 0.22); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.005em;
}

/* Header */

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  align-items: center;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(245, 248, 255, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 10;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.nav a {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover { color: var(--accent-dark); background: var(--soft); }

.nav a[aria-current="page"] {
  color: var(--accent-dark);
  background: var(--soft);
  font-weight: 600;
}

.language-switcher {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.language-switcher button {
  min-height: 32px;
  min-width: 38px;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-switcher button:hover { border-color: var(--accent); color: var(--accent); }

.language-switcher button[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 900px);
  display: grid;
  align-items: stretch;
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 6vw, 6rem) clamp(3rem, 7vw, 6rem);
  color: var(--ink);
  background:
    linear-gradient(118deg, rgba(215, 180, 106, 0) 0 15%, rgba(215, 180, 106, 0.22) 15% 16%, rgba(215, 180, 106, 0) 16% 52%, rgba(49, 95, 223, 0.16) 52% 53%, rgba(49, 95, 223, 0) 53%),
    repeating-linear-gradient(118deg, rgba(49, 95, 223, 0.08) 0 1px, transparent 1px 86px),
    repeating-linear-gradient(0deg, rgba(215, 180, 106, 0.1) 0 1px, transparent 1px 34px),
    linear-gradient(135deg, #f7faff 0%, #e7efff 46%, #dce7ff 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(104deg, transparent 0 60%, rgba(255, 255, 255, 0.64) 60% 72%, transparent 72%),
    linear-gradient(156deg, transparent 0 18%, rgba(49, 95, 223, 0.12) 18% 22%, transparent 22% 100%);
  mix-blend-mode: multiply;
}

.hero::after {
  right: clamp(1.25rem, 5vw, 5rem);
  bottom: clamp(1rem, 4vw, 4rem);
  width: min(34vw, 420px);
  height: 1px;
  background: rgba(23, 58, 155, 0.28);
  box-shadow:
    0 22px 0 rgba(215, 180, 106, 0.34),
    0 44px 0 rgba(23, 58, 155, 0.14);
  transform: rotate(-3deg);
}

.hero > div {
  position: relative;
  z-index: 1;
  max-width: none;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  width: min(100%, 1280px);
  margin: 0 auto;
}

.hero-copy {
  max-width: 880px;
  padding-top: clamp(1rem, 3vw, 3rem);
}

.hero h1,
.page-head h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(3rem, 8vw, 7.2rem);
  font-weight: 500;
  line-height: 0.94;
}

.hero p {
  max-width: 620px;
  margin: 0 0 1.8rem;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted);
}

.hero-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.15rem;
  border: 1px solid rgba(215, 180, 106, 0.5);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(220, 231, 255, 0.68)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 80px rgba(8, 38, 168, 0.13);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: rotate(0.8deg);
}

.hero-card span {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card strong {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 0.9;
  color: var(--accent-dark);
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--sage);
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 2.2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.hero .eyebrow { color: var(--accent-dark); }

.hero-card .hero-artwork {
  margin-top: 0.85rem;
  transform: rotate(-2.4deg) translateX(-0.15rem);
}

.hero-card .hero-artwork img {
  aspect-ratio: 4 / 5;
}

.opera-visual {
  position: relative;
  min-height: 168px;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid rgba(220, 231, 255, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 34%),
    repeating-linear-gradient(0deg, transparent 0 28px, rgba(220, 231, 255, 0.2) 28px 29px),
    linear-gradient(160deg, rgba(23, 72, 255, 0.28), rgba(6, 17, 54, 0.74));
}

.opera-visual::before,
.opera-visual::after {
  content: "";
  position: absolute;
  inset: 24px 18px;
  border: 1px solid rgba(215, 180, 106, 0.48);
  transform: skewX(-16deg);
}

.opera-visual::after {
  inset: 46px 44px;
  border-color: rgba(220, 231, 255, 0.32);
  transform: skewX(18deg);
}

.staff-line {
  position: absolute;
  left: 20px;
  right: 20px;
  height: 1px;
  background: rgba(220, 231, 255, 0.52);
}

.staff-line:nth-child(1) { top: 48px; }
.staff-line:nth-child(2) { top: 78px; }
.staff-line:nth-child(3) { top: 108px; }

.voice-mark {
  position: absolute;
  display: block;
  width: 72px;
  height: 2px;
  background: var(--gold);
  transform-origin: left center;
}

.mark-one {
  left: 38px;
  top: 124px;
  transform: rotate(-28deg);
}

.mark-two {
  left: 102px;
  top: 52px;
  width: 104px;
  transform: rotate(34deg);
}

.mark-three {
  right: 28px;
  top: 96px;
  width: 80px;
  transform: rotate(-16deg);
}

/* Contra-inspired signal and stat sections */

.signal-strip {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, #dfeaff, #b9cdfd, #dfeaff);
  color: var(--accent-dark);
}

.signal-track {
  display: flex;
  width: max-content;
  animation: signal-scroll 42s linear infinite;
}

.signal-track span {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 0 1.5rem;
  border-right: 1px solid rgba(23, 58, 155, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes signal-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.stats-band {
  padding-top: 0;
  padding-bottom: 0;
  background:
    repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, #dfeaff, #c8d8ff);
  color: var(--ink);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid rgba(23, 58, 155, 0.14);
}

.stats-grid article {
  min-height: 180px;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-right: 1px solid rgba(23, 58, 155, 0.14);
  display: grid;
  align-content: space-between;
  gap: 1.5rem;
}

.stats-grid strong {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 0.9;
}

.stats-grid span {
  max-width: 220px;
  color: var(--muted);
  font-size: 0.92rem;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.pathway-card {
  min-height: 330px;
  display: grid;
  align-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fffdf8;
}

.pathway-card:nth-child(2) {
  background: linear-gradient(145deg, #dce7ff, #f8faff);
  color: var(--ink);
}

.pathway-card h3 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  line-height: 1;
}

.pathway-card p {
  margin: 0;
  color: var(--muted);
}

.pathway-card:nth-child(2) p {
  color: var(--muted);
}

.pathway-number {
  color: var(--blue-bright);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pathway-card a {
  justify-self: start;
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.pathway-card:nth-child(2) a {
  color: var(--accent-dark);
}

.ecosystem-band {
  background:
    repeating-linear-gradient(90deg, rgba(23, 58, 155, 0.08) 0 1px, transparent 1px 92px),
    linear-gradient(90deg, #edf3ff, #dfeaff),
    var(--soft);
  color: var(--ink);
}

.ecosystem-band .section-head,
.ecosystem-band .lead {
  color: var(--ink);
}

.ecosystem-band .section-head p:not(.eyebrow) {
  color: var(--muted);
}

.ecosystem-band .button.outline {
  color: var(--accent-dark);
  border-color: var(--accent);
}

.parents-head {
  background:
    repeating-linear-gradient(118deg, rgba(23, 72, 255, 0.09) 0 1px, transparent 1px 76px),
    linear-gradient(135deg, rgba(220, 231, 255, 0.9), transparent 52%),
    var(--soft);
}

.parent-benefits {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.parent-benefits .pathway-card {
  min-height: 300px;
}

.parent-benefits .pathway-card:nth-child(2) {
  background: #fffdf8;
  color: var(--ink);
}

.parent-benefits .pathway-card:nth-child(2) p {
  color: var(--muted);
}

.parent-note {
  align-self: start;
  background: white;
  color: var(--ink);
}

.parent-note p {
  color: var(--muted);
}

.seo-cta {
  align-self: start;
}

.service-head .actions {
  margin-top: 1.6rem;
}

.service-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.service-link-card {
  min-height: 270px;
  display: grid;
  align-content: space-between;
  gap: 1rem;
}

.service-link-card .eyebrow {
  margin-bottom: 0;
  font-size: 0.68rem;
}

.service-link-card h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.service-link-card h3 a,
.text-link {
  text-decoration: none;
}

.service-link-card h3 a:hover,
.text-link:hover {
  color: var(--accent);
}

.text-link {
  color: var(--accent-dark);
  font-weight: 700;
}

.service-artwork {
  align-self: start;
}

.related-services {
  display: grid;
  gap: 0.8rem;
}

.related-service {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  text-decoration: none;
}

.related-service:hover {
  border-color: rgba(49, 95, 223, 0.45);
  box-shadow: var(--shadow-soft);
}

.related-service span {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-system {
  display: grid;
  gap: 0.75rem;
}

.profile-system span {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(23, 58, 155, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

/* Buttons */

.actions,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.75rem 1.45rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  text-decoration: none;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.button:hover,
button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(23, 58, 155, 0.22);
}

.button.secondary {
  background: white;
  color: var(--accent-dark);
  border-color: white;
}

.button.secondary:hover { background: var(--soft); border-color: var(--soft); box-shadow: none; }

.button.quiet {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.55);
}

.button.quiet:hover { background: rgba(255, 255, 255, 0.12); box-shadow: none; }

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(23, 58, 155, 0.18);
}

.hero .button.secondary:hover {
  background: white;
  border-color: rgba(23, 58, 155, 0.24);
}

.hero .button.quiet {
  color: var(--accent-dark);
  border-color: rgba(23, 58, 155, 0.28);
}

.hero .button.quiet:hover {
  background: rgba(49, 95, 223, 0.08);
}

.button.outline {
  background: transparent;
  color: var(--accent-dark);
  border-color: var(--accent);
}

.button.outline:hover { background: var(--accent); color: white; }

/* Sections */

.page-head,
.band {
  padding: clamp(2.75rem, 6vw, 5.5rem) clamp(1.25rem, 6vw, 6rem);
}

.page-head {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  max-width: 980px;
  font-size: clamp(2.1rem, 4.4vw, 3.6rem);
}

.page-head .lead {
  max-width: 760px;
  margin-bottom: 0;
}

.band h2 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
}

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

.section-head h2,
.section-head p { margin-top: 0; }

.section-head p { color: var(--muted); }

.muted-band { background: var(--soft); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(1.75rem, 4vw, 4.5rem);
}

/* Cards */

.card,
.form-panel,
.list-item,
blockquote {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  background: white;
  box-shadow: var(--shadow-soft);
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.card.flat {
  background: transparent;
  box-shadow: none;
  border-color: var(--line);
}

.card.flat:hover { transform: none; box-shadow: none; }

.card h2,
.card h3,
.list-item h3 { margin-top: 0; }

.card h3 a { text-decoration: none; }

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

.list-item { margin-bottom: 1rem; }

/* Framed artwork */

.painting-frame {
  position: relative;
  margin: 0;
  padding: clamp(0.65rem, 1.4vw, 1rem);
  border: 1px solid rgba(215, 180, 106, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(220, 231, 255, 0.9)),
    var(--blue-ice);
  box-shadow:
    0 24px 60px rgba(8, 38, 168, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.88),
    inset 0 0 0 8px rgba(7, 17, 43, 0.06);
}

.painting-frame::before,
.painting-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.painting-frame::before {
  inset: 0.35rem;
  border: 1px solid rgba(7, 17, 43, 0.12);
  border-radius: 13px;
}

.painting-frame::after {
  inset: -0.5rem;
  z-index: -1;
  border: 1px solid rgba(23, 72, 255, 0.18);
  border-radius: 24px;
  transform: rotate(-1.5deg);
}

.painting-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  filter: saturate(1.04) contrast(1.02);
}

.offset-painting {
  transform: rotate(-1.2deg) translateY(0.5rem);
}

.floating-painting {
  width: min(100%, 520px);
  justify-self: end;
  transform: rotate(1deg);
}

.inline-painting {
  margin-bottom: 1.25rem;
}

.parent-note .painting-frame {
  background: rgba(220, 231, 255, 0.12);
}

blockquote {
  position: relative;
  margin: 0 0 1rem;
  padding-top: 2.4rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.45;
}

blockquote::before {
  content: "\201C";
  position: absolute;
  top: 0.4rem;
  left: 1.4rem;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gold);
}

cite {
  display: block;
  margin-top: 0.9rem;
  color: var(--muted);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.92rem;
}

cite::before { content: "— "; color: var(--gold); }

/* Testimonials */

.testimonial-showcase {
  background:
    radial-gradient(circle at 14% 12%, rgba(215, 180, 106, 0.2), transparent 24rem),
    linear-gradient(135deg, rgba(237, 246, 255, 0.92), rgba(255, 255, 255, 0.76));
}

.testimonial-slider {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 1rem;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.testimonial-viewport {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(8, 38, 168, 0.13);
}

.testimonial-track {
  display: flex;
  transition: transform 0.45s ease;
}

.testimonial-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.testimonial-slide blockquote {
  min-height: 280px;
  margin: 0;
  padding: clamp(2.1rem, 5vw, 4.5rem);
  border-color: rgba(215, 180, 106, 0.45);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.92)),
    white;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.testimonial-slide blockquote::before {
  top: 0.7rem;
  left: clamp(1.4rem, 4vw, 3.2rem);
  font-size: clamp(3.2rem, 8vw, 6rem);
  opacity: 0.72;
}

.testimonial-slide cite {
  margin-top: 1.4rem;
  font-size: 1rem;
}

.testimonial-control {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(23, 72, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: var(--accent-dark);
  font: inherit;
  font-size: 1.15rem;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.testimonial-control:hover,
.testimonial-control:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.testimonial-dots {
  grid-column: 2;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.testimonial-dots button {
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid rgba(23, 72, 255, 0.32);
  border-radius: 50%;
  padding: 0;
  background: white;
  cursor: pointer;
}

.testimonial-dots button[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent);
}

.testimonial-submit-band {
  align-items: start;
}

.testimonial-form {
  border-color: rgba(215, 180, 106, 0.35);
}

.testimonial-form small {
  color: var(--muted);
  font-size: 0.82rem;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  margin: 0.5rem 0 1.2rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
}

.checkbox-field input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
}

.errorlist {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  color: #9f2f2a;
  font-size: 0.88rem;
}

/* Prose */

.prose { max-width: 860px; }

.prose p { margin-bottom: 1.15rem; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink);
}

.clean-list,
.timeline-list {
  padding-left: 0;
  list-style: none;
}

.clean-list li,
.timeline-list li {
  position: relative;
  margin-bottom: 0.55rem;
  padding-left: 1.4rem;
}

.clean-list li::before,
.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 1px;
  background: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.contact-list {
  display: grid;
  gap: 0.5rem 1.25rem;
  grid-template-columns: max-content minmax(0, 1fr);
}

.contact-list dt {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding-top: 0.15rem;
}

.contact-list dd { margin: 0; }

.contact-list a { color: var(--accent-dark); }

.contact-list.compact {
  margin-top: 1.25rem;
}

.contact-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.contact-action {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(49, 95, 223, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-action:hover,
.contact-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(49, 95, 223, 0.42);
  box-shadow: var(--shadow-lift);
}

.contact-action-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-dark);
}

.contact-action-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-action strong {
  display: block;
  margin-bottom: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-action span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

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

.price-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.price-table th:last-child,
.price-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.price-table tr:last-child td { border-bottom: 0; }

.price-table small {
  color: var(--muted);
  font-size: 0.82rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.media-card {
  overflow: hidden;
}

.media-card.compact {
  padding: 1.1rem;
}

.media-card.compact + .media-card.compact {
  margin-top: 1rem;
}

.media-embed,
.media-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.1rem;
  border: 1px solid rgba(49, 95, 223, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(238, 244, 255, 0.9), rgba(255, 255, 255, 0.78)),
    var(--soft);
}

.media-embed iframe,
.media-image img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-image img {
  object-fit: cover;
}

.media-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.notice {
  max-width: 920px;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--soft);
}

.notice h3 { margin-top: 0; }

.notice p { margin-bottom: 0; }

/* Forms */

.form-panel h2 { margin-top: 0; }

.form-panel p {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.form-panel label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.72rem 0.9rem;
  font: inherit;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138, 58, 50, 0.12);
}

/* Public lesson calendar */

.cal-month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  max-width: 980px;
  margin-bottom: 0.9rem;
}

.cal-month-nav strong {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
}

.cal-nav-link {
  min-width: 110px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}

.cal-nav-link:hover { color: var(--accent); }

.cal-nav-link.disabled { visibility: hidden; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.cal-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0.45rem;
  border-radius: 50%;
}

.cal-legend .dot-free { background: var(--sage); }
.cal-legend .dot-busy { background: #b9b1a6; }

.calendar-scroll {
  max-width: 980px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.public-calendar {
  width: 100%;
  min-width: 640px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.public-calendar thead th {
  padding: 0.6rem 0.5rem;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.public-calendar td {
  vertical-align: top;
  height: 88px;
  padding: 0.4rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.public-calendar td:first-child { border-left: 0; }

.public-calendar tr:first-child td { border-top: 0; }

.public-calendar td.other-month { background: var(--paper); }

.public-calendar td.today {
  background: #fdf6ec;
  box-shadow: inset 0 0 0 2px rgba(185, 138, 78, 0.45);
}

.day-number {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.public-calendar td.today .day-number { color: var(--gold); }

.cal-slot {
  display: block;
  width: 100%;
  min-height: 0;
  margin-bottom: 0.3rem;
  padding: 0.25rem 0.45rem;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: left;
  line-height: 1.3;
}

.cal-slot.free {
  border: 1px solid rgba(82, 103, 92, 0.4);
  background: #e7efe9;
  color: #2e4a3c;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cal-slot.free:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
  transform: none;
  box-shadow: 0 6px 14px rgba(82, 103, 92, 0.3);
}

.cal-slot.free.selected {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}

.cal-slot.busy {
  border: 1px solid var(--line);
  background: #efece6;
  color: #97907f;
}

.slot-note {
  max-width: 980px;
  margin-top: 1rem;
  padding: 0.8rem 1.1rem;
  border-left: 3px solid var(--sage);
  border-radius: 0 10px 10px 0;
  background: #e7efe9;
  color: #2e4a3c;
}

/* Lesson availability list */

.calendar-list {
  display: grid;
  gap: 0.9rem;
  max-width: 980px;
}

.calendar-day {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow-soft);
}

.calendar-date {
  display: grid;
  align-content: start;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.calendar-date strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: 0;
  text-transform: none;
}

.slot-list {
  display: grid;
  gap: 0.6rem;
}

.lesson-slot {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.lesson-slot:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.lesson-slot strong { font-variant-numeric: tabular-nums; }

.lesson-slot span,
.lesson-slot small { color: var(--muted); }

/* Call-to-action band */

.cta-band {
  text-align: center;
  background:
    linear-gradient(rgba(32, 38, 31, 0.88), rgba(32, 38, 31, 0.88)),
    var(--footer);
  color: white;
}

.cta-band h2 {
  max-width: 720px;
  margin: 0 auto 0.75rem;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.cta-band p {
  max-width: 560px;
  margin: 0 auto 1.75rem;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band .actions { justify-content: center; }

/* Messages */

.messages {
  padding: 0.85rem clamp(1.25rem, 6vw, 6rem);
  background: #e4f0e8;
  color: #1d5132;
}

.messages p { margin: 0.2rem 0; }

/* Footer */

.site-footer {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 6vw, 6rem) 1.75rem;
  background: var(--footer);
  color: #e9ece7;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.footer-grid h2 {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.footer-grid p {
  margin: 0 0 0.5rem;
  color: #c8cec5;
  font-size: 0.95rem;
}

.footer-grid a { color: #e9ece7; }

.footer-grid a:hover { color: var(--gold); }

.inline-form { gap: 0.6rem; }

.inline-form input {
  width: min(100%, 240px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.inline-form input::placeholder { color: rgba(255, 255, 255, 0.55); }

.inline-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 138, 78, 0.2);
}

.footer-bottom {
  margin: 1.5rem 0 0;
  color: #97a094;
  font-size: 0.85rem;
}

/* Responsive */

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav { order: 3; width: 100%; }

  .hero-shell,
  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 420px;
    transform: none;
  }

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

  .offset-painting,
  .floating-painting {
    transform: none;
  }
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero h1 { font-size: clamp(3.25rem, 18vw, 5rem); }
  .hero-card { max-width: 360px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid article { min-height: 140px; }
  .testimonial-slider {
    grid-template-columns: 1fr 1fr;
  }
  .testimonial-viewport {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .testimonial-control {
    grid-row: 2;
    justify-self: center;
  }
  .testimonial-control-prev { grid-column: 1; }
  .testimonial-control-next { grid-column: 2; }
  .testimonial-dots {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .testimonial-slide blockquote {
    min-height: 260px;
    font-size: 1.35rem;
  }
  .calendar-day { grid-template-columns: 1fr; gap: 0.5rem; }
  .contact-list { grid-template-columns: 1fr; }
  .actions .button { width: 100%; }
}
