:root {
  --ink: #122434;
  --muted: #586a75;
  --line: #dbe5df;
  --paper: #fbfcf8;
  --soft: #eef7f4;
  --sand: #f4e7c7;
  --blue: #1977a3;
  --teal: #0f8f83;
  --green: #2d6f4b;
  --red: #c84036;
  --gold: #e6ab24;
  --card: #ffffff;
  --shadow: 0 18px 48px rgba(18, 36, 52, .12);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgba(251, 252, 248, .94);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 12px clamp(18px, 3vw, 34px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brand span {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 12px;
  color: white;
  display: grid;
  font-weight: 900;
  height: 42px;
  place-items: center;
  width: 42px;
}

.brand strong {
  font-size: 16px;
  white-space: nowrap;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  justify-content: flex-end;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  border-radius: 999px;
  color: #233746;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 10px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  background: #e8f4ef;
  color: #0d6d65;
}

.nav-toggle {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: none;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
}

.hero,
.section {
  margin: 0 auto;
  max-width: var(--max);
  padding: clamp(36px, 5.5vw, 68px) 22px;
}

.narrative-hero {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
}

.hero h1,
.section-heading h1,
.section-heading h2,
.split h2 {
  letter-spacing: 0;
  line-height: .98;
  margin: 0;
  overflow-wrap: anywhere;
}

.hero h1 {
  font-size: clamp(42px, 6.7vw, 82px);
}

.section-heading h1,
.section-heading h2,
.split h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.pack-main .section {
  padding-top: clamp(30px, 4vw, 46px);
  padding-bottom: clamp(30px, 4vw, 46px);
}

.pack-main .section:first-child {
  padding-bottom: 18px;
}

.kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.lead {
  color: #304858;
  font-size: clamp(18px, 2.2vw, 23px);
  margin: 24px 0 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-color: transparent;
  color: white;
}

.button.ghost {
  background: white;
}

.hero-photo,
.evidence-photo,
.image-strip figure,
.photo-card {
  margin: 0;
}

.hero-photo,
.photo-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-photo img,
.photo-card img,
.image-strip img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

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

.crop-map {
  object-position: center 52%;
}

.crop-street {
  object-position: center 45%;
}

.crop-parking {
  object-position: center 42%;
}

.crop-island {
  object-position: center 48%;
}

figcaption {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 14px 14px;
}

.section-heading {
  max-width: 820px;
}

.section-heading p:not(.kicker) {
  color: var(--muted);
  font-size: 18px;
  margin: 14px 0 0;
}

.band {
  background: linear-gradient(180deg, #edf8f5, #fff7df);
  border-radius: 34px;
  max-width: calc(var(--max) - 44px);
}

.decision-grid,
.people-grid,
.link-grid,
.evidence-grid,
.budget-grid,
.equipment-grid,
.programme-grid,
.photo-grid,
.grant-grid,
.honour-grid,
.product-grid,
.story-panels,
.zone-ribbon {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

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

.people-grid,
.evidence-grid,
.budget-grid,
.equipment-grid,
.programme-grid,
.grant-grid,
.honour-grid,
.story-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.story-panels {
  align-items: stretch;
}

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

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

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

.decision-card,
.people-grid article,
.link-grid a,
.evidence-grid article,
.budget-card,
.equipment-card,
.programme-card,
.grant-card,
.honour-grid article,
.note-card,
.story-panels article,
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(18, 36, 52, .06);
  padding: 24px;
}

.decision-card span,
.evidence-grid span,
.budget-card span,
.equipment-card span,
.programme-card span,
.grant-card span,
.honour-grid span,
.note-card span,
.product-card span {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 12px;
  padding: 7px 10px;
  text-transform: uppercase;
}

.decision-card.yes span,
.evidence-grid span,
.honour-grid span {
  background: #e8f6ef;
  color: #236643;
}

.decision-card.caution span {
  background: #fff3ce;
  color: #7a5b10;
}

.budget-card span,
.equipment-card span,
.programme-card span,
.grant-card span,
.note-card span,
.product-card span {
  background: #edf4fb;
  color: #195b7d;
}

.decision-card h3,
.people-grid h3,
.evidence-grid h3,
.budget-card h3,
.equipment-card h3,
.programme-card h3,
.grant-card h3,
.honour-grid h3,
.note-card h3,
.link-grid strong,
.story-panels h3,
.product-card h3 {
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 10px;
}

.decision-card ul,
.equipment-card ul,
.programme-card ol,
.note-card ul {
  color: #314657;
  margin: 12px 0 0;
  padding-left: 20px;
}

.decision-card li,
.equipment-card li,
.programme-card li,
.note-card li {
  margin: 7px 0;
}

.people-grid p,
.evidence-grid p,
.budget-card p,
.equipment-card p,
.programme-card p,
.grant-card p,
.honour-grid p,
.note-card p,
.link-grid span,
.story-panels p,
.product-card p {
  color: var(--muted);
  margin: 0;
}

.story-panels article {
  padding-top: 20px;
}

.story-panels article > span {
  background: var(--ink);
  border-radius: 14px;
  color: white;
  display: grid;
  font-weight: 950;
  height: 42px;
  margin-bottom: 16px;
  place-items: center;
  width: 42px;
}

.visual-story {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
}

.visual-story figure {
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 0;
  overflow: hidden;
}

.visual-story img {
  aspect-ratio: 16 / 10;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.zone-ribbon {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}

.zone-ribbon article {
  background: #102333;
  border-radius: 18px;
  color: white;
  min-height: 190px;
  padding: 18px;
}

.zone-ribbon span {
  color: #9de7db;
  display: block;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.zone-ribbon strong {
  display: block;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.1;
}

.zone-ribbon small {
  color: #dceae5;
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 12px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.product-card img {
  aspect-ratio: 4 / 3;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: block;
  height: auto;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

.product-card .price {
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.product-card a {
  color: #0d6d65;
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  margin-top: 12px;
}

.survey-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  margin-top: 28px;
  padding: 24px;
}

.response-builder {
  grid-template-columns: 1fr;
  margin-left: auto;
  margin-right: auto;
  max-width: 860px;
}

.survey-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.survey-grid label {
  color: var(--ink);
  display: grid;
  font-weight: 900;
  gap: 7px;
  line-height: 1.25;
}

.survey-grid label:nth-child(n+4) {
  grid-column: 1 / -1;
}

.response-builder .survey-grid label {
  grid-column: 1 / -1;
}

.survey-grid input,
.survey-grid select,
.survey-grid textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  min-height: 48px;
  padding: 12px;
  width: 100%;
}

.survey-grid select {
  appearance: auto;
  background: white;
}

.survey-grid textarea {
  min-height: 104px;
  resize: vertical;
}

.survey-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  grid-column: 1 / -1;
}

.survey-actions small {
  color: var(--muted);
  font-weight: 700;
}

.survey-preview {
  background: #102333;
  border-radius: 18px;
  color: #eaf5f1;
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
  max-height: 360px;
  min-height: 220px;
  overflow: auto;
  padding: 18px;
  white-space: pre-wrap;
}

.survey-preview::before {
  color: #9de7db;
  content: "Markdown preview";
  display: block;
  font: 950 12px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .12em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.micro-note {
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(18, 36, 52, .08);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr) auto;
  margin-top: 24px;
  padding: 20px;
}

.band .micro-note {
  box-shadow: none;
}

.micro-note h3 {
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 8px;
}

.micro-note p {
  color: var(--muted);
  margin: 0;
}

.micro-note label,
.choice-grid {
  color: var(--ink);
  display: grid;
  font-weight: 900;
  gap: 8px;
  margin: 0;
}

.micro-note textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font: inherit;
  min-height: 92px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}

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

.choice-grid legend {
  font-size: 18px;
  font-weight: 950;
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.choice-grid label {
  align-items: start;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  min-height: 52px;
  padding: 12px;
}

.choice-grid input {
  margin-top: 4px;
}

.page-flow {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 32px auto 0;
  max-width: var(--max);
  padding: 24px 22px 0;
}

.flow-link {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  display: inline-flex;
  flex-direction: column;
  font-weight: 950;
  min-width: min(260px, 45vw);
  padding: 14px 16px;
  text-decoration: none;
}

.flow-link span {
  color: var(--teal);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.flow-link.next {
  align-items: flex-end;
  margin-left: auto;
  text-align: right;
}

.split {
  align-items: start;
  display: grid;
  gap: 36px;
  grid-template-columns: .75fr 1fr;
}

.steps {
  display: grid;
  gap: 12px;
}

.steps article {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px 1fr;
  padding: 16px;
}

.steps span {
  background: var(--ink);
  border-radius: 14px;
  color: white;
  display: grid;
  font-weight: 950;
  height: 42px;
  place-items: center;
  width: 42px;
}

.steps p {
  margin: 0;
}

.image-strip {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.image-strip figure {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.image-strip img {
  aspect-ratio: 16 / 10;
}

.link-grid a {
  display: block;
  text-decoration: none;
}

.link-grid strong {
  display: block;
  margin-bottom: 8px;
}

.link-grid span {
  display: block;
  font-size: 17px;
  line-height: 1.45;
}

.link-grid a:hover {
  border-color: rgba(15, 143, 131, .42);
  transform: translateY(-2px);
}

.evidence-sequence {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.sequence-card {
  align-items: stretch;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(18, 36, 52, .06);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(280px, .65fr);
  overflow: hidden;
}

.sequence-card img {
  aspect-ratio: 16 / 9;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sequence-card div {
  padding: 22px;
}

.sequence-card span {
  color: var(--teal);
  display: block;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.sequence-card h3 {
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 10px;
}

.sequence-card p {
  color: var(--muted);
  margin: 0;
}

.page-hero {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, .9fr) minmax(340px, .8fr);
}

.doc-hero {
  max-width: 920px;
  padding-bottom: 24px;
}

.doc-hero h1 {
  font-size: clamp(40px, 6vw, 70px);
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
}

.doc-content {
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  max-width: 920px;
  padding-top: 34px;
}

.doc-content h2,
.doc-content h3,
.doc-content h4,
.doc-content h5 {
  letter-spacing: 0;
  line-height: 1.1;
  margin: 28px 0 12px;
}

.doc-content h2:first-child,
.doc-content h3:first-child {
  margin-top: 0;
}

.doc-content h2 {
  font-size: 32px;
}

.doc-content h3 {
  font-size: 24px;
}

.doc-content p,
.doc-content li,
.doc-content td {
  color: #304858;
  font-size: 18px;
}

.doc-content p {
  margin: 0 0 16px;
}

.doc-content ul,
.doc-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.doc-content li {
  margin: 8px 0;
}

.doc-content blockquote {
  border-left: 4px solid var(--teal);
  color: var(--muted);
  margin: 20px 0;
  padding: 2px 0 2px 18px;
}

.doc-content code {
  background: #eef7f4;
  border-radius: 7px;
  font-size: .92em;
  padding: 2px 6px;
}

.page-hero .photo-card img {
  aspect-ratio: 16 / 11;
}

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

.callout {
  background: #102333;
  border-radius: 26px;
  color: white;
  margin-top: 28px;
  padding: 28px;
}

.callout p {
  color: #dceae5;
  margin: 8px 0 0;
}

.table-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 24px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef7f4;
  font-size: 13px;
  text-transform: uppercase;
}

.site-footer {
  display: none;
}

.save-hint {
  align-self: center;
  background: #edf8f5;
  border: 1px solid #cfe4de;
  border-radius: 999px;
  color: #0d6d65;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
  text-align: center;
}

.top-button {
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  bottom: 20px;
  box-shadow: 0 14px 36px rgba(18, 36, 52, .22);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  right: 18px;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
}

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

@media (max-width: 980px) {
  .narrative-hero,
  .page-hero,
  .split {
    grid-template-columns: 1fr;
  }

  .decision-grid,
  .people-grid,
  .evidence-grid,
  .budget-grid,
  .equipment-grid,
  .programme-grid,
  .photo-grid,
  .grant-grid,
  .honour-grid,
  .image-strip,
  .link-grid,
  .product-grid,
  .story-panels,
  .zone-ribbon,
  .survey-card,
  .visual-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sequence-card {
    grid-template-columns: 1fr;
  }

  .survey-card,
  .micro-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
  }

  .brand strong {
    font-size: 15px;
    white-space: normal;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .site-nav {
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    left: 18px;
    padding: 10px;
    position: absolute;
    right: 18px;
    top: 72px;
  }

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

  .site-nav a {
    width: 100%;
  }

  .decision-grid,
  .people-grid,
  .evidence-grid,
  .budget-grid,
  .equipment-grid,
  .programme-grid,
  .photo-grid,
  .grant-grid,
  .honour-grid,
  .image-strip,
  .link-grid,
  .product-grid,
  .story-panels,
  .zone-ribbon,
  .survey-card,
  .survey-grid,
  .visual-story {
    grid-template-columns: 1fr;
  }

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

  .survey-card {
    border-radius: 18px;
    padding: 14px;
  }

  .survey-grid {
    gap: 14px;
  }

  .survey-preview {
    display: none;
  }

  .save-hint {
    border-radius: 14px;
    width: 100%;
  }

  .page-flow {
    align-items: stretch;
    flex-direction: column;
    margin-top: 18px;
    padding-top: 18px;
  }

  .flow-link,
  .flow-link.next {
    align-items: flex-start;
    min-width: 0;
    text-align: left;
    width: 100%;
  }

  .hero,
  .section {
    padding: 30px 16px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .section-heading h1,
  .section-heading h2,
  .split h2 {
    font-size: 31px;
    letter-spacing: 0;
  }

  .lead {
    font-size: 18px;
    line-height: 1.45;
  }

  .doc-hero h1 {
    font-size: 36px;
  }

  .doc-content {
    border-radius: 18px;
    padding-top: 24px;
  }

  .doc-content h2 {
    font-size: 27px;
  }

  .doc-content h3 {
    font-size: 22px;
  }

  .doc-content p,
  .doc-content li,
  .doc-content td {
    font-size: 17px;
  }

  .band {
    border-radius: 22px;
    max-width: calc(100% - 20px);
  }

  .decision-card,
  .people-grid article,
  .link-grid a,
  .evidence-grid article,
  .budget-card,
  .equipment-card,
  .programme-card,
  .grant-card,
  .honour-grid article,
  .note-card,
  .story-panels article,
  .product-card {
    border-radius: 16px;
    padding: 18px;
  }

  .product-card img {
    max-height: 260px;
  }

  .micro-note {
    padding: 16px;
  }

  .top-button {
    bottom: 14px;
    right: 14px;
  }
}
