:root {
  color-scheme: light;
  --ink: #111316;
  --muted: #5f666e;
  --paper: #f3f5f2;
  --white: #ffffff;
  --line: #d7ddd6;
  --soft: #e9eee8;
  --carbon: #17191d;
  --oxide: #b9402f;
  --teal: #128784;
  --leaf: #4e7d3e;
  --safety: #d59d22;
  --violet: #66529a;
  --radius: 8px;
  --shadow: 0 18px 44px rgba(17, 19, 22, 0.14);
  --sans: Inter, "Yu Gothic", "YuGothic", Meiryo, "Hiragino Kaku Gothic ProN", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--teal);
}

button {
  font: inherit;
}

h1,
h2,
h3,
p,
strong,
span {
  margin: 0;
  overflow-wrap: break-word;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 68px;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(215, 221, 214, 0.76);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--carbon), var(--oxide));
  font-family: var(--mono);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 0.96rem;
}

.brand-copy span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

nav a,
.chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 6px 10px;
  color: var(--muted);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

nav a:hover,
.chip:hover,
.chip.active {
  border-color: #b8dcd8;
  color: var(--teal);
  background: #e6f4f2;
}

.hero {
  position: relative;
  min-height: 76svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--carbon);
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 14, 0.86), rgba(10, 12, 14, 0.58) 45%, rgba(10, 12, 14, 0.18)),
    linear-gradient(0deg, rgba(10, 12, 14, 0.82), rgba(10, 12, 14, 0.04) 58%);
}

.hero-content {
  position: relative;
  width: min(1160px, calc(100% - 36px));
  min-width: 0;
  margin: 0 auto;
  padding: 86px 0 152px;
  color: #fff;
}

.kicker,
.eyebrow,
.hero-rail span,
.loop-grid span,
.role-card span,
.card-top,
.status,
.token-panel span,
.council-grid span {
  font-family: var(--mono);
}

.kicker,
.eyebrow {
  margin: 0 0 10px;
  color: #5ed4ca;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: 8.8rem;
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  max-width: 850px;
  font-size: 3.9rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  font-size: 1.22rem;
  line-height: 1.14;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  padding: 11px 15px;
  font-size: 0.92rem;
  font-weight: 900;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button.primary {
  color: #fff;
  background: var(--oxide);
  border-color: var(--oxide);
}

.button.secondary {
  color: #fff;
  background: rgba(18, 135, 132, 0.82);
  border-color: rgba(94, 212, 202, 0.55);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-rail {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(1160px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  transform: translateX(-50%);
}

.hero-rail article {
  min-height: 88px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(12, 14, 17, 0.58);
  backdrop-filter: blur(12px);
}

.hero-rail span {
  display: block;
  color: #a9d8d5;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-rail strong {
  display: block;
  margin-top: 5px;
  line-height: 1.18;
}

.pulse-band {
  overflow: hidden;
  border-block: 1px solid #292e34;
  color: #fff;
  background: var(--carbon);
}

.pulse-track {
  width: max-content;
  display: flex;
  gap: 28px;
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 0.86rem;
  animation: pulseSlide 32s linear infinite;
}

.pulse-track span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

.pulse-track strong {
  color: var(--safety);
}

@keyframes pulseSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-34%); }
}

.band {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.intro {
  padding: 38px 24px;
}

.section {
  padding: 64px 24px;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.intro-grid,
.origin-grid,
.proof-layout,
.token-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: 36px;
  align-items: start;
}

.intro-grid p,
.origin-grid p,
.proof-layout p,
.token-grid p {
  color: var(--muted);
  font-size: 1.04rem;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.section-note {
  max-width: 420px;
  color: var(--muted);
}

.operating-section {
  background: var(--paper);
}

.origin-section {
  background: #fff;
}

.origin-copy {
  display: grid;
  gap: 16px;
}

.inline-link {
  width: fit-content;
}

.loop-grid,
.role-grid,
.council-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.loop-grid article,
.role-card,
.council-grid article,
.challenge-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 19, 22, 0.07);
}

.loop-grid article {
  min-height: 230px;
  padding: 18px;
}

.loop-grid span {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--oxide);
  font-weight: 900;
}

.loop-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.loop-grid p,
.role-card p,
.challenge-card p,
.council-grid p {
  color: var(--muted);
}

.challenge-section {
  background: #fff;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.challenge-card {
  min-height: 355px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.challenge-card.is-hidden {
  display: none;
}

.work-order-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.work-order-panel h3 {
  max-width: 820px;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.status.open { background: var(--teal); }
.status.design { background: var(--violet); }
.status.scout { background: var(--leaf); }

dl {
  display: grid;
  gap: 9px;
  margin: 0;
}

dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.network-section {
  background: var(--paper);
}

.field-section {
  background: var(--paper);
}

.receipt-grid,
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

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

.receipt-grid article,
.boundary-grid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.receipt-grid span,
.boundary-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--oxide);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-grid strong {
  display: block;
  line-height: 1.22;
}

.boundary-grid p {
  color: var(--muted);
}

.field-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.boundary-section {
  background: #fff;
}

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

.role-card {
  min-height: 210px;
  padding: 20px;
}

.role-card span,
.council-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.role-card h3 {
  margin-bottom: 10px;
}

.role-card.observer {
  border-color: #e4c673;
}

.proof-section {
  color: #fff;
  background: var(--carbon);
}

.proof-section .eyebrow {
  color: var(--safety);
}

.proof-layout {
  align-items: center;
}

.proof-layout p {
  max-width: 600px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
}

.proof-console {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: #090b0d;
  box-shadow: var(--shadow);
}

.console-head {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.console-head span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--oxide);
}

.console-head span:nth-child(2) { background: var(--safety); }
.console-head span:nth-child(3) { background: var(--teal); }

pre {
  margin: 0;
  overflow: auto;
  padding: 20px;
  color: #c6f1e9;
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.5;
}

.token-section {
  background: #fff;
}

.token-grid {
  align-items: center;
}

.token-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.token-panel div,
.text-link {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.token-panel div {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
}

.token-panel span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.token-panel strong {
  font-size: 1.25rem;
}

.text-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  color: var(--teal);
  font-weight: 900;
}

.token-panel .text-link {
  grid-column: 1 / -1;
}

.council-section {
  background: var(--paper);
}

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

.council-grid article {
  min-height: 190px;
  padding: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 24px;
  color: rgba(255, 255, 255, 0.76);
  background: #0f1114;
}

.site-footer > div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 12px;
  font-family: var(--mono);
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 80svh;
  }

  .hero-content {
    padding-bottom: 250px;
  }

  h1 {
    font-size: 6.4rem;
  }

  h2 {
    font-size: 3rem;
  }

  .hero-rail,
  .loop-grid,
  .challenge-grid,
  .receipt-grid,
  .boundary-grid,
  .role-grid,
  .council-grid,
  .token-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .origin-grid,
  .proof-layout,
  .token-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 0.88rem;
  }

  nav {
    gap: 4px;
  }

  nav a {
    min-height: 32px;
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .hero {
    min-height: 76svh;
  }

  .hero-content {
    width: min(100% - 28px, 1160px);
    padding: 64px 0 255px;
  }

  .hero-rail {
    bottom: 14px;
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  .hero-rail article {
    min-height: auto;
    padding: 12px;
  }

  .button {
    width: 100%;
  }

  .section,
  .intro {
    padding-inline: 16px;
  }

  .loop-grid,
  .challenge-grid,
  .receipt-grid,
  .boundary-grid,
  .role-grid,
  .council-grid,
  .token-panel {
    grid-template-columns: 1fr;
  }

  .challenge-card,
  .receipt-grid article,
  .boundary-grid article,
  .role-card,
  .council-grid article {
    min-height: auto;
  }

  h2 {
    font-size: 2rem;
  }

  h1 {
    font-size: 4.6rem;
  }

  .lead {
    font-size: 1.04rem;
  }

  .work-order-panel {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse-track {
    animation: none;
  }
}
