:root {
  --charcoal: #241f1c;
  --charcoal-soft: #3c3632;
  --sand: #f3ecdf;
  --sand-deep: #e6d9c4;
  --paper: #faf6ef;
  --line: #d9cdb8;
  --mortar: #e4d6c2;
  --stone-1: #d7cbb6;
  --stone-2: #c4b49e;
  --stone-3: #a89882;
  --stone-4: #8a7e70;
  --stone-5: #6e675f;
  --muted: #4a453f;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--charcoal);
  background-color: var(--sand);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 14rem);
}

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

address {
  font-style: normal;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 3px;
}

.site-header :focus-visible,
.contact :focus-visible {
  outline-color: var(--sand);
}

.skip {
  position: fixed;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 40;
  padding: 0.6rem 0.9rem;
  background: var(--sand);
  color: var(--charcoal);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

section,
h2 {
  scroll-margin-top: 5.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--charcoal);
  color: var(--sand);
  border-bottom: 1px solid #3a342f;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  flex-shrink: 0;
  color: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

nav {
  flex-shrink: 0;
}

nav ul {
  display: flex;
  gap: 0.25rem 1.1rem;
  padding: 0;
  list-style: none;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--sand);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.button:hover {
  background: var(--charcoal-soft);
  border-color: var(--charcoal-soft);
}

.button-light {
  background: var(--sand);
  color: var(--charcoal);
  border-color: var(--sand);
}

.button-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--charcoal);
}

.header-call {
  display: none;
  min-height: 44px;
  padding: 0.4rem 0.9rem;
}

.hero {
  padding: 2.75rem 0 3.25rem;
}

.hero-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 0.9rem;
  font-size: clamp(3.4rem, 12vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.line {
  display: block;
}

.tagline {
  max-width: 22em;
  margin-bottom: 1.6rem;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.45;
}

.cta-note {
  max-width: 28em;
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.reach .cta-note {
  margin: 0;
}

.wall {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 8px;
  background: var(--mortar);
  border: 1px solid #cfc1ab;
  box-shadow: 0 16px 36px rgba(36, 31, 28, 0.1);
}

.course {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 5px;
  height: 2.15rem;
}

.b {
  display: block;
  min-height: 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -7px 10px rgba(36, 31, 28, 0.06);
}

.w2 { grid-column: span 2; }
.w3 { grid-column: span 3; }
.w4 { grid-column: span 4; }
.w5 { grid-column: span 5; }
.w6 { grid-column: span 6; }

.s1 { background: var(--stone-1); }
.s2 { background: var(--stone-2); }
.s3 { background: var(--stone-3); }
.s4 { background: var(--stone-4); }
.s5 { background: var(--stone-5); }

.services {
  padding-bottom: 4.25rem;
}

.services .wrap {
  border-top: 1px solid var(--line);
  padding-top: 2.75rem;
}

h2 {
  margin-bottom: 1.35rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.cards {
  display: grid;
  gap: 0.875rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
}

.card:hover {
  border-color: #b7aa96;
}

.swatch {
  display: grid;
  gap: 4px;
  height: 22px;
  background: var(--mortar);
}

.swatch span {
  display: block;
  min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.card:nth-child(1) .swatch { grid-template-columns: 1.5fr 0.7fr 1.15fr 0.85fr; }
.card:nth-child(1) .swatch span:nth-child(1) { background: #d7cbb6; }
.card:nth-child(1) .swatch span:nth-child(2) { background: #6e675f; }
.card:nth-child(1) .swatch span:nth-child(3) { background: #b7a892; }
.card:nth-child(1) .swatch span:nth-child(4) { background: #8a7e70; }

.card:nth-child(2) .swatch { grid-template-columns: 0.7fr 1.35fr 0.85fr 1.05fr; }
.card:nth-child(2) .swatch span:nth-child(1) { background: #8a7e70; }
.card:nth-child(2) .swatch span:nth-child(2) { background: #d7cbb6; }
.card:nth-child(2) .swatch span:nth-child(3) { background: #5c564e; }
.card:nth-child(2) .swatch span:nth-child(4) { background: #c4b49e; }

.card:nth-child(3) .swatch { grid-template-columns: 3.2fr 0.65fr 0.7fr 0.5fr; }
.card:nth-child(3) .swatch span:nth-child(1) { background: #c4b49e; }
.card:nth-child(3) .swatch span:nth-child(2) { background: #6e675f; }
.card:nth-child(3) .swatch span:nth-child(3) { background: #a89882; }
.card:nth-child(3) .swatch span:nth-child(4) { background: #d7cbb6; }

.card:nth-child(4) .swatch { grid-template-columns: 0.8fr 0.7fr 1.35fr 1.15fr; }
.card:nth-child(4) .swatch span:nth-child(1) { background: #5c564e; }
.card:nth-child(4) .swatch span:nth-child(2) { background: #8a7e70; }
.card:nth-child(4) .swatch span:nth-child(3) { background: #d7cbb6; }
.card:nth-child(4) .swatch span:nth-child(4) { background: #b7a892; }

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.1rem 1.1rem 1.3rem;
}

.num {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.card h3 {
  margin: 0.4rem 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.card p:last-child {
  font-size: 1rem;
  line-height: 1.5;
}

.contact {
  background: var(--charcoal);
  color: var(--sand);
  padding: 3.5rem 0 3.75rem;
}

.contact h2 {
  margin-bottom: 0.75rem;
}

.contact-layout {
  display: grid;
  gap: 1.6rem;
}

.person {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.place {
  margin-top: 0.3rem;
  font-size: 1.05rem;
}

.reach {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
}

.phone {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.phone a,
.email a,
.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.email {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: var(--sand);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-inner a {
  overflow-wrap: anywhere;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 800px) {
  .wrap {
    width: min(1120px, calc(100% - 3rem));
  }

  .header-call {
    display: inline-flex;
  }

  nav {
    margin-left: auto;
  }

  .contact-layout {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 2rem 3rem;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem 1.5rem;
  }
}

@media (min-width: 880px) {
  .hero {
    padding: 4.5rem 0 5rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
    gap: 4rem;
  }

  h1 {
    font-size: clamp(4.5rem, 6.2vw, 6rem);
  }

  .tagline {
    font-size: 1.35rem;
  }

  .course {
    height: 2.55rem;
  }

  .wall {
    justify-self: end;
    max-width: 520px;
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

::selection {
  background: var(--charcoal);
  color: var(--sand);
}
