/* The existing eight-stop walkthrough, presented in a desktop monitor. */
#stormwater-case-study { padding-bottom: 0; }
#stormwater-case-study + #building-extension { padding-block: 0; }
#stormwater-case-study .stormwater-showcase { display: grid; gap: 38px; }
#stormwater-case-study .stormwater-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 12px 64px; align-items: start; }
#stormwater-case-study .stormwater-intro > .eyebrow { grid-column: 1 / -1; }
#stormwater-case-study .stormwater-intro > h2 { grid-column: 1; grid-row: 2 / span 4; max-width: 17ch; }
#stormwater-case-study .stormwater-intro > :not(.eyebrow):not(h2) { grid-column: 2; }
#stormwater-case-study .stormwater-intro > .human-fine { margin: 0; font-size: .75rem !important; }
#stormwater-case-study .stormwater-intro > .text-link { color: #55c7de; justify-self: start; }
#stormwater-case-study .storm-monitor { position: relative; min-width: 0; padding-bottom: 0; isolation: isolate; }
/* A softly lit wall and desk surface ground the monitor without adding an image. */
#stormwater-case-study .storm-monitor::before {
  content: ""; position: absolute; z-index: -2; inset: 0 0 24px;
  background: radial-gradient(ellipse at 50% 76%, #829b7830, #436d5214 48%, transparent 72%);
  pointer-events: none;
}
#stormwater-case-study .storm-monitor::after {
  content: ""; position: absolute; z-index: -1; inset: auto 0 0; height: clamp(100px, 9vw, 138px);
  border-top: 1px solid #a9b7a71c;
  background: radial-gradient(ellipse at 50% 0, #a3b19d16, transparent 65%), linear-gradient(180deg, #263e334d, #18312673 45%, #10251c45 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  pointer-events: none;
}
#stormwater-case-study .storm-monitor-frame { position: relative; z-index: 1; padding: 22px 13px 30px; border: 1px solid #8a9a91; border-radius: 18px; background: linear-gradient(140deg, #5d6e62 0%, #253c34 18%, #172d27 85%, #526858); box-shadow: inset 0 0 0 3px #1a2a25, inset 0 0 0 4px #64766a, 0 20px 50px -22px #000b; }
#stormwater-case-study .storm-monitor-frame::after { content: ""; position: absolute; right: 24px; bottom: 12px; width: 4px; height: 4px; border-radius: 50%; background: #55c7de; box-shadow: 0 0 5px #55c7de66; pointer-events: none; }
#stormwater-case-study .storm-monitor-camera { position: absolute; top: 7px; left: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: #0b1715; box-shadow: 0 0 0 2px #6f8372, inset 1px 1px 2px #a6b7b2; }
#stormwater-case-study .storm-monitor-screen { border: 1px solid #889e8b; border-radius: 9px; overflow: hidden; background: #fffefb; color-scheme: light; }
#stormwater-case-study .storm-desktop-appbar { display: flex; align-items: center; gap: 18px; min-height: 58px; padding: 9px 20px; color: #fffefb; background: #173e32; border-bottom: 1px solid #54745f; }
#stormwater-case-study .storm-monitor-brand { flex: none; color: #fffefb; font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -.025em; }
#stormwater-case-study .storm-monitor-brand > span { color: #ff7a1a; }
#stormwater-case-study .storm-monitor-brand > sup { font-size: .45em; vertical-align: top; position: relative; top: 3px; margin-left: 2px; }
#stormwater-case-study .storm-desktop-app-title { padding-left: 18px; border-left: 1px solid #527161; color: #c7dacc; font-size: 13px; }
#stormwater-case-study .storm-desktop-appbar > a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin-left: auto; padding: 6px 10px; border: 1px solid #6f9077; border-radius: 6px; color: #fffefb; font-size: 12px; font-weight: 500; text-decoration: none; white-space: nowrap; }
#stormwater-case-study .storm-tour { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); grid-template-areas: "top top" "route record" "toolbar toolbar"; margin: 0; border: 0; border-radius: 0; box-shadow: none; color: #193d31; background: #fffefb; }
#stormwater-case-study .storm-tour-top { grid-area: top; align-items: center; gap: 12px; padding: 11px 20px; border-bottom: 1px solid #c4d1c1; background: #edf3e7; color: #49654e; font-size: 11px; }
#stormwater-case-study #storm-tour-count { color: #194c3b; font-weight: 700; font-variant-numeric: tabular-nums; }
#stormwater-case-study .storm-desktop-map { grid-area: route; display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 0; min-height: 470px; padding: 20px 16px 18px; color: #d8e9dc; background-color: #143b32; background-image: linear-gradient(#aac7b009 1px, transparent 1px), linear-gradient(90deg, #aac7b009 1px, transparent 1px); background-size: 40px 40px; border-right: 1px solid #c4d1c1; }
#stormwater-case-study .storm-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: 6px; }
#stormwater-case-study .storm-map-heading > strong { font-size: 14px; font-weight: 500; }
#stormwater-case-study .storm-map-heading > span { font: 11px var(--f-mono); color: #a8c4b1; }
#stormwater-case-study .storm-desktop-map > svg { display: block; flex: 1; width: 100%; height: 340px; min-height: 280px; max-height: 390px; overflow: visible; }
#stormwater-case-study .storm-desktop-map svg text, #stormwater-case-study #stormwater-walker { pointer-events: none; }
#stormwater-case-study #stormwater-pins circle { cursor: pointer; transition: fill .2s, stroke .2s; }
#stormwater-case-study #stormwater-pins circle:focus-visible { outline: none; stroke: #fffefb; stroke-width: 5; }
#stormwater-case-study .storm-map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-inline: 6px; font-size: 11px; color: #d1e2d3; }
#stormwater-case-study .storm-map-legend > span { display: inline-flex; align-items: center; gap: 7px; }
#stormwater-case-study .storm-legend-route { width: 21px; border-top: 2px dashed #ff7a1a; }
#stormwater-case-study .storm-legend-water { width: 21px; height: 5px; border-block: 1px solid #55c7de; background: #17434a; }
#stormwater-case-study .storm-legend-stop { width: 12px; height: 12px; border: 2px solid #55c7de; border-radius: 50%; }
#stormwater-case-study .storm-map-instruction { padding-inline: 6px; color: #abc7b4; font-size: 12px; line-height: 1.5; }
#stormwater-case-study .storm-tour > figcaption { grid-area: record; min-width: 0; padding: 24px; background: #fffefb; }
#stormwater-case-study .storm-tour-kicker { margin: 0 0 9px; color: #a44a09; font-size: 10px; letter-spacing: .09em; }
#stormwater-case-study .storm-tour h3 { margin-bottom: 9px; font-size: clamp(22px, 2.1vw, 29px); color: #193d31; }
#stormwater-case-study #storm-tour-context { min-height: 42px; margin-bottom: 21px; color: #526c58; font-size: 14px; line-height: 1.55; }
#stormwater-case-study .storm-tour dl { min-height: 0; gap: 17px; }
#stormwater-case-study .storm-tour dl > div { padding-left: 12px; border-left: 2px solid #c4d5c2; }
#stormwater-case-study .storm-tour dl > div:last-child { border-color: #ff7a1a; }
#stormwater-case-study .storm-tour dt { margin-bottom: 4px; color: #236d78; font-size: 10px; font-weight: 700; letter-spacing: .07em; }
#stormwater-case-study .storm-tour dd { color: #315440; font-size: 14px; line-height: 1.6; }
#stormwater-case-study .storm-desktop-toolbar { grid-area: toolbar; min-width: 0; border-top: 1px solid #c4d1c1; background: #edf3e7; }
#stormwater-case-study .storm-tour-progress { height: 3px; margin: 0; background: #d1ddca; }
#stormwater-case-study .storm-tour-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 12px 20px 7px; }
#stormwater-case-study .storm-tour-controls button { min-width: 44px; min-height: 44px; border: 1px solid #b6c9b0; border-radius: 6px; padding: 7px; background: #fffefb; color: #214b38; font-size: 13px; transition: color .15s, background .15s, border-color .15s, box-shadow .15s; }
#stormwater-case-study #storm-tour-toggle { min-width: 78px; font-weight: 500; }
#stormwater-case-study #storm-tour-picker { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0; }
#stormwater-case-study #storm-tour-picker button { min-width: 44px; padding: 6px; border-color: transparent; background: transparent; }
#stormwater-case-study #storm-tour-picker button[aria-pressed="true"] { background: #ff7a1a; border-color: #e1650d; color: #19140c; font-weight: 700; box-shadow: inset 0 1px 0 #ffc394, 0 2px 3px #a85c1925; }
#stormwater-case-study .storm-tour-status, #stormwater-case-study .storm-tour-fine { padding: 0 20px; margin: 0 0 6px !important; font-size: 10px !important; color: #526b56 !important; }
#stormwater-case-study .storm-tour-fine { padding-bottom: 7px; }
#stormwater-case-study .storm-tour noscript { grid-column: 1 / -1; padding: 18px; color: #315440; }
#stormwater-case-study .storm-monitor-neck {
  position: relative; width: clamp(56px, 8%, 110px); height: clamp(44px, 5.5vw, 84px); margin: -2px auto 0;
  clip-path: polygon(13% 0, 87% 0, 94% 75%, 100% 100%, 0 100%, 6% 75%);
  background: linear-gradient(180deg, #0b1915b3, transparent 24%, #d5dec419 76%, #293d32a6), repeating-linear-gradient(90deg, #ffffff04 0 1px, #00000004 1px 3px), linear-gradient(90deg, #35483d, #a4afa04d 6%, #738575 12%, #526859 44%, #364e3e 88%, #23392c 96%);
  box-shadow: inset 0 12px 12px -7px #000b; pointer-events: none;
}
#stormwater-case-study .storm-monitor-foot {
  position: relative; z-index: 1; width: clamp(132px, 26%, 320px); height: clamp(22px, 2.2vw, 29px); margin: -2px auto 0;
  border: 1px solid #8b9b8b; border-top-color: #b9c5b3; border-bottom: 4px solid #263a2e;
  border-radius: 44% 44% 8px 8px / 36% 36% 7px 7px;
  background: repeating-linear-gradient(105deg, #ffffff05 0 1px, #00000003 1px 3px), linear-gradient(170deg, #97a491, #6a806b 34%, #465f4a 78%, #344b39);
  box-shadow: inset 0 1px 1px #e1e7d463, inset 0 -2px 2px #172b1f80, 0 2px 2px #0009; pointer-events: none;
}
#stormwater-case-study .storm-monitor-foot::before {
  content: ""; position: absolute; inset: 1px 10% auto; height: 1px;
  background: linear-gradient(90deg, transparent, #d3ddc99c 28%, #b8c8ae52 70%, transparent); pointer-events: none;
}
#stormwater-case-study .storm-monitor-foot::after {
  content: ""; position: absolute; z-index: -1; inset: auto -16% -15px; height: 20px;
  background: radial-gradient(ellipse, #0009 0%, #0006 28%, transparent 72%); filter: blur(3px); pointer-events: none;
}
#stormwater-case-study :is(.storm-desktop-appbar a, .storm-tour-controls button):focus-visible { outline: 3px solid #2478bc; outline-offset: 2px; }
@media (hover: hover) {
  #stormwater-case-study .storm-tour-controls button:hover, #stormwater-case-study .storm-desktop-appbar > a:hover { border-color: #ff7a1a; background: #fff0df; color: #8b3b04; box-shadow: 0 2px 4px #29452c20; }
  #stormwater-case-study #stormwater-pins circle:hover { fill: #a34700; stroke: #ffd3af; stroke-width: 3; }
}
@media (max-width: 1050px) {
  #stormwater-case-study .stormwater-intro { column-gap: 32px; }
  #stormwater-case-study .storm-monitor-frame { padding-inline: 10px; }
  #stormwater-case-study .storm-tour { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); }
  #stormwater-case-study .storm-tour > figcaption { padding: 20px; }
  #stormwater-case-study .storm-desktop-map { min-height: 490px; padding-inline: 10px; }
  #stormwater-case-study .storm-tour-controls { padding-inline: 12px; gap: 6px; }
  #stormwater-case-study #storm-tour-picker { gap: 3px; }
}
@media (max-width: 900px) {
  #stormwater-case-study .stormwater-intro { display: flex; gap: 18px; }
  #stormwater-case-study .stormwater-intro > h2 { max-width: none; }
  #stormwater-case-study .stormwater-showcase { gap: 28px; }
  #stormwater-case-study .storm-monitor-frame { padding: 17px 7px 24px; border-radius: 14px; }
  #stormwater-case-study .storm-monitor-frame::after { right: 18px; bottom: 9px; }
  #stormwater-case-study .storm-monitor-camera { top: 6px; width: 4px; height: 4px; }
  #stormwater-case-study .storm-monitor-screen { border-radius: 7px; }
  #stormwater-case-study .storm-desktop-appbar { padding: 8px 12px; gap: 12px; flex-wrap: wrap; }
  #stormwater-case-study .storm-desktop-app-title { display: none; }
  #stormwater-case-study .storm-tour { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "route" "record" "toolbar"; }
  #stormwater-case-study .storm-tour-top { padding: 10px 12px; font-size: 10px; letter-spacing: .03em; }
  #stormwater-case-study .storm-desktop-map { min-height: 0; padding: 16px 10px; gap: 11px; border-right: 0; border-bottom: 1px solid #c4d1c1; }
  #stormwater-case-study .storm-desktop-map > svg { flex: none; height: auto; min-height: 0; max-height: none; }
  #stormwater-case-study .storm-map-legend { gap: 8px 13px; }
  #stormwater-case-study .storm-tour > figcaption { padding: 22px 18px; }
  #stormwater-case-study #storm-tour-context { min-height: 0; }
  #stormwater-case-study .storm-tour dd { font-size: 14px; }
}
@media (max-width: 560px) {
  #stormwater-case-study .storm-monitor-frame { padding-inline: 5px; }
  #stormwater-case-study .storm-monitor-brand { font-size: 18px; }
  #stormwater-case-study .storm-desktop-appbar > a { min-height: 44px; padding: 5px 7px; font-size: 11px; }
  #stormwater-case-study .storm-tour-controls { grid-template-columns: minmax(0, 1fr) auto auto; padding: 12px; }
  #stormwater-case-study #storm-tour-picker { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: repeat(4, minmax(44px, 1fr)); gap: 5px; width: auto; }
  #stormwater-case-study #storm-tour-toggle { grid-column: 1; grid-row: 2; justify-self: start; }
  #stormwater-case-study #storm-tour-prev { grid-column: 2; grid-row: 2; }
  #stormwater-case-study #storm-tour-next { grid-column: 3; grid-row: 2; }
  #stormwater-case-study .storm-tour-status, #stormwater-case-study .storm-tour-fine { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  #stormwater-case-study .storm-tour-controls button, #stormwater-case-study .storm-desktop-appbar > a, #stormwater-case-study #stormwater-pins circle { transition: none; }
}
