:root {
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: var(--font-sans);
  --page: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #eef1ec;
  --ink: #151815;
  --muted: #626a63;
  --line: rgba(21, 24, 21, .13);
  --accent: #244e3b;
  --accent-ink: #ffffff;
  --contrast: #162019;
  --contrast-ink: #f7f8f5;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 22px 70px rgba(20, 28, 22, .10);
  --shell: 1180px;
  --section: clamp(4rem, 6vw, 6rem);
}

html[data-preset="warm"] {
  --page: #f6f0e7;
  --surface: #fffaf3;
  --surface-soft: #eadfce;
  --ink: #2a211a;
  --muted: #78695d;
  --line: rgba(65, 45, 31, .14);
  --accent: #9a5f3b;
  --accent-ink: #fffaf3;
  --contrast: #34271f;
  --contrast-ink: #fff8ee;
  --radius: 24px;
  --radius-lg: 36px;
  --shadow: 0 24px 72px rgba(70, 46, 27, .13);
}

html[data-preset="dark"] {
  --page: #101210;
  --surface: #171a17;
  --surface-soft: #202520;
  --ink: #f3f5f0;
  --muted: #a7afa7;
  --line: rgba(255, 255, 255, .12);
  --accent: #c7f36b;
  --accent-ink: #13200d;
  --contrast: #070807;
  --contrast-ink: #f5f7f2;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--page) 90%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -.025em;
}

.brand-mark {
  width: 36px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: .86rem;
}

.brand-logo {
  width: auto;
  height: 38px;
  object-fit: contain;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: .94rem;
  color: var(--muted);
}

.site-nav a,
.text-link,
.card-link {
  transition: color .2s ease, opacity .2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 6px auto;
  background: currentColor;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 750;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
summary:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 4px;
}

.button-small {
  min-height: 42px;
  padding-inline: 17px;
  font-size: .92rem;
}

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

.hero {
  padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(4rem, 8vw, 7.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1.08fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
}

h1 {
  max-width: 620px;
  font-size: clamp(2.7rem, 4vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.hero-lead,
.large-copy {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.35vw, 1.18rem);
  line-height: 1.6;
}

.hero-lead {
  margin: 18px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.microcopy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

.hero-media,
.split-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero-media {
  min-height: 590px;
}

.hero-media > img,
.split-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 16%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 30%),
    linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--accent) 14%, var(--surface)));
}

.media-placeholder::after {
  content: "";
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  right: -14%;
  bottom: -22%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.media-placeholder span {
  position: relative;
  z-index: 1;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted);
  font-size: .82rem;
  backdrop-filter: blur(10px);
}

.media-badge {
  position: absolute;
  left: 22px;
  bottom: 22px;
  min-width: 190px;
  padding: 16px 18px;
  display: grid;
  gap: 2px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(0,0,0,.10);
  backdrop-filter: blur(14px);
}

.media-badge strong {
  font-size: .96rem;
}

.media-badge span {
  color: var(--muted);
  font-size: .82rem;
}

.trust-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.trust-item {
  min-height: 118px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  font-size: 1.08rem;
}

.trust-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .86rem;
}

.section {
  padding: var(--section) 0;
}

.section-soft {
  background: var(--surface-soft);
}

.section-contrast {
  background: var(--contrast);
  color: var(--contrast-ink);
}

.section-contrast .eyebrow {
  color: color-mix(in srgb, var(--accent) 78%, white);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  align-items: end;
  gap: 44px;
  margin-bottom: 38px;
}

.section-heading > p,
.faq-layout > div:first-child > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

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

.service-card {
  min-height: 280px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.service-index {
  margin-bottom: auto;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.service-card p {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.card-link {
  margin-top: auto;
  font-weight: 750;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(42px, 8vw, 110px);
}

.split-media {
  min-height: 560px;
}

.split-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.check-list {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 650;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 260px;
  gap: 14px;
}

.gallery-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.gallery-card:first-child {
  grid-row: span 2;
}

.gallery-card img {
  height: 100%;
  object-fit: cover;
}

.gallery-card figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--ink);
  font-size: .78rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.quote-card {
  margin: 0;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--contrast-ink) 15%, transparent);
  border-radius: var(--radius);
}

.quote-card blockquote {
  margin: 0 0 26px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.quote-card figcaption {
  display: grid;
}

.quote-card figcaption span {
  margin-top: 2px;
  opacity: .62;
  font-size: .84rem;
}

.faq-layout {
  display: grid;
  grid-template-columns: .65fr 1fr;
  gap: clamp(50px, 9vw, 130px);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 22px 40px 22px 0;
  position: relative;
  cursor: pointer;
  font-weight: 720;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 19px;
  font-size: 1.4rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: -4px 40px 22px 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.contact-section {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1fr;
  gap: clamp(46px, 8vw, 110px);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.contact-list a,
.contact-list div {
  display: grid;
}

.contact-list span {
  color: var(--muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.contact-form {
  padding: clamp(24px, 4vw, 42px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--page);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.contact-form label:has(textarea),
.contact-form .button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  padding: 13px 14px;
}

.contact-form textarea {
  resize: vertical;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.site-footer {
  padding: 56px 0 98px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
}

.footer-brand {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 850;
  letter-spacing: -.03em;
}

.footer-grid p,
.footer-grid span,
.footer-grid a {
  color: var(--muted);
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid strong {
  margin-bottom: 10px;
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 20px;
  display: flex;
  gap: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

.mobile-actions {
  display: none;
}

.preset-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  padding: 7px;
  display: flex;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.preset-switcher button {
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 750;
}

.preset-switcher button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-ink);
}

.demo-photo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end start;
  padding: 24px;
  background:
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,.35)),
    radial-gradient(circle at 70% 20%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 25%),
    linear-gradient(135deg, #d7ddd6, #839287);
  color: white;
}

html[data-preset="warm"] .demo-photo {
  background:
    linear-gradient(180deg, transparent 30%, rgba(55,33,19,.35)),
    radial-gradient(circle at 70% 20%, #e7c7a5, transparent 25%),
    linear-gradient(135deg, #d9c6ae, #97765f);
}

html[data-preset="dark"] .demo-photo {
  background:
    linear-gradient(180deg, transparent 30%, rgba(0,0,0,.55)),
    radial-gradient(circle at 70% 20%, rgba(199,243,107,.28), transparent 25%),
    linear-gradient(135deg, #273128, #111411);
}

.demo-photo strong {
  max-width: 260px;
  font-size: 1rem;
}

.demo-gallery-photo {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 30%),
    linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--accent) 12%, var(--surface)));
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 920px) {
  .header-inner {
    grid-template-columns: 1fr auto auto;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open] {
    display: flex;
  }

  .site-nav a {
    padding: 13px 8px;
  }

  .nav-toggle {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-media {
    min-height: 500px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .trust-item:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }

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

  .section-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

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

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

@media (max-width: 640px) {
  :root {
    --section: 4.5rem;
  }

  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 68px;
    gap: 10px;
  }

  .site-nav {
    top: 68px;
    left: 14px;
    right: 14px;
  }

  .brand-name {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions .button {
    display: none;
  }

  .hero {
    padding-top: 2.6rem;
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 2.85rem);
    line-height: 1.05;
  }

  h2 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
    line-height: 1.08;
  }

  .hero-lead,
  .large-copy {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-media {
    min-height: 410px;
  }

  .media-badge {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .service-grid,
  .gallery-grid,
  .footer-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 235px;
  }

  .split-media {
    min-height: 420px;
  }

  .gallery-grid {
    grid-auto-rows: 240px;
  }

  .gallery-card:first-child {
    grid-row: auto;
  }

  .contact-form label:has(textarea),
  .contact-form .button {
    grid-column: auto;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }

  .mobile-actions {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    padding: 6px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
  }

  .mobile-actions a {
    min-height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 800;
  }

  .mobile-actions-primary {
    background: var(--accent);
    color: var(--accent-ink);
  }

  .preset-switcher {
    right: 14px;
    bottom: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
