:root {
  --parchment: #e8dfd0;
  --parchment-deep: #d9cdb8;
  --ink: #1a1814;
  --ink-soft: #3a352e;
  --terracotta: #b56b4f;
  --terracotta-deep: #8f4f38;
  --beige: #c4b5a0;
  --indigo: #3d4a5c;
  --indigo-soft: #5a6a7e;
  --paper-shadow: rgba(26, 24, 20, 0.14);
  --fold: rgba(61, 74, 92, 0.12);
  --font-display: "Shippori Mincho", "Palatino Linotype", Palatino, serif;
  --font-body: "Karla", "Gill Sans", "Trebuchet MS", sans-serif;
  --space: clamp(1rem, 2.4vw, 2rem);
  --measure: 68rem;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 18% 12%, rgba(197, 181, 160, 0.45), transparent 42%),
    radial-gradient(ellipse at 88% 8%, rgba(61, 74, 92, 0.08), transparent 35%),
    radial-gradient(ellipse at 70% 90%, rgba(181, 107, 79, 0.08), transparent 40%),
    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.045'/%3E%3C/svg%3E");
  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,
.site-logo {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
  background: rgba(232, 223, 208, 0.88);
  border-bottom: 1px solid var(--fold);
}

.site-header__inner {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0.85rem var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

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

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--beige);
  color: var(--ink);
  font-family: var(--font-body);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.nav-toggle__marks {
  display: inline-block;
  width: 1rem;
  height: 1px;
  margin-left: 0.5rem;
  background: var(--ink);
  box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink);
  vertical-align: middle;
}

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

  .site-nav {
    display: none;
    width: 100%;
    order: 3;
    padding-top: 0.75rem;
  }

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

  .site-nav__list {
    flex-direction: column;
    gap: 0.85rem;
  }

  .site-header__inner {
    flex-wrap: wrap;
  }
}

.btn {
  --btn-bg: var(--parchment);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--ink);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.35s ease, border-color 0.35s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.btn:hover,
.btn:focus-visible {
  color: var(--parchment);
  border-color: var(--ink);
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(0);
}

.btn--panel {
  --btn-bg: var(--parchment-deep);
}

.btn--ghost {
  background: transparent;
  border-color: var(--indigo-soft);
  color: var(--indigo);
}

.btn--ghost::before {
  background: var(--indigo);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--parchment);
}

.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--space);
}

.section--narrow {
  max-width: 46rem;
}

.section__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo-soft);
  margin-bottom: 0.75rem;
}

.section__lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

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

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

.hero-eclipse__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05);
  animation: eclipse-drift 28s ease-in-out infinite alternate;
}

.hero-eclipse__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 24, 20, 0.25) 0%, rgba(26, 24, 20, 0.55) 42%, rgba(26, 24, 20, 0.88) 100%),
    radial-gradient(circle at 72% 28%, rgba(232, 223, 208, 0.18), transparent 28%);
  z-index: 1;
}

.hero-eclipse__content {
  position: relative;
  z-index: 2;
  max-width: var(--measure);
  width: 100%;
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 8rem) var(--space) clamp(2.5rem, 6vw, 4rem);
}

.hero-eclipse__brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  margin: 0 0 1.5rem;
  max-width: 12ch;
  animation: paper-rise 1s ease both;
}

.hero-eclipse__headline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  max-width: 28ch;
  margin: 0 0 0.75rem;
  color: var(--parchment);
  animation: paper-rise 1s 0.12s ease both;
}

.hero-eclipse__support {
  max-width: 34ch;
  color: var(--beige);
  margin-bottom: 1.75rem;
  animation: paper-rise 1s 0.22s ease both;
}

.hero-eclipse__cta {
  animation: paper-rise 1s 0.32s ease both;
}

.hero-eclipse .btn {
  --btn-bg: rgba(232, 223, 208, 0.12);
  color: var(--parchment);
  border-color: var(--parchment);
}

.hero-eclipse .btn:hover,
.hero-eclipse .btn:focus-visible {
  color: var(--ink);
}

.hero-eclipse .btn::before {
  background: var(--parchment);
}

@keyframes paper-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes eclipse-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.fold-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--beige), transparent);
  margin: 0;
}

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

@media (max-width: 860px) {
  .offer-band {
    grid-template-columns: 1fr;
  }
}

.offer-band__visual {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
}

.offer-band__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
  filter: sepia(0.12) contrast(1.02);
}

.offer-band__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(26, 24, 20, 0.12);
  pointer-events: none;
}

.offer-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.offer-list a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--fold);
  transition: padding-left 0.35s ease;
}

.offer-list a:hover {
  padding-left: 0.5rem;
}

.offer-list__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}

.offer-list__meta {
  color: var(--indigo-soft);
  font-size: 0.9rem;
}

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

@media (max-width: 800px) {
  .evidence {
    grid-template-columns: 1fr;
  }
}

.evidence blockquote {
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--beige);
}

.evidence p {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
}

.evidence cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--indigo-soft);
}

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) var(--space) 2rem;
  max-width: var(--measure);
  margin: 0 auto;
}

.page-hero--media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
}

@media (max-width: 800px) {
  .page-hero--media {
    grid-template-columns: 1fr;
  }
}

.page-hero__image {
  overflow: hidden;
  min-height: 16rem;
}

.page-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 16rem;
  animation: eclipse-drift 24s ease-in-out infinite alternate;
}

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

@media (max-width: 700px) {
  .service-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.service-item,
.blog-item {
  display: grid;
  gap: 0.85rem;
}

.service-item__media,
.blog-item__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.service-item__media img,
.blog-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-item:hover img,
.blog-item:hover img {
  transform: scale(1.04);
}

.service-item h2,
.blog-item h2 {
  margin: 0;
  font-size: 1.4rem;
}

.service-item h2 a,
.blog-item h2 a {
  text-decoration: none;
  color: var(--ink);
}

.meta {
  color: var(--indigo-soft);
  font-size: 0.9rem;
}

.prose {
  max-width: 42rem;
}

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

.curriculum-steps {
  counter-reset: step;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.curriculum-steps li {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 4.5rem;
  background: linear-gradient(135deg, rgba(217, 205, 184, 0.45), rgba(232, 223, 208, 0.2));
  border: 1px solid var(--fold);
  box-shadow: 0 12px 30px -24px var(--paper-shadow);
}

.curriculum-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--terracotta);
}

.form {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.95rem;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--beige);
  background: rgba(255, 252, 246, 0.7);
  color: var(--ink);
  border-radius: var(--radius);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--indigo-soft);
  outline-offset: 1px;
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

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

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--beige);
}

.form-status--success {
  border-color: var(--indigo);
  background: rgba(61, 74, 92, 0.08);
}

.form-status--error {
  border-color: var(--terracotta);
  background: rgba(181, 107, 79, 0.1);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--fold);
  background: linear-gradient(180deg, transparent, rgba(196, 181, 160, 0.25));
  padding: 2.5rem var(--space) 2rem;
}

.site-footer__inner {
  max-width: var(--measure);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1.5rem;
}

@media (max-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.site-footer__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.site-footer__topic {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-footer__contact p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.site-footer__legal a {
  text-decoration: none;
}

.site-footer__copy {
  max-width: var(--measure);
  margin: 2rem auto 0;
  font-size: 0.85rem;
  color: var(--indigo-soft);
}

.cookie-banner {
  position: fixed;
  left: var(--space);
  right: var(--space);
  bottom: var(--space);
  z-index: 60;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__panel {
  pointer-events: auto;
  width: min(40rem, 100%);
  background: var(--parchment);
  border: 1px solid var(--ink);
  box-shadow: 0 18px 40px -20px var(--paper-shadow);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.85rem;
  animation: paper-rise 0.55s ease both;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.95rem;
}

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

.cookie-banner__error {
  margin: 0;
  color: var(--terracotta-deep);
  font-size: 0.85rem;
}

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

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

.not-found {
  text-align: left;
  padding: clamp(4rem, 12vw, 7rem) var(--space);
  max-width: var(--measure);
  margin: 0 auto;
}

.highlights {
  margin: 1rem 0 0;
  padding-left: 1.15rem;
}

.highlights li {
  margin-bottom: 0.4rem;
}

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

@media (max-width: 800px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.team-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.team-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.15);
}

.team-card h3 {
  margin: 0 0 0.25rem;
}

.team-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}
