:root {
  --ink: #11130f;
  --deep: #050504;
  --forest: #17231d;
  --paper: #f3eee2;
  --porcelain: #fffaf1;
  --linen: #e7dcc8;
  --gold: #c99a45;
  --copper: #b56336;
  --muted: #716b60;
  --line: rgba(17, 19, 15, 0.16);
  --light-line: rgba(255, 250, 241, 0.2);
  --shadow: 0 24px 90px rgba(5, 5, 4, 0.18);
  --radius: 6px;
  --site-header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17, 19, 15, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(17, 19, 15, 0.035) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(180deg, #000, transparent 78%);
}

body[data-theme="dark"] {
  --ink: #f5efe3;
  --deep: #050403;
  --forest: #0d120f;
  --paper: #100f0b;
  --porcelain: #17140f;
  --linen: #2a241b;
  --gold: #d6a84f;
  --copper: #e17d46;
  --muted: #c8bca9;
  --line: rgba(255, 250, 241, 0.15);
  --light-line: rgba(255, 250, 241, 0.2);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"]::before {
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 250, 241, 0.04) 1px, transparent 1px);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 82px;
  padding: 13px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 238, 226, 0.88);
  backdrop-filter: blur(18px);
}

body[data-theme="dark"] .site-header {
  background: rgba(12, 11, 8, 0.9);
}

.nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: rgba(17, 19, 15, 0.72);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="dark"] .nav-group {
  color: rgba(245, 239, 227, 0.82);
}

.nav-main {
  justify-content: flex-start;
}

.nav-group a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav-group a:hover,
.nav-group a.active {
  border-color: var(--gold);
  color: var(--ink);
}

.mode-tools {
  display: flex;
  flex-wrap: wrap;
  justify-self: end;
  gap: 8px;
}

.segmented-control {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.42);
}

.segmented-control button {
  display: inline-flex;
  min-width: 42px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 12px;
  text-transform: uppercase;
}

.theme-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.language-button {
  min-width: 68px;
}

.flag-icon {
  width: 24px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(17, 19, 15, 0.12);
}

.lang-code {
  line-height: 1;
}

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

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--porcelain);
}

body[data-theme="dark"] .segmented-control {
  background: rgba(255, 250, 241, 0.06);
}

body[data-theme="dark"] .segmented-control button[aria-pressed="true"] {
  background: var(--gold);
  color: #11100c;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: clamp(150px, 15vw, 205px);
}

.brand-mark img {
  width: clamp(138px, 13vw, 178px);
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  box-shadow: none;
}

.brand-mark strong {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: calc(100svh - 82px);
  border-bottom: 1px solid var(--line);
}

.hero-stage {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--deep);
}

.hero-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition:
    opacity 950ms ease,
    transform 2400ms ease;
}

.hero-photo.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hero-stage::after,
.image-hero::after,
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-stage::after {
  background:
    linear-gradient(180deg, rgba(5, 5, 4, 0.05), rgba(5, 5, 4, 0.42)),
    linear-gradient(90deg, rgba(5, 5, 4, 0.24), transparent 55%);
}

.photo-note {
  position: absolute;
  left: clamp(18px, 4vw, 54px);
  right: clamp(18px, 4vw, 54px);
  bottom: clamp(20px, 4vw, 54px);
  z-index: 2;
  color: var(--porcelain);
}

.photo-note span {
  max-width: 290px;
  color: rgba(255, 250, 241, 0.78);
  font-size: 0.9rem;
}

.hero-copy,
.page-copy {
  display: grid;
  align-content: center;
  padding: clamp(34px, 7vw, 96px);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.82), rgba(243, 238, 226, 0.96)),
    var(--paper);
}

body[data-theme="dark"] .hero-copy,
body[data-theme="dark"] .page-copy {
  background:
    linear-gradient(180deg, rgba(23, 20, 15, 0.88), rgba(16, 15, 11, 0.96)),
    var(--paper);
}

.hero-copy {
  justify-items: start;
  padding-left: clamp(34px, 5vw, 76px);
  padding-right: clamp(24px, 4.5vw, 76px);
  text-align: left;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 9.5ch;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 9.5vw, 11.4rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.hero-copy h1 {
  font-size: clamp(4.2rem, 8vw, 9.4rem);
}

.page-copy h1 {
  max-width: 10.5ch;
  font-size: clamp(3.8rem, 8.2vw, 9.6rem);
}

.hero-lead,
.page-lead {
  max-width: 640px;
  margin-bottom: 34px;
  color: rgba(17, 19, 15, 0.76);
  font-size: clamp(1.08rem, 1.55vw, 1.38rem);
}

body[data-theme="dark"] .hero-lead,
body[data-theme="dark"] .page-lead {
  color: rgba(255, 250, 241, 0.88);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button-dark {
  background: var(--ink);
  color: var(--porcelain);
}

.button-light {
  background: transparent;
  color: var(--ink);
}

body[data-theme="dark"] .button-light {
  border-color: rgba(255, 250, 241, 0.78);
  color: #fffaf1;
}

.button-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

body[data-theme="dark"] .button-gold {
  color: #11100c;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(150px, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--porcelain);
}

.service-strip a {
  display: grid;
  min-height: 86px;
  place-items: center;
  border-right: 1px solid var(--line);
  color: rgba(17, 19, 15, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

body[data-theme="dark"] .service-strip a {
  color: rgba(245, 239, 227, 0.82);
}

.service-strip a:last-child {
  border-right: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
  gap: 24px;
  align-items: end;
  padding: clamp(56px, 9vw, 118px) clamp(18px, 6vw, 86px) 36px;
}

.section-head h2,
.process-copy h2,
.cta h2,
.split-copy h2,
.story-text h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7.2vw, 8.4rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.08;
}

.section-head p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 1rem;
}

#showroom .section-head {
  align-items: center;
  padding-top: clamp(48px, 7vw, 92px);
  padding-bottom: clamp(30px, 4vw, 54px);
}

#showroom .section-head h2 {
  max-width: 860px;
  font-size: clamp(3.2rem, 5.2vw, 6.35rem);
  line-height: 1.08;
}

#showroom .section-head p {
  justify-self: end;
  max-width: 520px;
  margin-bottom: 0;
  font-size: clamp(0.98rem, 1.12vw, 1.14rem);
}

.section-head-stack {
  grid-template-columns: 1fr;
  align-items: start;
}

.section-head-stack p {
  max-width: 720px;
  margin-bottom: 0;
}

.project-grid,
.service-grid,
.reference-grid,
.stats-grid,
.contact-grid,
.gallery-preview-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-grid {
  grid-template-columns: repeat(4, minmax(260px, 1fr));
}

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

.stats-grid {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
}

.gallery-preview-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.project-card,
.service-card,
.reference-card,
.stat-card,
.contact-card,
.gallery-card {
  background: var(--porcelain);
}

.project-card {
  display: grid;
  grid-template-rows: minmax(310px, 42vh) auto;
  min-height: 520px;
}

.service-card,
.reference-card {
  display: grid;
  grid-template-rows: minmax(300px, 36vh) auto;
}

.service-card {
  scroll-margin-top: calc(var(--site-header-height) + 18px);
}

.service-card[data-category-trigger] {
  cursor: pointer;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.service-card[data-category-trigger]:hover,
.service-card[data-category-trigger]:focus-within,
.service-card.is-active {
  background: #fff6e7;
}

body[data-theme="dark"] .service-card[data-category-trigger]:hover,
body[data-theme="dark"] .service-card[data-category-trigger]:focus-within,
body[data-theme="dark"] .service-card.is-active {
  background: #211b13;
}

.service-card.is-active {
  box-shadow: inset 0 0 0 2px var(--gold);
}

.service-card[data-category-trigger]:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.project-card img,
.service-card img,
.reference-card img,
.gallery-card img,
.gallery-card video {
  height: 100%;
  object-fit: cover;
}

.project-card div,
.service-card div,
.reference-card div,
.gallery-card div {
  padding: 28px clamp(20px, 3vw, 34px) 34px;
}

.project-card small,
.service-card small,
.reference-card small,
.gallery-card small,
.stat-card small,
.contact-card small {
  display: block;
  margin-bottom: 12px;
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h3,
.service-card h2,
.reference-card h2,
.gallery-card h3 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.32rem, 1.8vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
}

.service-card p,
.reference-card p,
.gallery-card p,
.stat-card p,
.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-section {
  background: var(--porcelain);
  scroll-margin-top: calc(var(--site-header-height) + 18px);
}

.service-gallery-shell {
  padding: 0 clamp(18px, 6vw, 86px) clamp(58px, 8vw, 112px);
}

.service-gallery-nav {
  position: sticky;
  top: var(--site-header-height);
  z-index: 30;
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  overflow-x: auto;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.9);
  backdrop-filter: blur(18px);
  scrollbar-width: thin;
}

body[data-theme="dark"] .service-gallery-nav {
  background: rgba(23, 20, 15, 0.92);
}

.service-gallery-nav button {
  min-width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 238, 226, 0.72);
  color: rgba(17, 19, 15, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 12px 16px;
  text-transform: uppercase;
}

.service-gallery-nav button.is-active {
  border-color: var(--gold);
  background: var(--ink);
  color: var(--porcelain);
}

.service-gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.service-gallery-head h3 {
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
}

.service-gallery-head p {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-count {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.media-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.media-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eee4d4;
  padding: 12px;
  box-shadow: 0 18px 45px rgba(17, 19, 15, 0.08);
}

body[data-theme="dark"] .media-card {
  background: #201a13;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.media-frame {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px);
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.64), rgba(231, 220, 200, 0.5)),
    #e8ded0;
  aspect-ratio: 1 / 1;
}

body[data-theme="dark"] .media-frame {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.08), rgba(214, 168, 79, 0.08)),
    #14120e;
}

body[data-theme="dark"] .section-head p,
body[data-theme="dark"] .project-card p,
body[data-theme="dark"] .service-card p,
body[data-theme="dark"] .reference-card p,
body[data-theme="dark"] .gallery-card p,
body[data-theme="dark"] .stat-card p,
body[data-theme="dark"] .contact-card p,
body[data-theme="dark"] .service-gallery-head p,
body[data-theme="dark"] .form-status {
  color: rgba(255, 250, 241, 0.82);
}

body[data-theme="dark"] .project-card small,
body[data-theme="dark"] .service-card small,
body[data-theme="dark"] .reference-card small,
body[data-theme="dark"] .gallery-card small,
body[data-theme="dark"] .stat-card small,
body[data-theme="dark"] .contact-card small,
body[data-theme="dark"] .field-group label {
  color: #f08b55;
}

body[data-theme="dark"] .contact-card a,
body[data-theme="dark"] .text-link {
  color: #fffaf1;
}

.media-frame img,
.media-frame video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.media-card--video .media-frame {
  background: var(--deep);
}

.media-card--video video {
  object-fit: contain;
}

.video-frame {
  cursor: pointer;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 241, 0.68);
  border-radius: 50%;
  background: rgba(5, 5, 4, 0.62);
  box-shadow: 0 14px 40px rgba(5, 5, 4, 0.28);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.video-play:hover,
.video-play:focus-visible {
  background: rgba(5, 5, 4, 0.78);
  transform: translate(-50%, -50%) scale(1.04);
}

.video-play span {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid var(--porcelain);
}

.media-card--video.is-playing .video-play {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.compare-frame img {
  position: absolute;
  inset: 0;
  transition: opacity 220ms ease;
}

.compare-frame .compare-img--open {
  opacity: 0;
}

.compare-frame:hover .compare-img--open {
  opacity: 1;
}

.compare-frame:hover .compare-img--closed {
  opacity: 0;
}

.compare-frame::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 50%;
  width: 2px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.7);
  transform: translateX(-50%);
}

.text-link {
  display: inline-flex;
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 72vh;
  background: var(--forest);
  color: #fffaf1;
}

.process-copy {
  display: grid;
  align-content: center;
  padding: clamp(46px, 8vw, 110px);
  border-right: 1px solid var(--light-line);
}

.process-copy .eyebrow,
.cta .eyebrow,
.dark .eyebrow {
  color: var(--gold);
}

.process-copy p {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 250, 241, 0.7);
}

.step-list {
  display: grid;
  align-content: stretch;
}

.step {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 26px;
  align-items: center;
  padding: clamp(24px, 4vw, 46px);
  border-bottom: 1px solid var(--light-line);
}

.step:last-child {
  border-bottom: 0;
}

.step span,
.stat-card strong {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 5.6rem);
  font-weight: 500;
  line-height: 0.86;
}

.stat-card strong {
  display: block;
  font-size: clamp(2.15rem, 3.3vw, 4rem);
  line-height: 0.95;
  white-space: nowrap;
}

.stat-card strong sup {
  font-size: 0.45em;
  vertical-align: super;
}

.step strong {
  display: block;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.step p {
  margin: 6px 0 0;
  color: rgba(255, 250, 241, 0.66);
}

.image-hero {
  position: relative;
  display: grid;
  min-height: 72vh;
  align-items: end;
  overflow: hidden;
  padding: clamp(58px, 10vw, 132px) clamp(18px, 6vw, 86px);
  color: #fffaf1;
  background: var(--deep);
}

.image-hero img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
}

.image-hero::after {
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.88), rgba(5, 5, 4, 0.18)),
    linear-gradient(0deg, rgba(5, 5, 4, 0.82), transparent 54%);
}

.image-hero .page-copy {
  position: relative;
  z-index: 1;
  max-width: 980px;
  padding: 0;
  background: none;
}

.image-hero h1 {
  color: #fffaf1;
}

.image-hero .page-lead {
  color: rgba(255, 250, 241, 0.86);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
  padding: clamp(58px, 10vw, 132px) clamp(18px, 6vw, 86px);
}

.split-section.reverse {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.split-media img {
  min-height: clamp(340px, 46vw, 670px);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.split-copy p,
.story-text p {
  max-width: 680px;
  color: rgba(17, 19, 15, 0.74);
}

body[data-theme="dark"] .split-copy p,
body[data-theme="dark"] .story-text p {
  color: rgba(255, 250, 241, 0.84);
}

.story-text {
  padding: clamp(58px, 10vw, 132px) clamp(18px, 6vw, 86px);
  background: var(--porcelain);
}

.story-columns {
  columns: 2 360px;
  column-gap: clamp(32px, 6vw, 86px);
  max-width: 1180px;
}

.story-columns p {
  break-inside: avoid;
}

.stat-card {
  min-height: 250px;
  padding: 28px clamp(20px, 3vw, 34px) 34px;
}

.stat-card h2 {
  margin: 18px 0 10px;
  font-size: clamp(1.05rem, 1.6vw, 1.45rem);
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vision-card {
  min-height: 360px;
  padding: clamp(34px, 6vw, 78px);
  background: var(--porcelain);
}

.vision-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4.4vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
}

.cta {
  position: relative;
  display: grid;
  min-height: 76vh;
  align-items: end;
  overflow: hidden;
  padding: clamp(58px, 10vw, 132px) clamp(18px, 6vw, 86px);
  color: #fffaf1;
  background: var(--deep);
}

.cta img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.54;
}

.cta::after {
  background:
    linear-gradient(90deg, rgba(5, 5, 4, 0.86), rgba(5, 5, 4, 0.14)),
    linear-gradient(0deg, rgba(5, 5, 4, 0.86), transparent 54%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.cta h2 {
  max-width: 980px;
  margin-bottom: 24px;
  color: #fffaf1;
  line-height: 1.08;
}

.cta p {
  max-width: 560px;
  margin-bottom: 26px;
  color: rgba(255, 250, 241, 0.74);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-list,
.contact-form {
  background: var(--porcelain);
  padding: clamp(30px, 5vw, 70px);
}

.contact-list {
  display: grid;
  gap: 1px;
  align-content: start;
  background:
    linear-gradient(var(--porcelain), var(--porcelain)) padding-box,
    var(--line);
}

.contact-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact-card:last-child {
  border-bottom: 0;
}

.contact-card a {
  display: block;
  font-size: clamp(1.05rem, 1.7vw, 1.55rem);
}

.social-link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.social-link svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

.map-preview {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 16 / 9;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--linen);
  box-shadow: 0 18px 48px rgba(17, 19, 15, 0.08);
}

.map-preview iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.9) contrast(0.96);
  pointer-events: none;
}

.map-hit-area {
  position: absolute;
  inset: 0;
  display: block !important;
  font-size: 0 !important;
}

.map-hit-area:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -5px;
}

.map-hit-area:hover {
  background: rgba(201, 154, 69, 0.08);
}

body[data-theme="dark"] .map-preview {
  background: #17140f;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .map-preview iframe {
  filter: saturate(0.72) contrast(0.9) brightness(0.78);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.honeypot {
  display: none;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: var(--copper);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(243, 238, 226, 0.72);
  color: var(--ink);
  font: inherit;
  padding: 14px 14px;
}

body[data-theme="dark"] .field-group input,
body[data-theme="dark"] .field-group select,
body[data-theme="dark"] .field-group textarea {
  background: rgba(255, 250, 241, 0.06);
  color: #fffaf1;
}

.field-group textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.4em;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.form-status.is-success {
  color: #2f6b3d;
}

.form-status.is-error {
  color: #9f3528;
}

body[data-theme="dark"] .form-status.is-success {
  color: #9bddae;
}

body[data-theme="dark"] .form-status.is-error {
  color: #ff9d8d;
}

.contact-form .button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 30px clamp(18px, 6vw, 86px);
  background: var(--deep);
  color: rgba(255, 250, 241, 0.66);
}

.site-footer strong {
  display: block;
  color: #fffaf1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.site-footer p {
  margin: 4px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    justify-items: stretch;
  }

  .nav-group,
  .nav-group:last-child {
    justify-content: flex-start;
  }

  .mode-tools {
    justify-content: flex-end;
    justify-self: end;
  }

  .hero,
  .process,
  .split-section,
  .split-section.reverse,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
  }

  .hero-stage {
    order: 2;
    min-height: 58vh;
  }

  .service-strip,
  .project-grid,
  .service-grid,
  .reference-grid,
  .gallery-preview-grid,
  .media-gallery-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head,
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .process-copy {
    border-right: 0;
    border-bottom: 1px solid var(--light-line);
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav-group,
  .nav-group:last-child {
    justify-content: center;
  }

  .mode-tools {
    justify-content: center;
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    gap: 14px;
    padding: 14px 16px 18px;
  }

  .nav-group {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.68rem;
  }

  .brand-mark {
    min-width: 0;
  }

  .brand-mark img {
    width: min(178px, 68vw);
  }

  .mode-tools {
    width: 100%;
  }

  .segmented-control {
    flex: 1 1 148px;
  }

  .segmented-control button {
    flex: 1;
    padding: 0 10px;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy,
  .page-copy,
  .process-copy,
  .cta,
  .split-section,
  .split-section.reverse,
  .story-text,
  .contact-list,
  .contact-form {
    padding: 46px 18px 52px;
  }

  h1,
  .page-copy h1 {
    font-size: clamp(4rem, 21vw, 6.6rem);
  }

  .hero-stage {
    min-height: 62vh;
  }

  .service-strip,
  .project-grid,
  .service-grid,
  .reference-grid,
  .gallery-preview-grid,
  .media-gallery-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .service-gallery-shell {
    padding: 0 18px 54px;
  }

  .service-gallery-head {
    align-items: start;
    flex-direction: column;
  }

  .section-head {
    grid-template-columns: 1fr;
    padding: 52px 18px 28px;
  }

  .project-card,
  .service-card,
  .reference-card {
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .project-card img,
  .service-card img,
  .reference-card img,
  .gallery-card img,
  .gallery-card video {
    height: auto;
    aspect-ratio: 4 / 3;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-photo {
    transition: none;
  }
}
