:root {
  --bg: #f3efe6;
  --bg-deep: #ebe4d6;
  --paper: #faf7f0;
  --ink: #161814;
  --ink-soft: #3d3b35;
  --muted: #6b675e;
  --line: rgba(22, 24, 20, 0.12);
  --accent: #8d6840;
  --accent-dark: #6a4b2c;
  --accent-soft: #e8d8c0;
  --dark: #121410;
  --white: #fffcf7;
  --shadow: 0 24px 60px rgba(22, 24, 20, 0.12);
  --radius: 22px;
  --header: 76px;
  --max: 1180px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 18px;
}

.section-lead {
  max-width: 62ch;
  color: var(--ink-soft);
  margin: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  background: rgba(243, 239, 230, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open .header {
  z-index: 1;
}

.header-inner {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  height: 46px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  border-color: rgba(255, 252, 247, 0.35);
  color: var(--white);
  background: rgba(255, 252, 247, 0.08);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
}

.btn-outline {
  border-color: var(--line);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  padding: 0;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 20, 16, 0.18) 0%, rgba(18, 20, 16, 0.28) 42%, rgba(18, 20, 16, 0.78) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  line-height: 0.98;
  font-weight: 600;
  max-width: 14ch;
  margin: 0 0 18px;
}

.hero p {
  max-width: 58ch;
  color: rgba(255, 252, 247, 0.86);
  margin: 0 0 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.intro {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.intro-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.intro-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  min-height: 100%;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.service-card .teaser {
  color: var(--accent-dark);
  font-weight: 500;
  margin: 0 0 12px;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
}

.ba-section {
  background: var(--dark);
  color: var(--white);
}

.ba-section .section-kicker {
  color: #d4b48a;
}

.ba-section .section-lead {
  color: rgba(255, 252, 247, 0.74);
}

.ba-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
  margin-top: 36px;
}

.ba-copy p + p {
  margin-top: 16px;
}

.ba-note {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px dashed rgba(255, 252, 247, 0.22);
  border-radius: 16px;
  color: rgba(255, 252, 247, 0.72);
  font-size: 0.95rem;
}

.ba-slider {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #2a2824;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
  box-shadow: var(--shadow);
}

.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before-clip {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 50%;
  overflow: hidden;
}

.ba-before-clip img {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--white);
  transform: translateX(-50%);
}

.ba-handle::after {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ba-label {
  position: absolute;
  top: 16px;
  z-index: 2;
  background: rgba(18, 20, 16, 0.72);
  color: var(--white);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ba-label-before {
  left: 16px;
}

.ba-label-after {
  right: 16px;
}

.ba-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(18, 20, 16, 0.55), rgba(18, 20, 16, 0.2)),
    repeating-linear-gradient(45deg, rgba(255, 252, 247, 0.05) 0 12px, transparent 12px 24px);
  color: var(--white);
  text-align: center;
  padding: 24px;
}

.ba-placeholder strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.ba-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.ba-tab {
  border: 1px solid rgba(255, 252, 247, 0.16);
  background: transparent;
  color: var(--white);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
}

.ba-tab.active {
  background: var(--white);
  color: var(--ink);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 220px;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: #ddd;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item:nth-child(1) { grid-column: span 7; min-height: 360px; }
.gallery-item:nth-child(2) { grid-column: span 5; min-height: 360px; }
.gallery-item:nth-child(3),
.gallery-item:nth-child(4),
.gallery-item:nth-child(5) { grid-column: span 4; }
.gallery-item:nth-child(6) { grid-column: span 5; min-height: 300px; }
.gallery-item:nth-child(7) { grid-column: span 7; min-height: 300px; }
.gallery-item:nth-child(8) { grid-column: span 12; min-height: 340px; }

.cta-band {
  background:
    linear-gradient(180deg, rgba(18, 20, 16, 0.42), rgba(18, 20, 16, 0.72)),
    url("../images/project-08.jpg") center/cover;
  color: var(--white);
}

.cta-band .section-lead {
  color: rgba(255, 252, 247, 0.8);
  margin-bottom: 24px;
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: end;
  color: var(--white);
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 20, 16, 0.15), rgba(18, 20, 16, 0.7));
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: 48px;
}

.prose {
  max-width: 72ch;
}

.prose p {
  color: var(--ink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  min-height: 360px;
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-card,
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 24px 0 0;
}

.contact-list a,
.contact-list span {
  display: block;
}

.contact-list strong {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 12px;
}

input,
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 12px 14px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-success {
  background: #e8f3e8;
  border: 1px solid #b7d7b7;
  color: #215c21;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.contact-visual {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.footer {
  background: var(--dark);
  color: rgba(255, 252, 247, 0.78);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}

.footer .logo img {
  height: 42px;
  filter: invert(1);
}

.footer a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 252, 247, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 10, 0.92);
  display: none;
  place-items: center;
  z-index: 200;
  padding: 24px;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--white);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    inset: var(--header) 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav .btn {
    width: 100%;
  }

  .intro,
  .ba-layout,
  .split,
  .contact-grid,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .intro-media img,
  .split img {
    min-height: 260px;
  }

  .services-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: auto;
    min-height: 240px;
  }

  .hero h1 {
    max-width: none;
  }

  .nav {
    z-index: 50;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .logo img {
    height: 40px;
    max-width: min(210px, 58vw);
    object-fit: contain;
    object-position: left center;
  }

  .ba-tab {
    font-size: 0.88rem;
  }

  .hero {
    min-height: 86svh;
  }

  .service-card {
    padding: 22px;
  }
}
