/* Scoped to the hydrovac field guide. Native dialog + a sticky scroll stage. */
.hv-preview { position: relative; display: block; overflow: hidden; isolation: isolate; min-height: 410px; aspect-ratio: 2.65; color: #fff; background: var(--ink-2); text-decoration: none; margin-bottom: 38px; }
.hv-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(21,20,15,.8),rgba(21,20,15,.05) 78%),linear-gradient(0deg,rgba(21,20,15,.5),transparent 65%); z-index: -1; }
.hv-preview > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: center 53%; z-index: -2; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.hv-preview:hover > img { transform: scale(1.025); }
.hv-preview-top { position: absolute; inset: 25px 32px auto; display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hv-preview-top > img { width: 100px; height: auto; align-self: start; background: var(--bg); padding: 9px 11px; }
.hv-preview-copy { position: absolute; left: 40px; bottom: 60px; }
.hv-kicker { display: block; font: 600 10px/1.5 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.hv-preview-copy .hv-kicker { margin-bottom: 16px; color: var(--line); }
.hv-preview-copy strong { font: 450 clamp(34px,4vw,55px)/1.05 var(--serif); letter-spacing: -.035em; }
.hv-preview-action { position: absolute; right: 40px; bottom: 56px; display: grid; gap: 9px; }
.hv-preview-action > span { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 19px 24px; color: var(--ink); background: var(--bg); font-size: 16px; font-weight: 600; transition: background .2s; }
.hv-preview:hover .hv-preview-action > span { background: #fff; }
.hv-preview-action > span > span { font-size: 25px; line-height: 1; }
.hv-preview-action small { font-size: 10px; letter-spacing: .07em; text-align: right; }
.hv-preview-index { position: absolute; bottom: 19px; left: 40px; font: 500 10px/1 var(--sans); letter-spacing: .15em; opacity: .65; }
.hv-tour { width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; padding: 0; border: 0; margin: 0; background: var(--bg); color: var(--ink); overflow: hidden; }
.hv-tour::backdrop { background: #15140f; }
.hv-tour [hidden] { display: none !important; }
.hv-tour button { font-family: var(--sans); cursor: pointer; color: inherit; }
.hv-tour button:focus-visible,.hv-tour a:focus-visible,.hv-preview:focus-visible { outline: 3px solid #348aac; outline-offset: -4px; }
.hv-scroll { height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; touch-action: pan-y; }
.hv-scroll::-webkit-scrollbar { display: none; }
.hv-runway { height: 430%; position: relative; }
.hv-pin { height: 100vh; height: 100dvh; width: 100%; position: sticky; top: 0; display: grid; grid-template-rows: 66px minmax(0,1fr) 86px; }
.hv-toolbar { background: var(--bg); color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 30px; z-index: 4; border-bottom: 1px solid var(--line); }
.hv-wordmark { display: flex; align-items: center; }
.hv-wordmark img { display: block; width: 96px; height: auto; }
.hv-toolbar h2 { font: 500 12px/1.3 var(--sans); letter-spacing: .04em; color: var(--muted); }
.hv-close { display: flex; align-items: center; gap: 16px; background: transparent; border: 0; min-height: 44px; padding: 0 6px 0 18px; font-size: 12px; }
.hv-close svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.4; fill: none; }
.hv-main { display: grid; grid-template-columns: minmax(0,1fr) minmax(350px,31%); min-height: 0; }
.hv-scene { position: relative; overflow: hidden; background: var(--ink); }
.hv-scene-heading { position: absolute; left: 25px; top: 69px; display: flex; gap: .25em; font: 400 clamp(26px,3.2vw,48px)/1 var(--serif); letter-spacing: -.04em; color: var(--bg); }
.hv-scene-heading em { color: var(--accent-soft); font-weight: 350; }
.hv-camera { position: absolute; inset: 0; }
.hv-camera > img,.hv-camera > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.hv-overhead,.hv-film { opacity: 0; }
.hv-tour.hv-has-overhead.hv-still .hv-overhead,.hv-tour.hv-video-ready:not(.hv-still) .hv-film { opacity: 1; }
.hv-scene::after { content: ''; pointer-events: none; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(21,20,15,.17),transparent 20%,transparent 80%,rgba(21,20,15,.7)); }
.hv-view-label { position: absolute; z-index: 2; top: 24px; left: 24px; background: #f6f3eceb; padding: 9px 12px; display: flex; align-items: center; gap: 8px; font: 600 10px/1.3 var(--sans); }
.hv-view-dot { width: 6px; height: 6px; background: #1c6d8e; border-radius: 50%; }
.hv-scene-bottom { position: absolute; bottom: 20px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: end; gap: 20px; z-index: 3; color: #fff; }
.hv-media-note { max-width: 26ch; font-size: 10px; line-height: 1.5; color: #f1f0e9; }
.hv-motion { background: transparent; border: 1px solid #ffffff85; padding: 10px 12px; min-height: 40px; font-size: 10px; white-space: nowrap; }
.hv-flow-key { display: flex; gap: 20px; align-self: center; font-size: 10px; letter-spacing: .02em; color: var(--line); }
.hv-flow-key > span { white-space: nowrap; }
.hv-loading { position: absolute; z-index: 3; top: 70px; left: 24px; padding: 8px 12px; background: #15140fe6; color: #fff; font-size: 11px; }
.hv-map-pins { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.hv-tour.hv-overhead-view .hv-map-pins,.hv-tour.hv-has-overhead.hv-still .hv-map-pins { opacity: 1; }
.hv-map-pin { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 9px; transform: translate(-50%,-50%); }
.hv-map-pin i { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: #f6f3ec; border: 1px solid var(--ink-2); box-shadow: 0 0 0 5px #f6f3ec33; font: normal 700 10px/1 var(--sans); }
.hv-map-pin > span { background: #15140fee; color: #fff; padding: 6px 9px; white-space: nowrap; font-size: 10px; }
.hv-map-pin--dig { left: 10%; top: 70%; }
.hv-map-pin--boom { left: 23%; top: 46%; }
.hv-map-pin--tank { left: 33%; top: 32%; }
.hv-story { padding: clamp(24px,3.3vw,54px) clamp(24px,2.5vw,42px) 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; overflow-y: auto; background: var(--bg); scrollbar-width: thin; }
.hv-chapter-number { display: flex; align-items: baseline; gap: 10px; font: 400 clamp(48px,5.3vw,82px)/.95 var(--serif); letter-spacing: -.06em; color: var(--water); margin-bottom: 25px; }
.hv-chapter-number > span { font: 500 11px/1 var(--sans); letter-spacing: .08em; color: var(--muted); }
.hv-chapter .hv-kicker { color: var(--water); margin-bottom: 13px; font-size: 9px; }
.hv-chapter h3 { font: 450 clamp(30px,2.65vw,44px)/1.08 var(--serif); letter-spacing: -.035em; margin-bottom: 20px; }
.hv-chapter > p:not(.hv-kicker) { font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.hv-chapter .hv-detail { margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px !important; color: var(--muted) !important; }
.hv-quote { margin-top: 23px; color: #fff; background: #1c6d8e; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-decoration: none; padding: 15px 17px; font-size: 12px; font-weight: 600; }
.hv-quote:hover { background: #154e64; }
.hv-diagram { border-top: 1px solid var(--line-2); padding-top: 14px; flex: 0 0 auto; }
.hv-diagram-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.hv-diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.hv-diagram text { font: 600 8px var(--sans); fill: var(--muted); letter-spacing: .05em; }
.hv-diagram p { font-size: 10px; line-height: 1.5; min-height: 30px; color: var(--muted); margin-top: 7px; }
.hv-diagram-water,.hv-diagram-vacuum,.hv-diagram-flow,.hv-diagram-fill { opacity: .2; transition: opacity .3s; }
.hv-diagram-utility { opacity: .18; transition: opacity .3s; }
[data-stage="1"] .hv-diagram-water,[data-stage="2"] .hv-diagram-water,[data-stage="2"] .hv-diagram-vacuum,[data-stage="2"] .hv-diagram-flow,[data-stage="2"] .hv-diagram-fill,[data-stage="3"] .hv-diagram-utility { opacity: 1; }
.hv-controls { position: relative; display: grid; grid-template-columns: 1fr minmax(440px,1.3fr) 1fr; align-items: center; gap: 28px; padding: 0 30px; background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
#hv-tour-help { font-size: 11px; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; line-height: 1.5; }
#hv-tour-help > span:first-child { grid-row: span 2; font-size: 26px; }
#hv-tour-help > span:last-child { grid-column: 2; color: var(--muted); font-size: 10px; }
.hv-stage-nav { display: flex; height: 100%; align-items: stretch; }
.hv-stage-nav button { background: none; border: 0; border-top: 2px solid transparent; flex: 1; padding: 12px 10px; color: var(--muted); font-size: 12px; text-align: left; transition: color .2s,background .2s; }
.hv-stage-nav button span { display: block; font-size: 10px; margin-bottom: 5px; opacity: .65; }
.hv-stage-nav button[aria-current] { color: var(--accent-deep); border-top-color: var(--water); background: var(--accent-soft); }
.hv-stage-nav button:hover { color: var(--accent-deep); background: var(--accent-soft); }
.hv-step-arrows { justify-self: end; display: flex; gap: 8px; }
.hv-step-arrows button { background: transparent; border: 1px solid var(--line-2); width: 44px; height: 44px; font-size: 22px; }
.hv-step-arrows button:disabled { opacity: .3; cursor: default; }
.hv-progress { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--line); }
.hv-progress > span { display: block; width: 100%; height: 100%; background: var(--water); transform: scaleX(var(--hv-progress,0)); transform-origin: left; }
.hv-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (min-width: 901px) and (max-height: 760px) {
  .hv-story { padding-top: 20px; gap: 12px; }
  .hv-chapter-number { font-size: 44px; margin-bottom: 15px; }
  .hv-chapter h3 { font-size: 30px; margin-bottom: 13px; }
  .hv-chapter > p:not(.hv-kicker) { font-size: 12px; }
  .hv-chapter .hv-detail { font-size: 11px !important; margin-top: 12px; padding-top: 10px; }
  .hv-diagram svg { max-height: 108px; }
}
@media (max-width: 900px) {
  .hv-pin { grid-template-rows: 54px minmax(0,1fr) 77px; }
  .hv-toolbar { padding: 0 18px; }
  .hv-wordmark img { width: 76px; }
  .hv-toolbar h2 { font-size: 11px; }
  .hv-close { gap: 6px; }
  .hv-close > span { display: none; }
  .hv-main { grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(180px,44%) minmax(0,1fr); }
  .hv-camera > img,.hv-camera > video { object-fit: contain; background: var(--ink); }
  .hv-story { padding: 21px 24px 16px; gap: 20px; display: grid; grid-template-columns: minmax(0,1fr) minmax(160px,32%); align-content: start; }
  .hv-chapter { position: relative; }
  .hv-chapter-number { position: absolute; top: -3px; right: 0; font-size: 31px; margin: 0; opacity: .6; }
  .hv-chapter-number > span { display: none; }
  .hv-chapter .hv-kicker { font-size: 8px; padding-right: 40px; margin-bottom: 8px; }
  .hv-chapter h3 { font-size: 30px; margin-bottom: 12px; }
  .hv-chapter h3 br { display: none; }
  .hv-chapter > p:not(.hv-kicker) { font-size: 12px; line-height: 1.6; }
  .hv-chapter .hv-detail { margin-top: 10px; padding-top: 10px; font-size: 11px !important; }
  .hv-diagram { align-self: end; }
  .hv-diagram-heading { font-size: 7px; }
  .hv-diagram-heading > span:last-child { display: none; }
  .hv-controls { padding: 0 16px; gap: 16px; grid-template-columns: minmax(0,1fr) auto; }
  #hv-tour-help { display: none; }
  .hv-stage-nav button { font-size: 11px; padding: 9px 9px; }
  .hv-step-arrows { gap: 6px; }
  .hv-step-arrows button { width: 38px; height: 42px; }
  .hv-view-label { top: 13px; left: 16px; padding: 7px 9px; font-size: 9px; }
  .hv-scene-heading,.hv-flow-key { display: none; }
  .hv-scene-bottom { bottom: 12px; left: 16px; right: 16px; }
  .hv-media-note { font-size: 8px; max-width: 32ch; }
  .hv-motion { padding: 6px 8px; min-height: 32px; font-size: 9px; }
  .hv-map-pin > span { font-size: 8px; padding: 4px 6px; }
  .hv-map-pin i { width: 23px; height: 23px; font-size: 8px; }
  .hv-map-pin { gap: 6px; }
}
@media (max-width: 600px) {
  .hv-preview { min-height: 420px; aspect-ratio: auto; margin-bottom: 26px; }
  .hv-preview::after { background: linear-gradient(0deg,rgba(21,20,15,.9),rgba(21,20,15,.1) 90%); }
  .hv-preview > img { object-position: 58% center; }
  .hv-preview-top { inset: 20px 22px auto; font-size: 8px; }
  .hv-preview-top > span:last-child { display: none; }
  .hv-preview-copy { left: 22px; bottom: 116px; }
  .hv-preview-copy strong { font-size: 35px; }
  .hv-preview-copy .hv-kicker { font-size: 8px; margin-bottom: 12px; }
  .hv-preview-action { bottom: 24px; left: 22px; right: 22px; }
  .hv-preview-action > span { padding: 14px 18px; font-size: 14px; }
  .hv-preview-action small,.hv-preview-index { display: none; }
  .hv-story { grid-template-columns: minmax(0,1fr); padding: 20px 22px; gap: 18px; }
  .hv-main { grid-template-rows: minmax(180px,42%) minmax(0,1fr); }
  .hv-diagram { padding-top: 10px; }
  .hv-diagram svg { max-height: 110px; }
  .hv-diagram p { min-height: 0; font-size: 9px; }
  .hv-chapter h3 { font-size: 30px; max-width: 90%; }
  .hv-chapter .hv-detail { font-size: 11px !important; }
  .hv-stage-nav button { font-size: 10px; padding: 9px 6px; }
  .hv-controls { gap: 10px; padding: 0 12px; }
  .hv-quote { margin-top: 15px; padding: 12px 14px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hv-pin { grid-template-rows: 46px minmax(0,1fr) 60px; }
  .hv-main { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0,1fr); }
  .hv-story { display: flex; padding: 15px 20px; }
  .hv-chapter-number { display: none; }
  .hv-chapter h3 { font-size: 25px; }
  .hv-diagram { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hv-preview > img,.hv-map-pins,.hv-diagram *,.hv-stage-nav button { transition: none; }
  .hv-preview:hover > img { transform: none; }
}
