:root {
  --bg: #f4efe3;
  --bg-alt: rgba(255, 252, 245, 0.72);
  --surface: rgba(255, 250, 240, 0.82);
  --surface-strong: rgba(249, 243, 227, 0.95);
  --text: #191612;
  --muted: #63594b;
  --line: rgba(47, 39, 28, 0.12);
  --accent: #8f6d1f;
  --accent-soft: rgba(143, 109, 31, 0.12);
  --shadow: 0 24px 60px rgba(49, 38, 22, 0.12);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(199, 160, 70, 0.18), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(92, 78, 41, 0.12), transparent 25%),
    linear-gradient(180deg, #fbf7ee 0%, var(--bg) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 22, 16, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 22, 16, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 78%);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hero,
.section,
.footer {
  backdrop-filter: blur(10px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(251, 244, 227, 0.82)),
    var(--surface);
  box-shadow: var(--shadow);
  animation: rise 700ms ease-out both;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -6rem -7rem auto;
  width: 15rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(143, 109, 31, 0.14);
  box-shadow:
    0 0 0 28px rgba(143, 109, 31, 0.07),
    0 0 0 56px rgba(143, 109, 31, 0.04);
}

.hero__eyebrow,
.section__label,
.practice-item__index,
.footer {
  font-family: "IBM Plex Mono", monospace;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: rgba(99, 89, 75, 0.45);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 0.9fr);
  gap: 2rem;
  align-items: end;
}

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

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.hero__summary {
  display: grid;
  gap: 1rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.6;
}

main {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.section {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-alt);
  box-shadow: 0 18px 45px rgba(49, 38, 22, 0.08);
  animation: rise 700ms ease-out both;
}

.section:nth-of-type(2) {
  animation-delay: 90ms;
}

.section:nth-of-type(3) {
  animation-delay: 180ms;
}

.section__heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.section__label {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

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

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

.card {
  display: grid;
  gap: 0.75rem;
  min-height: 13rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 240, 224, 0.84));
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 109, 31, 0.3);
  box-shadow: 0 16px 30px rgba(143, 109, 31, 0.08);
}

.card p,
.practice-item p,
.approach-copy,
.footer p {
  color: var(--muted);
  line-height: 1.6;
}

.practice-list {
  display: grid;
  gap: 1rem;
}

.practice-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.practice-item__index {
  color: var(--accent);
  font-size: 0.84rem;
  letter-spacing: 0.1em;
  padding-top: 0.2rem;
}

.practice-item div {
  display: grid;
  gap: 0.45rem;
}

.section--narrow {
  background:
    linear-gradient(180deg, rgba(255, 248, 232, 0.88), rgba(252, 249, 241, 0.92));
}

.approach-copy {
  max-width: 64ch;
  font-size: 1.08rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0 0.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero__grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .hero,
  .section {
    padding: 1.3rem;
    border-radius: 20px;
  }

  .hero::after {
    width: 10rem;
    inset: auto -3rem -3rem auto;
    box-shadow:
      0 0 0 18px rgba(143, 109, 31, 0.07),
      0 0 0 36px rgba(143, 109, 31, 0.04);
  }

  h1 {
    max-width: 11ch;
  }

  .practice-item {
    grid-template-columns: 1fr;
  }
}
