:root {
  --ink: #13211f;
  --muted: #5f6f6b;
  --paper: #f8f5ef;
  --panel: #ffffff;
  --line: #d7ded8;
  --green: #137a5a;
  --gold: #b77a16;
  --red: #b23a3a;
  --blue: #2e6f9e;
  --teal: #1f8a89;
  --shadow: 0 18px 60px rgba(31, 46, 43, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(19, 33, 31, 0.1);
  background: rgba(248, 245, 239, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 32%, var(--gold) 0 16%, transparent 17%),
    linear-gradient(140deg, var(--green), var(--blue));
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}

nav {
  flex-wrap: wrap;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.method-button,
.modal-close {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.method-button {
  padding: 9px 11px;
}

.method-button:hover,
.modal-close:hover {
  border-color: var(--teal);
  color: var(--teal);
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  min-height: calc(100vh - 66px);
  padding: clamp(44px, 8vw, 96px) clamp(18px, 5vw, 72px) clamp(32px, 6vw, 72px);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.2)),
    url("https://images.unsplash.com/photo-1507699622108-4be3abd695ad?auto=format&fit=crop&w=1800&q=80")
      center / cover;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
  color: #0d211e;
  text-shadow: 0 1px 20px rgba(255, 255, 255, 0.55);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.45rem, 8vw, 7.6rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.hero-copy p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: #243835;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 430px;
}

.aotearoa-panel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.28);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.north-island,
.south-island {
  position: absolute;
  background: linear-gradient(145deg, rgba(19, 122, 90, 0.94), rgba(46, 111, 158, 0.86));
  box-shadow: 0 20px 48px rgba(19, 33, 31, 0.18);
}

.north-island {
  top: 56px;
  right: 84px;
  width: 155px;
  height: 210px;
  border-radius: 52% 48% 42% 58% / 44% 56% 48% 52%;
  transform: rotate(22deg);
}

.south-island {
  left: 88px;
  bottom: 62px;
  width: 260px;
  height: 116px;
  border-radius: 65% 35% 62% 38% / 50% 44% 56% 50%;
  transform: rotate(-29deg);
}

.pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.25);
}

.pulse-kept {
  top: 130px;
  right: 142px;
  background: var(--green);
}

.pulse-partial {
  left: 196px;
  bottom: 136px;
  background: var(--gold);
}

.pulse-broken {
  top: 228px;
  right: 206px;
  background: var(--red);
}

.hero-stat {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: min(260px, calc(100% - 44px));
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-stat strong {
  display: block;
  font-size: 3.8rem;
  line-height: 0.9;
}

.hero-stat span {
  color: var(--muted);
  font-weight: 700;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.metric {
  padding: clamp(20px, 3vw, 34px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span {
  display: block;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 850;
  line-height: 1;
}

.metric p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.metric.kept span {
  color: var(--green);
}

.metric.partial span {
  color: var(--gold);
}

.metric.broken span {
  color: var(--red);
}

.metric.active span {
  color: var(--blue);
}

.metric.delayed span {
  color: #7c5c18;
}

.metric.reversed span {
  color: #6f3d86;
}

.metric.unknown span {
  color: #62706d;
}

.current-section,
.tracker-section,
.method-section,
.sources-section {
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 72px);
}

.current-section {
  background: #f1f6f2;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(20px, 4vw, 64px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.section-heading > *,
.controls > *,
.current-grid > *,
.promise-grid > *,
.method-grid > * {
  min-width: 0;
}

.section-heading > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.controls {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.7fr));
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto 28px;
}

.controls label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
}

input {
  padding: 0 16px;
}

select {
  padding: 0 12px;
}

.timeline {
  display: flex;
  align-items: end;
  gap: 8px;
  max-width: 1180px;
  min-height: 94px;
  margin: 0 auto 26px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.timeline-year {
  min-width: 74px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline-stack {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 54px;
  margin-bottom: 7px;
}

.timeline-dot {
  width: 10px;
  min-height: 10px;
  border-radius: 99px;
}

.current-grid,
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.current-card,
.promise-card,
.method-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 34px rgba(19, 33, 31, 0.07);
}

.current-card {
  padding: 20px;
}

.current-card h3 {
  margin-bottom: 18px;
  font-size: 1.2rem;
  line-height: 1.2;
}

.current-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.promise-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 20px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.party {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.status-kept {
  background: var(--green);
}

.status-partial {
  background: var(--gold);
}

.status-broken {
  background: var(--red);
}

.status-active {
  background: var(--blue);
}

.status-delayed {
  background: #7c5c18;
}

.status-reversed {
  background: #6f3d86;
}

.status-unknown {
  background: #62706d;
}

.quote-preview {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
  min-width: 0;
}

.quote-preview span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

blockquote {
  margin: 0 0 14px;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--teal);
  color: #31413e;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.quote-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dce6e1;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--green));
}

.progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.progress-row strong {
  font-size: 1.6rem;
  line-height: 1;
}

.progress-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.promise-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.promise-text {
  color: #31413e;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.reason {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 16px;
  padding-top: 18px;
}

.tag {
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef3ef;
  color: #42524f;
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.review-tag {
  background: #fff3d8;
  color: #765018;
}

.audit-tag {
  background: #edf0f5;
  color: #3d4758;
}

.archive-tag {
  background: #e8f5f7;
  color: #245c64;
}

.verified-tag {
  background: #e6f4df;
  color: #315c28;
}

.evidence-timeline {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  min-width: 0;
}

.evidence-timeline summary {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  cursor: pointer;
}

.evidence-timeline ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0 14px 14px 34px;
}

.evidence-timeline li::marker {
  color: var(--teal);
  font-weight: 850;
}

.evidence-timeline li div:first-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.evidence-timeline strong {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.evidence-timeline span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.evidence-timeline p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.timeline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.timeline-links a {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.timeline-links a:hover {
  text-decoration: underline;
}

.timeline-empty {
  padding: 0 14px 14px;
}

.evidence {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  min-width: 0;
}

.confidence {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.source-links a {
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.source-links a:hover {
  text-decoration: underline;
}

.method-section {
  background: #ffffff;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.method-grid article {
  padding: 22px;
}

.method-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.sources-section {
  background: #eef3ef;
}

.method-modal {
  width: min(760px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 24px 80px rgb(33 44 41 / 0.22);
}

.method-modal::backdrop {
  background: rgb(27 36 34 / 0.42);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  font-size: 1.3rem;
}

.modal-close {
  padding: 8px 10px;
}

.modal-body {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.modal-body h3 {
  margin-bottom: 6px;
}

.modal-body p {
  color: var(--muted);
}

.empty-state {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  text-align: center;
}

footer {
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

footer p {
  max-width: 1180px;
  margin: 0 auto;
}

footer a {
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 960px) {
  .hero,
  .section-heading,
  .controls,
  .current-grid,
  .promise-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px 16px;
  }

  .brand {
    width: 100%;
  }

  .brand span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  nav {
    width: 100%;
    gap: 8px;
  }

  nav a,
  .method-button {
    padding: 7px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.84rem;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-visual {
    min-height: 300px;
  }

  .north-island {
    top: 42px;
    right: 42px;
    width: 118px;
    height: 168px;
  }

  .south-island {
    left: 34px;
    bottom: 50px;
    width: 210px;
    height: 94px;
  }

  .pulse-kept {
    top: 100px;
    right: 88px;
  }

  .pulse-partial {
    left: 130px;
    bottom: 108px;
  }

  .pulse-broken {
    top: 178px;
    right: 136px;
  }

  .summary-band {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
  }

  .promise-card {
    min-height: 0;
  }

  .card-top,
  .evidence {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-pill {
    white-space: normal;
  }

  .source-links {
    justify-content: flex-start;
  }

  .method-modal {
    width: calc(100vw - 20px);
  }

  .modal-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
