:root {
  --bg: #f4eee5;
  --surface: #faf7f1;
  --surface-2: #ede4d8;
  --text: #211b18;
  --muted: #746b64;

  --accent: #c45f32;
  --accent-dark: #944022;
  --burgundy: #762f2b;
  --gold: #b68a45;

  --border: rgba(33, 27, 24, 0.14);
  --white: #ffffff;

  --max-width: 1220px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.section-kicker {
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  line-height: 0.94;
}

h2 {
  font-size: clamp(2.5rem, 4.8vw, 4.5rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.65rem;
  line-height: 1.12;
}

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

/* NAV */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 238, 229, 0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  color: var(--text) !important;
  border-bottom: 1px solid var(--text);
  padding-bottom: 2px;
}

/* BUTTONS */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 100px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

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

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

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: var(--text);
  color: var(--text);
}

.button-secondary:hover {
  background: var(--surface);
}

/* SHARED HERO */

.page-hero {
  padding: 86px 0 72px;
  border-bottom: 1px solid var(--border);
}

.page-hero .eyebrow {
  margin-bottom: 18px;
}

.page-hero h1 {
  max-width: 920px;
}

.page-hero p {
  max-width: 720px;
  margin-top: 24px;
  font-size: 1.08rem;
}

/* HOME HERO */

.hero {
  padding: 72px 0 82px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 70px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy .eyebrow {
  margin-bottom: 22px;
}

.hero-copy h1 span {
  color: var(--accent);
  font-style: italic;
}

.hero-description {
  font-size: 1.12rem;
  max-width: 650px;
  margin-top: 28px;
}

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

.hero-image {
  position: relative;
}

.hero-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 180px 180px 18px 18px;
  filter: saturate(0.84) contrast(0.96);
}

.hero-caption {
  position: absolute;
  left: -28px;
  bottom: 28px;
  max-width: 250px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 20px;
}

.hero-caption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--text);
}

.hero-caption span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
}

/* INTRO BAND */

.intro-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.intro-item {
  padding: 30px 34px;
  border-right: 1px solid var(--border);
}

.intro-item:last-child {
  border-right: none;
}

.intro-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 4px;
}

.intro-item p {
  font-size: 0.9rem;
}

/* GENERAL SECTIONS */

section {
  padding: 96px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 55px;
  align-items: end;
  margin-bottom: 50px;
}

.section-heading p {
  max-width: 640px;
  font-size: 1.03rem;
}

/* SERVICE LIST */

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

.services-grid {
  border-top: 1px solid var(--border);
}

.service {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 34px;
  padding: 31px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.service-number {
  font-size: 0.75rem;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.service p {
  max-width: 520px;
}

/* CARDS */

.cards-2,
.cards-3 {
  display: grid;
  gap: 22px;
}

.cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p + p {
  margin-top: 12px;
}

/* WORK */

.work-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.work-card {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background: var(--text);
}

.work-card.small {
  min-height: 269px;
}

.work-side {
  display: grid;
  gap: 22px;
}

.work-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.5s ease;
}

.work-card:hover img {
  transform: scale(1.025);
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 15, 13, 0.02) 20%,
    rgba(20, 15, 13, 0.85) 100%
  );
}

.work-content {
  position: absolute;
  z-index: 2;
  left: 30px;
  right: 30px;
  bottom: 30px;
  color: white;
}

.work-content .eyebrow {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.work-content h3 {
  font-size: 2rem;
  max-width: 550px;
}

.work-content p {
  color: rgba(255, 255, 255, 0.77);
  max-width: 560px;
  margin-top: 10px;
}

/* CASE STUDY */

.case-study {
  padding: 44px 0;
  border-top: 1px solid var(--border);
}

.case-study:first-of-type {
  border-top: none;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 60px;
}

.case-study-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.case-study-copy p + p {
  margin-top: 16px;
}

/* BUILDS */

.build-section {
  background: var(--burgundy);
  color: white;
}

.build-section .eyebrow {
  color: #e0bc83;
}

.build-section p {
  color: rgba(255, 255, 255, 0.72);
}

.build-intro {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 70px;
  align-items: end;
  margin-bottom: 50px;
}

.build-intro h2 {
  max-width: 690px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.workflow-step {
  padding: 30px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  min-height: 210px;
}

.workflow-step:last-child {
  border-right: none;
}

.workflow-step span {
  display: block;
  font-size: 0.72rem;
  color: #e0bc83;
  font-weight: 700;
  margin-bottom: 26px;
}

.workflow-step h3 {
  color: white;
  font-size: 1.35rem;
  margin-bottom: 9px;
}

.workflow-step p {
  font-size: 0.88rem;
}

.build-note {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 28px;
  align-items: center;
}

.build-note p {
  max-width: 700px;
  font-size: 0.92rem;
}

.build-note a {
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 3px;
  font-size: 0.9rem;
}

/* ABOUT */

.about-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 75px;
}

.about-left img {
  margin-top: 28px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.75);
}

.about-copy {
  max-width: 690px;
}

.about-copy > p {
  font-size: 1.06rem;
  margin-bottom: 18px;
}

.about-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border);
}

.stat {
  padding: 24px 20px 24px 0;
  border-bottom: 1px solid var(--border);
}

.stat:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.stat:nth-child(even) {
  padding-left: 24px;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 400;
  margin-bottom: 3px;
}

.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* CONTENT / LONGFORM */

.content-grid {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 70px;
}

.content-block + .content-block {
  margin-top: 42px;
}

.content-block h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.content-block h3 {
  margin-bottom: 10px;
}

.content-block p + p {
  margin-top: 16px;
}

.content-block ul {
  padding-left: 20px;
  color: var(--muted);
  margin-top: 16px;
}

.content-block li + li {
  margin-top: 8px;
}

/* CONTACT */

.contact {
  padding-top: 30px;
}

.contact-panel {
  background: var(--accent);
  color: white;
  padding: 65px;
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 70px;
  align-items: end;
}

.contact-panel .eyebrow {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 18px;
}

.contact-panel h2 {
  max-width: 730px;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 18px;
  max-width: 580px;
}

.contact-action {
  display: flex;
  justify-content: flex-end;
}

.contact-action .button {
  background: white;
  color: var(--text);
  min-width: 180px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 15px;
  color: var(--text);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

/* FOOTER */

footer {
  padding: 38px 0 50px;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.45rem;
}

.footer-meta {
  text-align: right;
  color: var(--muted);
  font-size: 0.82rem;
}

/* MOBILE */

@media (max-width: 980px) {
  .hero-layout,
  .section-heading,
  .build-intro,
  .about-layout,
  .contact-panel,
  .content-grid,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 45px;
  }

  .hero-image {
    max-width: 650px;
  }

  .hero-caption {
    left: 18px;
  }

  .service {
    grid-template-columns: 60px 1fr;
  }

  .service p {
    grid-column: 2;
  }

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

  .work-side {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow-step {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .contact-action {
    justify-content: flex-start;
  }

  .cards-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .nav {
    min-height: 68px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero,
  .page-hero {
    padding-top: 55px;
  }

  h1 {
    font-size: clamp(3.2rem, 14vw, 5rem);
  }

  section {
    padding: 72px 0;
  }

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

  .intro-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-left: 0;
    padding-right: 0;
  }

  .intro-item:last-child {
    border-bottom: none;
  }

  .service {
    grid-template-columns: 42px 1fr;
    gap: 15px;
  }

  .work-side,
  .cards-2,
  .cards-3,
  .form-row {
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card.small {
    min-height: 420px;
  }

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

  .workflow-step {
    border-right: none;
    min-height: unset;
  }

  .build-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .stat:nth-child(odd) {
    border-right: none;
  }

  .stat:nth-child(even) {
    padding-left: 0;
  }

  .contact-panel {
    padding: 38px 26px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }
}
