:root {
  --ink: #293236;
  --muted: #5f6867;
  --line: #d7d2c7;
  --paper: #f7f5ec;
  --soft: #efebe2;
  --soft-2: #fbf9f3;
  --charcoal: #222b2f;
  --charcoal-2: #313d42;
  --accent: #8b6a46;
  --radius: 10px;
  --shadow-soft: 0 18px 45px rgba(28, 36, 40, 0.12);
  --shadow-card: 0 10px 28px rgba(28, 36, 40, 0.08);
  --shell: 1180px;
}

* {
  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;
}

.shell {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
}

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

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 245, 236, 0.96);
  box-shadow: 0 10px 28px rgba(28, 36, 40, 0.1);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  width: 68px;
  min-width: 68px;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.brand-logo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  object-fit: contain;
  background: #f4f1e7;
  border: 1px solid rgba(34, 43, 47, 0.12);
  box-shadow: 0 8px 22px rgba(28, 36, 40, 0.12);
}

.site-nav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.site-nav a {
  opacity: 0.9;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  opacity: 1;
}

.header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(247, 245, 236, 0.44);
  background: rgba(247, 245, 236, 0.08);
  color: currentColor;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  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: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 148px 0 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(18, 24, 27, 0.84) 0%, rgba(26, 34, 38, 0.68) 42%, rgba(30, 39, 44, 0.18) 100%),
    linear-gradient(0deg, rgba(18, 24, 27, 0.7), transparent 44%);
}

.hero-inner {
  display: grid;
  align-items: end;
}

.hero-copy-block {
  width: min(640px, 100%);
  color: #f7f5ec;
}

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

.hero h1,
.section-intro h2,
.approach-copy h2,
.contact-copy h2,
.kb-gallery-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(2.9rem, 6vw, 4.9rem);
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(247, 245, 236, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.68;
}

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

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

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

.button.secondary {
  border: 1px solid rgba(247, 245, 236, 0.3);
  background: rgba(247, 245, 236, 0.06);
  color: #f7f5ec;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: start;
}

.section-intro h2,
.approach-copy h2,
.contact-copy h2 {
  font-size: clamp(2.1rem, 4vw, 3.45rem);
}

.section-intro p:not(.section-label),
.approach-copy p:not(.section-label),
.contact-copy p:not(.section-label),
.kb-gallery-intro {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.76;
}

.text-link {
  margin-top: 26px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.featured-work {
  background: var(--soft-2);
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.editorial-card {
  position: relative;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--charcoal);
  box-shadow: var(--shadow-soft);
}

.editorial-card-large {
  grid-column: span 2;
  min-height: 340px;
}

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

.editorial-card:hover img,
.editorial-card:focus-within img {
  transform: scale(1.015);
}

.editorial-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 54px 18px 18px;
  color: #f7f5ec;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(0deg, rgba(18, 24, 27, 0.82), transparent);
}

.approach-section {
  background: var(--paper);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.standards-list {
  display: grid;
  gap: 16px;
}

.standard-item,
.fit-card {
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fcfaf4;
  box-shadow: none;
}


.standard-item span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.standard-item h3,
.fit-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.standard-item p,
.fit-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.fit-section {
  background: var(--soft);
}

.fit-grid {
  align-items: stretch;
}

.fit-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-section {
  padding: clamp(72px, 10vw, 110px) 0;
  color: #f7f5ec;
  background: var(--charcoal);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(320px, 0.44fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
}

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

.contact-copy p {
  color: rgba(247, 245, 236, 0.78);
}

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

.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.16);
}

.contact-panel span {
  color: rgba(247, 245, 236, 0.68);
  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: 42px 20px;
  color: rgba(247, 245, 236, 0.72);
  text-align: center;
  background: #1c2327;
}

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

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

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

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

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

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

.kb-gallery-title {
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  text-align: center;
}

.kb-gallery-intro {
  max-width: 760px;
  margin: 18px auto 0;
  text-align: center;
}

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

.kb-gallery-thumb {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  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.18s ease;
  width: 100%;
}

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

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

.kb-lightbox {
  align-items: center;
  background: rgba(18, 24, 27, 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: 1024px) {
  .section-grid,
  .approach-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: block;
    position: absolute;
    top: 18px;
    right: 20px;
  }

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

  .site-header.is-open .site-nav,
  .site-header.is-open .header-call {
    display: grid;
    justify-self: stretch;
    width: 100%;
  }

  .site-header.is-open .site-nav {
    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);
  }

  .site-header.is-open .header-call {
    place-items: center;
    margin-top: 8px;
  }

  .editorial-grid,
  .fit-cards,
  .kb-click-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(var(--shell), calc(100% - 32px));
  }

  .site-header {
    min-height: 112px;
    padding: 12px 18px;
  }

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

  .hero {
    min-height: 86vh;
    padding: 172px 0 46px;
  }

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

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

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

  .section {
    padding: 64px 0;
  }

  .editorial-grid,
  .fit-cards,
  .kb-click-gallery {
    grid-template-columns: 1fr;
  }

  .editorial-card,
  .editorial-card-large {
    min-height: 280px;
    grid-row: auto;
  }

  .standard-item,
  .fit-card {
    padding: 22px 20px 20px;
  }

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

  .contact-panel strong {
    font-size: 1.02rem;
  }

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

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
