:root {
  --parchment: #f3ede3;
  --parchment-deep: #e8dfd0;
  --ink: #1a1814;
  --ink-soft: #3d3830;
  --terracotta: #c4785a;
  --terracotta-deep: #9a5a42;
  --beige: #d4c4b0;
  --indigo: #5c6b8a;
  --indigo-muted: #7a879e;
  --shadow: rgba(26, 24, 20, 0.12);
  --fold: rgba(26, 24, 20, 0.06);
  --font-display: "Literata", "Palatino Linotype", Palatino, serif;
  --font-body: "Outfit", "Gill Sans", "Trebuchet MS", sans-serif;
  --space: clamp(1rem, 2vw, 1.75rem);
  --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-weight: 400;
  color: var(--ink);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 12% 8%, rgba(196, 120, 90, 0.08), transparent 42%),
    radial-gradient(ellipse at 88% 0%, rgba(92, 107, 138, 0.1), transparent 38%),
    linear-gradient(180deg, var(--parchment) 0%, var(--parchment-deep) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  min-height: 100vh;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.35;
  background-image: 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.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

main,
.site-header,
.site-footer,
.cookie-banner {
  position: relative;
  z-index: 1;
}

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);
}

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

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

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

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

.site-nav a:hover {
  color: var(--terracotta);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--beige);
  background: var(--parchment);
  color: var(--ink) !important;
}

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

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  overflow: hidden;
  color: var(--parchment);
  background: transparent;
  isolation: isolate;
}

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

.btn-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  z-index: -2;
}

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

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--beige);
  padding: 0.8rem 1.3rem;
}

.btn-ghost:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.hero-eclipse {
  display: grid;
  min-height: min(92vh, 860px);
  grid-template-rows: 1fr auto;
}

.hero-plane {
  position: relative;
  min-height: 58vh;
  overflow: hidden;
  background: var(--ink);
}

.hero-plane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: sepia(0.18) contrast(1.05);
  animation: eclipse-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(26, 24, 20, 0.55) 0%, transparent 48%),
    radial-gradient(circle at 70% 30%, rgba(243, 237, 227, 0.18), transparent 35%),
    linear-gradient(to top, rgba(26, 24, 20, 0.5), transparent 40%);
  pointer-events: none;
}

.hero-copy {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  max-width: 38rem;
  animation: rise-in 0.9s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-line {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.hero-support {
  margin: 0 0 1.75rem;
  color: var(--ink-soft);
  max-width: 32rem;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  color: var(--ink-soft);
}

.paper-panel {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.35), transparent 40%),
    var(--parchment);
  border: 1px solid var(--beige);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    8px 12px 28px var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.fold-edge {
  position: relative;
}

.fold-edge::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 24, 20, 0.04));
  pointer-events: none;
}

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

.primary-offer img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  filter: sepia(0.12);
}

.offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 1.5rem;
  color: var(--indigo);
  font-size: 0.92rem;
}

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

.offer-tile {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s ease;
}

.offer-tile:hover {
  transform: translateY(-4px);
}

.offer-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: sepia(0.1);
}

.offer-tile h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
}

.offer-tile p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

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

.evidence blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.45;
}

.evidence figcaption {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--indigo);
}

.page-intro {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}

.page-intro h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}

.page-intro p {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-soft);
}

.service-list,
.blog-list {
  display: grid;
  gap: 1.5rem;
}

.service-row,
.blog-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.service-row img,
.blog-row img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.blog-row img {
  aspect-ratio: 4 / 3;
}

.service-row h2,
.blog-row h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.5rem;
}

.muted {
  color: var(--ink-soft);
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-family: var(--font-display);
  margin-top: 2rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}

.detail-hero img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.curriculum-steps {
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.curriculum-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
}

.curriculum-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terracotta);
  line-height: 1;
  padding-top: 0.2rem;
}

.curriculum-visual {
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.curriculum-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  filter: sepia(0.15);
}

.form-wrap {
  max-width: 34rem;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--beige);
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
}

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

.field-error {
  display: none;
  margin-top: 0.35rem;
  color: var(--terracotta-deep);
  font-size: 0.85rem;
}

.form-group.is-invalid .field-error {
  display: block;
}

.form-group.is-invalid input,
.form-group.is-invalid select,
.form-group.is-invalid textarea {
  border-color: var(--terracotta);
}

.form-status {
  margin-top: 1rem;
  min-height: 1.4em;
}

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

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

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--beige);
  background: rgba(232, 223, 208, 0.55);
  padding: 3rem 0 1.5rem;
}

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

.footer-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}

.footer-topic {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

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

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

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

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--fold);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(243, 237, 227, 0.96);
  border-top: 1px solid var(--beige);
  box-shadow: 0 -8px 24px var(--shadow);
  padding: 1rem 0;
}

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

.cookie-inner p {
  margin: 0;
  flex: 1 1 16rem;
  font-size: 0.92rem;
}

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

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

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 0 0 0.75rem;
}

.legal-list {
  max-width: 44rem;
}

.legal-list h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-top: 2rem;
}

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

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

.reveal {
  animation: rise-in 0.8s ease both;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .primary-offer,
  .detail-hero,
  .offers-rail,
  .evidence,
  .footer-grid,
  .split-2 {
    grid-template-columns: 1fr;
  }

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

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--parchment);
    border-bottom: 1px solid var(--beige);
    padding: 0.5rem 1.25rem 1rem;
  }

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

  .site-nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--fold);
  }

  .nav-cta {
    border: none;
    padding-left: 0;
  }
}
