:root {
  --background: #fff;
  --surface: #f7f4ee;
  --foreground: #111111;
  --line: rgba(17, 17, 17, 0.1);
  --text-soft: rgba(17, 17, 17, 0.68);
  --text-muted: rgba(17, 17, 17, 0.48);
  --accent-a: rgba(42, 69, 92, 0.95);
  --accent-b: rgba(84, 96, 54, 0.95);
  --accent-governed: rgba(144, 104, 36, 0.95);
  --radius: 6px;
  --shadow: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

body.drawer-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-shell {
  min-height: 100vh;
  background: var(--background);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: none;
  width: 220px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.sidebar-inner {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  padding: 0 18px 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: var(--foreground);
}

.brand {
  min-height: 70px;
}

.brand-mark {
  display: inline-grid;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  place-items: center;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  background: #ffffff;
  color: var(--foreground);
  font-size: 12px;
  font-weight: 800;
}

.brand-wordmark {
  display: inline-flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1;
}

.brand-wordmark span {
  color: #858585;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-wordmark strong {
  margin-top: 5px;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.desktop-nav,
.mobile-nav {
  min-height: 0;
  overflow-y: auto;
}

.desktop-nav {
  display: grid;
  align-content: start;
  gap: 3px;
  padding-top: 18px;
}

.nav-label,
.mobile-nav p {
  margin: 16px 0 6px;
  color: rgba(17, 17, 17, 0.34);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.desktop-nav a,
.mobile-nav a {
  display: flex;
  min-height: 39px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 12px;
  color: rgba(17, 17, 17, 0.72);
  font-size: 14px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.desktop-nav a[aria-current="page"],
.mobile-nav a[aria-current="page"] {
  border-color: rgba(17, 17, 17, 0.12);
  background: rgba(17, 17, 17, 0.06);
  color: var(--foreground);
}

.sidebar-card {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.sidebar-card p,
.sidebar-card span {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.sidebar-card strong {
  font-size: 14px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 244, 238, 0.94);
  padding: 0 16px;
  backdrop-filter: blur(14px);
}

.topbar-left {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.topbar-left p,
.topbar-left span {
  margin: 0;
}

.topbar-left p {
  overflow: hidden;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-left span {
  display: none;
  max-width: 580px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: none;
  flex-shrink: 0;
  gap: 8px;
}

.button,
.icon-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.button {
  border: 1px solid rgba(17, 17, 17, 0.1);
  padding: 0 16px;
}

.button.primary {
  border-color: var(--foreground);
  background: var(--foreground);
  color: #fff;
}

.button.primary:hover {
  background: rgba(17, 17, 17, 0.8);
}

.button.secondary {
  background: #fff;
  color: var(--foreground);
}

.button.secondary:hover {
  border-color: rgba(17, 17, 17, 0.34);
  background: rgba(17, 17, 17, 0.055);
}

.button.light {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.icon-button {
  width: 38px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}

.page-main {
  padding-top: 70px;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(760px, calc(100vh - 70px));
  align-items: end;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(17, 17, 17, 0.82), rgba(17, 17, 17, 0.34) 62%, rgba(17, 17, 17, 0.18)),
    var(--hero-image);
  background-position: center;
  background-size: cover;
  padding: clamp(44px, 8vw, 92px) clamp(18px, 5vw, 64px);
}

.hero-content {
  max-width: 790px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero-content span {
  color: rgba(255, 255, 255, 0.78);
}

h1,
h2,
h3,
p,
blockquote {
  margin-top: 0;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 900px;
  font-size: clamp(42px, 8vw, 88px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  max-width: 760px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.18;
}

.hero-content span,
.section-head span,
.service-card span,
.project-copy span,
.cta-band span,
.page-intro span,
.service-hero span,
.detail-grid span,
.contact-card p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.72;
}

.hero-content span {
  display: block;
  max-width: 680px;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.metric-strip div {
  min-height: 116px;
  border-right: 1px solid var(--line);
  padding: 24px;
}

.metric-strip strong {
  display: block;
  font-size: 30px;
}

.metric-strip span {
  color: var(--text-muted);
  font-size: 13px;
}

.section,
.page-intro,
.service-hero,
.cta-band,
.site-footer {
  padding: clamp(48px, 8vw, 92px) clamp(18px, 5vw, 64px);
}

.section-head {
  display: grid;
  max-width: 840px;
  gap: 6px;
  margin-bottom: 30px;
}

.surface-band {
  background: var(--surface);
}

.service-grid {
  display: grid;
  gap: 12px;
}

.service-card,
.project-card,
.review-card,
.process-grid article,
.detail-grid article,
.contact-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card div,
.project-copy,
.process-grid article,
.detail-grid article,
.contact-card,
.review-card {
  padding: 22px;
}

.service-card p,
.project-copy p,
.review-card figcaption {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 800;
}

.project-stack {
  display: grid;
  gap: 16px;
}

.project-card {
  display: grid;
  background: #fff;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.before-after figure {
  position: relative;
  margin: 0;
  border-right: 1px solid var(--line);
}

.before-after img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.before-after figcaption {
  position: absolute;
  left: 10px;
  top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(17, 17, 17, 0.58);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 8px;
}

.project-copy ul,
.detail-grid ul,
.contact-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
  line-height: 1.6;
}

.process-grid,
.review-grid,
.detail-grid,
.contact-grid {
  display: grid;
  gap: 12px;
}

.process-grid article span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.review-card blockquote {
  color: var(--foreground);
  font-size: 18px;
  line-height: 1.58;
}

.review-card figcaption {
  margin-bottom: 0;
}

.cta-band {
  display: grid;
  align-items: end;
  gap: 24px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.page-intro,
.service-hero {
  border-bottom: 1px solid var(--line);
}

.page-intro {
  background: var(--surface);
}

.service-hero {
  display: grid;
  gap: 24px;
}

.service-hero img {
  width: 100%;
  max-height: 560px;
  border-radius: var(--radius);
  object-fit: cover;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.approval-note {
  background: var(--surface);
}

.site-footer {
  display: grid;
  gap: 38px;
  background: var(--surface);
}

.site-footer p,
.footer-links a,
.footer-links span,
.copyright {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

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

.footer-links div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links strong {
  font-size: 14px;
}

.copyright {
  margin: 0;
  color: var(--text-muted);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
}

.mobile-drawer[hidden] {
  display: none;
}

.mobile-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100dvh;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  padding: 0 18px 24px;
}

.mobile-panel-head {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-nav {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 18px;
}

.mobile-nav section {
  display: grid;
  gap: 3px;
}

.mobile-panel-foot {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.drawer-scrim {
  border: 0;
  background: rgba(17, 17, 17, 0.22);
  cursor: pointer;
}

@media (min-width: 720px) {
  .topbar-left span,
  .topbar-actions {
    display: flex;
  }

  .metric-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .cta-band,
  .service-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  }
}

@media (min-width: 1024px) {
  .sidebar {
    display: block;
  }

  .topbar {
    left: 220px;
    padding: 0 24px;
  }

  .mobile-menu-button {
    display: none;
  }

  .page-main,
  .site-footer {
    margin-left: 220px;
  }

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

  .project-card {
    grid-template-columns: minmax(0, 52%) minmax(320px, 1fr);
  }

  .before-after {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

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

@media (max-width: 520px) {
  h1 {
    font-size: 40px;
  }

  .hero {
    min-height: 680px;
  }

  .button {
    width: 100%;
  }

  .metric-strip div {
    min-height: 98px;
    padding: 18px;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

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