:root {
  --ink: #171625;
  --brown: #181352;
  --brown-deep: #0f0c36;
  --copper: #181352;
  --copper-dark: #0a0829;
  --cream: #f7f3ed;
  --paper: #fffdf9;
  --muted: #666176;
  --green: #181352;
  --line: rgba(24, 19, 82, 0.16);
  --shadow: 0 24px 60px rgba(15, 12, 54, 0.16);
  --header-height: 104px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  min-height: var(--header-height);
  background: var(--brown-deep);
  color: #fffaf4;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.24);
}

.nav-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 220px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand-logo {
  width: 58px;
  height: 44px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-text {
  font-weight: 900;
  font-size: 1.08rem;
}

.brand-subline {
  color: rgba(255, 250, 244, 0.78);
  font-size: 0.68rem;
  font-weight: 700;
}

.nav-links {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-links a,
.header-phone,
.site-footer a {
  transition: color 180ms ease, opacity 180ms ease;
}

.nav-links a:hover,
.header-phone:hover,
.site-footer a:hover {
  color: var(--copper);
}

.header-phone {
  grid-column: 3;
  justify-self: end;
  font-weight: 900;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 250, 244, 0.25);
  background: transparent;
  color: #fffaf4;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height) - 56px);
  max-height: 760px;
  background:
    linear-gradient(90deg, rgba(8, 7, 32, 0.94) 0%, rgba(24, 19, 82, 0.8) 42%, rgba(24, 19, 82, 0.38) 72%, rgba(24, 19, 82, 0.52) 100%),
    url("assets/janis-wieland.jpg") 68% 38% / cover no-repeat;
  color: #fffaf4;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 40px 0 44px;
}

.eyebrow,
.small-label {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.2rem, 6vw, 5.35rem);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-rule {
  width: 56px;
  height: 4px;
  margin: 28px 0 18px;
  background: var(--copper);
}

.hero-copy {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 250, 244, 0.88);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
  cursor: pointer;
}

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

.button-primary {
  background: var(--copper);
  color: #fffaf4;
}

.button-primary:hover {
  background: var(--copper-dark);
}

.button-outline {
  border-color: rgba(255, 250, 244, 0.84);
  color: #fffaf4;
}

.button-outline:hover {
  background: #fffaf4;
  color: var(--brown-deep);
}

.intro-band {
  background: var(--paper);
  padding: 32px 0 42px;
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1fr;
  gap: 56px;
  align-items: end;
}

.intro-grid h2,
.section-heading h2,
.split-copy h2,
.contact-copy h2 {
  margin: 0;
  color: var(--brown);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro-grid p,
.section-heading p,
.service-card p,
.split-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.service-card {
  min-height: 280px;
  padding: 30px 26px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

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

.service-number {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.service-card h3 {
  margin: 46px 0 16px;
  color: var(--brown);
  font-size: 1.25rem;
}

.split-section {
  background: var(--cream);
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  min-height: 560px;
}

.split-image {
  min-height: 520px;
  background:
    linear-gradient(rgba(24, 19, 82, 0.12), rgba(24, 19, 82, 0.12)),
    url("assets/janis-wieland.jpg") 66% 40% / cover no-repeat;
}

.split-copy {
  align-self: center;
  max-width: 620px;
  padding: 84px 56px;
}

.split-copy p {
  margin-top: 24px;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.9fr 0.95fr;
  gap: 22px;
}

.project-card {
  min-height: 360px;
  display: flex;
  align-items: end;
  padding: 26px;
  color: #fffaf4;
  background:
    linear-gradient(180deg, rgba(15, 12, 54, 0.1) 0%, rgba(15, 12, 54, 0.86) 100%),
    url("assets/janis-wieland.jpg") center / cover no-repeat;
  overflow: hidden;
}

.project-card:nth-child(2) {
  background-position: 66% center;
}

.project-card:nth-child(3) {
  background-position: 35% center;
}

.project-text span {
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-text h3 {
  max-width: 360px;
  margin: 10px 0 0;
  font-size: 1.45rem;
  line-height: 1.2;
}

.contact-section {
  background: var(--brown-deep);
  color: #fffaf4;
  padding: 86px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 520px);
  gap: 60px;
  align-items: start;
}

.contact-copy h2 {
  color: #fffaf4;
}

.contact-copy p {
  margin-top: 24px;
  color: rgba(255, 250, 244, 0.78);
}

.contact-lines {
  margin-top: 34px;
  display: grid;
  gap: 10px;
  color: #fffaf4;
  font-weight: 900;
}

.contact-lines a:hover {
  color: var(--copper);
}

.contact-form {
  background: #fffaf4;
  color: var(--ink);
  padding: 30px;
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--brown);
  font-size: 0.86rem;
  font-weight: 900;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(24, 19, 82, 0.22);
  border-radius: 3px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(24, 19, 82, 0.16);
}

.contact-form .button {
  width: 100%;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.site-footer {
  min-height: 86px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: #090722;
  color: rgba(255, 250, 244, 0.76);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  :root {
    --header-height: 84px;
  }

  .nav-wrap {
    width: min(100% - 32px, 720px);
    grid-template-columns: 1fr auto;
  }

  .brand {
    grid-column: 1;
    justify-self: start;
    min-width: 0;
  }

  .brand-logo {
    width: 48px;
    height: 36px;
  }

  .nav-toggle {
    display: block;
    grid-column: 2;
  }

  .header-phone {
    display: none;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 0 8px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 0;
    border-top: 1px solid rgba(255, 250, 244, 0.14);
  }

  .hero {
    min-height: calc(100svh - var(--header-height) - 110px);
    background:
      linear-gradient(90deg, rgba(8, 7, 32, 0.95) 0%, rgba(24, 19, 82, 0.84) 48%, rgba(24, 19, 82, 0.42) 100%),
      url("assets/janis-wieland.jpg") 70% 40% / cover no-repeat;
  }

  .hero-content,
  .intro-grid,
  .section {
    width: min(100% - 32px, 720px);
  }

  .hero-content {
    padding: 44px 0 50px;
  }

  .intro-grid,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .service-card:nth-child(2) {
    border-right: 0;
  }

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

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

  .project-card {
    min-height: 280px;
  }

  .split-copy {
    max-width: none;
    padding: 56px 32px;
  }

  .contact-section {
    padding: 64px 32px;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    align-items: start;
    padding: 14px 0;
  }

  .brand-text {
    font-size: 0.96rem;
  }

  .brand-subline {
    font-size: 0.62rem;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(8, 7, 32, 0.96) 0%, rgba(24, 19, 82, 0.88) 58%, rgba(24, 19, 82, 0.62) 100%),
      url("assets/janis-wieland.jpg") 70% 42% / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 3.55rem);
  }

  .hero-actions {
    gap: 12px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
  }

  .intro-band {
    padding-top: 30px;
  }

  .intro-grid {
    gap: 22px;
  }

  .section {
    padding: 62px 0;
  }

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

  .service-card,
  .service-card:nth-child(2) {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .service-card h3 {
    margin-top: 30px;
  }

  .split-image {
    min-height: 340px;
  }

  .split-copy,
  .contact-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .contact-form {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
