/* =========================================================
   Andy's Auto Shop - Global stylesheet
   Theme colors come ONLY from theme.js via CSS custom properties:
   --background --surface --text --muted --primary --accent --border
   ========================================================= */

:root {
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.25, 0.8, 0.25, 1);
  --section-y: 56px;
  --gutter: 20px;
  --header-h: 80px;
  --bar-h: 64px;
  --scrim-strong: color-mix(in srgb, var(--accent) 88%, transparent);
  --scrim-soft: color-mix(in srgb, var(--accent) 50%, transparent);
  --on-dark-muted: color-mix(in srgb, var(--background) 82%, transparent);
}

@media (min-width: 640px) {
  :root { --gutter: 24px; }
}

@media (min-width: 1024px) {
  :root { --section-y: 96px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-bottom: var(--bar-h);
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; font-size: 17px; }
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

h3 { font-weight: 600; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

ul { list-style: none; }

address { font-style: normal; }

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

.on-red :focus-visible,
.section--dark :focus-visible,
.band :focus-visible,
.mobile-bar :focus-visible { outline-color: var(--background); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 2000;
  background: var(--accent);
  color: var(--background);
  padding: 12px 20px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-y) 0; }
.section--surface { background: var(--surface); }
.section--dark { background: var(--accent); color: var(--background); }

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.on-red .eyebrow { color: var(--background); }

.section-head { margin-bottom: 40px; max-width: 760px; }
.section-head h2 { font-size: clamp(36px, 5.5vw, 56px); }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.section--dark .section-head p { color: var(--on-dark-muted); }

@media (min-width: 1024px) {
  .section-head { margin-bottom: 64px; }
}

.text-link {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.text-link:hover { color: var(--primary); }
.section--dark .text-link:hover { color: var(--background); border-color: var(--background); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn--sm { min-height: 44px; padding: 10px 22px; font-size: 14px; }

.btn--black { background: var(--accent); color: var(--background); border-color: var(--accent); }
.btn--black:hover { background: var(--background); color: var(--accent); }

.btn--red { background: var(--primary); color: var(--background); border-color: var(--primary); }
.btn--red:hover { background: var(--background); color: var(--primary); }

.btn--outline { background: transparent; color: var(--background); border-color: var(--background); }
.btn--outline:hover { background: var(--background); color: var(--primary); }

.btn-row { display: flex; flex-direction: column; gap: 14px; }
.btn-row .btn { width: 100%; }

@media (min-width: 640px) {
  .btn-row { flex-direction: row; flex-wrap: wrap; gap: 16px; }
  .btn-row .btn { width: auto; }
}

.center { text-align: center; }
.mt-xl { margin-top: 48px; }
@media (min-width: 1024px) { .mt-xl { margin-top: 64px; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--background);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  white-space: nowrap;
}
@media (min-width: 640px) { .logo { font-size: 26px; } }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--accent);
  border: 0;
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--background);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--background);
  border-bottom: 4px solid var(--primary);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0s;
}

.site-nav__list { display: flex; flex-direction: column; padding: 8px var(--gutter) 0; }

.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] { color: var(--primary); }

.site-nav__cta { display: flex; margin: 20px var(--gutter) 24px; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 40px;
    max-height: none;
    overflow: visible;
    background: transparent;
    border: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: none;
  }
  .site-nav__list { flex-direction: row; gap: 36px; padding: 0; }
  .site-nav__link {
    min-height: 44px;
    font-size: 15px;
    letter-spacing: 0.1em;
    border-bottom: 3px solid transparent;
    padding-top: 3px;
  }
  .site-nav__link[aria-current="page"] { border-bottom-color: var(--primary); }
  .site-nav__cta { display: inline-flex; margin: 0; }
}

/* ---------- Image placeholders ---------- */
.img-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 16px;
  overflow: hidden;
  text-align: center;
  background: var(--surface);
  border: 2px dashed var(--muted);
  color: var(--text);
}
.placeholder-id {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
}
.placeholder-desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.img-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Photo frames: fixed overflow-hidden window, image scales on hover */
.photo-frame { position: relative; overflow: hidden; }
.photo-frame > .img-placeholder { height: 100%; transition: scale 0.6s var(--ease); }
.photo-frame:hover > .img-placeholder { scale: 1.03; }

.parallax-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: -40px;
  bottom: -40px;
  height: auto !important;
  will-change: transform;
}
.hero__photo > .parallax-layer { aspect-ratio: auto !important; }

/* ---------- Hero (red field) ---------- */
.hero {
  background: var(--primary);
  color: var(--background);
  padding: var(--section-y) 0;
  overflow: hidden;
}
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__title {
  font-size: clamp(48px, 8vw, 84px);
  line-height: 0.9;
  margin-bottom: 24px;
}
.hero__lead {
  font-size: 18px;
  max-width: 500px;
  margin-bottom: 36px;
}
.hero__photo {
  height: 320px;
  border: 8px solid var(--background);
}
@media (min-width: 640px) { .hero__photo { height: 420px; } }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .hero__photo { height: 500px; }
  .hero__lead { font-size: 19px; }
}

/* Full-bleed right image that fades into the title (home hero) */
.hero--bleed { position: relative; }
.hero--bleed .hero__content { position: relative; z-index: 1; }
.hero--bleed .hero__photo {
  border: 0;
  margin: 0 calc(-1 * var(--gutter)) calc(-1 * var(--section-y));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
}
@media (min-width: 1024px) {
  .hero--bleed { min-height: 600px; display: flex; align-items: center; }
  .hero--bleed .hero__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 58%;
    height: auto;
    margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%);
    mask-image: linear-gradient(to right, transparent 0%, #000 40%);
  }
}

.hero--compact .hero__title { margin-bottom: 16px; }
.hero__address {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(30px, 5.5vw, 60px);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.card {
  background: var(--surface);
  border-left: 4px solid var(--primary);
  padding: 28px 24px;
  transition: transform 0.3s var(--ease), border-left-width 0.3s var(--ease), opacity 0.55s var(--ease) var(--d, 0ms), translate 0.55s var(--ease) var(--d, 0ms);
}
.card:hover { transform: translateY(-3px); border-left-width: 10px; }
.card h3 { font-size: 26px; margin-bottom: 14px; }
.card p { color: var(--text); }
.card p + p { margin-top: 8px; }
.card a:not(.btn) { border-bottom: 2px solid var(--primary); font-weight: 600; word-break: break-word; }
@media (min-width: 640px) { .card { padding: 40px; } }

/* ---------- Photo band (image background + scrim) ---------- */
.band {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 420px;
  color: var(--background);
  background: var(--accent);
}
.band__media { position: absolute; inset: 0; }
.band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--scrim-strong) 0%, var(--scrim-soft) 100%);
}
.band__content { position: relative; z-index: 1; padding-top: var(--section-y); padding-bottom: var(--section-y); }
.band__title { font-size: clamp(40px, 7.5vw, 96px); line-height: 0.9; max-width: 13ch; }
.band__text { margin-top: 20px; font-size: 18px; max-width: 520px; color: var(--on-dark-muted); }
.band--hero { min-height: 440px; align-items: flex-end; }
.band--hero .band__title { font-size: clamp(56px, 11vw, 128px); margin-bottom: 16px; }
.band--hero .band__text { margin: 0 0 32px; color: var(--background); }
@media (min-width: 1024px) {
  .band { min-height: 560px; }
  .band--hero { min-height: 520px; }
}

/* ---------- Dark feature row ---------- */
.section--dark h2 { color: var(--background); }
.feature-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 64px; } }
.feature { border-top: 2px solid var(--primary); padding-top: 24px; }
.feature__num {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--on-dark-muted);
  margin-bottom: 12px;
}
.feature h3 { color: var(--primary); font-size: 26px; margin-bottom: 14px; }
.feature p { color: var(--on-dark-muted); }

/* ---------- Split: photo + copy ---------- */
.split { display: grid; gap: 36px; align-items: center; }
.split__photo { aspect-ratio: 4 / 3; }
.split__copy h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 20px; }
.split__copy p { font-size: 18px; margin-bottom: 18px; max-width: 560px; }
.split__copy .btn-row, .split__copy .text-link { margin-top: 12px; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1.1fr 1fr; gap: 80px; }
  .split--reverse .split__photo { order: 2; }
  .split--reverse { grid-template-columns: 1fr 1.1fr; }
}

/* ---------- Directions strip ---------- */
.strip { background: var(--surface); border-top: 6px solid var(--primary); padding: var(--section-y) 0; }
.strip__inner { display: flex; flex-direction: column; gap: 28px; }
.strip__address { font-size: clamp(36px, 6.5vw, 76px); line-height: 0.92; }
@media (min-width: 1024px) {
  .strip__inner { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

/* ---------- Services rows ---------- */
.service-list { padding: 24px 0; }
.service-row {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: 0; }
.service-row__media { aspect-ratio: 4 / 3; }
.service-row__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 10px;
}
.service-row h2 { font-size: clamp(32px, 4.5vw, 52px); margin-bottom: 18px; }
.service-row p { font-size: 18px; margin-bottom: 22px; max-width: 560px; }
.check-list { display: grid; gap: 10px; border-left: 4px solid var(--primary); padding-left: 20px; }
.check-list li { position: relative; padding-left: 22px; font-weight: 500; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 15px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='16' viewBox='0 0 40 16'%3E%3Cpath fill='%23151210' d='M0 2 C6 1 9 4 12 8 C13 5 15 3 17 3 C17 1 18 0 20 0 C22 0 23 1 23 3 C25 3 27 5 28 8 C31 4 34 1 40 2 C36 5 35 9 36 14 C32 10 28 10 25 13 C23 10 21 9 20 9 C19 9 17 10 15 13 C12 10 8 10 4 14 C5 9 4 5 0 2 Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
@media (min-width: 1024px) {
  .service-row { grid-template-columns: 1fr 1fr; gap: 72px; padding: 64px 0; }
  .service-row--flip .service-row__media { order: 2; }
}

/* ---------- Closing dark CTA ---------- */
.cta-split { display: grid; gap: 28px; }
.cta-split h2 { font-size: clamp(38px, 6vw, 68px); }
.cta-split p { font-size: 18px; color: var(--on-dark-muted); margin-bottom: 28px; max-width: 520px; }
.cta-split__note { margin-top: 28px; color: var(--on-dark-muted); }
@media (min-width: 1024px) { .cta-split { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; } }
.cta-split .cta-split__title--top { align-self: start; }

/* ---------- About split hero ---------- */
.split-hero { display: grid; background: var(--primary); color: var(--background); }
.split-hero__content { padding: var(--section-y) var(--gutter); }
.split-hero__content h1 { font-size: clamp(52px, 9vw, 104px); line-height: 0.9; margin-bottom: 24px; }
.split-hero__content p { font-size: 18px; max-width: 460px; margin-bottom: 36px; }
.split-hero__media { position: relative; min-height: 320px; overflow: hidden; }
@media (min-width: 640px) { .split-hero__media { min-height: 420px; } }
@media (min-width: 1024px) {
  .split-hero { grid-template-columns: 1fr 1fr; min-height: 600px; }
  .split-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
    padding-right: 64px;
  }
  .split-hero__media { min-height: 100%; }
}

/* ---------- Closing info block (about) ---------- */
.info-block { display: grid; gap: 32px; }
.info-block h2 { font-size: clamp(36px, 5.5vw, 60px); }
.info-lines { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: 0.03em; display: grid; gap: 4px; margin-bottom: 28px; }
.info-lines a { text-transform: none; border-bottom: 2px solid var(--primary); justify-self: start; word-break: break-word; }
@media (min-width: 1024px) { .info-block { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; } }

/* ---------- Map ---------- */
#map { scroll-margin-top: calc(var(--header-h) + 16px); }
.map-frame { border: 8px solid var(--accent); height: 320px; background: var(--surface); }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.map-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.map-meta p { color: var(--muted); }
@media (min-width: 1024px) { .map-frame { height: 480px; } }

.contact-grid { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; } }

/* ---------- 404 ---------- */
.notfound {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  background: var(--primary);
  color: var(--background);
  padding: var(--section-y) 0;
}
.notfound h1 { font-size: clamp(52px, 10vw, 120px); line-height: 0.9; margin-bottom: 24px; max-width: 10ch; }
.notfound p { font-size: 18px; margin-bottom: 36px; max-width: 480px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary);
  color: var(--background);
  text-align: center;
  padding: var(--section-y) 0;
  border-top: 8px solid var(--accent);
}
.site-footer__title { font-size: clamp(34px, 6vw, 64px); line-height: 0.95; max-width: 16ch; margin: 0 auto 36px; }
.site-footer__contact {
  margin-top: 40px;
  display: grid;
  gap: 6px;
  justify-items: center;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.03em;
}
.site-footer__contact a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; word-break: break-word; }
.site-footer__contact a:hover { border-bottom-color: var(--background); }
.site-footer__contact span { text-transform: uppercase; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 32px; }
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.footer-nav a:hover { border-bottom-color: var(--background); }
.site-footer__legal { margin-top: 24px; font-size: 14px; color: var(--on-dark-muted); }

/* ---------- Sticky mobile action bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  display: flex;
  height: var(--bar-h);
}
.mobile-bar a {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--background);
  text-align: center;
}
.mobile-bar__email { background: var(--accent); }
.mobile-bar__directions { background: var(--primary); }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  translate: -32px 0;
  transition: opacity 0.55s var(--ease) var(--d, 0ms), translate 0.55s var(--ease) var(--d, 0ms);
}
.js .reveal[data-reveal="up"] { translate: 0 32px; }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@media (min-width: 1280px) {
  .hero__title { letter-spacing: 0.01em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; translate: none; }
  .parallax-layer { transform: none !important; }
  .photo-frame:hover > .img-placeholder { scale: 1; }
  .card:hover { transform: none; }
}

/* ---------- Seasonal decorations: pumpkins + bats ----------
   Decorative only (CSS pseudo-elements, no markup changes).
   Pumpkins lay along the bottom of prominent sections (hero uses black silhouettes),
   bats fly off the top-right corner of alternate sections (no consecutive bats). */
.hero, .split-hero, .strip, .notfound, .section, .band { position: relative; }

/* Hero pumpkins: black silhouettes */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  z-index: 2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='64' viewBox='0 0 240 64'%3E%3Cg fill='%23151210'%3E%3Cellipse cx='40' cy='46' rx='22' ry='18'/%3E%3Cellipse cx='28' cy='46' rx='8' ry='17'/%3E%3Cellipse cx='52' cy='46' rx='8' ry='17'/%3E%3Cellipse cx='40' cy='46' rx='9' ry='18'/%3E%3Cellipse cx='120' cy='52' rx='14' ry='12'/%3E%3Cellipse cx='113' cy='52' rx='5' ry='11'/%3E%3Cellipse cx='127' cy='52' rx='5' ry='11'/%3E%3Cellipse cx='120' cy='52' rx='6' ry='12'/%3E%3Cellipse cx='194' cy='48' rx='18' ry='16'/%3E%3Cellipse cx='185' cy='48' rx='6' ry='15'/%3E%3Cellipse cx='203' cy='48' rx='6' ry='15'/%3E%3Cellipse cx='194' cy='48' rx='7' ry='16'/%3E%3C/g%3E%3Cg fill='none' stroke='%23151210' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M40 30 q2 -9 8 -12'/%3E%3Cpath d='M120 42 q1 -6 5 -8'/%3E%3Cpath d='M194 36 q-2 -7 -8 -10'/%3E%3C/g%3E%3C/svg%3E") repeat-x left bottom;
  background-size: 165px 44px;
}

/* Other sections pumpkins: colored */
.split-hero::after,
.strip::after,
.notfound::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  z-index: 2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='64' viewBox='0 0 240 64'%3E%3Cg fill='none' stroke='%234b7a2f' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M40 30 q2 -9 8 -12'/%3E%3Cpath d='M120 42 q1 -6 5 -8'/%3E%3Cpath d='M194 36 q-2 -7 -8 -10'/%3E%3C/g%3E%3Cellipse cx='40' cy='46' rx='22' ry='18' fill='%23d9661c'/%3E%3Cellipse cx='28' cy='46' rx='8' ry='17' fill='%23bb540f'/%3E%3Cellipse cx='52' cy='46' rx='8' ry='17' fill='%23bb540f'/%3E%3Cellipse cx='40' cy='46' rx='9' ry='18' fill='%23f08a2a'/%3E%3Cellipse cx='120' cy='52' rx='14' ry='12' fill='%23d9661c'/%3E%3Cellipse cx='113' cy='52' rx='5' ry='11' fill='%23bb540f'/%3E%3Cellipse cx='127' cy='52' rx='5' ry='11' fill='%23bb540f'/%3E%3Cellipse cx='120' cy='52' rx='6' ry='12' fill='%23f08a2a'/%3E%3Cellipse cx='194' cy='48' rx='18' ry='16' fill='%23d9661c'/%3E%3Cellipse cx='185' cy='48' rx='6' ry='15' fill='%23bb540f'/%3E%3Cellipse cx='203' cy='48' rx='6' ry='15' fill='%23bb540f'/%3E%3Cellipse cx='194' cy='48' rx='7' ry='16' fill='%23f08a2a'/%3E%3C/svg%3E") repeat-x left bottom;
  background-size: 165px 44px;
}

/* Bats: only on odd sections to prevent consecutive bats. No white bats. Added margin from wall. */
.section:nth-of-type(odd)::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 32px;
  width: 120px;
  height: 74px;
  z-index: 2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='110' viewBox='0 0 180 110'%3E%3Cg fill='%23151210'%3E%3Cg transform='translate(112,10) rotate(-18)'%3E%3Cpath d='M0 2 C6 1 9 4 12 8 C13 5 15 3 17 3 C17 1 18 0 20 0 C22 0 23 1 23 3 C25 3 27 5 28 8 C31 4 34 1 40 2 C36 5 35 9 36 14 C32 10 28 10 25 13 C23 10 21 9 20 9 C19 9 17 10 15 13 C12 10 8 10 4 14 C5 9 4 5 0 2 Z'/%3E%3C/g%3E%3Cg transform='translate(58,42) rotate(-28) scale(0.72)'%3E%3Cpath d='M0 2 C6 1 9 4 12 8 C13 5 15 3 17 3 C17 1 18 0 20 0 C22 0 23 1 23 3 C25 3 27 5 28 8 C31 4 34 1 40 2 C36 5 35 9 36 14 C32 10 28 10 25 13 C23 10 21 9 20 9 C19 9 17 10 15 13 C12 10 8 10 4 14 C5 9 4 5 0 2 Z'/%3E%3C/g%3E%3Cg transform='translate(14,78) rotate(-38) scale(0.5)'%3E%3Cpath d='M0 2 C6 1 9 4 12 8 C13 5 15 3 17 3 C17 1 18 0 20 0 C22 0 23 1 23 3 C25 3 27 5 28 8 C31 4 34 1 40 2 C36 5 35 9 36 14 C32 10 28 10 25 13 C23 10 21 9 20 9 C19 9 17 10 15 13 C12 10 8 10 4 14 C5 9 4 5 0 2 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat top right;
  background-size: contain;
}

/* Band gets bats only if not following a section with bats */
.band::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 32px;
  width: 120px;
  height: 74px;
  z-index: 2;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='110' viewBox='0 0 180 110'%3E%3Cg fill='%23151210'%3E%3Cg transform='translate(112,10) rotate(-18)'%3E%3Cpath d='M0 2 C6 1 9 4 12 8 C13 5 15 3 17 3 C17 1 18 0 20 0 C22 0 23 1 23 3 C25 3 27 5 28 8 C31 4 34 1 40 2 C36 5 35 9 36 14 C32 10 28 10 25 13 C23 10 21 9 20 9 C19 9 17 10 15 13 C12 10 8 10 4 14 C5 9 4 5 0 2 Z'/%3E%3C/g%3E%3Cg transform='translate(58,42) rotate(-28) scale(0.72)'%3E%3Cpath d='M0 2 C6 1 9 4 12 8 C13 5 15 3 17 3 C17 1 18 0 20 0 C22 0 23 1 23 3 C25 3 27 5 28 8 C31 4 34 1 40 2 C36 5 35 9 36 14 C32 10 28 10 25 13 C23 10 21 9 20 9 C19 9 17 10 15 13 C12 10 8 10 4 14 C5 9 4 5 0 2 Z'/%3E%3C/g%3E%3Cg transform='translate(14,78) rotate(-38) scale(0.5)'%3E%3Cpath d='M0 2 C6 1 9 4 12 8 C13 5 15 3 17 3 C17 1 18 0 20 0 C22 0 23 1 23 3 C25 3 27 5 28 8 C31 4 34 1 40 2 C36 5 35 9 36 14 C32 10 28 10 25 13 C23 10 21 9 20 9 C19 9 17 10 15 13 C12 10 8 10 4 14 C5 9 4 5 0 2 Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat top right;
  background-size: contain;
}

/* Even sections: no bats (prevents consecutive bats) */
.section:nth-of-type(even)::after {
  content: none;
}

@media (min-width: 640px) {
  .hero::after { height: 64px; background-size: 240px 64px; }
  .split-hero::after,
  .strip::after,
  .notfound::after { height: 64px; background-size: 240px 64px; }
  .section:nth-of-type(odd)::after,
  .band::after { width: 180px; height: 110px; top: 32px; right: 48px; }
}
