:root {
  --bg: #f7f5ef;
  --paper: #fffdf8;
  --paper-2: #f2ede3;
  --ink: #181715;
  --muted: #5f5a53;
  --line: rgba(24, 23, 21, 0.1);
  --accent: #c86b3c;
  --accent-soft: #f1dfd4;
  --accent-deep: #7b4429;
  --max: 1120px;
  --radius: 24px;
  --shadow: 0 20px 50px rgba(49, 39, 30, 0.08);
}

* {
  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;
  background: linear-gradient(180deg, #fbf8f1 0%, #f6f1e7 100%);
  color: var(--ink);
  line-height: 1.6;
}

main {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.container.narrow {
  width: min(calc(100% - 2rem), 760px);
}

.hero,
.section {
  padding: 5.5rem 0;
}

.hero {
  padding-top: 3.75rem;
}

.eyebrow,
.section-label,
.card-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--accent-deep);
  margin-bottom: 1rem;
}

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

h1 {
  font-size: clamp(3rem, 6vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
}

.lede {
  color: var(--ink);
  font-size: 1.28rem;
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.95rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

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

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

.button.secondary {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.story,
.principles,
.contact {
  text-align: center;
}

.capabilities,
.examples {
  background: rgba(255, 255, 255, 0.32);
  border-top: 1px solid rgba(24, 23, 21, 0.05);
  border-bottom: 1px solid rgba(24, 23, 21, 0.05);
}

.grid {
  display: grid;
  gap: 1.3rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.card,
.example-card {
  background: rgba(255, 253, 248, 0.85);
  border: 1px solid rgba(24, 23, 21, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.6rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
}

.section-side {
  max-width: 26rem;
}

.example-grid {
  align-items: stretch;
}

.example-card {
  overflow: hidden;
}

.example-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(24, 23, 21, 0.08);
  background: #f3eee5;
}

.example-copy {
  padding: 1.6rem;
}

.more-link-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-deep);
  text-decoration: none;
  font-weight: 600;
  transition: transform 120ms ease, opacity 120ms ease;
}

.contact {
  padding-bottom: 7rem;
}

.hero-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(560px, 1.18fr);
  gap: 1.6rem;
  align-items: center;
}

.hero-copy-pane {
  min-width: 0;
  max-width: 27rem;
}

.hero-logo-pane {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.site-logo {
  display: block;
  width: min(280px, 52vw);
  height: auto;
  margin: 0 0 1rem 0;
}

.split-logo {
  width: min(980px, 132%);
  margin: 0;
  object-fit: cover;
  object-position: center;
  clip-path: inset(5% 4% 5% 4%);
}

@media (max-width: 940px) {
  .section-head,
  .grid.three {
    grid-template-columns: 1fr;
    display: grid;
  }

  .section-head {
    align-items: start;
  }

  .hero-split-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(300px, 1.12fr);
    gap: 0.85rem;
    align-items: center;
  }

  .hero-copy-pane {
    max-width: none;
  }

  .hero-logo-pane {
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0 -0.35rem 0 0;
  }

  .split-logo {
    width: min(700px, 132%);
    clip-path: inset(6% 4% 6% 4%);
  }
}

@media (max-width: 640px) {
  .hero,
  .section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: 2.9rem;
  }

  .hero-split-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hero-logo-pane {
    order: -1;
    justify-content: center;
    align-items: center;
    margin: 0;
    overflow: hidden;
  }

  .hero-copy-pane {
    max-width: none;
  }

  .hero-copy-pane h1 {
    font-size: clamp(2.15rem, 8.4vw, 3rem);
  }

  .split-logo {
    width: min(640px, 96vw);
    clip-path: inset(4% 3% 4% 3%);
  }
}
