:root {
  --ink: #14212a;
  --muted: #5f6b70;
  --paper: #fbfbf8;
  --white: #ffffff;
  --mist: #eef5f2;
  --line: rgba(20, 33, 42, .15);
  --deep: #0d3340;
  --bay: #116a7b;
  --leaf: #4f7a52;
  --clay: #bb5c43;
  --sun: #e8b84d;
  --violet: #6255a5;
  --shadow: 0 18px 42px rgba(13, 51, 64, .13);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 40;
  padding: .75rem 1rem;
  border-radius: var(--radius);
  background: var(--deep);
  color: var(--white);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 251, 248, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1180px;
  min-height: 72px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  min-width: 240px;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 190deg, var(--bay), var(--leaf), var(--sun), var(--clay), var(--bay));
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-text {
  display: grid;
  gap: .04rem;
}

.brand-text strong,
h1,
h2,
h3,
.nav-links a,
.button,
.section-label,
.stat strong {
  font-family: "Nunito Sans", Arial, sans-serif;
}

.brand-text strong {
  color: var(--deep);
  font-size: .98rem;
  text-transform: uppercase;
}

.brand-text span {
  color: var(--muted);
  font-size: .78rem;
}

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .15rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 900;
  padding: .56rem .55rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--mist);
  border-color: var(--line);
  color: var(--bay);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  min-height: 42px;
  padding: .6rem .85rem;
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 72px));
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(9, 36, 46, .92) 0%, rgba(9, 36, 46, .78) 45%, rgba(9, 36, 46, .28) 72%, rgba(9, 36, 46, .05) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 2rem));
  margin-left: clamp(1.25rem, 4vw, 4.75rem);
  padding: 5rem 0 7rem;
  color: var(--white);
}

.hero-copy h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(3rem, 7vw, 7.2rem);
  line-height: .9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 span {
  display: block;
}

.hero-lede,
.lede {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1.03rem, 1.6vw, 1.24rem);
}

.hero-lede {
  color: rgba(255, 255, 255, .92);
  margin-bottom: 1.7rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: .75rem 1rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  text-decoration: none;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 900;
  cursor: pointer;
}

.small-button {
  min-height: 38px;
  padding: .58rem .72rem;
  font-size: .68rem;
}

.button.primary {
  color: #172018;
  background: var(--sun);
  border-color: #c79524;
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .55);
}

.button.ghost {
  color: var(--deep);
  background: var(--white);
  border-color: var(--line);
}

.notice-band {
  display: grid;
  grid-template-columns: minmax(180px, .4fr) 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem clamp(1.25rem, 4vw, 4.5rem);
  background: var(--deep);
  color: var(--white);
}

.notice-band strong {
  color: var(--sun);
}

.home-video-band {
  width: 100%;
  padding: clamp(3.5rem, 7vw, 6rem) 1.25rem;
  background:
    linear-gradient(110deg, rgba(13, 51, 64, .96), rgba(17, 106, 123, .84)),
    var(--deep);
  color: var(--white);
}

.home-video-layout {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.home-video-copy {
  max-width: 560px;
}

.home-video-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: .95;
}

.home-video-copy p {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.home-video-band .section-label {
  color: var(--sun);
}

.phone-frame.home-phone-frame {
  width: min(100%, 400px);
  box-shadow: 0 34px 72px rgba(0, 0, 0, .34);
}

.home-phone-frame .home-portrait-video {
  object-fit: cover;
}

.section,
.page-hero {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.page-hero h1,
.section-heading h2,
.wide-copy h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.7vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.page-hero .lede {
  color: var(--muted);
  margin-top: 1rem;
}

.hero.page-hero {
  width: 100%;
  max-width: none;
  min-height: min(620px, calc(100vh - 72px));
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0;
  grid-template-columns: none;
}

.hero.page-hero .hero-copy {
  width: min(860px, calc(100% - 2rem));
}

.hero.page-hero .hero-copy h1 {
  font-size: clamp(2.7rem, 6vw, 6.3rem);
}

.hero.page-hero .hero-lede {
  color: rgba(255, 255, 255, .92);
}

.hero.page-hero .section-label {
  color: var(--sun);
}

.hero-caption {
  max-width: 700px;
  margin: .95rem 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: .94rem;
}

.section-heading {
  display: grid;
  gap: .8rem;
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.section-heading p,
.wide-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-label {
  color: var(--clay);
  font-size: .72rem;
  text-transform: uppercase;
  font-weight: 900;
}

.media-card,
.feature-card,
.source-card,
.scenario-card,
.tool-card,
.prompt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-card figcaption {
  padding: .85rem 1rem 1rem;
  color: var(--muted);
  font-size: .92rem;
}

.stats-row,
.card-grid,
.source-grid,
.tool-grid,
.scenario-grid,
.prompt-grid {
  display: grid;
  gap: 1rem;
}

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

.stat {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.stat strong {
  display: block;
  color: var(--deep);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: .92rem;
}

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

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

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

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

.feature-card,
.source-card,
.scenario-card,
.tool-card,
.prompt-card {
  padding: 1.1rem;
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.feature-card[data-image-label]::before {
  content: attr(data-image-label);
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 2;
  padding: .3rem .48rem;
  border: 1px solid rgba(255, 255, 255, .56);
  border-radius: 999px;
  background: rgba(13, 51, 64, .78);
  color: var(--white);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-card img {
  width: calc(100% + 2.2rem);
  margin: -1.1rem -1.1rem 1rem;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e8eee9;
  border-bottom: 1px solid var(--line);
}

.feature-card img.image-contain {
  object-fit: contain;
  padding: .55rem;
  background:
    linear-gradient(135deg, rgba(238, 245, 242, .9), rgba(248, 244, 230, .9)),
    #f4f2e8;
}

.feature-card h3,
.source-card h3,
.scenario-card h3,
.tool-card h3,
.prompt-card h3 {
  margin: 0 0 .45rem;
  line-height: 1.14;
}

.feature-card p,
.source-card p,
.scenario-card p,
.tool-card p,
.prompt-card p {
  margin: 0 0 .8rem;
  color: var(--muted);
}

.feature-card a,
.source-card a,
.tool-card a,
.prompt-card a {
  align-self: end;
  color: var(--bay);
  font-weight: 800;
}

.accent-band {
  width: 100%;
  max-width: none;
  padding: clamp(3.5rem, 7vw, 6rem) max(1.25rem, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, #eef5f2 0%, #f8f4e6 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wide-copy {
  max-width: 920px;
  margin-bottom: 1.5rem;
}

.examples-hero .hero-actions {
  margin-top: 1.5rem;
}

.example-hero-card img {
  aspect-ratio: 16 / 10;
}

.example-boundary {
  margin-top: 0;
}

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

.community-example-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.community-example-card.feature-example {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  grid-template-rows: auto;
}

.community-example-card figure {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--deep);
}

.community-example-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: linear-gradient(135deg, #082833, #143f49);
}

.community-example-card figcaption {
  padding: .55rem .75rem;
  color: rgba(255, 255, 255, .86);
  font-size: .78rem;
}

.community-example-copy {
  padding: 1rem;
}

.community-example-copy h3 {
  margin: .35rem 0 .55rem;
  line-height: 1.1;
}

.community-example-copy p {
  margin: 0 0 .85rem;
  color: var(--muted);
}

.community-example-copy p:last-child {
  margin-bottom: 0;
}

.rodney-process-note {
  margin-bottom: 1rem;
}

.rodney-process-note p:last-child {
  margin-bottom: 0;
}

.example-status {
  display: inline-block;
  color: var(--clay);
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.example-submit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.example-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.example-cta p {
  margin: 0;
  color: var(--muted);
}

.method-list {
  display: grid;
  gap: .9rem;
  counter-reset: method;
}

.method-item {
  counter-increment: method;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.method-item::before {
  content: counter(method);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bay);
  color: var(--white);
  font-weight: 900;
}

.method-item h3,
.method-item p {
  margin: 0;
}

.method-item p {
  color: var(--muted);
}

.evidence-workspace-section {
  width: min(1880px, calc(100% - 1.25rem));
}

.evidence-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: clamp(.9rem, 1.35vw, 1.35rem);
  align-items: start;
}

.idea-workbench {
  grid-column: 1 / -1;
}

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

.compat-note {
  max-width: 920px;
  margin-top: .9rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(187, 92, 67, .26);
  border-left: 6px solid var(--clay);
  border-radius: var(--radius);
  background: rgba(248, 244, 230, .78);
  color: var(--muted);
  font-size: .95rem;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 1rem;
  align-items: stretch;
}

.map-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-canvas {
  position: relative;
  aspect-ratio: 1054 / 850;
  min-height: 0;
  background:
    linear-gradient(rgba(7, 21, 34, .05), rgba(7, 21, 34, .05)),
    url("images/ferry-terminal-site-map-google.webp") center / contain no-repeat,
    #08151f;
  overflow: hidden;
}

.map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 34, .03);
  pointer-events: none;
}

.map-canvas::after {
  content: "Rounded GPS photo points over supplied satellite map";
  position: absolute;
  left: 1rem;
  top: 1rem;
  padding: .35rem .55rem;
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .8rem;
}

.compact-map-panel .map-canvas {
  min-height: 0;
}

.compact-map-panel .map-canvas::after {
  content: "Rounded GPS photo points";
}

.compact-map-panel .map-point {
  width: 1.42rem;
  height: 1.42rem;
  font-size: .58rem;
}

.map-point {
  position: absolute;
  z-index: 3;
  width: 1.55rem;
  height: 1.55rem;
  transform: translate(-50%, -50%);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  box-shadow: 0 5px 14px rgba(7, 21, 34, .32);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-size: .64rem;
  font-weight: 900;
  line-height: 1;
}

.map-point.map-zone-water {
  background: #43c7c7;
}

.map-point.map-zone-foreshore {
  background: #61b881;
}

.map-point.map-zone-road {
  background: var(--clay);
  color: var(--white);
}

.map-point.active {
  z-index: 4;
  background: var(--violet);
  border-color: var(--white);
  color: var(--white);
  outline: 3px solid rgba(255, 255, 255, .7);
  transform: translate(-50%, -50%) scale(1.12);
}

.map-side {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 1rem;
}

.photo-preview {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.selected-photo-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--deep);
}

.selected-photo-frame img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.selected-photo-frame span,
.pano-tag,
.thumb-list span {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  background: rgba(13, 51, 64, .8);
  color: var(--white);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.selected-photo-frame span {
  left: .55rem;
  bottom: .55rem;
  padding: .32rem .5rem;
}

.photo-preview h3 {
  margin: .9rem 0 .25rem;
}

.photo-preview p {
  margin: 0;
  color: var(--muted);
}

.photo-preview .photo-meta {
  margin-bottom: .35rem;
  font-size: .86rem;
}

.selected-photo-compact {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: .8rem;
  align-items: center;
}

.selected-photo-compact img {
  width: 112px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--deep);
}

.selected-photo-compact h3 {
  margin: .1rem 0 .2rem;
  font-size: 1.05rem;
  line-height: 1.1;
}

.selected-photo-compact .section-label {
  font-size: .6rem;
}

.download-panel {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.download-panel h3,
.download-panel p {
  margin: 0;
}

.download-panel p {
  color: var(--muted);
  margin-top: .2rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .85rem;
}

.download-actions .button {
  flex: 1 1 135px;
}

.compact-disclosure,
.thumb-drawer {
  padding: .9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.compact-disclosure summary,
.thumb-drawer summary,
.prompt-drawer summary {
  cursor: pointer;
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compact-disclosure[open] summary,
.thumb-drawer[open] summary,
.prompt-drawer[open] summary {
  margin-bottom: .75rem;
}

.thumb-drawer .thumb-list {
  max-height: 430px;
  padding: 0;
}

.thumb-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  max-height: 560px;
  overflow: auto;
  padding: .3rem;
}

.thumb-item {
  display: grid;
  gap: .25rem;
}

.thumb-list button {
  position: relative;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
}

.thumb-list button.active {
  border-color: var(--violet);
}

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

.thumb-list span {
  left: .28rem;
  bottom: .28rem;
  padding: .18rem .34rem;
  background: rgba(20, 33, 42, .78);
  font-size: .58rem;
}

.thumb-select {
  display: flex;
  align-items: center;
  gap: .3rem;
  color: var(--muted);
  font-size: .72rem;
}

.thumb-select input {
  accent-color: var(--bay);
}

.pano-viewer {
  padding: 1rem;
  background: var(--deep);
  color: var(--white);
  border-radius: var(--radius);
}

.main-pano-viewer {
  min-height: 100%;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 28px 60px rgba(13, 51, 64, .18);
}

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

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

.pano-header h3 {
  margin-bottom: .45rem;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1;
}

.pano-header p {
  max-width: 820px;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, .82);
}

.pano-tag {
  position: static;
  flex: 0 0 auto;
  padding: .34rem .55rem;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .24);
}

.pano-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .22);
}

.pano-scroll img {
  max-width: none;
  width: 1800px;
  height: 900px;
  object-fit: cover;
}

.pano-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr);
  gap: 1rem;
  align-items: stretch;
}

.sphere-viewer {
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius);
  background: #050607;
}

.main-sphere-viewer {
  min-height: clamp(520px, 65vh, 760px);
}

.sphere-viewer .pnlm-container {
  border-radius: var(--radius);
}

.viewer-fallback {
  display: grid;
  align-content: center;
  min-height: inherit;
  margin: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, .82);
}

.viewer-fallback h4 {
  margin: 0 0 .5rem;
  color: var(--white);
  font-size: 1.15rem;
}

.viewer-fallback p {
  margin: 0 0 .55rem;
}

.pano-pipeline,
.idea-prompt-form,
.raw-pano-details {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

.pano-pipeline {
  padding: 1rem;
}

.pano-pipeline h4 {
  margin: 0 0 .55rem;
  font-size: 1.05rem;
  line-height: 1.2;
}

.pano-pipeline ol {
  margin: 0 0 .9rem 1.1rem;
  padding: 0;
  color: rgba(255, 255, 255, .82);
}

.workflow-status {
  margin: .75rem 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
}

.prompt-drawer {
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  padding: 1rem;
}

.idea-workbench-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  padding: clamp(1rem, 1.6vw, 1.35rem);
  background: var(--deep);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  box-shadow: 0 28px 60px rgba(13, 51, 64, .18);
}

.compact-pipeline {
  display: grid;
  grid-template-columns: minmax(220px, .42fr) minmax(0, 1fr) auto minmax(190px, .42fr);
  gap: .85rem;
  align-items: center;
}

.compact-pipeline h4,
.compact-pipeline p {
  margin: 0;
}

.compact-pipeline .button-row {
  justify-content: flex-start;
  white-space: nowrap;
}

.compact-pipeline .workflow-status {
  margin: 0;
}

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

.idea-prompt-form {
  margin-top: 1rem;
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.idea-prompt-form label {
  display: grid;
  gap: .35rem;
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
}

.prompt-drawer .idea-prompt-form {
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  align-items: start;
}

.lane-fieldset {
  grid-column: 1 / -1;
  margin: 0;
  padding: .72rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
}

.lane-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: .22rem .8rem;
}

.lane-extra-inline {
  margin-top: .55rem;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  gap: .55rem;
  align-items: center;
}

.idea-prompt-form .lane-check {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 0;
  padding: .18rem .22rem;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, .9);
  cursor: pointer;
}

.lane-check input {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--bay);
}

.idea-prompt-form .lane-check span {
  font-family: "Atkinson Hyperlegible", Arial, sans-serif;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.18;
  text-transform: none;
}

.idea-prompt-form .lane-check:has(input:checked) {
  background: rgba(232, 184, 77, .16);
  color: var(--white);
}

.idea-prompt-form label span,
.lane-fieldset legend,
.raw-pano-details summary {
  font-family: "Nunito Sans", Arial, sans-serif;
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.idea-prompt-form select,
.idea-prompt-form input,
.idea-prompt-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  padding: .72rem;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font: inherit;
}

.idea-prompt-form .lane-check input {
  width: 15px;
  height: 15px;
  min-width: 15px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 3px;
  background: var(--white);
}

.idea-prompt-form textarea {
  resize: vertical;
}

.idea-prompt-form .prompt-output-label,
.idea-prompt-form .honesty-notes-label,
.idea-prompt-form .button-row {
  grid-column: 1 / -1;
}

.idea-prompt-form [readonly] {
  min-height: 220px;
  background: #f7fbf8;
}

.prompt-actions {
  justify-content: flex-start;
}

.raw-pano-details {
  margin-top: 1rem;
  padding: .9rem;
}

.raw-pano-details summary {
  cursor: pointer;
  color: var(--white);
}

.raw-pano-details .pano-scroll {
  margin-top: .85rem;
}

.spectrum-rail {
  display: grid;
  gap: .8rem;
}

.spectrum-step {
  display: grid;
  grid-template-columns: minmax(120px, .25fr) 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-left: 6px solid var(--bay);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(13, 51, 64, .08);
}

.spectrum-step:nth-child(2) { border-left-color: var(--leaf); }
.spectrum-step:nth-child(3) { border-left-color: var(--sun); }
.spectrum-step:nth-child(4) { border-left-color: var(--clay); }
.spectrum-step:nth-child(5) { border-left-color: var(--violet); }

.spectrum-step strong {
  font-family: "Nunito Sans", Arial, sans-serif;
  text-transform: uppercase;
  font-size: .78rem;
}

.spectrum-step h3,
.spectrum-step p {
  margin: 0;
}

.spectrum-step p {
  color: var(--muted);
}

.song-block {
  white-space: pre-wrap;
  padding: 1.2rem;
  background: var(--deep);
  color: var(--white);
  border-radius: var(--radius);
  overflow-x: auto;
}

.song-block strong {
  color: var(--sun);
}

.song-video-section {
  padding-top: clamp(2rem, 4vw, 4rem);
}

.song-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.phone-frame {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 1.1rem .75rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 34px;
  background:
    linear-gradient(145deg, #10171d, #030506 54%, #1a252d),
    #050607;
  box-shadow: 0 28px 58px rgba(13, 51, 64, .24);
}

.phone-frame::after {
  content: "";
  position: absolute;
  inset: .48rem;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 26px;
}

.phone-speaker {
  width: 64px;
  height: 5px;
  margin: 0 auto .8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.song-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px;
  background: #000;
}

.song-video-copy {
  max-width: 660px;
}

.song-video-copy h2 {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.song-video-copy p {
  margin: 0 0 .85rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-list {
  display: grid;
  gap: .8rem;
}

.page-list a {
  display: grid;
  gap: .2rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
}

.page-list strong {
  color: var(--bay);
}

.site-footer {
  background: var(--deep);
  color: var(--white);
  padding: 2.4rem 1.25rem;
}

.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-inner p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.footer-links {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--white);
}

.sequence-wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto 3rem;
}

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

.sequence-nav a {
  padding: 1rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.sequence-nav span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.sequence-nav strong {
  color: var(--bay);
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 900;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 940px) {
  .nav {
    align-items: flex-start;
    padding-top: .75rem;
    padding-bottom: .75rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: .75rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: .78rem;
  }

  .page-hero,
  .map-layout,
  .evidence-workspace,
  .idea-workbench-panel,
  .pano-workbench,
  .song-video-layout,
  .home-video-layout,
  .community-example-card.feature-example {
    grid-template-columns: 1fr;
  }

  .stats-row,
  .card-grid,
  .source-grid,
  .tool-grid,
  .scenario-grid,
  .prompt-grid,
  .example-submit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 941px) and (max-width: 1180px) {
  .evidence-workspace {
    grid-template-columns: 1fr;
  }

  .compact-pipeline {
    grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
  }

  .compact-pipeline .button-row,
  .compact-pipeline .workflow-status {
    grid-column: span 1;
  }

  .lane-fieldset,
  .lane-extra-inline {
    grid-column: 1 / -1;
  }

  .evidence-map-column {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  }

  .evidence-map-column .download-panel,
  .evidence-map-column .thumb-drawer {
    grid-column: 2;
  }

  .evidence-map-column .photo-preview {
    grid-column: 1;
    grid-row: 2 / span 2;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand-text span {
    display: none;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 17vw, 4.5rem);
  }

  .notice-band,
  .stats-row,
  .card-grid,
  .source-grid,
  .tool-grid,
  .scenario-grid,
  .prompt-grid,
  .community-example-grid,
  .example-submit-grid,
  .sequence-nav,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .community-example-card img {
    min-height: 210px;
  }

  .map-canvas {
    min-height: 0;
  }

  .thumb-list {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .compact-map-panel .map-canvas {
    min-height: 0;
  }

  .sphere-viewer {
    min-height: 360px;
  }

  .idea-prompt-form,
  .prompt-drawer .idea-prompt-form {
    grid-template-columns: 1fr;
  }

  .compact-pipeline,
  .lane-fieldset,
  .lane-extra-inline,
  .evidence-map-column .photo-preview,
  .evidence-map-column .download-panel,
  .evidence-map-column .thumb-drawer {
    grid-column: auto;
  }

  .compact-pipeline {
    grid-template-columns: 1fr;
  }

  .compact-pipeline .button-row {
    white-space: normal;
  }

  .lane-grid {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .idea-prompt-form .lane-check {
    padding: .2rem .1rem;
  }

  .idea-prompt-form .lane-check span {
    font-size: .76rem;
  }

  .lane-extra-inline {
    grid-template-columns: 1fr;
  }

  .pano-scroll img {
    width: 1200px;
    height: 600px;
  }

  .to-top {
    width: 44px;
    height: 44px;
    font-size: .76rem;
  }

  .spectrum-step {
    grid-template-columns: 1fr;
  }
}
