/* UI kit styles — Raphael's Landscapes redesign.
   Forked from design-system/ui_kits/website/styles.css at U2 (2026-08-07).
   Site-fork additions live in the "SITE FORK ADDITIONS" block at the bottom. */

* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; }

/* Re-export tokens onto the kit scope just in case parent didn't import */
.kit { background: var(--bg-page); color: var(--fg-2); font-family: var(--font-body); }

/* ========== HEADER ========== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(243, 250, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border-1);
}
.site-header__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  gap: 24px;
}
.site-header__brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--rl-cream);
}
.site-header__logo {
  height: 44px; width: auto; display: block;
  filter: brightness(0) invert(1);
  transition: filter var(--dur-med) var(--ease-out);
}
.site-header.is-scrolled .site-header__logo {
  filter: none;
}
.site-header__nav { display: flex; gap: 28px; }
.site-header__link {
  color: var(--rl-cream); text-decoration: none; font-weight: 600; font-size: 14px;
  position: relative; padding: 8px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.site-header__link:hover { color: var(--rl-yellow); }
.site-header.is-scrolled .site-header__link { color: var(--fg-1); }
.site-header.is-scrolled .site-header__link:hover { color: var(--rl-yellow-deep); }
.site-header__link.is-active::after {
  content: ''; position: absolute; bottom: 2px; left: 0; right: 0; height: 2px;
  background: var(--rl-yellow);
}
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.site-header__phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--rl-cream);
}
.site-header.is-scrolled .site-header__phone { color: var(--fg-1); }

/* ========== HERO ========== */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center; overflow: hidden;
  color: var(--rl-cream);
  background: var(--rl-green-deep);
}
/* Intentional no-photo hero: warm-sun glow over deep evergreen (the brand's
   own palette story) + sage ground glow. Photo slides layer on top when the
   photo host is alive again (Hero.jsx probes and re-enables the slideshow). */
.hero__slides {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 85% 12%, rgba(235,211,91,.16) 0%, transparent 55%),
    radial-gradient(ellipse 75% 60% at 8% 90%, rgba(138,160,122,.22) 0%, transparent 60%),
    linear-gradient(160deg, #1d3a38 0%, var(--rl-green-deep) 45%, #102422 100%);
}
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1200ms var(--ease-in-out);
}
.hero__slide.is-active {
  opacity: 1;
  animation: hero-zoom 8s linear forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero__inner {
  position: relative; max-width: 1240px; margin: 0 auto;
  padding: 160px 32px 100px;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  color: var(--rl-yellow);
  background: rgba(24, 48, 48, 0.4);
  padding: 6px 14px; border-radius: 9999px;
  border: 1px solid rgba(235, 211, 91, 0.4);
  margin-bottom: 28px;
}
.hero__eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--rl-yellow);
  box-shadow: 0 0 0 4px rgba(235,211,91,.3);
}
.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 6vw, 88px); line-height: 1.02;
  letter-spacing: -2px;
  color: #fff;
  max-width: 920px;
  margin: 0 0 20px 0;
}
.hero__title em { font-style: italic; color: var(--rl-yellow); }
.hero__lede {
  font-size: 19px; line-height: 1.55; max-width: 620px;
  color: rgba(243, 250, 246, .9); margin: 0 0 36px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__ctas .btn--outline { color: var(--rl-cream); border-color: rgba(243,250,246,.6); background: transparent; }
.hero__ctas .btn--outline:hover { background: var(--rl-cream); color: var(--rl-green-deep); border-color: var(--rl-cream); }
.hero__trust {
  display: flex; align-items: center; gap: 28px;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(243,250,246,.18);
  max-width: 620px;
}
.hero__trust-item { display: flex; flex-direction: column; }
.hero__trust-item strong {
  font-family: var(--font-display); font-weight: 600;
  font-size: 28px; letter-spacing: -1px; color: #fff;
}
.hero__trust-item span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.hero__trust-divider { width: 1px; height: 32px; background: rgba(243,250,246,.18); }
.hero__dots {
  position: absolute; bottom: 32px; right: 32px;
  display: flex; gap: 8px;
}
.hero__dot {
  width: 28px; height: 3px; border-radius: 2px;
  background: rgba(243,250,246,.3); border: none; cursor: pointer; padding: 0;
  transition: background var(--dur-fast) var(--ease-out);
}
.hero__dot.is-active { background: var(--rl-yellow); }

/* ========== SERVICES ========== */
.services {
  padding: 96px 32px;
  max-width: 1240px; margin: 0 auto;
}
.services__head {
  max-width: 720px; margin: 0 auto 56px; text-align: center;
}
.services__eyebrow { display: inline-block; margin-bottom: 16px; }
.services__title {
  font-size: clamp(34px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -2px;
  margin: 0 0 16px;
}
.services__lede { font-size: 18px; line-height: 1.6; }
.services__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.service-card {
  background: var(--bg-surface);
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--rl-yellow);
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--dur-med) var(--ease-out);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleY(1); }
.service-card__art {
  height: 80px; display: flex; align-items: flex-end; justify-content: flex-start;
  margin-bottom: 4px;
}
.service-card__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 26px; line-height: 1.15; letter-spacing: -.8px;
  color: var(--fg-1); margin: 0;
}
.service-card__tag { font-size: 14px; line-height: 1.5; margin: 0 0 4px; }
.service-card__list {
  margin: 8px 0 16px; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.service-card__list li {
  font-size: 12px; padding: 4px 10px;
  background: var(--rl-cream); border-radius: 9999px;
  color: var(--fg-1); font-weight: 500;
}
.service-card__link {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 14px; color: var(--fg-1); text-decoration: none;
  transition: gap var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.service-card__link:hover { gap: 10px; color: var(--rl-yellow-deep); }

/* ========== PROJECTS ========== */
.projects {
  padding: 96px 32px;
  max-width: 1240px; margin: 0 auto;
}
.projects__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; gap: 24px; flex-wrap: wrap;
}
.projects__title { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -2px; margin: 12px 0 0; }
.projects__all { font-weight: 700; color: var(--fg-1); text-decoration: none; font-size: 16px; }
.projects__all:hover { color: var(--rl-yellow-deep); }
.projects__grid {
  display: grid; gap: 20px;
  grid-template-columns: 1.4fr 1fr 1fr;
}
.project {
  position: relative; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden;
  text-decoration: none; color: #fff; display: block;
  isolation: isolate;
}
.project:nth-child(1) { aspect-ratio: 3/4; }
.project__img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  background-color: var(--rl-leaf);
  transition: transform 800ms var(--ease-out);
}
.project:hover .project__img { transform: scale(1.04); }
.project__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(24,48,48,.92) 0%, rgba(24,48,48,.4) 50%, transparent 100%);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.project__tag {
  display: inline-block; padding: 4px 10px; border-radius: 9999px;
  background: var(--rl-yellow); color: var(--rl-green-deep);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  align-self: flex-start; margin-bottom: 10px;
}
/* Explicit light colors: the global heading token (color: var(--fg-1)) would
   otherwise beat the tile's inherited #fff — dark-on-dark on the fallback panel. */
.project__overlay { color: #fff; }
.project__title { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.15; letter-spacing: -.8px; margin: 0; color: var(--rl-cream); }
.project__loc { font-size: 14px; opacity: .8; margin-top: 6px; }

/* ========== WHY US ========== */
.why {
  background: var(--rl-green-deep);
  color: var(--rl-cream);
  padding: 96px 32px;
  position: relative; overflow: hidden;
}
.why::before {
  content: ''; position: absolute; top: -200px; right: -200px; width: 500px; height: 500px;
  border-radius: 50%; background: radial-gradient(circle, rgba(235,211,91,.15) 0%, transparent 70%);
  pointer-events: none;
}
/* Subtle film grain on the solid dark section (brief: "occasional texture —
   subtle grain on solid sections") */
.why::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.why__inner { max-width: 1240px; margin: 0 auto; position: relative; }
.why__head { max-width: 720px; margin: 0 0 56px; }
.why__eyebrow { color: var(--rl-yellow); display: inline-block; margin-bottom: 16px; }
.why__title { color: #fff; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -2px; margin: 0; }
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.why__pillar {
  border-top: 1px solid rgba(243,250,246,.15);
  padding-top: 24px;
}
.why__icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(235,211,91,.15); color: var(--rl-yellow);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.why__icon svg { width: 26px; height: 26px; }
.why__pillar-title { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; letter-spacing: -.5px; margin: 0 0 10px; }
.why__pillar-body { font-size: 15px; line-height: 1.6; color: rgba(243,250,246,.8); margin: 0; }

/* ========== QUOTE ========== */
.quote { padding: 96px 32px; max-width: 1240px; margin: 0 auto; }
.quote__inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start;
}
/* Frosted panel behind the copy — the scrim alone wasn't enough over the
   busy landscaping scene (Nathan 2026-08-24 ×2 "text is still hard to read").
   The rgba background carries the readability on its own where
   backdrop-filter is unsupported. */
.quote__copy {
  padding: 28px;
  background: rgba(243, 250, 246, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 24px;
}
.quote__title { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.1; letter-spacing: -2px; margin: 12px 0 16px; }
.quote__lede { font-size: 18px; line-height: 1.6; margin-bottom: 32px; }
.quote__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.quote__list li { display: flex; align-items: center; gap: 12px; color: var(--fg-1); font-weight: 600; }
.quote__list a { color: inherit; text-decoration: none; }
.quote__list a:hover { color: var(--rl-yellow-deep); }
.quote__list svg { color: var(--rl-yellow-deep); flex: none; }

.quote__form {
  background: var(--bg-surface); border-radius: 24px; padding: 40px;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 18px;
}
.quote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote__field { display: flex; flex-direction: column; gap: 6px; }
.quote__field label { font-size: 13px; font-weight: 600; color: var(--fg-1); }
.quote__field input,
.quote__field select,
.quote__field textarea {
  width: 100%; padding: 12px 16px; border-radius: 6px; border: 1px solid var(--border-1);
  background: #fff; font: inherit; font-size: 15px; box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.quote__field input:focus,
.quote__field select:focus,
.quote__field textarea:focus {
  outline: none; border-color: var(--rl-yellow-deep);
  box-shadow: 0 0 0 3px rgba(235,211,91,.25);
}
.quote__submit { margin-top: 6px; align-self: flex-start; }
.quote__fine { font-size: 12px; opacity: .65; margin: 0; }
.quote__sent {
  text-align: center; padding: 24px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.quote__sent-icon {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(235,211,91,.2);
  color: var(--rl-yellow-deep); display: flex; align-items: center; justify-content: center;
}
.quote__sent h3 { font-family: var(--font-display); font-weight: 600; color: var(--fg-1); margin: 0; font-size: 28px; letter-spacing: -1px; }
.quote__sent p { margin: 0; }

/* Reviews section CSS removed with the section drop (kit's reviews were
   fabricated content — see PRD). Restore from the design-system kit if a
   real-reviews section is added post-launch. */

/* ========== FOOTER ========== */
.site-footer {
  background: var(--rl-green-deep);
  color: rgba(243,250,246,.7);
  padding: 64px 32px 0;
}
.site-footer__inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 64px;
  padding-bottom: 48px;
}
.site-footer__logo {
  height: 56px; width: auto; display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 4px;
}
.site-footer__slogan { margin: 16px 0; font-size: 15px; line-height: 1.55; max-width: 320px; }
.site-footer__contact { display: flex; flex-direction: column; gap: 4px; }
.site-footer__contact a { color: var(--rl-yellow); text-decoration: none; font-weight: 600; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.site-footer__col h4 {
  font-family: var(--font-body); font-weight: 700; font-size: 12px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--rl-yellow);
  margin: 0 0 16px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer__col a { color: rgba(243,250,246,.7); text-decoration: none; font-size: 14px; }
.site-footer__col a:hover { color: var(--rl-yellow); }
.site-footer__bar {
  border-top: 1px solid rgba(243,250,246,.12);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
  max-width: 1240px; margin: 0 auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 921px) {
  .site-header__nav, .site-header__phone { display: none; }
  .site-header__inner { padding: 14px 20px; }
  .hero__inner { padding: 140px 20px 80px; }
  .services, .projects, .quote { padding: 64px 20px; }
  /* Reveal strip below the stacked form so the pavilion has somewhere to
     land on phones (BuildLayers anchors it to the bottom of the scene). */
  .quote { padding-bottom: 200px; }
  .why { padding: 64px 20px; }
  /* Single column on phones — 3 tiles in 2 columns leaves an orphan + hole.
     Tiles go full-width and large per the brief ("presented large"). */
  .projects__grid { grid-template-columns: 1fr; }
  .project, .project:nth-child(1) { aspect-ratio: 16/10; }
  .why__grid { grid-template-columns: 1fr; gap: 24px; }
  .quote__inner { grid-template-columns: 1fr; gap: 32px; }
  .quote__form { padding: 24px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
}



/* ========== STORY BANDS (scroll-driven scene strips BETWEEN sections) ==========
   Redesign 2026-08-10: the scenes moved out from behind section content into
   their own full-width bands in document flow — no scrims, no z-index games,
   full opacity, zero text collision. Sections return to normal flow. */
.services, .projects, .quote { position: relative; }
.services__head, .services__grid,
.projects__head, .projects__grid {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
.quote__inner { max-width: 1240px; margin-left: auto; margin-right: auto; }

.bl-band {
  width: 100%;
  overflow: hidden;
  line-height: 0; /* no baseline gap under the svg */
  padding: 8px 0;
}
.bl-band-svg {
  width: 100%;
  height: auto;
  display: block;
}
/* Phones: the full 1600-wide frieze would shrink to a ~53px hairline.
   Instead keep real height and PAN — the scene slides left as it builds
   (--bp is scroll progress 0..1 set by BBShell), so the action stays in
   frame at ~2x the size. 800px = svg width at 110px height (1600:220). */
@media (max-width: 921px) {
  .bl-band-svg {
    /* svg has no intrinsic ratio for width:auto — set both dims explicitly.
       800 x 110 preserves the 1600:220 aspect exactly. */
    width: 800px;
    height: 110px;
    transform: translateX(calc(var(--bp, 0) * (100vw - 800px)));
  }
}

/* ========== SITE FORK ADDITIONS (U2 2026-08-07) ========== */
/* Fixed header overlaps anchor targets — give sections breathing room. */
#services, #projects, #about, #contact { scroll-margin-top: 84px; }

/* Real-logo variants (rendered when the logo probe succeeds — host revival
   or self-hosted copy). Footer inverts to white for the dark panel, matching
   the design-system logo card's dark treatment. */
.site-header__logo-img { height: 44px; width: auto; display: block; }
.site-footer__logo-img { height: 40px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .92; }

/* Brand lockup: signature leaf glyph + wordmark (until the real logo file
   arrives — Header.jsx logo probe swaps it in) */
.site-header__brand-lockup { display: inline-flex; align-items: center; gap: 10px; }
.site-header__leaf { color: var(--rl-yellow-deep); flex-shrink: 0; }
.site-header__wordmark {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.5px; line-height: 1;
  color: inherit; white-space: nowrap;
}
.site-header.is-scrolled .site-header__brand { color: var(--fg-1); }
.site-footer__wordmark {
  font-family: var(--font-display); font-weight: 600;
  font-size: 26px; letter-spacing: -0.5px; color: #fff; display: block;
}
.site-footer__col span { color: rgba(243,250,246,.7); font-size: 14px; }

/* Quote form: inline field errors + send-failure fallback */
.quote__err { font-size: 12px; font-weight: 600; color: #b42828; }
.quote__fail {
  padding: 12px 14px; border: 1px solid var(--border-1);
  border-left: 3px solid #b42828; background: rgba(180, 40, 40, 0.05);
  border-radius: 6px; font-size: 14px; line-height: 1.5;
}
.quote__fail a { color: inherit; font-weight: 700; }
.quote__submit:disabled { opacity: 0.65; cursor: default; }
/* Mobile: keep the header CTA on one line (the kit pill wraps at 390px). */
@media (max-width: 921px) {
  .site-header__wordmark { font-size: 18px; }
  .site-header__actions .btn { font-size: 15px; padding: 10px 18px; white-space: nowrap; }
}

/* === GO-LIVE OFFER (U5, 2026-08-20) ================================
   The sell surface: a bar that rises once Rafael has seen the site, and
   the three-tier takeover it opens. Brand tokens only — no new colours.
   Everything here is scoped under .gl* so it can be lifted out whole if
   the offer changes. */
.gl-bar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 60; width: min(680px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 18px;
  padding: 14px 16px 14px 22px;
  /* NOT --rl-green-deep: that is the footer's own background, and the bar
     lands on the footer — it vanished into it. Near-black + a gold edge
     reads as a distinct card on the dark footer AND on the cream sections
     above it. */
  background: var(--rl-ink); color: var(--rl-cream);
  border: 2px solid var(--rl-yellow);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38);
  animation: gl-rise .38s cubic-bezier(.2,.8,.3,1) both;
}
@keyframes gl-rise { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translate(-50%, 0); } }
.gl-bar__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.gl-bar__text strong { font-family: var(--font-display); font-size: 1.0625rem; }
.gl-bar__text span { font-size: 0.9375rem; opacity: .85; }
.gl-bar__cta {
  flex: 0 0 auto; font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 11px 22px; border-radius: var(--r-pill); cursor: pointer;
  background: var(--rl-yellow); border: 2px solid var(--rl-yellow); color: var(--rl-green-deep);
  transition: background .16s ease, border-color .16s ease;
}
.gl-bar__cta:hover { background: var(--rl-yellow-deep); border-color: var(--rl-yellow-deep); }
.gl-bar__x {
  flex: 0 0 auto; background: none; border: 0; cursor: pointer;
  color: var(--rl-cream); opacity: .6; font-size: 26px; line-height: 1;
  padding: 0 4px;
}
.gl-bar__x:hover { opacity: 1; }

.gl-scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(11, 22, 22, .72);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 28px 16px; overflow-y: auto;
  animation: gl-fade .2s ease both;
}
@keyframes gl-fade { from { opacity: 0; } to { opacity: 1; } }
.gl-panel {
  position: relative; width: min(1180px, 100%);
  background: var(--rl-cream); color: var(--rl-ink);
  border-radius: var(--r-xl); padding: 40px 32px 30px;
  box-shadow: var(--rl-shadow-strong);
}
.gl-panel:focus { outline: none; }
.gl-panel__x {
  position: absolute; top: 16px; right: 18px;
  background: none; border: 0; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--rl-green-muted); opacity: .7; padding: 4px 8px;
}
.gl-panel__x:hover { opacity: 1; }
.gl-panel__head { max-width: 62ch; margin-bottom: 28px; }
.gl-eyebrow {
  font-family: var(--font-body); font-weight: 700; font-size: 0.75rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rl-green-muted);
  margin: 0 0 10px;
}
.gl-panel__head h2 { font-family: var(--font-display); font-size: var(--t-h2); margin: 0 0 12px; line-height: 1.1; }
.gl-sub { margin: 0; font-size: 1.0625rem; color: var(--rl-green-muted); }
.gl-sub strong { color: var(--rl-ink); }

/* 5 rungs read as two families (2026-08-24, Nathan: "the 5 look weird on
   desktop" — auto-fit rendered 4 skinny cards + a full-width orphan): the two
   foundation rungs (Site, Site + App) sit centered 2-up, the three marketing
   rungs 3-up beneath with featured Pro in the middle. One 6-col grid, span
   arithmetic — all five cards the same width. Collapses to 1-col ≤921px. */
.gl-tiers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.gl-tier { grid-column: span 2; }
.gl-tier:nth-child(1) { grid-column: 2 / span 2; }
.gl-tier:nth-child(2) { grid-column: 4 / span 2; }
.gl-tier {
  position: relative; display: flex; flex-direction: column;
  background: var(--rl-white); border: 1px solid rgba(24,48,48,.12);
  border-radius: var(--r-lg); padding: 26px 22px 22px;
}
.gl-tier--featured { border-color: var(--rl-yellow); border-width: 2px; }
.gl-tier__flag {
  position: absolute; top: -11px; left: 22px;
  background: var(--rl-yellow); color: var(--rl-green-deep);
  font-family: var(--font-body); font-weight: 700; font-size: 0.6875rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--r-pill);
}
.gl-tier__name { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 10px; }
.gl-tier__price { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; margin: 0 0 6px; letter-spacing: -1px; }
.gl-tier__per { font-size: 1rem; font-family: var(--font-body); font-weight: 500; color: var(--rl-green-muted); letter-spacing: 0; }
.gl-tier__exhst { margin: 0 0 4px; font-size: 0.8125rem; color: var(--rl-green-muted); }
/* Build fee moved onto the card 2026-08-21 — it varies per rung now that the app
   tier exists ($500 there, $300 elsewhere), so one line of header copy no longer
   covers it. */
.gl-tier__build { margin: 0 0 14px; font-size: 0.8125rem; font-weight: 600; color: var(--rl-green-deep); }
.gl-tier__blurb { margin: 0 0 16px; font-size: 0.9375rem; }
.gl-tier__list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 0.9375rem; }
.gl-tier__list li { position: relative; padding-left: 22px; }
.gl-tier__list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--rl-yellow); border: 2px solid var(--rl-green-deep);
}
.gl-tier__go {
  margin-top: auto; width: 100%; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 13px 20px; border-radius: var(--r-pill);
  background: var(--rl-green-deep); border: 2px solid var(--rl-green-deep); color: var(--rl-cream);
  transition: background .16s ease, border-color .16s ease;
}
.gl-tier--featured .gl-tier__go { background: var(--rl-yellow); border-color: var(--rl-yellow); color: var(--rl-green-deep); }
.gl-tier__go:hover:not(:disabled) { background: #0d1d1d; border-color: #0d1d1d; color: var(--rl-cream); }
.gl-tier--featured .gl-tier__go:hover:not(:disabled) { background: var(--rl-yellow-deep); border-color: var(--rl-yellow-deep); color: var(--rl-green-deep); }
.gl-tier__go:disabled { opacity: .6; cursor: default; }

.gl-failed {
  margin: 20px 0 0; padding: 14px 16px; border-radius: var(--r-md);
  background: #fff4f4; border: 1px solid #f0c9c9; font-size: 0.9375rem;
}
.gl-panel__foot { margin: 24px 0 0; font-size: 0.875rem; color: var(--rl-green-muted); max-width: 70ch; }

@media (max-width: 921px) {
  /* Scaled-display desktops land here too (156% Windows scaling = 842 CSS px
     on a 1316px window) — a 1-col stack of five cards read as "weird on
     desktop". 2-up with Max full-width beneath; true phones get 1-col below. */
  .gl-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gl-tier, .gl-tier:nth-child(1), .gl-tier:nth-child(2) { grid-column: auto; }
  .gl-tier:nth-child(5) { grid-column: 1 / -1; }
  .gl-panel { padding: 34px 20px 24px; }
  .gl-bar { flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .gl-bar__text { flex: 1 1 100%; }
  .gl-bar__cta { flex: 1 1 auto; text-align: center; justify-content: center; }
}
@media (max-width: 641px) {
  .gl-tiers { grid-template-columns: 1fr; }
  .gl-tier:nth-child(5) { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .gl-bar, .gl-scrim { animation: none; }
  .gl-bar__cta, .gl-tier__go { transition: none; }
}


/* === RESTORED 2026-08-21 (Nathan: "revert it but add the excavator going
   from left to right too"). The pre-2026-08-10 scroll-driven section
   backdrops: layers sit BEHIND section content at 0.55 opacity with a
   cream scrim for legibility, rather than as standalone bands. */

/* ========== BUILD LAYERS (scroll-driven section backdrops) ========== */
/* Each .bl-layer is an absolutely-positioned SVG that fills its host
   section. The host section MUST be position:relative and isolation:isolate.
   Foreground content gets z-index:1 to sit above the layer. */
.services, .projects, .quote {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Foreground sits above the bg layer */
.services > *:not(.bl-layer),
.projects > *:not(.bl-layer),
.quote > *:not(.bl-layer) {
  position: relative;
  z-index: 1;
}
/* Add a soft cream tint behind content so text stays legible over the SVG */
.services::before, .projects::before, .quote::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(243, 250, 246, 0.78) 0%,
    rgba(243, 250, 246, 0.62) 40%,
    rgba(243, 250, 246, 0.78) 100%);
  z-index: 0;
  pointer-events: none;
}
/* Quote section reads over the busiest scene (trees + fence + asphalt) —
   heavier tint where the copy sits (Nathan 2026-08-24 "text is hard to read
   over the last section"), fading out at the very bottom so the pavilion
   reveal strip stays vivid. */
.quote::before {
  background: linear-gradient(180deg,
    rgba(243, 250, 246, 0.94) 0%,
    rgba(243, 250, 246, 0.86) 45%,
    rgba(243, 250, 246, 0.88) 84%,
    rgba(243, 250, 246, 0.35) 100%);
}

.bl-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.bl-svg {
  width: 100%; height: 100%;
  display: block;
}

/* Make sure max-width constraints on these sections still allow the
   layer to span the full width — re-center the inner content but let
   the bg fill edge-to-edge. */
.services, .projects {
  max-width: none !important;
  padding-left: 0;
  padding-right: 0;
}
.services__head, .services__grid,
.projects__head, .projects__grid {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.quote { max-width: none !important; padding-left: 0; padding-right: 0; }
.quote__inner { max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }
