:root {
  color-scheme: light;
  --green-950: #10291f;
  --green-900: #163728;
  --green-800: #214d3c;
  --green-700: #2e624e;
  --sand-650: #b99b5c;
  --sand-500: #c8ad72;
  --sand-150: #eee3c9;
  --stone-100: #f4f0e6;
  --stone-50: #fbfaf6;
  --ink: #17221d;
  --muted: #65736c;
  --line: rgba(22, 55, 40, 0.16);
  --white: #ffffff;
  --page-bg: var(--stone-50);
  --section-bg: var(--stone-50);
  --section-alt-bg: var(--stone-100);
  --surface-bg: var(--white);
  --surface-soft-bg: rgba(255, 255, 255, 0.56);
  --text-color: var(--ink);
  --heading-color: var(--green-900);
  --muted-color: var(--muted);
  --eyebrow-color: var(--green-800);
  --header-bg: rgba(251, 250, 246, 0.92);
  --header-shadow: rgba(22, 55, 40, 0.08);
  --hero-bg: linear-gradient(115deg, rgba(245, 241, 232, 0.98) 0%, rgba(251, 250, 246, 0.96) 48%, rgba(238, 227, 201, 0.42) 100%);
  --hero-copy-color: #3f4a44;
  --primary-bg: var(--green-900);
  --primary-hover-bg: var(--green-800);
  --primary-text: var(--white);
  --band-bg: var(--green-900);
  --band-gradient: linear-gradient(135deg, var(--green-900), var(--green-800));
  --on-band: var(--white);
  --on-band-muted: rgba(255, 255, 255, 0.76);
  --on-band-soft: rgba(255, 255, 255, 0.08);
  --on-band-line: rgba(255, 255, 255, 0.14);
  --on-band-subtle: rgba(255, 255, 255, 0.62);
  --card-shadow: rgba(22, 55, 40, 0.09);
  --process-hover-bg: rgba(255, 255, 255, 0.58);
  --process-hover-line: rgba(185, 155, 92, 0.48);
  --process-hover-shadow: rgba(255, 255, 255, 0.58);
  --modal-backdrop-bg: rgba(22, 55, 40, 0.66);
  --terrain-blend: multiply;
  --terrain-filter: none;
  font-family: "Montserrat", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #09110e;
  --section-bg: #09110e;
  --section-alt-bg: #0f1c17;
  --surface-bg: #13231d;
  --surface-soft-bg: rgba(19, 35, 29, 0.7);
  --text-color: #e8f1ec;
  --heading-color: #e4f1ea;
  --muted-color: #aab8b0;
  --eyebrow-color: #d0b770;
  --line: rgba(232, 242, 237, 0.14);
  --header-bg: rgba(9, 17, 14, 0.9);
  --header-shadow: rgba(0, 0, 0, 0.34);
  --hero-bg:
    radial-gradient(circle at 78% 38%, rgba(200, 173, 114, 0.14), transparent 34%),
    linear-gradient(115deg, rgba(9, 17, 14, 0.98) 0%, rgba(12, 24, 19, 0.96) 52%, rgba(22, 55, 40, 0.5) 100%);
  --hero-copy-color: #c8d5cf;
  --primary-bg: var(--sand-500);
  --primary-hover-bg: #d6bd80;
  --primary-text: #10291f;
  --band-bg: #08140f;
  --band-gradient: linear-gradient(135deg, #08140f, #163728);
  --on-band: #edf5f1;
  --on-band-muted: rgba(237, 245, 241, 0.72);
  --on-band-soft: rgba(255, 255, 255, 0.07);
  --on-band-line: rgba(255, 255, 255, 0.13);
  --on-band-subtle: rgba(237, 245, 241, 0.6);
  --card-shadow: rgba(0, 0, 0, 0.34);
  --process-hover-bg: rgba(255, 255, 255, 0.06);
  --process-hover-line: rgba(200, 173, 114, 0.44);
  --process-hover-shadow: rgba(255, 255, 255, 0.06);
  --modal-backdrop-bg: rgba(0, 0, 0, 0.74);
  --terrain-blend: screen;
  --terrain-filter: invert(1) hue-rotate(105deg) saturate(0.75) brightness(0.82);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-color);
  background: var(--page-bg);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  transition: color 220ms ease, background 220ms ease;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px var(--header-shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  height: auto;
}

.brand-word {
  width: 142px;
  height: auto;
}

:root[data-theme="dark"] .brand-mark,
:root[data-theme="dark"] .brand-word {
  filter: brightness(0) invert(1) sepia(9%) saturate(504%) hue-rotate(92deg) brightness(1.08);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--heading-color);
  font-size: 0.9rem;
  font-weight: 700;
}

.main-nav a,
.header-action {
  transition: color 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.main-nav a:hover,
.header-action:hover {
  color: var(--sand-650);
}

.header-controls {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 34px;
  padding: 0;
  background: var(--surface-soft-bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--sand-650);
  transform: translateY(-1px);
}

.theme-toggle-track {
  position: relative;
  display: block;
  width: 44px;
  height: 24px;
}

.theme-toggle-thumb {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 24px;
  height: 24px;
  background:
    radial-gradient(circle at 50% 50%, var(--primary-bg) 0 38%, transparent 40%),
    linear-gradient(var(--primary-bg), var(--primary-bg));
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(16, 41, 31, 0.18);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

:root[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(20px);
  background:
    radial-gradient(circle at 35% 34%, rgba(19, 35, 29, 0.92) 0 34%, transparent 36%),
    linear-gradient(var(--primary-bg), var(--primary-bg));
  box-shadow: 0 0 18px rgba(200, 173, 114, 0.26);
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 18px;
  color: var(--primary-text);
  background: var(--primary-bg);
  border: 1px solid var(--primary-bg);
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 800;
}

.header-action:hover {
  color: var(--primary-text);
  background: var(--primary-hover-bg);
  border-color: var(--primary-hover-bg);
  transform: translateY(-1px);
}

main {
  overflow-x: clip;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: 72px clamp(20px, 5vw, 72px) 64px;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(520px, 1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  width: 100%;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--eyebrow-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy > .eyebrow {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: 0.98rem;
  line-height: 1.35;
}

h1 {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--heading-color);
  font-size: 4.7rem;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  display: grid;
  gap: 14px;
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--hero-copy-color);
  font-size: 1.16rem;
}

.hero-lead p {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.96rem;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  color: var(--primary-text);
  background: var(--primary-bg);
  border: 1px solid var(--primary-bg);
}

.button.primary:hover {
  background: var(--primary-hover-bg);
  border-color: var(--primary-hover-bg);
}

.button.secondary {
  color: var(--heading-color);
  background: var(--surface-soft-bg);
  border: 1px solid var(--line);
}

.button.secondary:hover {
  border-color: var(--sand-650);
}

.button.wide {
  width: 100%;
}

.hero-statement {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--heading-color);
  font-size: 0.96rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: clamp(410px, 46vw, 720px);
  min-width: 0;
  overflow: hidden;
}

.hero-sketch-panel {
  position: relative;
  z-index: 1;
  width: min(108%, 980px);
  height: 100%;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0.92;
  transform: translateX(2%);
}

.hero-sketch-frame {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
  outline: 0;
  pointer-events: none;
  transform: scale(1.08);
  transform-origin: 50% 50%;
}

.hero-sketch-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  filter: var(--terrain-filter);
  mix-blend-mode: var(--terrain-blend);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
  padding: 64px clamp(20px, 5vw, 72px);
  color: var(--on-band);
  background: var(--band-bg);
}

.intro-copy {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.intro-copy p:first-child {
  margin-bottom: 0;
  font-size: 2.18rem;
  font-weight: 700;
  line-height: 1.18;
}

.intro-copy p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--on-band-muted);
  font-size: 1.05rem;
}

.intro-points {
  display: grid;
  gap: 10px;
}

.intro-points span {
  display: block;
  padding: 16px 18px;
  background: var(--on-band-soft);
  border: 1px solid var(--on-band-line);
  border-radius: 6px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.intro-points span:hover {
  color: var(--heading-color);
  background: var(--surface-bg);
  border-color: var(--surface-bg);
  transform: translateX(4px);
}

.section {
  padding: 84px clamp(20px, 5vw, 72px);
}

.section-heading {
  max-width: 680px;
}

.section-heading.wide {
  max-width: 920px;
  margin-bottom: 38px;
}

.section-heading.compact {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.why-copy h2,
.contact-band h2 {
  margin-bottom: 18px;
  color: var(--heading-color);
  font-size: 3.4rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.why-copy p,
.about-copy p,
.material-panel p {
  color: var(--muted-color);
  font-size: 1.04rem;
}

.services {
  background: var(--section-bg);
}

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

.service-tile {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px;
  background: var(--surface-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-tile:hover {
  border-color: rgba(185, 155, 92, 0.58);
  box-shadow: 0 18px 38px var(--card-shadow);
  transform: translateY(-3px);
}

.service-number {
  display: block;
  margin-bottom: 34px;
  color: var(--sand-650);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-tile h3 {
  margin-bottom: 12px;
  color: var(--heading-color);
  font-size: 1.38rem;
  font-weight: 600;
  line-height: 1.22;
}

.service-tile p {
  margin-bottom: 20px;
  color: var(--muted-color);
}

.service-tile ul {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.service-tile li {
  position: relative;
  padding-left: 17px;
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.45;
}

.service-tile li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--sand-650);
  border-radius: 999px;
  content: "";
}

.process {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
  background: var(--section-alt-bg);
}

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

.process-list li {
  display: grid;
  grid-template-columns: 52px minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.process-list li:hover {
  background: var(--process-hover-bg);
  border-bottom-color: var(--process-hover-line);
  box-shadow: -18px 0 0 var(--process-hover-shadow), 18px 0 0 var(--process-hover-shadow);
  transform: translateX(8px);
}

.process-list li:hover span {
  color: var(--heading-color);
}

.process-list li:hover strong {
  color: var(--sand-650);
}

.process-list span {
  color: var(--sand-650);
  font-size: 0.76rem;
  font-weight: 800;
}

.process-list strong {
  color: var(--heading-color);
  font-weight: 800;
  line-height: 1.25;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted-color);
}

.why {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
  color: var(--on-band);
  background: var(--band-gradient);
}

.why .eyebrow,
.why-copy h2 {
  color: var(--on-band);
}

.why-copy p {
  max-width: 620px;
  color: var(--on-band-muted);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.proof-grid li {
  min-height: 116px;
  padding: 20px;
  color: var(--on-band);
  background: var(--on-band-soft);
  border: 1px solid var(--on-band-line);
  border-radius: 8px;
  font-weight: 800;
}

.materials {
  background: var(--section-bg);
}

.material-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.material-panel {
  padding: 28px;
  background: var(--section-alt-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.material-panel p {
  margin-bottom: 0;
}

.material-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.material-list li {
  padding: 14px 16px;
  color: var(--heading-color);
  background: var(--surface-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 84px);
  background: var(--section-alt-bg);
}

.about-copy {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.about-copy p {
  margin-bottom: 0;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  padding: 84px clamp(20px, 5vw, 72px);
  color: var(--on-band);
  background: var(--band-gradient);
}

.contact-band .eyebrow,
.contact-band h2 {
  color: var(--on-band);
}

.contact-band h2 {
  max-width: 800px;
  font-size: 3.8rem;
}

.contact-band p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--on-band-muted);
  font-size: 1.05rem;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-link {
  display: grid;
  gap: 2px;
  padding: 18px;
  overflow-wrap: anywhere;
  background: var(--on-band-soft);
  border: 1px solid var(--on-band-line);
  border-radius: 6px;
  font-weight: 800;
}

.contact-link span {
  color: var(--on-band-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--heading-color);
  background: var(--page-bg);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 800;
}

.site-footer p {
  margin: 0;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--modal-backdrop-bg);
  border: 0;
  backdrop-filter: blur(10px);
}

.inquiry-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(90vh, 820px);
  overflow: auto;
  padding: 36px;
  background: var(--page-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 90px var(--card-shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--heading-color);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1.45rem;
  line-height: 1;
}

.inquiry-dialog h2 {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--heading-color);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1.04;
}

.inquiry-form {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: var(--heading-color);
  font-size: 0.84rem;
  font-weight: 800;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text-color);
  background: var(--surface-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.inquiry-form textarea {
  resize: vertical;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus,
.modal-close:focus,
.modal-backdrop:focus,
.button:focus,
.header-action:focus,
.theme-toggle:focus {
  outline: 3px solid rgba(200, 173, 114, 0.46);
  outline-offset: 2px;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--muted-color);
  font-size: 0.9rem;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  h1 {
    max-width: 660px;
    font-size: 3.85rem;
  }

  .section-heading h2,
  .why-copy h2 {
    font-size: 2.85rem;
  }

  .contact-band h2 {
    font-size: 3.1rem;
  }

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

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .intro,
  .process,
  .why,
  .material-layout,
  .about,
  .contact-band {
    grid-template-columns: 1fr;
  }

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

  .process-list li {
    grid-template-columns: 42px 1fr;
  }

  .process-list p {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .hero-sketch-panel {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand-mark {
    width: 36px;
  }

  .brand-word {
    width: 112px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .hero {
    padding: 44px 18px 42px;
  }

  .hero-copy > .eyebrow {
    font-size: 0.82rem;
  }

  h1 {
    font-size: 2.82rem;
    line-height: 1.04;
  }

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

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

  .intro,
  .section,
  .contact-band {
    padding: 54px 18px;
  }

  .intro-copy p:first-child {
    font-size: 1.72rem;
  }

  .section-heading h2,
  .why-copy h2,
  .contact-band h2 {
    font-size: 2.2rem;
  }

  .service-card-grid {
    grid-template-columns: 1fr;
  }

  .service-tile {
    min-height: auto;
    padding: 22px;
  }

  .service-number {
    margin-bottom: 20px;
  }

  .proof-grid li {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
    padding: 22px 18px;
  }

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

  .inquiry-dialog {
    padding: 28px 20px;
  }

  .inquiry-dialog h2 {
    font-size: 2.15rem;
  }
}
