:root {
  --bg: #F5F3EE;
  --text: #1E1B18;
  --accent: #B3202F;
  --surface: #2B2723;
  --support: #A8905E;
  --pad: 6.25%;
  --serif: "Zilla Slab", Rockwell, "Courier New", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}

p { margin: 0 0 12px; max-width: 62ch; }
h1, h2 { font-family: var(--serif); font-weight: 700; margin: 0; line-height: 1.1; }
a { color: inherit; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.soil a:focus-visible, .soil button:focus-visible, .soil input:focus-visible,
.callbar:focus-visible { outline-color: var(--bg); }
.ribbon a:focus-visible { outline-color: var(--text); }
.form input:focus-visible { outline-color: var(--accent); }

/* banner */
.banner {
  margin: 0;
  max-width: none;
  padding: 9px var(--pad);
  font-size: 15px;
  line-height: 1.4;
  background: var(--bg);
  color: var(--text);
}

/* red ribbon */
.ribbon {
  background: var(--accent);
  color: var(--bg);
  text-align: center;
}
.ribbon-call {
  display: block;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: .01em;
}

/* hero: cross-section of a yard */
.hero {
  position: relative;
  aspect-ratio: 1440 / 800;
  overflow: hidden;
}
.scene { position: absolute; inset: 0; }
.scene svg { display: block; width: 100%; height: 100%; }

.hero-text {
  position: absolute;
  left: var(--pad);
  top: 6%;
  width: 52%;
}
.hero h1 {
  font-size: clamp(40px, 4.5vw, 80px);
  letter-spacing: -.01em;
}
.lede {
  margin: 22px 0 26px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.25;
  max-width: 24ch;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin: 0; }

.brand {
  position: absolute;
  right: var(--pad);
  top: 6%;
  margin: 0;
  text-align: right;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.15;
  padding-right: 16px;
  border-right: 6px solid var(--accent);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  padding: 16px 28px;
  border: 0;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}
.quiet { font-size: 18px; font-weight: 700; text-underline-offset: 4px; }

/* soil sections */
.soil { background: var(--surface); color: var(--bg); }

.wheel-sec {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
  padding: 64px var(--pad) 72px;
}
.wheel svg { display: block; width: 100%; height: auto; }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 48s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.facts h2 { font-size: 60px; margin-bottom: 18px; }
.where { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.2; }
.facts p { margin-bottom: 16px; }
.phone {
  display: inline-block;
  padding: 8px 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.1;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.window {
  position: relative;
  margin: 40px 0 0;
  min-height: 200px;
  max-width: 560px;
  border: 2px solid var(--support);
  background: color-mix(in srgb, var(--bg) 7%, var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
}
.crest { position: absolute; left: -2px; right: -2px; top: -18px; width: calc(100% + 4px); height: 18px; }
.window::before, .window::after {
  content: "";
  position: absolute;
  bottom: -20px;
  width: 12px;
  height: 44px;
  background: var(--support);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}
.window::before { left: 18px; }
.window::after { right: 18px; }
.window figcaption {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  color: var(--bg);
}

/* quote */
.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 64px;
  align-items: center;
  padding: 56px var(--pad) 72px;
  border-top: 3px dashed var(--support);
}
.quote h2 { font-size: 52px; margin-bottom: 16px; }
.quote .phone { font-size: 30px; }

.form {
  background: var(--bg);
  color: var(--text);
  padding: 28px 32px 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 20px;
  border-radius: 3px;
}
.demo-tag {
  grid-column: 1 / -1;
  justify-self: start;
  margin: 0;
  padding: 2px 12px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: 17px; }
.field input {
  width: 100%;
  font: inherit;
  font-size: 18px;
  padding: 12px 12px;
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--text);
  border-radius: 3px;
}
.form .btn { grid-column: 1 / -1; justify-self: start; }

/* footer: water table */
.foot { padding: 0; }
.water { display: block; width: 100%; height: 28px; }
.foot-in {
  padding: 36px var(--pad) 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 56px;
  align-items: baseline;
}
.foot-in p { margin: 0; font-size: 17px; }
.foot-in a { display: inline-block; padding: 8px 0; }
.foot-name { font-family: var(--serif); font-weight: 700; font-size: 24px !important; }

.callbar { display: none; }

/* phone */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .ribbon-call { font-size: 20px; padding: 10px 14px; }

  .hero { aspect-ratio: auto; overflow: visible; display: flex; flex-direction: column; }
  .brand { order: 1; position: static; align-self: flex-start; margin: 28px 20px 0; text-align: left; border-right: 0; border-left: 6px solid var(--accent); padding: 0 0 0 12px; font-size: 24px; }
  .hero-text { order: 2; position: static; width: auto; padding: 18px 20px 24px; }
  .hero h1 { font-size: 40px; }
  .lede { font-size: 22px; margin: 16px 0 22px; }
  .scene { order: 3; position: relative; inset: auto; height: 362px; overflow: hidden; }
  .scene svg { width: 900px; height: 500px; max-width: none; margin-left: -467px; margin-top: -137px; }
  .actions .btn { display: none; }
  .quiet { display: inline-block; font-size: 19px; text-decoration: none; padding: 13px 22px; border: 2px solid var(--text); border-radius: 3px; }

  .wheel-sec { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 44px 20px 52px; }
  .facts h2 { font-size: 44px; }
  .where { font-size: 24px; }
  .phone { font-size: 34px; }
  .window { margin-top: 36px; }

  .quote { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 40px 20px 52px; }
  .quote h2 { font-size: 40px; }
  .quote .phone { font-size: 26px; }
  .form { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 24px; }
  .form .btn { justify-self: stretch; text-align: center; }

  .foot-in { padding: 30px 20px 104px; flex-direction: column; gap: 0; }

  .callbar {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 64px;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    font-size: 22px;
    text-decoration: none;
    z-index: 10;
  }
}

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