:root {
  --bg: #f5f1e8;
  --surface: #fffdf8;
  --ink: #122231;
  --muted: #5b6670;
  --accent: #be5b3d;
  --accent-dark: #8f3f28;
  --line: #d9d1c4;
  --max: 1120px;
  --shadow: 0 18px 50px rgba(18, 34, 49, 0.10);
  --radius: 22px;
}

* { 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(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(18, 34, 49, 0.08);
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(14px);
}

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

.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  text-decoration: none;
  font-weight: 650;
  font-size: 0.96rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 11px;
  font: inherit;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 70px;
}

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

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.lede {
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  max-width: 730px;
  color: var(--muted);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-weight: 800;
  transition: 180ms ease;
}

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

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 34, 49, 0.12);
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.hero-card p:last-child {
  margin-bottom: 0;
}

.stat {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.stat:last-child {
  border-bottom: 0;
}

.stat strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 600px;
  color: var(--muted);
  margin-bottom: 0;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-body {
  padding: 26px;
}

.card-kicker {
  color: var(--accent-dark);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  margin-bottom: 8px;
}

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

.card a {
  font-weight: 800;
  text-decoration: none;
}

.card a:hover {
  color: var(--accent-dark);
}

.project-visual {
  aspect-ratio: 16/9;
  padding: 24px;
  display: flex;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(190,91,61,.18), rgba(18,34,49,.08)),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(18,34,49,.05) 25px);
}

.project-visual span {
  background: rgba(255,253,248,.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: .84rem;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.prose {
  max-width: 760px;
}

.prose p,
.prose li {
  color: #2e3b46;
}

.prose ul {
  padding-left: 22px;
}

.callout {
  border-left: 5px solid var(--accent);
  background: var(--surface);
  border-radius: 0 16px 16px 0;
  padding: 22px 24px;
  margin: 28px 0;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 30px 0 46px;
}

.meta-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 18px;
}

.meta-item strong,
.meta-item span {
  display: block;
}

.meta-item span {
  color: var(--muted);
  font-size: .92rem;
}

.case-section {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.case-section:first-of-type {
  border-top: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: .9rem;
}

.contact-box {
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  padding: clamp(30px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.contact-box p {
  color: rgba(255,255,255,.75);
  margin-bottom: 0;
}

.contact-box .button {
  border-color: white;
  color: white;
}

.site-footer {
  padding: 34px 0 48px;
  color: var(--muted);
  font-size: .92rem;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.small {
  font-size: .94rem;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero-grid,
  .two-col,
  .contact-box {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    padding-top: 80px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 74px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  h1 {
    font-size: 3rem;
  }

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

  .section {
    padding: 64px 0;
  }
}


.page-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.philosophy-copy > p:first-child {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--ink);
}

.philosophy-closing {
  margin-top: 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--ink) !important;
}

.text-link {
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-dark);
}
