:root {
  --ink: #161616;
  --muted: #66625d;
  --paper: #f7f4ef;
  --warm: #d99b66;
  --moss: #5c6f62;
  --clay: #a35844;
  --white: #ffffff;
  --line: rgba(22, 22, 22, 0.14);
  --shadow: 0 22px 70px rgba(31, 26, 20, 0.18);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  color: var(--white);
  background: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
}

.brand,
.nav,
.site-footer div {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  width: 22px;
  aspect-ratio: 1;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: currentColor;
}

.nav {
  gap: clamp(14px, 3vw, 36px);
  font-size: 0.9rem;
}

.header-cta {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
}

.hero {
  min-height: 84vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

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

.hero-media {
  background-image: url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=2200&q=88");
  background-position: center 38%;
  background-size: cover;
  transform: scale(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.22) 58%, rgba(0, 0, 0, 0.2)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.02) 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  padding: 104px clamp(20px, 7vw, 88px) 36px;
}

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

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

h1 {
  max-width: 940px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 6.2vw, 5rem);
  line-height: 0.94;
  font-weight: 500;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4vw, 4.6rem);
  line-height: 1;
  font-weight: 500;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:hover,
.header-cta:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--warm);
  color: #24160f;
}

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

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

.intro > div {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 5vw, 42px);
  background: #fffaf3;
}

.stat {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
  line-height: 0.9;
}

.stat-label {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(70px, 10vw, 130px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(24px, 6vw, 86px);
  align-items: start;
  margin-bottom: clamp(34px, 6vw, 64px);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, 31vw);
  gap: 14px;
}

.portfolio-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
  box-shadow: var(--shadow);
}

.portfolio-item.tall {
  grid-row: span 2;
  grid-column: span 2;
}

.portfolio-item.wide {
  grid-column: span 2;
}

.portfolio-item figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 800;
}

.services {
  background: #f0ebe2;
}

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

.service-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.56);
}

.service-card.featured {
  background: var(--moss);
  color: var(--white);
}

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

.service-card.featured p {
  color: rgba(255, 255, 255, 0.76);
}

.service-kicker {
  margin-bottom: 40px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card span {
  font-weight: 900;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 0.48fr);
  min-height: 700px;
}

.story-image {
  min-height: 520px;
}

.story-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 8vw, 112px);
  background: var(--ink);
  color: var(--white);
}

.story-copy p:not(.eyebrow) {
  margin: 26px 0 28px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.08rem;
  line-height: 1.75;
}

.text-link {
  width: fit-content;
  border-bottom: 2px solid var(--warm);
  padding-bottom: 6px;
  color: var(--warm);
  font-weight: 900;
}

.quote-section {
  padding: clamp(64px, 9vw, 120px) clamp(20px, 12vw, 180px);
  background: #fffaf3;
  text-align: center;
}

.quote-section blockquote {
  margin: 0 auto 24px;
  max-width: 980px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.2vw, 4.5rem);
  line-height: 1.05;
}

.quote-section p {
  color: var(--muted);
  font-weight: 800;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  gap: clamp(32px, 6vw, 82px);
  padding: clamp(70px, 10vw, 130px) clamp(20px, 8vw, 100px);
}

.contact-copy p:not(.eyebrow) {
  max-width: 430px;
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

textarea {
  resize: vertical;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.site-footer div {
  gap: 20px;
}

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

  .nav {
    display: none;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-content {
    padding-top: 112px;
    padding-bottom: 34px;
  }

  .intro,
  .section-heading,
  .service-grid,
  .story,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 240px;
  }

  .portfolio-item.tall,
  .portfolio-item.wide {
    grid-column: span 2;
  }

  .service-card {
    min-height: 260px;
  }

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

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 130px;
    line-height: 1.05;
  }

  .header-cta {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

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

  .intro {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-item,
  .portfolio-item.tall,
  .portfolio-item.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }
}
