:root {
  --parchment: #f3ede3;
  --parchment-deep: #e8dcc8;
  --paper: #faf6ef;
  --ink: #1a1614;
  --ink-soft: #3a342f;
  --terracotta: #c4785a;
  --terracotta-deep: #9e5a40;
  --beige: #d4c4b0;
  --indigo: #4a5568;
  --indigo-soft: #6b778a;
  --shadow: rgba(26, 22, 20, 0.14);
  --grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  --font-display: "Literata", "Georgia", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --shell: min(1120px, calc(100% - 2.5rem));
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
  background-image: var(--grain),
    linear-gradient(165deg, #f7f1e7 0%, #ebe2d2 48%, #e4d8c4 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--terracotta-deep);
}

h1,
h2,
h3,
.brand-text,
.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in srgb, var(--beige) 70%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  max-width: min(100%, 18rem);
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 35%, var(--parchment) 0 38%, transparent 40%),
    radial-gradient(circle at 50% 50%, var(--ink) 0 55%, transparent 56%),
    linear-gradient(var(--terracotta), var(--terracotta));
  flex-shrink: 0;
}

.brand-text {
  font-size: 0.95rem;
  line-height: 1.25;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.35rem;
}

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

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--beige);
  background: var(--paper);
  color: var(--ink);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.nav-toggle-bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink);
  margin-top: 0.15rem;
}

.nav-toggle-label {
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--beige);
    padding: 0.75rem 1.25rem 1.1rem;
    display: none;
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border: none;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  color: var(--paper);
  background: transparent;
  isolation: isolate;
}

.btn-panel {
  color: var(--paper);
}

.btn-panel::before,
.btn-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-panel::before {
  background: var(--terracotta-deep);
}

.btn-panel::after {
  background: var(--terracotta);
  transform: translateX(0);
}

.btn-panel:hover::after,
.btn-panel:focus-visible::after {
  transform: translateX(104%);
}

.btn-ghost {
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border: 1px solid var(--beige);
}

.btn-ghost:hover {
  background: var(--paper);
}

.hero-eclipse {
  position: relative;
  min-height: min(92vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
}

.hero-eclipse__media {
  position: absolute;
  inset: 0;
}

.hero-eclipse__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.05);
}

.hero-eclipse__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 22, 20, 0.25) 0%, rgba(26, 22, 20, 0.72) 68%, rgba(26, 22, 20, 0.88) 100%),
    radial-gradient(ellipse at 78% 18%, rgba(196, 120, 90, 0.28), transparent 42%);
}

.hero-eclipse__content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vh, 7rem) 0 3.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0 0 1.5rem;
  color: var(--paper);
  text-shadow: 0 1px 0 rgba(26, 22, 20, 0.35);
}

.hero-kicker {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-family: var(--font-display);
  font-weight: 500;
  max-width: 28ch;
  margin: 0 0 0.65rem;
  color: var(--parchment);
}

.hero-lede {
  max-width: 38ch;
  margin: 0 0 1.6rem;
  color: color-mix(in srgb, var(--parchment) 88%, white);
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-muted {
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--beige) 55%, transparent);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.fold-panel {
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--beige) 80%, transparent);
  box-shadow: 0 18px 40px -28px var(--shadow);
  position: relative;
}

.fold-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--terracotta), var(--indigo));
}

.offer-feature {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.offer-feature img {
  width: 100%;
  height: min(420px, 55vw);
  object-fit: cover;
  filter: sepia(0.12) contrast(1.02);
}

.offer-copy {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-list {
  display: grid;
  gap: 1.25rem;
}

.service-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1rem;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  border-bottom: 1px solid var(--beige);
  text-decoration: none;
  color: inherit;
  transition: background 0.25s ease, transform 0.25s ease;
}

.service-row:hover {
  background: var(--paper);
  transform: translateX(4px);
}

.service-row img {
  width: 140px;
  height: 96px;
  object-fit: cover;
}

.service-row h3 {
  margin-bottom: 0.25rem;
}

.service-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.service-row .price {
  font-family: var(--font-display);
  color: var(--indigo);
  white-space: nowrap;
}

.quote-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.quote-item {
  padding: 1.35rem 1.25rem;
  background: var(--paper);
  border-top: 3px solid var(--indigo-soft);
}

.quote-item p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
}

.quote-item cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
}

.page-hero--media {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: end;
  color: var(--paper);
  overflow: hidden;
  margin-bottom: 0;
}

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

.page-hero--media .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 22, 20, 0.2), rgba(26, 22, 20, 0.78));
}

.page-hero--media .shell {
  position: relative;
  z-index: 1;
  padding-bottom: 2.5rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2rem;
}

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

.note-card {
  display: grid;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--beige);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -24px var(--shadow);
}

.note-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.note-card .pad {
  padding: 0 1.1rem 1.2rem;
}

.note-card time {
  font-size: 0.85rem;
  color: var(--indigo-soft);
}

.curriculum-steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  border-left: 1px solid var(--beige);
  margin-left: 0.6rem;
}

.curriculum-step {
  position: relative;
  padding: 0 0 2rem 1.75rem;
}

.curriculum-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -0.85rem;
  top: 0;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--parchment);
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
}

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

.team-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  margin-bottom: 0.75rem;
  filter: sepia(0.08);
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

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

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

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--beige);
  padding: 0.7rem 0.8rem;
  width: 100%;
}

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

.field-error {
  color: var(--terracotta-deep);
  font-size: 0.88rem;
  min-height: 1.1em;
}

.form-status {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--beige);
  background: var(--paper);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border-color: var(--indigo);
}

.form-status.is-error {
  border-color: var(--terracotta);
}

.legal-list {
  padding-left: 1.2rem;
}

.legal-list li {
  margin-bottom: 0.45rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 3rem 0 1.5rem;
  background: var(--ink);
  color: var(--parchment);
}

.site-footer a {
  color: var(--beige);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-name {
  color: var(--paper);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.footer-tag,
.footer-base {
  color: var(--beige);
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.65rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-base {
  border-top: 1px solid color-mix(in srgb, var(--beige) 35%, transparent);
  padding-top: 1rem;
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 60;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  border-top: 1px solid var(--beige);
  box-shadow: 0 -12px 30px -20px var(--shadow);
  padding: 1rem 0;
}

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

.cookie-inner p {
  margin: 0;
  max-width: 48rem;
  font-size: 0.95rem;
}

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

.island-error {
  color: var(--terracotta-deep);
  width: 100%;
  margin: 0;
  font-size: 0.9rem;
}

.price-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.contact-layout,
.curriculum-layout,
.detail-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.detail-layout {
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
}

.contact-aside {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  height: fit-content;
}

.contact-aside h2 {
  font-size: 1.2rem;
}

.hero-page-lede {
  max-width: 34ch;
  color: var(--parchment);
}

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

@media (max-width: 900px) {
  .offer-feature,
  .quote-strip,
  .team-grid,
  .footer-grid,
  .grid-cards,
  .contact-layout,
  .curriculum-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

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

  .service-row img {
    width: 100%;
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
