:root {
  --ink: #171615;
  --paper: #f4f1eb;
  --plaster: #dedbd1;
  --stone: #8d9185;
  --oxide: #a74122;
  --sage: #53645a;
  --gold: #d6a246;
  --white: #fffaf2;
  --line: rgba(23, 22, 21, 0.16);
  --shadow: 0 28px 70px rgba(23, 22, 21, 0.16);
  --radius: 6px;
  --max: 1440px;
  --gutter: clamp(16px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 78px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand img {
  width: 132px;
  height: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.top-nav {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  justify-content: center;
  font-size: 13px;
  text-transform: uppercase;
}

.top-nav a {
  position: relative;
  padding: 8px 0;
}

.top-nav a::after {
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.top-nav a:hover::after,
.top-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
}

.icon-button,
.pill-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.pill-button {
  gap: 10px;
  padding: 11px 18px;
  font-size: 13px;
  text-transform: uppercase;
}

.pill-button:hover,
.text-button:hover {
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-1px);
}

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

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

.icon-button {
  width: 46px;
  padding: 0;
}

.mobile-toggle {
  display: none;
  justify-self: end;
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  display: block;
  width: 18px;
  height: 1px;
  content: "";
  background: currentColor;
  transition: transform 220ms ease, opacity 220ms ease;
}

.mobile-toggle span {
  margin: 5px 0;
}

.menu-open .mobile-toggle::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .mobile-toggle span {
  opacity: 0;
}

.menu-open .mobile-toggle::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  position: fixed;
  inset: 78px var(--gutter) auto var(--gutter);
  z-index: 35;
  display: none;
  padding: 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mobile-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(244, 241, 235, 0.16);
  font-size: 26px;
}

.menu-open .mobile-panel {
  display: block;
}

.hero {
  min-height: calc(100svh - 78px);
  padding: clamp(32px, 5vw, 72px) var(--gutter) 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--oxide);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.display {
  max-width: 940px;
  margin: 0;
  font-size: clamp(58px, 9vw, 148px);
  font-weight: 400;
  line-height: 0.92;
}

.display .muted {
  color: var(--stone);
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(21px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.16;
}

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

.hero-media {
  position: relative;
  min-height: clamp(460px, 62vw, 760px);
}

.hero-card {
  position: absolute;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--plaster);
}

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

.hero-card.large {
  right: 0;
  bottom: 0;
  width: 76%;
  height: 72%;
}

.hero-card.tall {
  top: 0;
  left: 4%;
  width: 42%;
  height: 58%;
}

.hero-card.wide {
  top: 18%;
  right: 8%;
  width: 46%;
  height: 27%;
}

.hero-stat {
  position: absolute;
  left: 0;
  bottom: 8%;
  width: min(270px, 46%);
  padding: 18px;
  background: var(--gold);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
}

.hero-stat strong {
  display: block;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 1;
}

.section {
  padding: clamp(62px, 9vw, 132px) var(--gutter);
}

.section.alt {
  background: var(--white);
}

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

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 90px);
  align-items: start;
  margin-bottom: clamp(34px, 6vw, 78px);
}

.section-kicker {
  margin: 0;
  color: var(--oxide);
  font-size: 12px;
  text-transform: uppercase;
}

.section.dark .section-kicker {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

.section-title {
  max-width: 980px;
  margin: 0;
  font-size: clamp(38px, 6vw, 92px);
  font-weight: 400;
  line-height: 0.98;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}

.image-frame {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--plaster);
}

.image-frame img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.copy-block {
  max-width: 720px;
}

.copy-block p {
  margin: 0 0 18px;
  font-size: clamp(19px, 2.2vw, 30px);
  line-height: 1.22;
}

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

.service-card {
  min-height: 520px;
  padding: 24px;
  background: var(--paper);
}

.service-card figure {
  overflow: hidden;
  margin: 0 0 24px;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.service-card:hover img {
  transform: scale(1.06);
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 400;
  line-height: 1;
}

.service-card p {
  margin: 0 0 24px;
  color: rgba(23, 22, 21, 0.72);
  font-size: 17px;
}

.text-button {
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  text-transform: uppercase;
}

.process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(244, 241, 235, 0.18);
  border: 1px solid rgba(244, 241, 235, 0.18);
}

.process-step {
  min-height: 280px;
  padding: 24px;
  background: #22201e;
}

.process-step span {
  color: var(--gold);
  font-size: 13px;
}

.process-step h3 {
  margin: 48px 0 12px;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1;
}

.process-step p {
  margin: 0;
  color: rgba(244, 241, 235, 0.72);
}

.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 38px;
  padding: 8px 14px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.filter-button.is-active {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 110px;
  gap: 12px;
}

.gallery-item {
  position: relative;
  grid-column: span 3;
  grid-row: span 3;
  overflow: hidden;
  padding: 0;
  color: var(--paper);
  background: var(--plaster);
  border: 0;
  border-radius: var(--radius);
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  grid-column: span 4;
  grid-row: span 5;
}

.gallery-item:nth-child(4),
.gallery-item:nth-child(8) {
  grid-column: span 5;
  grid-row: span 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
  background: rgba(23, 22, 21, 0.72);
  border-radius: 999px;
  font-size: 12px;
}

.gallery-item.is-hidden {
  display: none;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 5vw, 58px);
  color: var(--paper);
  background: var(--sage);
  border-radius: var(--radius);
}

.cta-band h2 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(42px, 7vw, 112px);
  font-weight: 400;
  line-height: 0.96;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: start;
}

.contact-panel {
  padding: 26px;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
}

.contact-panel h2,
.contact-panel p {
  margin-top: 0;
}

.contact-panel a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

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

.page-hero {
  padding: clamp(48px, 8vw, 112px) var(--gutter) clamp(34px, 5vw, 72px);
}

.page-hero .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.54fr);
  gap: clamp(26px, 5vw, 80px);
  align-items: end;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(62px, 12vw, 170px);
  font-weight: 400;
  line-height: 0.9;
}

.page-hero p {
  margin: 18px 0 0;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.18;
}

.page-hero figure {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  aspect-ratio: 3 / 4;
}

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

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

.feature-list li {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 20px;
  background: var(--white);
  font-size: clamp(22px, 3vw, 38px);
  list-style: none;
}

.impressum {
  max-width: 760px;
  font-size: 20px;
}

.site-footer {
  padding: 44px var(--gutter);
  color: var(--paper);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(140px, 0.45fr));
  gap: 28px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer-grid h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.98;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
}

.footer-grid p,
.footer-grid ul {
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin: 0 0 7px;
  list-style: none;
}

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

.footer-bottom {
  max-width: var(--max);
  margin: 42px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 241, 235, 0.16);
  color: rgba(244, 241, 235, 0.62);
  font-size: 13px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(23, 22, 21, 0.88);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1040px, 92vw);
  max-height: 82vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  color: var(--paper);
  border-color: rgba(244, 241, 235, 0.42);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .top-nav,
  .header-cta {
    display: none;
  }

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

  .mobile-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .hero-grid,
  .split,
  .contact-grid,
  .page-hero .section-inner {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(8) {
    grid-column: span 3;
    grid-row: span 3;
  }

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

@media (max-width: 720px) {
  .brand img {
    width: 108px;
  }

  .hero {
    padding-top: 30px;
  }

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

  .hero-card.large {
    width: 86%;
    height: 62%;
  }

  .hero-card.tall {
    width: 48%;
    height: 47%;
  }

  .hero-card.wide {
    top: 20%;
    right: 0;
    width: 58%;
    height: 24%;
  }

  .hero-stat {
    width: 56%;
  }

  .section-heading,
  .service-grid,
  .process,
  .feature-list,
  .form-row,
  .cta-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

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

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(6),
  .gallery-item:nth-child(8) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }
}

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