:root {
  --bg: #f3f2ef;
  --bg-soft: #e9e7e2;
  --surface: #ffffff;
  --ink: #1c1b19;
  --muted: #5c5954;
  --line: #d4d0c8;
  --accent: #2f4a3e;
  --accent-hover: #243a31;
  --accent-soft: #e4ebe6;
  --focus: #2f4a3e;
  --danger: #8b3a3a;
  --success: #2f4a3e;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(28, 27, 25, 0.06);
  --shell: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, #e4ebe6 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #ebe7df 0%, transparent 50%),
    var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

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

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

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

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin: 0 0 0.75rem;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 242, 239, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(243, 242, 239, 0.94);
}

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

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

.brand:hover {
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

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

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

.nav-cta {
  background: var(--accent);
  color: #f7f6f3 !important;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.25s ease;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-primary {
  background: var(--accent);
  color: #f7f6f3;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #f7f6f3;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

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

.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
}

.hero-home {
  display: grid;
  gap: 2rem;
}

.hero-home .hero-media {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: min(68vh, 620px);
  position: relative;
  overflow: hidden;
}

.hero-home .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: min(68vh, 620px);
  animation: softZoom 18s ease-in-out infinite alternate;
}

.hero-copy {
  max-width: 38rem;
  padding-top: 0.5rem;
}

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
}

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

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

.page-hero.with-media {
  display: grid;
  gap: 2rem;
}

.page-hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

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

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .hero-home {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: end;
  }

  .hero-home .hero-media {
    width: auto;
    margin-left: 0;
    border-radius: var(--radius);
    min-height: 520px;
    order: 2;
  }

  .hero-home .hero-media img {
    min-height: 520px;
  }

  .hero-copy {
    order: 1;
    padding-bottom: 1.5rem;
  }

  .page-hero.with-media {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }

  .split.two {
    grid-template-columns: 1fr 1fr;
  }

  .split.asymmetric {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

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

@media (min-width: 720px) {
  .offer-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.offer-item {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.35rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.offer-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.offer-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1rem;
}

.offer-meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.story-block {
  background: var(--accent-soft);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--radius);
}

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

.quote {
  border-left: 3px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.1rem;
}

.quote p {
  color: var(--ink);
  font-size: 1.05rem;
}

.quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.2rem 1.2rem 1.2rem 3.5rem;
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.15rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: #f7f6f3;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.price-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.prose {
  max-width: 42rem;
}

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

.prose ul,
.prose ol {
  color: var(--muted);
  padding-left: 1.2rem;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #faf9f7;
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
}

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

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

.field-error {
  min-height: 1.2em;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.form-status.is-success {
  background: var(--accent-soft);
  color: var(--success);
}

.form-status.is-error {
  background: #f3e4e4;
  color: var(--danger);
}

.contact-aside {
  background: var(--accent-soft);
  padding: 1.5rem;
}

.contact-aside p {
  color: var(--ink);
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: #ebe9e4;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1.2fr 0.8fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.footer-text,
.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.footer-links a {
  text-decoration: none;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(28, 27, 25, 0.94);
  color: #f3f2ef;
  padding: 1rem 0;
}

.cookie-banner p {
  color: #e4e2dc;
  margin: 0;
}

.cookie-banner a {
  color: #d7e4db;
}

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

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

.cookie-banner .btn-ghost {
  border-color: rgba(243, 242, 239, 0.35);
  color: #f3f2ef;
}

.cookie-banner .btn-primary {
  background: #d7e4db;
  color: var(--ink);
}

.cookie-banner .btn-primary:hover {
  background: #e8f0eb;
  color: var(--ink);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-grid {
  display: grid;
  gap: 1rem;
}

.detail-grid dt {
  font-weight: 700;
  color: var(--ink);
}

.detail-grid dd {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.55rem;
}

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

@media (min-width: 720px) {
  .blog-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
}

.blog-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.15rem 1.2rem 1.4rem;
}

.blog-card h3 {
  color: var(--ink);
}

.blog-card p {
  margin-bottom: 0;
}

.case-story {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-soft);
}

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

.js-error {
  background: #f3e4e4;
  color: var(--danger);
  margin: 0;
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

@keyframes softZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: rgba(243, 242, 239, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
  }

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

  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.85rem;
  }
}
