:root {
  --ink: #1e2423;
  --charcoal: #2f3432;
  --muted-ink: #66706d;
  --line: #d9ded9;
  --paper: #fbfaf7;
  --soft: #f1f0eb;
  --stone: #c8bca7;
  --sage: #7d8b82;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(30, 36, 35, 0.11);
  --max: 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);
  line-height: 1.6;
}

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

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

.skip-link,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 10;
  width: auto;
  height: auto;
  clip: auto;
  left: 1rem;
  top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(251, 250, 247, 0.92);
  border-bottom: 1px solid rgba(217, 222, 217, 0.72);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 98px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  width: min(240px, 48vw);
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  color: var(--muted-ink);
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-color: var(--stone);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  content: "";
}

.menu-icon::before {
  transform: translateY(-7px);
}

.menu-icon::after {
  transform: translateY(5px);
}

.hero {
  position: relative;
  min-height: calc(100vh - 98px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}

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

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

.hero-overlay {
  background: linear-gradient(90deg, rgba(30, 36, 35, 0.88) 0%, rgba(30, 36, 35, 0.58) 42%, rgba(30, 36, 35, 0.12) 100%);
}

.hero-content {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 96px 24px 118px;
  color: var(--white);
}

.hero-content h1,
.page-hero h1 {
  max-width: 830px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4.4vw, 4.35rem);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-content h1 {
  max-width: 1120px;
  font-size: clamp(2.35rem, 3.8vw, 3.8rem);
}

.hero-copy {
  max-width: 700px;
  margin: 28px 0 0;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero .eyebrow {
  color: #d8c8aa;
}

.button-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.hero .button.primary,
.cta .button.primary {
  background: var(--white);
  color: var(--ink);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.08);
}

.section,
.page-hero,
.contact-layout,
.service-detail,
.cta,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section.muted,
.service-detail.muted {
  max-width: none;
  padding-left: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  padding-right: max(24px, calc((100vw - var(--max)) / 2 + 24px));
  background: var(--soft);
}

.section-heading {
  max-width: 770px;
  margin-bottom: 44px;
}

.compact-heading {
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.3rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0;
}

.balanced-heading {
  max-width: 780px;
  font-size: clamp(2.25rem, 3.4vw, 3.55rem);
  line-height: 1.04;
}

.split.about-intro {
  grid-template-columns: 1fr;
  gap: 48px;
}

.about-intro > div:first-child {
  max-width: 1040px;
}

.about-intro .prose {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.about-intro .prose p {
  margin: 0;
}

.about-two-line {
  max-width: none;
  font-size: clamp(2rem, 2.75vw, 3rem);
  line-height: 1.06;
}

.about-two-line span {
  display: block;
  white-space: nowrap;
}

.work-two-line {
  font-size: clamp(2rem, 2.9vw, 3.15rem);
}

h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.info-card h3,
.service-card h3 {
  font-size: 1.32rem;
  line-height: 1.22;
}

.process-grid h3 {
  font-size: 1.32rem;
  line-height: 1.22;
}

p {
  color: var(--muted-ink);
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

.info-card,
.service-card,
.process-grid > div,
.contact-panel,
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.info-card,
.service-card,
.process-grid > div {
  min-height: 260px;
  padding: 30px;
}

.card-number,
.process-grid span {
  display: block;
  margin-bottom: 38px;
  color: var(--sage);
  font-weight: 800;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card p {
  flex: 1;
}

.service-card a {
  margin-top: 18px;
  font-weight: 800;
  color: var(--charcoal);
  border-bottom: 1px solid var(--stone);
  width: fit-content;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.strength-list {
  display: grid;
  gap: 26px;
}

.strength-list > div {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.cta {
  margin-top: 24px;
  margin-bottom: 24px;
  padding-top: 54px;
  padding-bottom: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--ink);
  color: var(--white);
}

.cta h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.65rem);
}

.cta .button {
  flex: 0 0 auto;
  min-width: 128px;
}

.cta p {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.76);
}

.cta .eyebrow {
  color: #d8c8aa;
}

.page-hero {
  padding-top: 104px;
  padding-bottom: 82px;
}

.contact-page main {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(251, 250, 247, 0.66) 0%, rgba(251, 250, 247, 0.82) 48%, rgba(251, 250, 247, 0.93) 100%),
    url("images/contact-duplex-background.png") center 38% / cover no-repeat;
}

.contact-page main::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(251, 250, 247, 0.18), transparent 48%, rgba(251, 250, 247, 0.18));
}

.contact-page .page-hero,
.contact-page .contact-layout {
  position: relative;
  z-index: 1;
}

.contact-page .contact-panel,
.contact-page .contact-form {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
}

.page-hero.compact {
  padding-bottom: 54px;
}

.contact-page .page-hero.compact {
  padding-top: 64px;
  padding-bottom: 94px;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 24px;
  font-size: 1.12rem;
}

.page-hero .page-lead {
  max-width: 980px;
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 1.06;
  font-weight: 500;
  color: var(--ink);
}

.page-hero.compact .page-lead {
  max-width: 1180px;
  font-size: clamp(1.3rem, 1.9vw, 2.05rem);
  line-height: 1.02;
  font-weight: 500;
}

.page-hero.compact .page-lead span {
  display: block;
  white-space: nowrap;
}

.prose {
  font-size: 1.06rem;
}

.prose p:first-child {
  margin-top: 0;
}

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

.service-detail {
  padding-top: 76px;
  padding-bottom: 76px;
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 70px;
}

.first-service {
  padding-top: 94px;
}

.service-intro p:last-child {
  font-size: 1.06rem;
}

.design-planning-title {
  font-size: clamp(2rem, 2.8vw, 3rem);
}

.design-planning-title span {
  display: block;
  white-space: nowrap;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  color: var(--charcoal);
  font-size: 0.94rem;
  font-weight: 650;
}

.contact-layout {
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 24px;
  align-items: start;
}

.contact-panel,
.contact-form {
  padding: 30px;
}

.contact-panel h2 {
  font-size: 2rem;
}

dl {
  margin: 28px 0 0;
}

dt {
  color: var(--muted-ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

dd {
  margin: 6px 0 24px;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 18px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  border-radius: 0;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(125, 139, 130, 0.45);
  outline-offset: 2px;
}

.form-button {
  width: fit-content;
  cursor: pointer;
  border: 0;
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--charcoal);
  font-weight: 700;
}

.form-status.is-success {
  color: #245f40;
}

.form-status.is-error {
  color: #8b2d2d;
}

.site-footer {
  padding-top: 42px;
  padding-bottom: 42px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  max-width: 470px;
  margin: 8px 0 0;
}

.footer-brand .brand-logo {
  width: min(270px, 70vw);
  height: auto;
}

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  color: var(--muted-ink);
  font-weight: 700;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    min-height: 84px;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 84px;
    display: none;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    padding: 14px 12px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(30, 36, 35, 0.84) 0%, rgba(30, 36, 35, 0.62) 100%);
  }

  .card-grid.three,
  .process-grid,
  .split,
  .service-detail,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .split,
  .service-detail,
  .contact-layout {
    gap: 34px;
  }

  .about-two-line span {
    white-space: normal;
  }

  .about-intro .prose {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 28px;
  }

  .section,
  .page-hero {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .cta,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 901px) {
  .cta h2 {
    white-space: nowrap;
  }

  .feature-list li {
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .nav {
    padding: 0 18px;
  }

  .brand-logo {
    width: min(190px, 54vw);
    height: auto;
  }

  .hero {
    min-height: 660px;
  }

  .hero-content {
    padding: 72px 20px 84px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 2.25rem;
    line-height: 1.08;
  }

  .hero-copy,
  .page-hero p:not(.eyebrow) {
    font-size: 1rem;
  }

  .page-hero.compact .page-lead span {
    white-space: normal;
  }

  .section,
  .page-hero,
  .contact-layout,
  .service-detail,
  .cta,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section.muted,
  .service-detail.muted {
    padding-left: 20px;
    padding-right: 20px;
  }

  .info-card,
  .service-card,
  .process-grid > div,
  .contact-panel,
  .contact-form {
    padding: 24px;
  }

  .feature-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    flex-wrap: wrap;
  }
}
