:root {
  --bg: #f5efe5;
  --bg-deep: #efe5d5;
  --paper: rgba(255, 252, 246, 0.84);
  --paper-strong: rgba(255, 249, 240, 0.96);
  --line: rgba(87, 72, 54, 0.12);
  --line-strong: rgba(87, 72, 54, 0.26);
  --text: #231b15;
  --muted: #675a4f;
  --accent: #936b35;
  --accent-strong: #6b4c21;
  --accent-soft: #e8d7be;
  --highlight: #c47d45;
  --shadow: 0 28px 80px rgba(64, 39, 19, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(196, 125, 69, 0.12), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(147, 107, 53, 0.1), transparent 20%),
    linear-gradient(180deg, var(--bg) 0%, #f8f4ec 35%, var(--bg-deep) 100%);
}

a { color: inherit; }
code,
.eyebrow,
.section-kicker,
.panel-label,
.mini-label,
.card-tag,
.case-type,
.topbar,
.workflow-steps span {
  font-family: "IBM Plex Mono", monospace;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(147, 107, 53, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 107, 53, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 82%);
  opacity: 0.38;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 24px 0 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.topbar div,
.topbar p {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  flex-wrap: wrap;
}

.topbar strong { color: var(--accent-strong); }

.hero-card,
.outcome-card,
.engagement-card,
.workflow-panel,
.case-card,
.cta-band,
.hero-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.18));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(140deg, rgba(255, 251, 244, 0.95), rgba(247, 237, 220, 0.84));
}

.hero-copy,
.hero-panel,
.workflow-panel,
.cta-band {
  position: relative;
  overflow: hidden;
}

.hero-copy::before,
.hero-panel::before,
.workflow-panel::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(196, 125, 69, 0.08), transparent 45%, rgba(147, 107, 53, 0.05));
  pointer-events: none;
}

.eyebrow,
.section-kicker,
.panel-label,
.mini-label,
.card-tag,
.case-type {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker,
.panel-label,
.card-tag,
.case-type { font-size: 0.78rem; }
.mini-label { font-size: 0.72rem; }

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h1 {
  margin-top: 14px;
  max-width: 12ch;
  font-size: clamp(3.1rem, 8vw, 6.1rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 13ch;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.08;
}

.lede,
.body-copy p,
.outcome-card p,
.engagement-card p,
.workflow-steps p,
.workflow-panel p,
.case-card p,
.case-card dd,
.cta-stack p,
.panel-note,
.outcome-list p,
.topbar a {
  color: var(--muted);
}

.lede {
  max-width: 62ch;
  margin: 18px 0 0;
  font-size: 1.06rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent-strong);
  outline: none;
}

.button.primary {
  background: linear-gradient(90deg, var(--highlight), #d69a60);
  color: #fff8f0;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.44);
}

.proof-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
}

.proof-strip li {
  padding: 14px;
  border: 1px solid rgba(87, 72, 54, 0.08);
  background: rgba(255, 255, 255, 0.5);
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.hero-panel {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 249, 240, 0.94), rgba(249, 239, 223, 0.86));
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head span {
  color: var(--muted);
  font-size: 0.88rem;
}

.outcome-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.outcome-list article {
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(87, 72, 54, 0.08);
}

.outcome-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.outcome-list h2 {
  max-width: none;
  font-size: 1.45rem;
}

.panel-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section {
  padding: 40px 0;
}

.intro-grid,
.engagement-grid,
.workflow-layout,
.case-grid,
.outcomes-grid {
  display: grid;
  gap: 20px;
}

.intro-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
}

.stack { display: grid; gap: 16px; }

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.section-heading.narrow h2,
.section-heading.narrow p {
  max-width: 14ch;
}

.outcomes-grid,
.case-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.outcome-card,
.engagement-card,
.case-card {
  padding: 24px;
}

.outcome-card h3,
.engagement-card h3,
.case-card h3 {
  margin: 10px 0 12px;
}

.accent-card {
  background: linear-gradient(180deg, rgba(196, 125, 69, 0.12), rgba(255, 255, 255, 0.28));
}

.accent-soft {
  background: linear-gradient(180deg, rgba(232, 215, 190, 0.7), rgba(255, 255, 255, 0.26));
}

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

.engagement-card {
  background: var(--paper);
}

.engagement-card.featured {
  background: linear-gradient(180deg, rgba(255, 247, 235, 0.96), rgba(246, 230, 204, 0.78));
}

.engagement-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.workflow-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: start;
}

.workflow-steps {
  display: grid;
  gap: 14px;
}

.workflow-steps article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.workflow-steps article:first-child { border-top: 0; padding-top: 0; }

.workflow-steps span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(147, 107, 53, 0.1);
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.workflow-panel {
  padding: 24px;
  background: var(--paper-strong);
}

.command-box {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(87, 72, 54, 0.1);
  background: rgba(255, 255, 255, 0.56);
}

.command-box code {
  color: var(--accent-strong);
  font-size: 0.95rem;
}

.case-card dl {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.case-card dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(87, 72, 54, 0.08);
}

.case-card dt {
  color: var(--accent-strong);
  font-weight: 700;
}

.case-card dd {
  margin: 0;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 24px;
  padding: 28px;
  margin-bottom: 72px;
  background: linear-gradient(135deg, rgba(255, 249, 240, 0.96), rgba(239, 229, 213, 0.9));
}

.cta-stack {
  display: grid;
  align-content: center;
}

@media (max-width: 1040px) {
  .hero-card,
  .intro-grid,
  .engagement-grid,
  .workflow-layout,
  .cta-band,
  .outcomes-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  h2,
  .section-heading.narrow h2,
  .section-heading.narrow p {
    max-width: none;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

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

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

  .hero-card,
  .outcome-card,
  .engagement-card,
  .workflow-panel,
  .case-card,
  .cta-band,
  .hero-panel {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4.4rem);
  }

  h2 {
    font-size: clamp(1.75rem, 10vw, 2.5rem);
  }

  .proof-strip,
  .outcomes-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .workflow-steps article,
  .case-card dl div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cta-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
