:root {
  --ink: #111111;
  --muted: #5f625f;
  --line: #deded8;
  --paper: #f7f7f4;
  --white: #ffffff;
  --accent: #8b6f47;
  --accent-dark: #5b472d;
  --max-width: 1180px;
  --header-height: 76px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

body,
button,
input,
textarea {
  font: inherit;
}

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

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: var(--white);
  background: #161616;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  line-height: 1;
}

.brand-name {
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-role {
  color: #d6c3a4;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.hero {
  width: 100%;
  margin: 0 auto;
  padding: var(--header-height) 0 0;
  color: var(--ink);
}

.hero-media {
  display: block;
  overflow: hidden;
  background: #e9e9e4;
  height: clamp(260px, 40vw, 560px);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  width: min(var(--max-width), calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: end;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 82px) 0 clamp(48px, 8vw, 92px);
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  font-weight: 650;
}

h1 {
  max-width: 760px;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(2.35rem, min(5vw, 7vh), 4.55rem);
  font-weight: 500;
  line-height: 1.08;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
}

h3 {
  font-size: 1.16rem;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.48;
}

.hero-bottom {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 13px;
  font-size: 0.86rem;
  font-weight: 700;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
  text-shadow: none;
}

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

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

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

.button-outline {
  border-color: var(--ink);
  color: var(--ink);
}

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

.section {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(76px, 11vw, 140px) 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefit-card {
  padding: clamp(26px, 4vw, 44px);
  border-right: 1px solid var(--line);
}

.benefit-card:last-child {
  border-right: 0;
}

.benefit-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.portfolio {
  width: min(1320px, calc(100% - 36px));
}

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

.portfolio-item {
  position: relative;
  min-height: 350px;
  margin: 0;
  overflow: hidden;
  background: #e9e9e4;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.94);
  transition: transform 420ms ease;
}

.portfolio-item:hover img {
  transform: scale(1.025);
}

.process {
  border-top: 1px solid var(--line);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line);
}

.process-list li {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--paper);
}

.process-list span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.process-list strong {
  display: block;
  font-size: clamp(1.22rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.process-list p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.48;
}

.image-band {
  width: 100%;
  height: clamp(180px, 30vw, 360px);
  margin: 0;
  overflow: hidden;
  background: #e9e9e4;
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.image-band-building img {
  object-position: center 32%;
}

.image-band-footer img {
  object-position: center 48%;
}

.about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(38px, 8vw, 100px);
  align-items: start;
}

.about p:last-child {
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(1.16rem, 2vw, 1.45rem);
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(54px, 8vw, 88px) clamp(18px, 5vw, 56px);
  background: #171717;
  color: var(--white);
}

.final-cta h2 {
  max-width: 760px;
}

.final-cta .button-primary {
  flex: 0 0 auto;
}

.contact {
  padding-bottom: 80px;
}

.contact-intro {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 620px;
  margin: -18px 0 34px;
}

.contact-intro img {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border-radius: 50%;
  filter: grayscale(1);
  object-fit: cover;
  object-position: center;
}

.contact-intro strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.02rem;
}

.contact-intro p {
  margin: 0;
  color: var(--muted);
}

.contact-phone {
  display: inline-flex;
  margin-top: 8px;
  color: var(--ink);
  font-weight: 800;
}

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

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full,
.form-footer {
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 14px 15px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--ink);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

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

.form-status {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 700;
}

.thanks-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thanks {
  width: min(680px, calc(100% - 36px));
  padding: 72px 0;
}

.thanks h1 {
  margin-bottom: 22px;
}

.thanks p:not(.eyebrow) {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 1.18rem;
}

@media (max-width: 900px) {
  .benefits-grid,
  .portfolio-grid,
  .process-list,
  .about,
  .contact-form {
    grid-template-columns: 1fr;
  }

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

  .benefit-card:last-child {
    border-bottom: 0;
  }

  .portfolio-item {
    min-height: auto;
  }

  .process-list li {
    min-height: 140px;
  }

  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .about p:last-child {
    margin-top: 0;
  }

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

@media (max-width: 680px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    padding-inline: 18px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-role {
    font-size: 0.56rem;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.82rem;
  }

  .nav-links a:nth-child(2) {
    display: none;
  }

  .hero {
    width: 100%;
    padding: var(--header-height) 0 0;
  }

  .hero-content {
    width: min(100% - 32px, var(--max-width));
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 36px 0 52px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2.3rem;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-bottom {
    gap: 14px;
    margin-top: 0;
  }

  .hero-actions .button {
    flex: 1 1 0;
    min-width: 0;
  }

  .button {
    width: 100%;
  }

  .section {
    width: min(100% - 32px, var(--max-width));
    padding: 66px 0;
  }

  .portfolio {
    width: min(100% - 24px, 1320px);
  }

  .portfolio-grid {
    gap: 12px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .hero-actions .button {
    padding-inline: 9px;
    font-size: 0.78rem;
  }
}

@media (max-width: 430px) {
  .hero-actions .button {
    padding-inline: 8px;
    font-size: 0.78rem;
  }
}
