:root {
  --ink: #071522;
  --ink-soft: #10283a;
  --panel: #0e3340;
  --paper: #f5fbf8;
  --paper-strong: #ffffff;
  --text: #10202b;
  --muted: #526575;
  --aqua: #47d7dc;
  --aqua-dark: #0b6c78;
  --gold: #f3bb45;
  --coral: #ee684f;
  --green: #74c79b;
  --border: rgba(16, 32, 43, 0.15);
  --shadow: 0 22px 60px rgba(7, 21, 34, 0.18);
  --heading: "Nunito Sans", "Avenir Next", Arial, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  background: var(--gold);
  color: var(--ink);
  left: 1rem;
  padding: 0.6rem 0.8rem;
  position: absolute;
  text-decoration: none;
  top: -4rem;
  z-index: 30;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  background: rgba(7, 21, 34, 0.96);
  border-bottom: 1px solid rgba(71, 215, 220, 0.22);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--max);
  padding: 0.8rem 1.25rem;
}

.brand {
  color: var(--paper-strong);
  display: grid;
  font-family: var(--heading);
  line-height: 1;
  text-decoration: none;
}

.brand span {
  color: var(--aqua);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.brand strong {
  color: var(--gold);
  font-size: 1.08rem;
  font-weight: 900;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a {
  color: #d6eef0;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a[aria-current="page"] {
  color: var(--gold);
}

.nav-toggle {
  background: transparent;
  border: 1px solid rgba(245, 251, 248, 0.5);
  border-radius: 8px;
  color: var(--paper-strong);
  display: none;
  font-family: var(--heading);
  font-weight: 900;
  padding: 0.55rem 0.75rem;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  max-width: 16ch;
}

h3 {
  font-size: 1.32rem;
}

p {
  margin: 0;
  overflow-wrap: break-word;
}

p + p {
  margin-top: 1rem;
}

.hero {
  background: var(--ink);
  color: var(--paper-strong);
  min-height: calc(100vh - 72px);
  overflow: hidden;
  position: relative;
}

.hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero::before {
  background: linear-gradient(90deg, rgba(7, 21, 34, 0.94) 0%, rgba(7, 21, 34, 0.74) 42%, rgba(7, 21, 34, 0.18) 76%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.hero-inner {
  display: grid;
  margin: 0 auto;
  max-width: var(--max);
  min-height: calc(100vh - 72px);
  min-width: 0;
  padding: 5.5rem 1.25rem 3rem;
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero-copy {
  align-self: center;
  max-width: 690px;
  min-width: 0;
}

.page-hero {
  background:
    radial-gradient(circle at top right, rgba(71, 215, 220, 0.24), transparent 36rem),
    linear-gradient(135deg, var(--ink) 0%, var(--panel) 100%);
  color: var(--paper-strong);
  overflow: hidden;
  padding: 5.5rem 1.25rem 4rem;
  position: relative;
}

.page-hero img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.page-hero::before {
  background: linear-gradient(90deg, rgba(7, 21, 34, 0.94), rgba(7, 21, 34, 0.72) 48%, rgba(7, 21, 34, 0.24));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.page-hero-inner {
  margin: 0 auto;
  max-width: var(--max);
  min-height: 23rem;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

.lede {
  color: #d9eef0;
  font-size: clamp(1.12rem, 2.4vw, 1.45rem);
  margin-top: 1.2rem;
  max-width: min(44rem, calc(100vw - 2.5rem));
}

.eyebrow {
  color: var(--aqua);
  font-family: var(--heading);
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  border-radius: 8px;
  display: inline-flex;
  font-family: var(--heading);
  font-weight: 900;
  justify-content: center;
  min-width: 10rem;
  padding: 0.85rem 1rem;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: var(--ink);
}

.button.secondary {
  background: rgba(7, 21, 34, 0.68);
  border: 1px solid rgba(71, 215, 220, 0.7);
  color: #dffcff;
}

.hero-facts {
  align-self: end;
  background: rgba(7, 21, 34, 0.9);
  border: 1px solid rgba(71, 215, 220, 0.3);
  border-radius: 8px;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  max-width: 930px;
  min-width: 0;
  padding: 1rem;
}

.hero-facts div {
  border-left: 4px solid var(--aqua);
  padding-left: 0.85rem;
}

.hero-facts strong {
  display: block;
  font-family: var(--heading);
  font-size: 1.1rem;
}

.hero-facts span {
  color: #c2d9dc;
  display: block;
  font-size: 0.93rem;
}

.notice {
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  padding: 1rem 1.25rem;
}

.notice div {
  margin: 0 auto;
  max-width: var(--max);
}

.section {
  padding: 4.5rem 1.25rem;
}

.section.dark {
  background: var(--ink);
  color: var(--paper-strong);
}

.section.green {
  background: #ddf2e6;
}

.section.aqua {
  background: #dff6f4;
}

.section-inner {
  margin: 0 auto;
  max-width: var(--max);
  min-width: 0;
  width: 100%;
}

.section-head {
  max-width: 780px;
  min-width: 0;
}

.section-head p,
.soft {
  color: var(--muted);
  font-size: 1.08rem;
  margin-top: 1rem;
  max-width: min(44rem, calc(100vw - 2.5rem));
}

.dark .section-head p,
.dark .soft {
  color: #c7dee1;
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.route-card,
.fact-card {
  background: var(--paper-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(7, 21, 34, 0.08);
  color: var(--text);
  padding: 1.25rem;
}

.dark .card,
.dark .route-card,
.dark .fact-card {
  background: rgba(245, 251, 248, 0.08);
  border-color: rgba(245, 251, 248, 0.18);
  color: var(--paper-strong);
}

.card h3,
.route-card h3,
.fact-card h3 {
  margin-bottom: 0.6rem;
}

.card p,
.route-card p,
.fact-card p {
  color: var(--muted);
}

.dark .card p,
.dark .route-card p,
.dark .fact-card p {
  color: #c7dee1;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.mini-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-family: var(--heading);
  font-size: 0.84rem;
  font-weight: 900;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.58rem 0.78rem;
  text-decoration: none;
}

.mini-button.primary {
  background: var(--gold);
  color: var(--ink);
}

.mini-button.secondary {
  border: 1px solid rgba(71, 215, 220, 0.72);
  color: var(--aqua);
}

.fact-row .mini-button.secondary,
.aqua .mini-button.secondary,
.green .mini-button.secondary,
.section:not(.dark) .card .mini-button.secondary {
  border-color: rgba(11, 108, 120, 0.45);
  color: var(--aqua-dark);
}

.mini-button:hover,
.mini-button:focus {
  transform: translateY(-1px);
}

.route-card {
  display: grid;
  min-height: 13rem;
  text-decoration: none;
}

.dark .route-card.feature-card {
  background:
    linear-gradient(135deg, rgba(71, 215, 220, 0.2), rgba(243, 187, 69, 0.16)),
    rgba(245, 251, 248, 0.12);
  border-color: rgba(243, 187, 69, 0.6);
  box-shadow: 0 22px 54px rgba(7, 21, 34, 0.32);
}

.dark .route-card.feature-card span,
.dark .route-card.feature-card strong {
  color: var(--gold);
}

.route-card span,
.fact-label {
  color: var(--aqua-dark);
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dark .route-card span,
.dark .fact-label {
  color: var(--aqua);
}

.route-card strong {
  align-self: end;
  color: var(--coral);
  font-family: var(--heading);
  font-weight: 900;
  margin-top: 1rem;
}

.split {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.phone-feature .split {
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.62fr);
}

.phone-feature .button {
  margin-top: 1rem;
}

.phone-feature .button.secondary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.phone-feature .button.secondary:hover,
.phone-feature .button.secondary:focus {
  background: #ffd16b;
  border-color: #ffd16b;
}

.phone-feature .soft a {
  color: var(--aqua-dark);
  font-weight: 700;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
}

.phone-feature .soft a:hover,
.phone-feature .soft a:focus {
  color: var(--ink);
  background: rgba(243, 187, 69, 0.34);
}

.phone-frame-wrap {
  display: flex;
  justify-content: center;
}

.phone-frame {
  background: #071522;
  border: 0.72rem solid #071522;
  border-radius: 2.4rem;
  box-shadow: 0 28px 70px rgba(7, 21, 34, 0.28);
  max-width: min(23rem, 82vw);
  padding: 0.85rem 0.55rem 1rem;
  position: relative;
  width: 100%;
}

.phone-frame::before {
  background: rgba(245, 251, 248, 0.82);
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.34rem;
  margin: 0 auto 0.72rem;
  width: 4.2rem;
}

.phone-frame iframe {
  aspect-ratio: 9 / 16;
  background: #000000;
  border: 0;
  border-radius: 1.5rem;
  display: block;
  width: 100%;
}

.image-panel {
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.image-panel img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.noticeboard-upgrade {
  align-items: center;
}

.noticeboard-panel {
  background: #ffffff;
}

.noticeboard-panel img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.photo-card {
  background: var(--paper-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(7, 21, 34, 0.08);
  overflow: hidden;
}

.photo-card a {
  display: block;
}

.photo-card a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.photo-card img {
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  transition: filter 160ms ease, transform 160ms ease;
  width: 100%;
}

.photo-card a:hover img,
.photo-card a:focus-visible img {
  filter: saturate(1.06);
  transform: scale(1.015);
}

.photo-card figcaption {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.9rem 1rem 1rem;
}

.caption {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.fact-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.fact-row {
  background: var(--paper-strong);
  border-left: 5px solid var(--aqua);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 21, 34, 0.07);
  color: var(--text);
  display: grid;
  justify-items: start;
  padding: 1rem;
  text-align: left;
}

.fact-row strong {
  color: var(--text);
  display: block;
  font-family: var(--heading);
}

.fact-row span {
  color: var(--muted);
}

.context-section .split {
  align-items: start;
}

.context-section .fact-list {
  margin-top: 0;
}

.context-section .fact-row {
  padding: 1.15rem 1.25rem;
}

.sports-hero::before {
  background:
    linear-gradient(90deg, rgba(7, 21, 34, 0.95), rgba(7, 21, 34, 0.72) 42%, rgba(7, 21, 34, 0.22)),
    radial-gradient(circle at 82% 20%, rgba(243, 187, 69, 0.32), transparent 22rem);
}

.sports-icon-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.4rem;
  max-width: 34rem;
}

.sports-icon-strip span {
  align-items: center;
  background: rgba(245, 251, 248, 0.14);
  border: 1px solid rgba(71, 215, 220, 0.45);
  border-radius: 8px;
  display: inline-flex;
  font-size: 1.8rem;
  height: 3.3rem;
  justify-content: center;
  width: 3.3rem;
}

.sports-lead {
  background:
    linear-gradient(180deg, var(--paper) 0%, #e9f6f0 100%);
}

.venue-stack {
  display: grid;
  gap: 0.95rem;
}

.venue-card {
  background: var(--paper-strong);
  border: 1px solid var(--border);
  border-left: 6px solid var(--aqua);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(7, 21, 34, 0.08);
  padding: 1.25rem;
}

.venue-card.primary-venue {
  border-left-color: var(--gold);
  box-shadow: 0 18px 46px rgba(243, 187, 69, 0.16);
}

.venue-card span {
  color: var(--aqua-dark);
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.venue-card h3 {
  margin-top: 0.35rem;
}

.venue-card p {
  color: var(--muted);
  margin-top: 0.45rem;
}

.sports-showcase {
  background:
    radial-gradient(circle at top left, rgba(71, 215, 220, 0.18), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(243, 187, 69, 0.16), transparent 28rem),
    var(--ink);
}

.sport-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.sport-tile {
  background: rgba(245, 251, 248, 0.09);
  border: 1px solid rgba(245, 251, 248, 0.18);
  border-radius: 8px;
  color: var(--paper-strong);
  min-height: 14rem;
  overflow: hidden;
  padding: 1.1rem;
  position: relative;
}

.sport-tile::after {
  background: linear-gradient(135deg, rgba(71, 215, 220, 0.22), rgba(243, 187, 69, 0.18));
  content: "";
  height: 5rem;
  position: absolute;
  right: -2rem;
  top: -2rem;
  transform: rotate(18deg);
  width: 7rem;
}

.sport-icon {
  align-items: center;
  background: var(--paper-strong);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 2.7rem;
  height: 4.8rem;
  justify-content: center;
  margin-bottom: 1rem;
  position: relative;
  width: 4.8rem;
  z-index: 1;
}

.sport-tile h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.sport-tile p {
  color: #c7dee1;
  font-size: 0.98rem;
  position: relative;
  z-index: 1;
}

.sports-cta {
  background:
    linear-gradient(135deg, #f5fbf8 0%, #e3f6f3 54%, #fff4cf 100%);
}

.sports-scoreboard,
.sports-question-board {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sports-scoreboard div {
  background: var(--ink);
  border-radius: 8px;
  color: var(--paper-strong);
  min-height: 10rem;
  padding: 1.15rem;
}

.sports-scoreboard strong {
  color: var(--gold);
  display: block;
  font-family: var(--heading);
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 0.9;
}

.sports-scoreboard span {
  color: #d9eef0;
  display: block;
  font-weight: 800;
  margin-top: 0.75rem;
}

.sports-question-board article {
  background: var(--ink);
  border-top: 5px solid var(--gold);
  border-radius: 8px;
  color: var(--paper-strong);
  min-height: 10rem;
  padding: 1.35rem;
}

.sports-question-board h3 {
  color: var(--gold);
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  line-height: 1.1;
  margin-bottom: 0.7rem;
}

.sports-question-board p {
  color: #d9eef0;
  font-weight: 800;
}

.source-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.source-card {
  background: var(--paper-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem;
}

.source-card a {
  color: var(--aqua-dark);
  font-weight: 900;
}

.plain-list {
  color: var(--muted);
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.plain-list li + li {
  margin-top: 0.5rem;
}

.sequence-wrap {
  background: var(--paper);
  padding: clamp(3.8rem, 6vw, 5rem) 1.25rem clamp(7rem, 9vw, 8.5rem);
}

.sequence-nav {
  align-items: center;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, auto) minmax(0, 1fr);
  margin: 0 auto;
  max-width: var(--max);
}

.sequence-link,
.sequence-home {
  background: var(--ink);
  border: 1px solid rgba(16, 32, 43, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(7, 21, 34, 0.12);
  color: var(--paper-strong);
  display: grid;
  justify-content: start;
  min-height: 5.2rem;
  padding: 1.05rem 1.35rem;
  text-decoration: none;
}

.sequence-link span {
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sequence-link strong {
  font-family: var(--heading);
  font-size: 1.2rem;
}

.sequence-link.next {
  justify-content: end;
  text-align: right;
}

.sequence-link.disabled {
  opacity: 0.45;
}

.sequence-home {
  align-items: center;
  background: var(--gold);
  color: var(--ink);
  display: inline-flex;
  font-family: var(--heading);
  font-weight: 900;
  justify-content: center;
  justify-self: center;
  min-width: 9.5rem;
  padding-inline: 1.6rem;
}

.site-footer {
  background: var(--ink);
  color: var(--paper-strong);
  padding: 2.5rem 1.25rem;
}

.footer-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: var(--max);
}

.footer-title {
  color: var(--gold);
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 900;
}

.site-footer p:not(.footer-title) {
  color: #c7dee1;
  max-width: 42rem;
}

.site-footer nav {
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: #dffcff;
  font-weight: 800;
  text-decoration: none;
}

.back-to-top {
  background: var(--gold);
  border: 0;
  border-radius: 8px;
  bottom: 1rem;
  box-shadow: 0 12px 30px rgba(7, 21, 34, 0.28);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--heading);
  font-weight: 900;
  opacity: 0;
  padding: 0.8rem 1rem;
  pointer-events: none;
  position: fixed;
  right: 1rem;
  transform: translateY(0.6rem);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 25;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.evidence-workspace {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 27rem);
  align-items: start;
}

.map-panel,
.idea-builder,
.thumb-drawer,
.download-panel,
.pano-viewer {
  background: rgba(245, 251, 248, 0.08);
  border: 1px solid rgba(245, 251, 248, 0.18);
  border-radius: 8px;
}

.evidence-map-column {
  display: grid;
  gap: 0.85rem;
}

.pano-viewer {
  color: var(--paper-strong);
  padding: clamp(1rem, 1.6vw, 1.35rem);
}

.main-pano-viewer {
  min-height: 100%;
}

.pano-header {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pano-header h3,
.pano-header p {
  margin: 0;
}

.pano-header h3 {
  color: var(--paper-strong);
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 0.95;
}

.pano-header p {
  color: #d9eef0;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem);
  margin-top: 0.65rem;
  max-width: 60rem;
}

.pano-tag {
  background: rgba(245, 251, 248, 0.15);
  border: 1px solid rgba(245, 251, 248, 0.25);
  border-radius: 999px;
  color: var(--paper-strong);
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.45rem 0.75rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.sphere-viewer {
  background: #06111b;
  border: 1px solid rgba(245, 251, 248, 0.22);
  border-radius: 8px;
  min-height: clamp(32rem, 66vh, 48rem);
  overflow: hidden;
  width: 100%;
}

.sphere-viewer .pnlm-container {
  border-radius: 8px;
}

.pano-stage,
.sphere-stage {
  height: 100%;
  width: 100%;
}

.pano-fallback,
.pano-scroll img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.viewer-fallback {
  align-content: center;
  color: var(--paper-strong);
  display: grid;
  gap: 0.65rem;
  min-height: inherit;
  padding: 1.25rem;
  text-align: center;
}

.viewer-fallback h4,
.viewer-fallback p {
  margin: 0;
}

.viewer-buttons {
  margin-top: 1rem;
}

.raw-pano-details {
  border-top: 1px solid rgba(245, 251, 248, 0.14);
  margin-top: 1rem;
  padding-top: 0.85rem;
}

.raw-pano-details summary,
.download-panel summary,
.thumb-drawer summary {
  color: var(--paper-strong);
  cursor: pointer;
  font-family: var(--heading);
  font-weight: 900;
}

.pano-scroll {
  border-radius: 8px;
  margin-top: 0.8rem;
  max-height: 19rem;
  overflow: auto;
}

.viewer-note {
  border-top: 1px solid rgba(245, 251, 248, 0.14);
  font-size: 0.95rem;
  padding: 0.85rem 1rem 1rem;
}

.viewer-note,
.idea-builder p {
  color: #c7dee1;
}

.site-photo-map {
  aspect-ratio: 1104 / 867;
  background:
    linear-gradient(rgba(7, 21, 34, 0.03), rgba(7, 21, 34, 0.03)),
    url("../img/site-photo-point-map-google-scale.webp") center / contain no-repeat,
    #08151f;
  border-radius: 8px 8px 0 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.site-photo-map::before {
  background: rgba(7, 21, 34, 0.02);
  content: "";
  inset: 0;
  position: absolute;
}

.map-path {
  inset: 0;
  position: absolute;
  width: 100%;
  height: 100%;
}

.map-path polyline {
  fill: none;
  stroke: rgba(243, 187, 69, 0.95);
  stroke-dasharray: 1.2 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.75;
  vector-effect: non-scaling-stroke;
}

.map-point {
  align-items: center;
  background: var(--gold);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(7, 21, 34, 0.32);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--heading);
  font-size: 0.62rem;
  font-weight: 900;
  height: 1.42rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -50%);
  width: 1.42rem;
  z-index: 2;
}

.map-point.waterfront {
  background: var(--aqua);
}

.map-point.ballow-road {
  background: #ee684f;
  color: var(--paper-strong);
}

.map-point.middle-slope {
  background: var(--green);
}

.map-point.is-active,
.map-point:hover,
.map-point:focus {
  background: #6d5bd0;
  border-color: var(--paper-strong);
  box-shadow: 0 8px 20px rgba(7, 21, 34, 0.34);
  color: var(--paper-strong);
  outline: 3px solid rgba(245, 251, 248, 0.72);
  transform: translate(-50%, -50%) scale(1.12);
}

.map-label {
  background: rgba(7, 21, 34, 0.78);
  border: 1px solid rgba(245, 251, 248, 0.25);
  border-radius: 999px;
  color: var(--paper-strong);
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.35rem 0.55rem;
  position: absolute;
  z-index: 3;
}

.map-label.high {
  right: 0.7rem;
  top: 0.7rem;
}

.map-label.low {
  bottom: 0.7rem;
  left: 0.7rem;
}

.photo-preview {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 7rem minmax(0, 1fr);
  padding: 1rem;
}

.preview-label {
  color: var(--aqua);
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-preview img {
  aspect-ratio: 2 / 1;
  border-radius: 6px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.photo-preview strong,
.photo-preview span,
.photo-preview a {
  display: block;
}

.photo-preview strong,
.idea-builder h3,
.thumb-drawer summary {
  color: var(--paper-strong);
  font-family: var(--heading);
  font-weight: 900;
}

.photo-preview span {
  color: #c7dee1;
  font-size: 0.9rem;
}

.photo-preview a {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 900;
  margin-top: 0.25rem;
}

.download-panel,
.thumb-drawer {
  padding: 1rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.download-actions .button {
  flex: 1 1 10rem;
}

.thumb-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  margin-top: 1rem;
}

.thumb-button {
  background: rgba(245, 251, 248, 0.08);
  border: 1px solid rgba(245, 251, 248, 0.18);
  border-radius: 8px;
  color: var(--paper-strong);
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.thumb-button img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  width: 100%;
}

.thumb-button span {
  background: rgba(7, 21, 34, 0.84);
  border-radius: 999px;
  bottom: 0.35rem;
  font-family: var(--heading);
  font-size: 0.76rem;
  font-weight: 900;
  left: 0.35rem;
  padding: 0.14rem 0.45rem;
  position: absolute;
}

.thumb-button.is-active,
.thumb-button:hover,
.thumb-button:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(243, 187, 69, 0.28);
}

.idea-builder {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 1.25rem;
  padding: 1.25rem;
}

.idea-builder > div {
  max-width: 74rem;
}

.idea-form {
  display: grid;
  gap: 1rem;
}

.idea-form fieldset {
  border: 1px solid rgba(245, 251, 248, 0.18);
  border-radius: 8px;
  margin: 0;
  padding: 1rem;
}

.idea-form legend {
  color: var(--gold);
  font-family: var(--heading);
  font-weight: 900;
  padding: 0 0.35rem;
}

.idea-checks {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.idea-checks label {
  align-items: start;
  color: #d9eef0;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: auto minmax(0, 1fr);
}

.idea-checks input {
  margin-top: 0.45rem;
}

.field-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid label {
  color: var(--paper-strong);
  display: grid;
  font-family: var(--heading);
  font-weight: 900;
  gap: 0.35rem;
}

.field-grid input,
.field-grid textarea,
.generated-prompt {
  background: rgba(245, 251, 248, 0.96);
  border: 1px solid rgba(7, 21, 34, 0.25);
  border-radius: 8px;
  color: var(--ink);
  font: 400 1rem/1.45 var(--body);
  padding: 0.8rem;
  width: 100%;
}

.field-grid textarea {
  resize: vertical;
}

.generated-prompt {
  min-height: 13rem;
  resize: vertical;
}

@media (max-width: 1180px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    background: var(--ink);
    border-top: 1px solid rgba(71, 215, 220, 0.18);
    display: none;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    inset: 100% 0 auto 0;
    padding: 0.75rem 1.25rem 1rem;
    position: absolute;
  }

  .nav-links.is-open {
    display: grid;
  }

  .site-header {
    position: sticky;
  }

  .site-nav {
    position: relative;
  }

  .nav-links a {
    padding: 0.7rem 0;
  }

  .grid.three,
  .grid.four,
  .photo-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .phone-feature .split {
    grid-template-columns: 1fr;
  }

  .sport-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .footer-inner,
  .evidence-workspace,
  .idea-builder,
  .sequence-nav {
    grid-template-columns: 1fr;
  }

  .sequence-link.next {
    text-align: left;
  }

  .page-hero .lede,
  .section-head p,
  .soft {
    max-width: 18.5rem;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(1.95rem, 8.8vw, 2.8rem);
    overflow-wrap: break-word;
  }

  h2 {
    font-size: clamp(1.6rem, 7vw, 2.25rem);
    overflow-wrap: break-word;
  }

  .hero-inner {
    padding-top: 4rem;
  }

  .lede,
  .section-head p,
  .soft {
    max-width: calc(100vw - 2.5rem);
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(7, 21, 34, 0.94) 0%, rgba(7, 21, 34, 0.76) 68%, rgba(7, 21, 34, 0.45) 100%);
  }

  .button {
    width: 100%;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .sports-scoreboard,
  .sports-question-board {
    grid-template-columns: 1fr;
  }

  .sport-grid {
    grid-template-columns: 1fr;
  }

  .sport-tile {
    min-height: 0;
  }

  .field-grid,
  .idea-checks {
    grid-template-columns: 1fr;
  }

  .pano-header,
  .viewer-buttons,
  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .photo-preview {
    grid-template-columns: 1fr;
  }

  .sphere-viewer {
    min-height: 24rem;
  }

  .site-photo-map {
    min-height: 0;
  }
}
