:root {
  --ink: #2f3a3f;
  --muted: #66716e;
  --line: #d6d2c7;
  --paper: #f7f5ec;
  --soft: #ebe7dc;
  --charcoal: #2f3a3f;
  --slate: #435157;
  --sage: #657264;
  --accent: #aa865d;
  --shadow: 0 18px 48px rgba(45, 54, 55, 0.15);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #f7f5ec;
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 245, 236, 0.96);
  box-shadow: 0 8px 28px rgba(45, 54, 55, 0.12);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 82px;
  min-width: 82px;
  min-height: 82px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: #f4f1e7;
  border: 1px solid rgba(47, 58, 63, 0.16);
  box-shadow: 0 10px 28px rgba(35, 43, 45, 0.16);
  object-fit: contain;
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a,
.header-call {
  text-decoration: none;
}

.site-nav a {
  opacity: 0.88;
}

.site-nav a:hover {
  opacity: 1;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(247, 245, 236, 0.44);
  background: rgba(247, 245, 236, 0.1);
  color: currentColor;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.site-header.is-scrolled .header-call,
.site-header.is-open .header-call {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #f7f5ec;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(247, 245, 236, 0.14);
  color: currentColor;
  padding: 10px;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 150px clamp(20px, 6vw, 84px) 72px;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(31, 38, 38, 0.82), rgba(47, 58, 63, 0.5) 50%, rgba(47, 58, 63, 0.16)),
    linear-gradient(0deg, rgba(31, 38, 38, 0.68), transparent 44%);
}

.hero-content {
  width: min(850px, 100%);
  color: #f7f5ec;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.intro h2,
.section-heading h2,
.feature-split h2,
.contact-section h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 840px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.75rem, 7vw, 5.9rem);
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(247, 245, 236, 0.86);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--charcoal);
  color: #f7f5ec;
}

.button.secondary {
  border: 1px solid rgba(47, 58, 63, 0.18);
  background: rgba(247, 245, 236, 0.92);
  color: var(--ink);
}

.signal-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.signal-band div {
  min-height: 134px;
  padding: 28px clamp(20px, 4vw, 42px);
  background: #fdfbf3;
}

.signal-band strong,
.signal-band span {
  display: block;
}

.signal-band strong {
  font-size: 1.05rem;
}

.signal-band span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.section,
.feature-split,
.contact-section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 6vw, 84px);
}

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

.intro-grid img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.intro h2,
.section-heading h2,
.feature-split h2,
.contact-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.intro p,
.feature-split p,
.contact-section p,
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.intro p:not(.section-label) {
  margin-top: 22px;
}

.services {
  background: var(--soft);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 28px;
  margin-bottom: 34px;
}

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

.service-grid article {
  min-height: 258px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fdfbf3;
}

.service-grid span {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--accent);
  font-weight: 900;
}

.service-grid h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}

.feature-split img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-split p {
  margin-top: 22px;
}

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

.check-list li {
  position: relative;
  padding-left: 28px;
  color: #394448;
  line-height: 1.55;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.work-grid figure {
  position: relative;
  min-height: 310px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--charcoal);
}

.work-grid figure.wide {
  grid-column: span 2;
  grid-row: span 2;
}

.work-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.work-grid figure:hover img {
  transform: scale(1.035);
}

.work-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px 18px 18px;
  color: #f7f5ec;
  font-weight: 900;
  background: linear-gradient(0deg, rgba(31, 38, 38, 0.82), transparent);
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.55fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  color: #f7f5ec;
  background: var(--charcoal);
}

.contact-section .section-label {
  color: var(--accent);
}

.contact-section p {
  margin-top: 22px;
  color: rgba(247, 245, 236, 0.78);
}

.contact-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(247, 245, 236, 0.18);
  border-radius: var(--radius);
  background: rgba(247, 245, 236, 0.06);
}

.contact-panel a {
  display: grid;
  gap: 8px;
  padding: 24px;
  text-decoration: none;
}

.contact-panel a + a {
  border-top: 1px solid rgba(247, 245, 236, 0.18);
}

.contact-panel span {
  color: rgba(247, 245, 236, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel strong {
  overflow-wrap: anywhere;
  font-size: 1.12rem;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 46px 20px;
  color: rgba(247, 245, 236, 0.72);
  text-align: center;
  background: #232b2e;
}

.footer-brand {
  width: 128px;
  height: 128px;
  border-radius: 4px;
  background: #f4f1e7;
  border: 1px solid rgba(247, 245, 236, 0.18);
  object-fit: contain;
}

.site-footer p {
  max-width: 650px;
  margin: 0;
  line-height: 1.6;
}

.site-footer small {
  color: rgba(247, 245, 236, 0.52);
}

.gallery-page {
  padding-top: 78px;
  background: var(--paper);
}

.kb-gallery-page {
  min-height: calc(100vh - 78px);
  padding: 76px 24px 96px;
}

.kb-gallery-wrap {
  margin: 0 auto;
  max-width: 1180px;
}

.kb-gallery-title {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 36px;
  text-align: center;
}

.kb-click-gallery {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kb-gallery-thumb {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 16px 38px rgba(45, 54, 55, 0.14);
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
}

.kb-gallery-thumb img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: cover;
  transition: transform 0.22s ease;
  width: 100%;
}

.kb-gallery-thumb:hover img,
.kb-gallery-thumb:focus-visible img {
  transform: scale(1.025);
}

.kb-lightbox[hidden] {
  display: none;
}

.kb-lightbox {
  align-items: center;
  background: rgba(31, 38, 38, 0.92);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 28px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2147483645;
}

.kb-lightbox-backdrop {
  appearance: none;
  background: transparent;
  border: 0;
  bottom: 0;
  cursor: zoom-out;
  left: 0;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.kb-lightbox-backdrop::before,
.kb-lightbox-backdrop::after {
  background: #f7f5ec;
  content: "";
  height: 2px;
  position: absolute;
  right: 24px;
  top: 30px;
  width: 28px;
}

.kb-lightbox-backdrop::before {
  transform: rotate(45deg);
}

.kb-lightbox-backdrop::after {
  transform: rotate(-45deg);
}

.kb-lightbox img {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  max-height: min(86vh, 980px);
  max-width: min(92vw, 1280px);
  object-fit: contain;
  position: relative;
  z-index: 1;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-call {
    display: none;
  }

  .site-header.is-open .site-nav {
    grid-column: 1 / -1;
    display: grid;
    justify-self: stretch;
    gap: 0;
    padding: 12px 0 6px;
  }

  .site-header.is-open .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
  }

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

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

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

@media (max-width: 860px) {
  .kb-click-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 72px;
    padding: 12px 20px;
  }

  .brand {
    width: 64px;
    min-width: 64px;
    min-height: 64px;
  }

  .brand-logo {
    box-shadow: 0 8px 20px rgba(35, 43, 45, 0.14);
  }

  .hero {
    min-height: 86vh;
    padding: 126px 20px 42px;
  }

  .eyebrow {
    max-width: 22rem;
    line-height: 1.45;
  }

  .hero h1 {
    max-width: 22rem;
    font-size: 2.25rem;
    line-height: 1.08;
  }

  .hero-copy {
    max-width: 22rem;
    font-size: 1rem;
    line-height: 1.58;
  }

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

  .signal-band,
  .service-grid,
  .work-grid,
  .kb-click-gallery {
    grid-template-columns: 1fr;
  }

  .work-grid figure,
  .work-grid figure.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }

  .service-grid article {
    min-height: auto;
  }

  .service-grid span {
    margin-bottom: 28px;
  }

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

  .kb-gallery-page {
    padding: 48px 20px 72px;
  }
}
