:root {
  --mercury: #c8d0d8;
  --mercury-bright: #e8eef4;
  --mercury-deep: #9aa3ad;
  --peach: #f0c9a8;
  --peach-soft: #f7dfc8;
  --gold: #d4a85a;
  --gold-soft: #e8c98a;
  --graphite: #3a4048;
  --graphite-deep: #2a2f36;
  --ink: #2a2f36;
  --ink-soft: #5a616a;
  --foam: #f5f3ef;
  --surface: rgba(232, 238, 244, 0.72);
  --surface-strong: rgba(200, 208, 216, 0.55);
  --line: rgba(58, 64, 72, 0.14);
  --shadow: 0 16px 48px rgba(42, 47, 54, 0.12);
  --radius: 1.15rem;
  --font-display: "Nunito", sans-serif;
  --font-body: "Manrope", sans-serif;
  --shell: min(1120px, calc(100% - 2.5rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1100px 640px at 8% -8%, rgba(240, 201, 168, 0.55), transparent 55%),
    radial-gradient(900px 520px at 92% 0%, rgba(212, 168, 90, 0.28), transparent 50%),
    radial-gradient(800px 480px at 50% 110%, rgba(200, 208, 216, 0.7), transparent 55%),
    linear-gradient(168deg, #f7f4ef 0%, #e8eef4 42%, #dfe4ea 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

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

a {
  color: #6a5530;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--graphite);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(245, 243, 239, 0.78);
  border-bottom: 1px solid var(--line);
}

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

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

.brand:hover {
  color: #6a5530;
}

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

.site-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a.nav-cta {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(212, 168, 90, 0.4);
  background: linear-gradient(125deg, rgba(240, 201, 168, 0.55), rgba(200, 208, 216, 0.65));
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--ink);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, border-radius 0.45s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(42, 47, 54, 0.18), transparent 55%);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.2, 0.64, 1);
  pointer-events: none;
}

.btn:hover {
  transform: scale(0.97);
  border-radius: 1.35rem;
}

.btn:hover::before {
  opacity: 1;
  transform: scaleY(1.1);
}

.btn:active {
  transform: scale(0.94);
  border-radius: 1.6rem;
}

.btn-primary {
  color: var(--foam);
  background: linear-gradient(135deg, var(--graphite) 0%, #4a5160 40%, #6a5530 100%);
  box-shadow: 0 12px 30px rgba(58, 64, 72, 0.22);
}

.btn-primary:hover {
  color: var(--peach-soft);
}

.btn-ghost {
  color: var(--ink);
  background: rgba(232, 238, 244, 0.55);
  border: 1px solid rgba(58, 64, 72, 0.18);
}

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

/* Hero: bottom mercury shelf, brand-first — distinct from centered left stack */
.hero {
  position: relative;
  min-height: min(94vh, 880px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.88) contrast(1.05) brightness(0.9);
  animation: horizon-drift 28s ease-in-out infinite alternate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(42, 47, 54, 0.2) 0%, rgba(42, 47, 54, 0.35) 38%, rgba(42, 47, 54, 0.82) 100%),
    linear-gradient(250deg, rgba(240, 201, 168, 0.18) 0%, transparent 45%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 18%;
  height: 28%;
  z-index: -1;
  background: linear-gradient(
    95deg,
    transparent 0%,
    rgba(200, 208, 216, 0.2) 20%,
    rgba(240, 201, 168, 0.35) 48%,
    rgba(212, 168, 90, 0.22) 72%,
    transparent 100%
  );
  filter: blur(22px);
  animation: mercury-band 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-copy {
  width: var(--shell);
  margin: 0 auto;
  padding: 0 0 3.5rem;
  color: var(--foam);
  display: grid;
  gap: 0.85rem;
  justify-items: start;
  animation: rise 1.1s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.88;
  margin: 0;
  background: linear-gradient(105deg, var(--gold-soft) 0%, var(--peach) 40%, var(--mercury-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.4));
  max-width: 12ch;
}

.hero-copy h1 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--peach-soft);
  margin: 0;
  max-width: 28rem;
  border-left: 3px solid rgba(212, 168, 90, 0.7);
  padding-left: 0.9rem;
}

.hero-copy > p {
  color: rgba(245, 243, 239, 0.9);
  max-width: 28rem;
  font-size: 1.05rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
}

.lede {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.service-grid,
.blog-grid,
.price-grid,
.step-grid,
.evidence-grid {
  display: grid;
  gap: 1.35rem;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.blog-grid,
.price-grid,
.evidence-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.service-item img,
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: calc(var(--radius) - 0.25rem);
  filter: saturate(0.9);
}

.service-item h3,
.blog-card h3 {
  font-size: 1.2rem;
  margin: 0;
}

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

.service-item h3 a:hover,
.blog-card h3 a:hover {
  color: #6a5530;
}

.meta {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.evidence-item blockquote {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

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

.step {
  padding-top: 0.5rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--peach), var(--mercury), var(--gold)) 1;
}

.step-num {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  color: #6a5530;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.price-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.price-card.featured {
  background:
    linear-gradient(160deg, rgba(240, 201, 168, 0.35), rgba(200, 208, 216, 0.4)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.price-card .amount {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  color: var(--graphite);
}

.price-card ul {
  padding-left: 1rem;
  flex: 1;
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.page-hero .media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(42, 47, 54, 0.25), rgba(42, 47, 54, 0.78));
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin: 0 auto 2.5rem;
  color: var(--foam);
}

.page-hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--peach-soft);
}

.prose {
  max-width: 42rem;
}

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

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

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

.form label {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  color: var(--ink);
  background: rgba(245, 243, 239, 0.9);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid rgba(212, 168, 90, 0.55);
  outline-offset: 1px;
}

.form input[aria-invalid="true"],
.form select[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
  border-color: #7a3a32;
}

.field-error {
  color: #7a3a32;
  font-size: 0.88rem;
  min-height: 1.1em;
}

.form-status {
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
}

.form-status[data-state="success"] {
  border-color: rgba(106, 85, 48, 0.4);
  background: rgba(240, 201, 168, 0.28);
}

.form-status[data-state="error"] {
  border-color: rgba(122, 58, 50, 0.4);
  background: rgba(122, 58, 50, 0.08);
}

.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2.2rem;
  font-size: 1.35rem;
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #3a4048 0%, #2a2f36 100%);
  color: rgba(245, 243, 239, 0.82);
  padding: 3rem 0 1.5rem;
}

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

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

.site-footer .brand {
  color: var(--foam);
}

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

.footer-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mercury-deep);
  margin-bottom: 0.85rem;
}

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

.footer-address {
  font-style: normal;
  line-height: 1.7;
}

.footer-base {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 243, 239, 0.12);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background:
    linear-gradient(120deg, rgba(232, 238, 244, 0.97), rgba(247, 223, 200, 0.95));
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px rgba(42, 47, 54, 0.14);
  padding: 1rem 0;
}

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

.cookie-copy {
  flex: 1 1 18rem;
}

.cookie-copy h2 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

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

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

.cookie-error {
  width: 100%;
  color: #7a3a32;
  margin: 0;
}

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

.not-found h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--graphite), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  background:
    radial-gradient(520px 240px at 50% 0%, rgba(240, 201, 168, 0.4), transparent 70%),
    radial-gradient(400px 200px at 80% 100%, rgba(200, 208, 216, 0.5), transparent 70%),
    var(--surface);
  border-block: 1px solid var(--line);
  border-radius: 0;
}

.cta-band h2 {
  margin-bottom: 0.5rem;
}

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

@keyframes mercury-band {
  from { transform: translateX(-4%) skewX(-4deg); opacity: 0.65; }
  to { transform: translateX(4%) skewX(3deg); opacity: 1; }
}

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

@media (max-width: 960px) {
  .service-grid,
  .blog-grid,
  .price-grid,
  .evidence-grid,
  .step-grid,
  .footer-grid,
  .split {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

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

  .site-nav .nav-cta {
    border: 0;
    background: transparent;
    padding-left: 0;
    border-radius: 0;
  }

  .service-grid,
  .blog-grid,
  .price-grid,
  .evidence-grid,
  .step-grid,
  .footer-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-copy {
    padding: 5rem 0 2.5rem;
  }
}

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