:root {
  --parchment: #e8dfd0;
  --parchment-deep: #d9cbb6;
  --ink: #1a1714;
  --ink-soft: #3a342e;
  --terracotta: #b86b4f;
  --terracotta-deep: #8f4f3a;
  --beige: #c4b5a0;
  --indigo: #4f5d73;
  --indigo-mute: #6a778c;
  --paper: #f3ebe0;
  --shadow: rgba(26, 23, 20, 0.14);
  --fold: rgba(26, 23, 20, 0.06);
  --font-display: "Literata", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --max: 72rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(79, 93, 115, 0.08), transparent 42%),
    radial-gradient(ellipse at 88% 0%, rgba(184, 107, 79, 0.1), transparent 36%),
    linear-gradient(180deg, var(--paper) 0%, var(--parchment) 48%, var(--parchment-deep) 100%);
  min-height: 100vh;
  position: relative;
}

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.55'/%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%;
  display: block;
  height: auto;
}

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

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

.shell {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--fold);
  background: rgba(243, 235, 224, 0.82);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 38%, var(--parchment) 0 38%, transparent 39%),
    radial-gradient(circle at 45% 55%, var(--ink) 0 48%, transparent 49%),
    linear-gradient(135deg, var(--terracotta), var(--indigo));
  box-shadow: 0 0 0 1px rgba(26, 23, 20, 0.12);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

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

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

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

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

.hero-eclipse {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: calc(100vh - 4.25rem);
  align-items: stretch;
}

.hero-copy {
  padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.25rem;
  background:
    linear-gradient(160deg, rgba(243, 235, 224, 0.2), rgba(217, 203, 182, 0.55)),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 18px,
      rgba(26, 23, 20, 0.015) 18px,
      rgba(26, 23, 20, 0.015) 19px
    );
  border-right: 1px solid var(--fold);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 11ch;
  color: var(--ink);
}

.hero-rule {
  width: 4.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--terracotta), transparent);
  border: 0;
  margin: 0;
}

.hero-lede {
  margin: 0;
  max-width: 32ch;
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero-meta {
  margin: 0;
  font-size: 0.92rem;
  color: var(--indigo);
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.04);
  animation: drift 18s var(--ease) infinite alternate;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(26, 23, 20, 0.35), transparent 42%),
    linear-gradient(0deg, rgba(26, 23, 20, 0.28), transparent 45%);
  pointer-events: none;
}

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  padding: 0.85rem 1.35rem;
  color: var(--parchment);
  overflow: hidden;
  isolation: isolate;
}

.btn-panel {
  background: var(--ink);
  color: var(--parchment);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  transition: color 0.35s var(--ease);
}

.btn-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--terracotta-deep);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease);
  z-index: -1;
}

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

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

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

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

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

.section-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo-mute);
}

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

.section-head p,
.lede {
  margin: 0;
  color: var(--ink-soft);
}

.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: saturate(0.88);
  box-shadow: 18px 18px 0 var(--fold);
}

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

.offer-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid rgba(26, 23, 20, 0.1);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.35s var(--ease);
}

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

.offer-row:last-child {
  border-bottom: 1px solid rgba(26, 23, 20, 0.1);
}

.offer-index {
  font-family: var(--font-display);
  color: var(--terracotta);
  font-size: 0.95rem;
}

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

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

.offer-price {
  color: var(--indigo);
  font-size: 0.9rem;
  white-space: nowrap;
}

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

.voice {
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--beige);
}

.voice blockquote {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--ink);
}

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

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

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

.page-hero-split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: -14px 14px 0 var(--fold);
}

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

.service-card,
.note-card {
  display: grid;
  gap: 0.9rem;
  text-decoration: none;
  color: inherit;
}

.service-card img,
.note-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.service-card:hover img,
.note-card:hover img {
  transform: translateY(-4px);
  filter: saturate(1);
}

.service-card h2,
.note-card h2,
.service-card h3,
.note-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.meta-line {
  margin: 0;
  font-size: 0.88rem;
  color: var(--indigo-mute);
}

.prose {
  max-width: 42rem;
}

.prose p {
  margin: 0 0 1rem;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
}

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

.prose li {
  margin-bottom: 0.45rem;
}

.process-steps {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.process-step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(26, 23, 20, 0.12);
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--terracotta);
}

.process-step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.process-step p {
  margin: 0;
  color: var(--ink-soft);
}

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

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(243, 235, 224, 0.7);
  border: 1px solid var(--beige);
  padding: 0.75rem 0.85rem;
  width: 100%;
}

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

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

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

.form-status {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.form-status[data-state="success"] {
  color: var(--indigo);
}

.form-status[data-state="error"] {
  color: var(--terracotta-deep);
}

.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(26, 23, 20, 0.12);
  background: rgba(26, 23, 20, 0.04);
}

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

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.6rem;
}

.footer-note,
.footer-grid p {
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-mute);
  margin: 0 0 0.7rem !important;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink-soft);
}

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

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

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(232, 223, 208, 0.96);
  border-top: 1px solid var(--beige);
  box-shadow: 0 -8px 30px var(--shadow);
  padding: 1rem 0;
}

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

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

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

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

.cookie-error {
  width: 100%;
  color: var(--terracotta-deep);
  margin: 0;
}

.legal-wrap,
.error-wrap {
  padding: clamp(3rem, 8vw, 5rem) 0 4rem;
}

.error-wrap {
  text-align: left;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

@media (max-width: 900px) {
  .hero-eclipse,
  .primary-offer,
  .page-hero-split,
  .detail-hero,
  .footer-grid,
  .voices,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero-eclipse {
    min-height: auto;
  }

  .hero-visual {
    min-height: 16rem;
    order: -1;
  }

  .hero-copy {
    border-right: 0;
    border-bottom: 1px solid var(--fold);
    justify-content: flex-start;
    padding-top: 2rem;
  }

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

  .offer-price {
    grid-column: 2;
  }

  .process-step {
    grid-template-columns: 3rem 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

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

  .site-nav.is-open {
    display: block;
    animation: panelIn 0.35s var(--ease);
  }

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

  .header-inner {
    position: relative;
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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