/* ==========================================================================
   KidScapes — hero scene, Idea Box, and page-level modules
   ========================================================================== */

/* ==========================================================================
   1. Homepage hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(96vh, 900px);
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background: linear-gradient(180deg, #bfe6f8 0%, #dff2fb 44%, #f3f8e8 76%, var(--paper) 100%);
}

.hero-scene {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
}
.hero-scene svg { width: 100%; height: 100%; display: block; }

.hero-copy {
  position: relative; z-index: 5;
  width: min(100% - var(--gut) * 2, var(--wrap));
  margin-inline: auto;
  padding-top: clamp(40px, 8vh, 96px);
  align-self: start;
  max-width: 940px;
}

.hero h1 {
  font-size: clamp(2.9rem, 8.4vw, 6.6rem);
  line-height: .94;
  letter-spacing: -.028em;
  text-transform: uppercase;
  margin-bottom: .3em;
  color: var(--green-900);
  text-shadow: 0 2px 24px rgba(255, 255, 255, .55);
}
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .ln i {
  display: block; font-style: normal;
  transform: translateY(105%);
  animation: riseIn .9s var(--ease-out) forwards;
}
.hero h1 .ln:nth-child(2) i { animation-delay: .1s; }
.hero h1 .ln:nth-child(3) i { animation-delay: .2s; }
@keyframes riseIn { to { transform: none; } }

.hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, var(--sun-600), var(--sun-500) 60%, var(--sun-400));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
  color: var(--ink-soft);
  max-width: 40ch;
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) .38s forwards;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px;
  opacity: 0; animation: fadeUp .8s var(--ease-out) .5s forwards;
}

.hero-whisper {
  position: relative; z-index: 5;
  width: min(100% - var(--gut) * 2, var(--wrap));
  margin-inline: auto;
  padding-bottom: clamp(22px, 4vh, 44px);
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: .84rem; color: var(--ink-soft);
  opacity: 0; animation: fadeUp .8s var(--ease-out) .68s forwards;
}
.hero-whisper > span:not(.dot) {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .55em 1em; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, var(--shadow-1);
}
.hero-whisper b { font-weight: 600; color: var(--ink); }
.hero-whisper .dot { display: none; }
@media (max-width: 700px) { .hero-whisper .scroll-hint { display: none; } }

.scroll-hint {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-mute);
}
.scroll-hint .bar {
  width: 2px; height: 26px; border-radius: 2px;
  background: linear-gradient(180deg, var(--leaf), transparent);
  animation: slideDown 1.9s var(--ease-out) infinite;
}
@keyframes slideDown { 0% { opacity: 0; transform: translateY(-8px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* --- scene element assembly: each piece pops in as the build progresses --- */
.hero-scene [data-build] {
  opacity: 0;
  transform: translateY(26px) scale(.9);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-spring);
}
.hero-scene [data-build].built { opacity: 1; transform: none; }

/* ambient loops inside the scene */
.cloud { animation: drift linear infinite; }
.cloud-a { animation-duration: 62s; }
.cloud-b { animation-duration: 88s; animation-delay: -20s; }
.cloud-c { animation-duration: 104s; animation-delay: -55s; }
@keyframes drift { from { transform: translateX(-24%); } to { transform: translateX(124%); } }

.sun-rays { transform-box: fill-box; transform-origin: center; animation: spin 68s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.swing-seat { transform-box: fill-box; transform-origin: 50% 0; animation: swing 3.4s ease-in-out infinite; }
@keyframes swing { 0%, 100% { transform: rotate(15deg); } 50% { transform: rotate(-15deg); } }

.jet { transform-box: fill-box; transform-origin: 50% 100%; animation: spurt 2.6s ease-in-out infinite; }
.jet-2 { animation-delay: .45s; }
.jet-3 { animation-delay: .9s; }
.jet-4 { animation-delay: 1.35s; }
@keyframes spurt { 0%, 100% { transform: scaleY(.18); opacity: .35; } 45% { transform: scaleY(1); opacity: .9; } }

.ripple { transform-box: fill-box; transform-origin: center; animation: ripple 4.2s ease-out infinite; }
.ripple-2 { animation-delay: 1.4s; }
.ripple-3 { animation-delay: 2.8s; }
@keyframes ripple { 0% { transform: scale(.25); opacity: .0; } 25% { opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }

.ball { transform-box: fill-box; animation: bounce 2.9s cubic-bezier(.3,0,.6,1) infinite; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 42% { transform: translateY(-52px); } 70% { transform: translateY(-8px); } }

.grass-blade { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 5.2s ease-in-out infinite; }
.grass-blade:nth-child(2n) { animation-delay: -1.6s; }
.grass-blade:nth-child(3n) { animation-delay: -3.1s; }
@keyframes sway { 0%, 100% { transform: rotate(-3.5deg); } 50% { transform: rotate(3.5deg); } }

.chalk { stroke-dasharray: 300; stroke-dashoffset: 300; }
.chalk.built { animation: draw 1.6s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.zip-rider { transform-box: fill-box; animation: zip 7s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes zip { 0%, 8% { transform: translate(0, 0); } 50%, 58% { transform: translate(-300px, 29px); } 100% { transform: translate(0, 0); } }

.flag-wave { transform-box: fill-box; transform-origin: 0 50%; animation: flag 2.4s ease-in-out infinite; }
@keyframes flag { 0%, 100% { transform: skewY(0deg); } 50% { transform: skewY(-5deg); } }

@media (prefers-reduced-motion: reduce) {
  .hero-scene [data-build] { opacity: 1 !important; transform: none !important; }
  .chalk { stroke-dashoffset: 0; }
  .hero h1 .ln i { transform: none; animation: none; }
  .hero-sub, .hero-cta, .hero-whisper { opacity: 1; animation: none; }
}

@media (max-width: 700px) {
  .hero { min-height: 0; }
  .hero-copy { padding-top: 28px; padding-bottom: 290px; }
  .hero h1 { font-size: clamp(2.5rem, 13.5vw, 3.6rem); }
  .hero-sub { font-size: 1.05rem; }
  .hero-cta { margin-top: 22px; }
  .hero-cta .btn { padding: .85em 1.3em; font-size: .86rem; }
  .hero-whisper { padding-bottom: 14px; }
  .hero-whisper > span:not(:first-child) { display: none; }
}

/* ==========================================================================
   2. "Your backyard can do more" — before/after wipe
   ========================================================================== */

.transform {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-2);
  background: var(--paper-2);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}
.transform > .layer { position: absolute; inset: 0; }
.transform > .layer svg, .transform > .layer img { width: 100%; height: 100%; object-fit: cover; }
.transform .after { clip-path: inset(0 0 0 var(--wipe, 50%)); }
.transform .handle {
  position: absolute; top: 0; bottom: 0; left: var(--wipe, 50%);
  width: 3px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.12);
  z-index: 3; pointer-events: none;
}
.transform .handle::after {
  content: "↔"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-2);
  display: grid; place-items: center;
  font-size: 1.1rem; color: var(--ink);
}
.transform .lbl {
  position: absolute; bottom: 16px; z-index: 4;
  padding: .45em 1em; border-radius: var(--r-pill);
  background: rgba(19, 37, 27, .72); color: #fff;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  pointer-events: none;
}
.transform .lbl-a { left: 16px; }
.transform .lbl-b { right: 16px; }

/* ==========================================================================
   3. Full-bleed chapter sections (SPLASH / CLIMB / RUN / IMAGINE)
   ========================================================================== */

.chapter { position: relative; overflow: hidden; color: #fff; }
.chapter .bg { position: absolute; inset: 0; z-index: 0; }
.chapter .bg img, .chapter .bg svg { width: 100%; height: 100%; object-fit: cover; }
.chapter .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11, 74, 45, .88) 0%, rgba(11, 74, 45, .52) 46%, rgba(11, 74, 45, .16) 100%);
}
.chapter-splash .bg::after { background: linear-gradient(100deg, rgba(10, 63, 115, .9) 0%, rgba(13, 116, 184, .45) 52%, rgba(53, 168, 224, .1) 100%); }
.chapter-run .bg::after { background: linear-gradient(100deg, rgba(217, 106, 18, .9) 0%, rgba(232, 119, 34, .46) 52%, rgba(249, 172, 46, .12) 100%); }
.chapter-imagine .bg::after { background: linear-gradient(100deg, rgba(58, 39, 84, .9) 0%, rgba(96, 63, 134, .48) 52%, rgba(140, 198, 63, .1) 100%); }

.chapter .inner { position: relative; z-index: 2; padding-block: clamp(78px, 12vw, 168px); }
.chapter .num {
  font-family: var(--display); font-size: .9rem; font-weight: 800;
  letter-spacing: .18em; opacity: .7; display: block; margin-bottom: 1.4em;
}
.chapter h2 {
  font-size: clamp(3rem, 9vw, 7rem);
  text-transform: uppercase; letter-spacing: -.03em; line-height: .9;
  margin-bottom: .3em;
}
.chapter .lede { color: rgba(255, 255, 255, .9); max-width: 40ch; }
.chapter .tagrow { margin-top: 26px; }
.chapter .tag { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(4px); }
.chapter .btn { margin-top: 32px; }

/* ==========================================================================
   4. The Idea Box
   ========================================================================== */

.ideabox {
  background: linear-gradient(170deg, var(--green-900), #073320);
  color: #e7f2ea;
  position: relative;
  overflow: hidden;
}
.ideabox::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 12% 18%, rgba(140, 198, 63, .18), transparent 42%),
                    radial-gradient(circle at 86% 76%, rgba(53, 168, 224, .16), transparent 44%);
  pointer-events: none;
}
.ideabox .wrap { position: relative; z-index: 2; }
.ideabox h2 { color: #fff; }
.ideabox .lede { color: rgba(231, 242, 234, .86); }
.ideabox .eyebrow { color: var(--leaf); }

.ib-intro {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(20px, 4vw, 64px);
  align-items: end; margin-bottom: 34px;
}
.ib-intro h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4rem); }
.ib-intro .lede { max-width: 56ch; }
@media (max-width: 800px) { .ib-intro { grid-template-columns: 1fr; align-items: start; gap: 10px; } }

.ib-shell {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3.4vw, 44px);
  backdrop-filter: blur(10px);
  min-height: 420px;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .18);
}

.ib-progress { display: flex; gap: 6px; margin-bottom: 28px; }
.ib-progress i {
  flex: 1; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .16);
  transition: background .4s var(--ease-out);
}
.ib-progress i.done { background: var(--leaf); }
.ib-progress i.now { background: var(--sun-400); }

.ib-step { display: none; animation: stepIn .45s var(--ease-out); }
.ib-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ib-step h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  color: #fff; text-transform: uppercase; letter-spacing: -.02em;
  margin-bottom: .25em;
}
.ib-step .sub { color: rgba(231, 242, 234, .72); font-size: .98rem; margin-bottom: 26px; }

.ib-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 12px; }
@media (max-width: 480px) { .ib-opts { grid-template-columns: repeat(2, 1fr); gap: 9px; } .ib-opt { padding: 14px 12px; font-size: .88rem; } .ib-picks { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.ib-opt {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 18px 16px;
  background: rgba(255, 255, 255, .07);
  border: 1.5px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-md);
  color: #fff; cursor: pointer; text-align: left;
  font-size: .94rem; font-weight: 500;
  transition: transform .22s var(--ease-spring), border-color .22s, background .22s;
}
.ib-opt:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--leaf); background: rgba(140, 198, 63, .14); }
.ib-opt[aria-pressed="true"] {
  background: var(--leaf); border-color: var(--leaf); color: #10331c;
}
.ib-opt[aria-pressed="true"] .ib-ico svg { stroke: #10331c; }
.ib-opt[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: 10px; right: 12px;
  font-size: .9rem; font-weight: 700;
}
.ib-ico { width: 34px; height: 34px; }
.ib-ico svg { width: 100%; height: 100%; stroke: var(--leaf-soft); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .2s; }

.ib-nav { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 34px; }
.ib-back {
  background: none; border: 0; color: rgba(231, 242, 234, .7);
  cursor: pointer; font-size: .9rem; padding: .6em .2em;
}
.ib-back:hover { color: #fff; text-decoration: underline; }
.ib-nav .btn { margin-left: auto; }
.ib-count { font-size: .84rem; color: rgba(231, 242, 234, .6); }

/* picks step: visual cards */
.ib-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.ib-pick {
  position: relative; overflow: hidden;
  border-radius: var(--r-md); cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  text-align: left; color: #fff; padding: 0;
  transition: transform .22s var(--ease-spring), border-color .22s;
}
.ib-pick:hover { transform: translateY(-4px); border-color: var(--sun-400); }
.ib-pick .art { aspect-ratio: 16 / 10; background: rgba(255,255,255,.05); }
.ib-pick .art svg { width: 100%; height: 100%; }
.ib-pick .cap { padding: 12px 14px 14px; display: flex; align-items: center; gap: 8px; }
.ib-pick .cap b { font-size: .92rem; font-weight: 600; }
.ib-pick .cap .hb { margin-left: auto; font-size: 1rem; opacity: .5; }
.ib-pick[aria-pressed="true"] { border-color: var(--berry); }
.ib-pick[aria-pressed="true"] .cap .hb { opacity: 1; }
.ib-pick[aria-pressed="true"]::before {
  content: ""; position: absolute; inset: 0; z-index: 2;
  box-shadow: inset 0 0 0 3px var(--berry); border-radius: var(--r-md); pointer-events: none;
}

/* result step */
.ib-result { text-align: center; padding: 10px 0 0; }
.ib-result .summary {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 26px 0 30px; max-width: 640px; margin-inline: auto;
}
.ib-result .summary .tag { background: rgba(255, 255, 255, .12); color: #fff; }
.ib-result .cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ==========================================================================
   5. Grow-with-you timeline
   ========================================================================== */

.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 34px); }
@media (max-width: 800px) { .timeline { grid-template-columns: 1fr; } }
.timeline { padding-top: 52px; }
.timeline::before {
  content: ""; position: absolute; top: 10px; left: 12%; right: 12%; height: 3px;
  background: repeating-linear-gradient(90deg, var(--leaf) 0 10px, transparent 10px 20px);
  border-radius: 2px;
}
@media (max-width: 800px) { .timeline::before { display: none; } }
.tl-card { position: relative; background: var(--white); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 32px); box-shadow: var(--shadow-1); }
.tl-card .dot {
  position: absolute; top: -50px; left: 50%; transform: translateX(-50%);
  z-index: 1;
  width: 18px; height: 18px; border-radius: 50%; background: var(--sun-500);
  box-shadow: 0 0 0 6px var(--paper);
}
@media (max-width: 800px) { .tl-card .dot { display: none; } }
.tl-card .when { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--green-700); margin-bottom: .3em; }
.tl-card ul { list-style: none; margin: 14px 0 0; padding: 0; }
.tl-card li { padding: 7px 0 7px 26px; position: relative; font-size: .94rem; border-top: 1px solid var(--rule); }
.tl-card li:first-child { border-top: 0; }
.tl-card li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--leaf);
}

/* ==========================================================================
   6. Age explorer
   ========================================================================== */

.age-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.age-tab {
  padding: .7em 1.25em; border-radius: var(--r-pill);
  background: var(--white); border: 1.5px solid var(--rule);
  cursor: pointer; font-size: .92rem; font-weight: 600;
  transition: all .2s var(--ease-out);
}
.age-tab:hover { border-color: var(--green-500); }
.age-tab[aria-selected="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.age-panel { display: none; }
.age-panel.active { display: block; animation: stepIn .4s var(--ease-out); }

/* ==========================================================================
   7. Process / how it works
   ========================================================================== */

.steps { counter-reset: s; display: grid; gap: clamp(16px, 2.4vw, 26px); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  counter-increment: s;
  background: var(--white); border-radius: var(--r-lg);
  padding: clamp(24px, 2.8vw, 34px); box-shadow: var(--shadow-1);
  position: relative; overflow: hidden;
}
.step::before {
  content: "0" counter(s);
  position: absolute; top: -14px; right: 6px;
  font-family: var(--display); font-size: 5.4rem; font-weight: 700;
  color: rgba(15, 122, 66, .08); line-height: 1;
}
.step h3 { font-size: 1.28rem; text-transform: uppercase; letter-spacing: -.01em; }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.step .pin { width: 40px; height: 40px; border-radius: 12px; background: var(--sky-100); display: grid; place-items: center; margin-bottom: 16px; }

/* ==========================================================================
   8. Sketch → plan → built (brand device)
   ========================================================================== */

.evolve { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.4vw, 28px); align-items: end; }
@media (max-width: 820px) { .evolve { grid-template-columns: 1fr; } }
.evolve figure { margin: 0; }
.evolve .frame {
  border-radius: var(--r-lg); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-1); aspect-ratio: 4 / 3;
}
.evolve .frame svg { width: 100%; height: 100%; }
.evolve figcaption {
  margin-top: 14px; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 600; color: var(--ink-mute);
  display: flex; align-items: center; gap: .6em;
}
.evolve figcaption b { color: var(--green-700); font-weight: 800; }

/* ==========================================================================
   9. Service page modules
   ========================================================================== */

.svc-hero { position: relative; overflow: hidden; background: linear-gradient(175deg, var(--sky-100), var(--paper) 74%); }
.svc-hero-green { background: linear-gradient(175deg, rgba(140, 198, 63, .22), var(--paper) 74%); }
.svc-hero-sun { background: linear-gradient(175deg, rgba(249, 172, 46, .2), var(--paper) 74%); }
.svc-hero-sand { background: linear-gradient(175deg, var(--sand-100), var(--paper) 74%); }
.svc-hero-plum { background: linear-gradient(175deg, rgba(140, 100, 180, .18), var(--paper) 74%); }

.svc-figure { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-2); background: var(--paper-2); }
.svc-figure img, .svc-figure svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-figure figcaption { padding: 14px 20px; font-size: .82rem; color: var(--ink-mute); background: var(--white); }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  display: flex; gap: 14px; padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.feature-list li:first-child { border-top: 0; padding-top: 0; }
.feature-list .ic { flex: none; width: 38px; height: 38px; border-radius: 11px; background: var(--sky-100); display: grid; place-items: center; }
.feature-list b { display: block; margin-bottom: .2em; font-weight: 600; }
.feature-list p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.spec-table caption { text-align: left; font-size: .82rem; color: var(--ink-mute); padding-bottom: 12px; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec-table th { font-weight: 600; background: var(--paper-2); }
.spec-table tbody th { background: transparent; width: 34%; }
@media (max-width: 620px) {
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td, .spec-table th { display: block; width: 100%; }
  .spec-table thead { display: none; }
  .spec-table tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .spec-table td, .spec-table th { border: 0; padding: 4px 0; }
  .spec-table tbody th { font-family: var(--display); font-size: 1.05rem; }
}

.co-badge {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .45em 1em; border-radius: var(--r-pill);
  background: rgba(15, 122, 66, .1); color: var(--green-800);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
}

/* Colorado condition cards */
.co-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
@media (max-width: 1000px) { .co-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .co-grid { grid-template-columns: 1fr; } }
.co-card { background: var(--white); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-1); border-top: 4px solid var(--sun-500); }
.co-card h3 { font-size: 1.12rem; margin-bottom: .5em; }
.co-card p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* ==========================================================================
   10. Project builder
   ========================================================================== */

.builder { max-width: 820px; margin-inline: auto; }
.builder-step { display: none; }
.builder-step.active { display: block; animation: stepIn .4s var(--ease-out); }
.builder-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; font-size: .84rem; color: var(--ink-mute); }
.builder-bar .track { flex: 1; height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.builder-bar .fill { height: 100%; background: linear-gradient(90deg, var(--leaf), var(--green-600)); border-radius: 3px; transition: width .45s var(--ease-out); }
.builder-nav { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--rule); }
.builder-nav .b-next { margin-left: auto; }
.builder-nav .b-status { flex: 1; text-align: center; }

.dropzone {
  border: 2px dashed var(--rule); border-radius: var(--r-lg);
  padding: 34px 22px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.over { border-color: var(--green-500); background: rgba(47, 178, 100, .05); }
.dropzone p { margin: 10px 0 0; font-size: .9rem; color: var(--ink-mute); }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.thumbs figure { margin: 0; width: 92px; }
.thumbs img { width: 92px; height: 92px; object-fit: cover; border-radius: var(--r-sm); }
.thumbs figcaption { font-size: .68rem; color: var(--ink-mute); margin-top: 4px; word-break: break-all; }

.builder-done { text-align: center; padding: 20px 0; }
.builder-done .big { font-family: var(--display); font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; color: var(--green-800); }

/* ==========================================================================
   11. Project gallery
   ========================================================================== */

.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(18px, 2.6vw, 30px); }
.proj {
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.proj:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); color: inherit; }
.proj .art { aspect-ratio: 4 / 3; background: var(--paper-2); }
.proj .art svg, .proj .art img { width: 100%; height: 100%; object-fit: cover; }
.proj .pad { padding: 22px 24px 26px; }
.proj h3 { font-size: 1.24rem; text-transform: uppercase; margin-bottom: .35em; }
.proj p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 14px; }

/* ==========================================================================
   12. Final CTA
   ========================================================================== */

.final-cta { position: relative; overflow: hidden; background: linear-gradient(165deg, #0d5d37, #073320 68%); color: #fff; text-align: center; }
.final-cta h2 { font-size: clamp(2.4rem, 6.4vw, 5rem); text-transform: uppercase; line-height: .95; color: #fff; }
.final-cta .lede { color: rgba(255,255,255,.82); margin-inline: auto; }
.final-cta .glow {
  position: absolute; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 172, 46, .28), transparent 62%);
  top: -280px; left: 50%; transform: translateX(-50%); pointer-events: none;
}
.final-cta .row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; position: relative; z-index: 2; }
