/* Variables */
:root {
  --bg: #09090a;
  --surface: #101012;
  --surface-raised: #151416;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #f0edeb;
  --muted: #9b9697;
  --dim: #686467;
  --accent: #9d2e42;
  --accent-bright: #cf4059;
  --page-gutter: clamp(1.25rem, 4vw, 4.75rem);
  --max-width: 1440px;
  --header-height: 5.25rem;
  --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2rem);
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 8%, rgba(157, 46, 66, 0.1), transparent 25rem),
    var(--bg);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .site-header {
  z-index: 100;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

::selection {
  color: #fff;
  background: var(--accent);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  color: #fff;
  background: var(--accent);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100%, var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  border-left: 1px solid rgba(255, 255, 255, 0.04);
}

.section-frame {
  padding-right: var(--page-gutter);
  padding-left: var(--page-gutter);
}

.eyebrow {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow span {
  margin-right: 1.25rem;
  color: var(--accent-bright);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease var(--reveal-delay, 0ms), transform 700ms ease var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.button,
.text-link,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.button {
  min-width: 13.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line-strong);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  transition: background 180ms ease, transform 180ms ease;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-bright);
  transform: translateY(-2px);
}

.text-link {
  gap: 2.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-strong);
}

.text-link span {
  color: var(--accent-bright);
  transition: transform 180ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(4px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-height);
  padding: 0 var(--page-gutter);
  background: rgba(9, 9, 10, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: transform 250ms ease, border-color 250ms ease, background 250ms ease;
}

.site-header.is-scrolled {
  background: rgba(9, 9, 10, 0.92);
  border-color: var(--line);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.brand {
  --brand-symbol-height: 3rem;
  --brand-wordmark-height: 1.6rem;
  --brand-wordmark-offset: 0.45rem;
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 0.25rem;
  width: max-content;
  isolation: isolate;
}

.brand::before {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  width: auto;
  height: var(--brand-wordmark-height);
  aspect-ratio: 825 / 226;
  content: "";
  pointer-events: none;
  opacity: 0.48;
  background: linear-gradient(135deg, rgba(238, 233, 232, 0.42), rgba(207, 64, 89, 0.12));
  clip-path: inset(0 44% 0 0);
  mix-blend-mode: screen;
  transform: translateY(calc(-50% + var(--brand-wordmark-offset)));
  -webkit-mask-image: url("/images/brand/text-dark-02.png");
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: url("/images/brand/text-dark-02.png");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.brand::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  opacity: 0.62;
  background: linear-gradient(135deg, transparent 34%, rgba(238, 233, 232, 0.72) 47%, rgba(207, 64, 89, 0.32) 53%, transparent 66%);
  background-repeat: no-repeat;
  background-position: -100% -100%;
  background-size: 220% 220%;
  mix-blend-mode: screen;
  -webkit-mask-image: url("/images/brand/image.png"), url("/images/brand/text-dark-02.png");
  -webkit-mask-position: left center, right calc(50% + var(--brand-wordmark-offset));
  -webkit-mask-repeat: no-repeat, no-repeat;
  -webkit-mask-size: auto var(--brand-symbol-height), auto var(--brand-wordmark-height);
  mask-image: url("/images/brand/image.png"), url("/images/brand/text-dark-02.png");
  mask-position: left center, right calc(50% + var(--brand-wordmark-offset));
  mask-repeat: no-repeat, no-repeat;
  mask-size: auto var(--brand-symbol-height), auto var(--brand-wordmark-height);
  animation: brand-light-sweep 6s ease-in-out infinite;
}

.brand-symbol,
.brand-wordmark {
  display: block;
  flex: none;
  object-fit: contain;
  filter:
    drop-shadow(-0.12rem -0.12rem 0.28rem rgba(238, 233, 232, 0.16))
    drop-shadow(0.14rem 0.14rem 0.38rem rgba(207, 64, 89, 0.16));
}

.brand-symbol {
  width: auto;
  height: var(--brand-symbol-height);
}

.brand-wordmark {
  width: auto;
  height: var(--brand-wordmark-height);
  transform: translateY(var(--brand-wordmark-offset));
}

@keyframes brand-light-sweep {
  0%,
  12% {
    background-position: -100% -100%;
    opacity: 0;
  }

  20% {
    opacity: 0.28;
  }

  48% {
    opacity: 0.7;
  }

  80% {
    opacity: 0.28;
  }

  88%,
  100% {
    background-position: 100% 100%;
    opacity: 0;
  }
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 2.6rem;
}

.site-navigation a {
  position: relative;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-navigation a::after {
  position: absolute;
  right: 0;
  bottom: -0.75rem;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent-bright);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site-navigation a:hover,
.site-navigation a:focus-visible,
.site-navigation a[aria-current="page"] {
  color: var(--text);
}

.site-navigation a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-status {
  justify-self: end;
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.header-status span {
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-right: 0.55rem;
  background: #708f69;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(112, 143, 105, 0.1);
}

.menu-toggle {
  display: none;
  padding: 0;
  background: none;
  border: 0;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(22rem, 0.94fr);
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding-top: 4rem;
  padding-bottom: 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-right: clamp(1rem, 5vw, 5rem);
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 2.25rem;
  font-size: clamp(4.6rem, 8.4vw, 8.6rem);
  text-transform: uppercase;
}

.hero h1 em {
  color: var(--accent-bright);
  font-style: normal;
  font-weight: 300;
}

.hero-intro {
  max-width: 39rem;
  margin-bottom: 2.5rem;
  color: #bab5b5;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(40vw, 34rem);
  aspect-ratio: 1;
  color: var(--dim);
}

.system-orbit,
.system-axis {
  position: absolute;
  opacity: 0.7;
}

.system-orbit {
  border: 1px solid var(--line);
  border-radius: 50%;
}

.orbit-one {
  inset: 4%;
}

.orbit-one::after,
.orbit-two::after {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--accent-bright);
  border-radius: 50%;
}

.orbit-two {
  inset: 20%;
  border-style: dashed;
}

.system-axis {
  top: 50%;
  left: 50%;
  background: var(--line);
}

.axis-x {
  width: 100%;
  height: 1px;
  transform: translate(-50%, -50%);
}

.axis-y {
  width: 1px;
  height: 100%;
  transform: translate(-50%, -50%);
}

.system-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 7.8rem;
  aspect-ratio: 1;
  background: #0b0a0c;
  border: 1px solid rgba(207, 64, 89, 0.8);
  transform: translate(-50%, -50%) rotate(45deg);
}

.system-core span,
.system-core small {
  position: absolute;
  transform: rotate(-45deg);
}

.system-core span {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.system-core small {
  top: 78%;
  font-size: 0.48rem;
  letter-spacing: 0.14em;
}

.orbit-node,
.visual-coordinate {
  position: absolute;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.orbit-node {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
}

.orbit-node i {
  width: 0.4rem;
  height: 0.4rem;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.node-one { top: 8%; left: 19%; }
.node-two { right: -1%; bottom: 38%; }
.node-three { bottom: 7%; left: 22%; }
.coordinate-one { top: 51%; left: 1%; }
.coordinate-two { top: 16%; right: 5%; writing-mode: vertical-rl; }

.hero-index {
  position: absolute;
  right: var(--page-gutter);
  bottom: 1.2rem;
  color: var(--dim);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero-index span {
  margin: 0 0.45rem;
  color: var(--accent-bright);
}

/* Project cards */
.systems-section {
  padding-top: clamp(6rem, 10vw, 10rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 0.42fr);
  align-items: end;
  gap: 3rem;
  margin-bottom: 4rem;
}

.section-heading h2,
.purpose-intro h2,
.behind-section h2,
.about-contact h2 {
  margin-bottom: 0;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  text-transform: uppercase;
}

.section-heading > p {
  margin-bottom: 0.6rem;
  color: var(--muted);
  line-height: 1.75;
}

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

.project-card {
  --project-accent: #a73347;
  grid-column: span 6;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
}

.project-card:nth-child(3) {
  grid-column: span 12;
}

.project-card-finance { --project-accent: #9b8650; }
.project-card-flow { --project-accent: #4989a8; }
.project-card-quest { --project-accent: #ba5c3e; }

.project-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.15rem;
}

.card-topline,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-topline {
  margin-bottom: 1rem;
  color: var(--dim);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.status-badge i {
  width: 0.32rem;
  height: 0.32rem;
  background: var(--project-accent, var(--accent-bright));
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--project-accent, var(--accent-bright)) 15%, transparent);
}

.card-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 18rem;
  margin-bottom: 2rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--project-accent) 22%, transparent), transparent 42%),
    #0c0c0e;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.project-card:nth-child(3) .card-visual {
  min-height: 22rem;
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  transition: transform 500ms ease;
}

.visual-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 8.5rem;
  aspect-ratio: 1;
  color: var(--text);
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  border: 1px solid var(--project-accent);
  box-shadow: 0 0 4rem color-mix(in srgb, var(--project-accent) 12%, transparent);
  transform: rotate(45deg);
  transition: background 350ms ease, transform 500ms ease;
}

.visual-symbol::before,
.visual-symbol::after {
  position: absolute;
  content: "";
  background: var(--project-accent);
}

.visual-symbol::before { width: 145%; height: 1px; }
.visual-symbol::after { width: 1px; height: 145%; }

.visual-symbol {
  text-indent: 0.25em;
}

.visual-symbol-image {
  display: block;
  width: auto;
  height: 34%;
  max-width: 72%;
  object-fit: contain;
}

.visual-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  color: var(--dim);
  font-size: 0.48rem;
  letter-spacing: 0.13em;
}

.project-card:hover .visual-grid {
  transform: scale(1.08);
}

.project-card:hover .visual-symbol {
  background: color-mix(in srgb, var(--project-accent) 12%, transparent);
  transform: rotate(135deg) scale(1.04);
}

.card-copy {
  padding: 0 0.5rem 2.4rem;
}

.card-copy p {
  margin-bottom: 0.65rem;
  color: var(--project-accent);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card-copy h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(2.2rem, 4vw, 4rem);
  text-transform: uppercase;
}

.project-brand {
  --project-brand-mask: none;
  --project-brand-ratio: 1;
  --project-brand-dark-clip: 100%;
  --project-brand-wordmark-offset: 0;
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 0.08em;
  max-width: 100%;
  isolation: isolate;
  line-height: 1;
}

.project-brand-kurofinance {
  --project-brand-mask: url("/images/brand/kurofinance-text-dark-02.png");
  --project-brand-ratio: 1899 / 304;
  --project-brand-dark-clip: 68.3%;
  --project-brand-wordmark-offset: 0.08em;
}

.project-brand-kuroflow {
  --project-brand-mask: url("/images/brand/kuroflow-text-dark-02.png");
  --project-brand-ratio: 1840 / 363;
  --project-brand-dark-clip: 58.6%;
  --project-brand-wordmark-offset: 0.065em;
}

.project-brand-city-quest {
  --project-brand-mask: url("/images/brand/city-quest-text-dark-02.png");
  --project-brand-ratio: 1973 / 268;
  --project-brand-dark-clip: 66.7%;
  --project-brand-wordmark-offset: 0.17em;
}

.project-brand::before {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 1;
  width: auto;
  height: 0.53em;
  aspect-ratio: var(--project-brand-ratio);
  content: "";
  pointer-events: none;
  opacity: 0.48;
  background: linear-gradient(135deg, rgba(238, 233, 232, 0.42), rgba(207, 64, 89, 0.12));
  clip-path: inset(0 var(--project-brand-dark-clip) 0 0);
  mix-blend-mode: screen;
  transform: translateY(calc(-50% + var(--project-brand-wordmark-offset)));
  -webkit-mask-image: var(--project-brand-mask);
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-image: var(--project-brand-mask);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.project-brand-symbol,
.project-brand-wordmark {
  display: block;
  flex: none;
  width: auto;
  object-fit: contain;
}

.project-brand-symbol {
  height: 1em;
}

.project-brand-wordmark {
  height: 0.53em;
  max-width: calc(100% - 0.88em);
  transform: translateY(var(--project-brand-wordmark-offset));
}

.card-copy > span {
  display: block;
  color: var(--muted);
}

.card-copy > small {
  display: block;
  margin-top: 1.15rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-copy > small span,
.card-copy > small strong {
  display: block;
}

.card-copy > small span {
  margin-bottom: 0.25rem;
  color: var(--dim);
}

.card-copy > small strong {
  color: var(--project-accent);
  font-weight: 700;
}

.card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
  padding: 1rem 0.5rem;
  border-top: 1px solid var(--line);
}

.card-meta > div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.card-meta span,
.card-meta strong {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.card-meta span {
  margin-bottom: 0.3rem;
  color: var(--dim);
}

.card-meta strong {
  color: var(--text);
  font-weight: 700;
}

.project-card-detailed .card-copy {
  padding-bottom: 1.8rem;
}

.project-card-detailed .card-footer {
  margin-top: 0;
}

.card-footer {
  margin-top: auto;
  padding: 1rem 0.5rem 0.1rem;
  border-top: 1px solid var(--line);
}

.card-footer i {
  color: var(--project-accent);
  font-style: normal;
  font-size: 1rem;
  transition: transform 180ms ease;
}

.project-card:hover .card-footer i {
  transform: translate(3px, -3px);
}

.section-link {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line-strong);
}

.section-link i {
  color: var(--accent-bright);
  font-style: normal;
  font-size: 1.2rem;
}

/* Project purpose and about preview */
.purpose-section {
  padding-top: clamp(5rem, 9vw, 8rem);
  padding-bottom: clamp(5rem, 9vw, 8rem);
  background: #0d0c0e;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.purpose-header,
.purpose-intro,
.behind-section > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.purpose-header {
  align-items: start;
  margin-bottom: 3rem;
}

.purpose-label {
  justify-self: end;
  color: var(--dim);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}

.purpose-intro {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.purpose-intro h2 {
  font-size: clamp(3.5rem, 6vw, 6.6rem);
}

.purpose-intro p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.purpose-intro p:last-child {
  margin-bottom: 0;
  color: var(--text);
}

.purpose-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(4rem, 7vw, 7rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.purpose-types article {
  min-height: 14rem;
  padding: 1.6rem 2rem 1.8rem 0;
  border-right: 1px solid var(--line);
}

.purpose-types article + article {
  padding-left: 2rem;
}

.purpose-types article:last-child {
  padding-right: 0;
  border-right: 0;
}

.purpose-types article > span {
  display: block;
  margin-bottom: 3.25rem;
  color: var(--accent-bright);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.purpose-types h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  text-transform: uppercase;
}

.purpose-types p {
  max-width: 25rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.behind-section {
  padding-top: clamp(6rem, 11vw, 11rem);
  padding-bottom: clamp(6rem, 11vw, 11rem);
}

.behind-section > div {
  grid-template-columns: 1.35fr 0.65fr;
  align-items: end;
}

.behind-section h2 {
  font-size: clamp(3.2rem, 6vw, 6rem);
}

.behind-copy p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.behind-copy p:last-of-type {
  margin-bottom: 2.5rem;
}

/* Page headers and index */
.page-hero {
  padding-top: clamp(6rem, 11vw, 10rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  margin-bottom: 3.5rem;
  font-size: clamp(5rem, 11vw, 11.5rem);
  text-transform: uppercase;
}

.page-hero-copy {
  display: grid;
  grid-template-columns: minmax(20rem, 0.6fr) auto;
  align-items: end;
  justify-content: space-between;
  gap: 3rem;
}

.page-hero-copy p {
  max-width: 45rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-hero-copy span {
  color: var(--dim);
  font-size: 0.56rem;
  letter-spacing: 0.15em;
}

.index-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.index-heading {
  margin-bottom: 3rem;
}

.optional-index-section {
  border-top: 1px solid var(--line);
}

.project-grid-index .project-card,
.project-grid-index .project-card:nth-child(3) {
  grid-column: span 4;
}

.project-grid-index .card-visual,
.project-grid-index .project-card:nth-child(3) .card-visual {
  min-height: 15rem;
}

.project-grid-index .card-copy h3 {
  font-size: clamp(1.9rem, 3.2vw, 3.25rem);
}

/* Project page */
.project-page {
  --project-color: var(--accent-bright);
}

.project-theme-finance { --project-color: #b39c60; }
.project-theme-flow { --project-color: #5ca4c6; }
.project-theme-quest { --project-color: #d16a48; }
.project-theme-world-zero { --project-color: #cf4059; }

.project-page .eyebrow span {
  color: var(--project-color);
}

.project-hero {
  position: relative;
  padding-top: 3rem;
  border-bottom: 1px solid var(--line);
}

.back-link,
.project-breadcrumbs {
  display: inline-block;
  margin-bottom: clamp(4rem, 8vw, 8rem);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.project-breadcrumbs a {
  transition: color 180ms ease;
}

.project-breadcrumbs a:hover,
.project-breadcrumbs a:focus-visible {
  color: var(--text);
}

.project-breadcrumbs span {
  color: var(--project-color);
}

.project-breadcrumbs strong {
  color: var(--text);
  font-weight: 700;
}

.project-hero-grid {
  display: grid;
  grid-template-columns: 1fr 16rem;
  align-items: end;
  gap: 4rem;
  padding-bottom: 5rem;
}

.project-hero h1 {
  max-width: 12ch;
  margin-bottom: 1.3rem;
  font-size: clamp(4.5rem, 10vw, 10.5rem);
  text-transform: uppercase;
}

.project-tagline {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
}

.project-signal {
  position: relative;
  display: grid;
  place-items: center;
  width: 14rem;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.project-signal::before,
.project-signal::after {
  position: absolute;
  content: "";
  border: 1px dashed color-mix(in srgb, var(--project-color) 45%, transparent);
  border-radius: 50%;
}

.project-signal::before { inset: 14%; }
.project-signal::after { inset: 30%; background: color-mix(in srgb, var(--project-color) 8%, transparent); }

.project-signal > span {
  z-index: 1;
  color: var(--project-color);
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.18em;
}

.project-signal-image {
  display: block;
  width: auto;
  height: 2.75rem;
  max-width: 4.4rem;
  object-fit: contain;
}

.project-signal i {
  position: absolute;
  z-index: 2;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--project-color);
  border-radius: 50%;
}

.project-signal i:nth-of-type(1) { top: 14%; left: 29%; }
.project-signal i:nth-of-type(2) { right: 8%; bottom: 39%; }
.project-signal i:nth-of-type(3) { bottom: 9%; left: 30%; }

.project-signal small {
  position: absolute;
  right: 0;
  bottom: -1.5rem;
  color: var(--dim);
  font-size: 0.46rem;
  letter-spacing: 0.12em;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.project-meta > div {
  padding: 1.4rem 1.5rem 1.4rem 0;
  border-right: 1px solid var(--line);
}

.project-meta > div:not(:first-child) {
  padding-left: 1.5rem;
}

.project-meta > div:last-child {
  border-right: 0;
}

.project-meta span,
.project-meta strong {
  display: block;
  font-size: 0.52rem;
  letter-spacing: 0.12em;
}

.project-meta span {
  margin-bottom: 0.35rem;
  color: var(--dim);
}

.project-meta strong {
  color: var(--muted);
  font-weight: 700;
}

.story-layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: clamp(3rem, 8vw, 8rem);
  padding-top: clamp(5rem, 9vw, 9rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

.story-nav {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-nav span {
  margin-bottom: 0.75rem;
  color: var(--project-color);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.story-nav a {
  color: var(--dim);
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.story-nav a:hover {
  color: var(--text);
}

.story-content {
  min-width: 0;
}

.story-section {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 2rem;
  padding: 0 0 clamp(5rem, 10vw, 9rem);
}

.story-section > div {
  min-width: 0;
}

.story-section + .story-section {
  padding-top: clamp(5rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
}

.story-number {
  color: var(--project-color);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.story-statement {
  max-width: 21ch;
  margin-bottom: 0;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.story-support,
.state-summary {
  max-width: 44rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
}

.build-section .story-support,
.state-summary {
  font-size: 1rem;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.capability-item {
  min-height: 10rem;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-item > span {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--project-color);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.capability-item h3 {
  margin-bottom: 0.55rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.capability-item p {
  max-width: 24ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.stack-block,
.architecture-block,
.engineering-block {
  margin-top: clamp(3.5rem, 7vw, 5rem);
}

.dossier-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.dossier-subhead small {
  color: var(--dim);
  font-size: inherit;
  font-weight: inherit;
}

.technology-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.technology-list li {
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
}

.architecture-diagram {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.architecture-level {
  display: grid;
  gap: 0.75rem;
}

.architecture-level-1 { grid-template-columns: minmax(0, 1fr); }
.architecture-level-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.architecture-level-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.architecture-level-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.architecture-node {
  min-width: 0;
  min-height: 6.5rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
}

.architecture-node-align-end {
  justify-self: end;
  width: calc(50% - 0.375rem);
}

.architecture-node small,
.architecture-node strong,
.architecture-node span {
  display: block;
}

.architecture-node small {
  margin-bottom: 1.5rem;
  color: var(--project-color);
  font-size: 0.48rem;
  letter-spacing: 0.12em;
}

.architecture-node strong {
  overflow-wrap: anywhere;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.architecture-node span {
  margin-top: 0.35rem;
  color: var(--dim);
  font-size: 0.58rem;
  line-height: 1.45;
}

.architecture-connector {
  position: relative;
  display: block;
  width: 100%;
  height: 2.5rem;
}

.architecture-connector::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background: var(--line-strong);
}

.architecture-connector-to-2::after,
.architecture-connector-to-3::after,
.architecture-connector-to-4::after,
.architecture-connector-to-end::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 1px;
  content: "";
  background: var(--line-strong);
  transform: translateX(-50%);
}

.architecture-connector-to-2::after { width: 50%; }
.architecture-connector-to-3::after { width: 66.66%; }
.architecture-connector-to-4::after { width: 75%; }

.architecture-connector-to-end::before { left: 75%; }
.architecture-connector-to-end::after {
  top: 0;
  bottom: auto;
  width: 25%;
  transform: none;
}

.build-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.build-highlights article {
  min-height: 12rem;
  padding: 1.25rem 1.5rem 1.5rem 0;
  border-right: 1px solid var(--line);
}

.build-highlights article + article {
  padding-left: 1.5rem;
}

.build-highlights article:last-child {
  padding-right: 0;
  border-right: 0;
}

.build-highlights span {
  display: block;
  margin-bottom: 3.5rem;
  color: var(--project-color);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.build-highlights p,
.project-focus p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.project-focus {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  background: color-mix(in srgb, var(--project-color) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--project-color) 35%, transparent);
}

.project-focus::after {
  position: absolute;
  right: -3.5rem;
  bottom: -5rem;
  width: 14rem;
  height: 14rem;
  content: "";
  border: 1px solid color-mix(in srgb, var(--project-color) 25%, transparent);
  border-radius: 50%;
}

.project-focus-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--dim);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-focus-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(12rem, 0.8fr);
  gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
}

.project-focus h3 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.project-focus-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  color: var(--dim);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-focus-meta > span {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--line);
}

.project-focus-meta strong {
  color: var(--muted);
  font-weight: 700;
}

.project-focus-meta a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 1rem 0 0;
  border-bottom: 1px solid color-mix(in srgb, var(--project-color) 60%, transparent);
}

.project-focus-meta i {
  color: var(--project-color);
  font-style: normal;
  transition: transform 180ms ease;
}

.project-focus-meta a:hover i,
.project-focus-meta a:focus-visible i {
  transform: translateX(4px);
}

.state-word {
  margin-bottom: 0;
  color: var(--project-color);
  font-size: clamp(3.2rem, 7vw, 6rem);
}

.status-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.status-panel > div {
  min-height: 7rem;
  padding: 1.15rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.status-panel span,
.status-panel strong {
  display: block;
  font-family: var(--mono);
}

.status-panel span {
  margin-bottom: 2rem;
  color: var(--dim);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-panel strong {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  line-height: 1.45;
  text-transform: uppercase;
}

.access-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 21rem;
  margin-top: 3rem;
  padding: 1.2rem;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
}

.access-button i {
  color: var(--project-color);
  font-style: normal;
}

.access-button-link {
  color: var(--text);
  border-color: var(--project-color);
  transition: background 180ms ease, color 180ms ease;
}

.access-button-link:hover,
.access-button-link:focus-visible {
  background: var(--project-color);
  color: #fff;
}

.access-button-link:hover i,
.access-button-link:focus-visible i {
  color: currentColor;
}

.access-button-label {
  cursor: default;
}

/* About */
.about-hero h1 {
  max-width: 10ch;
  font-size: clamp(4rem, 9vw, 9rem);
}

.about-origin,
.about-behind {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(3rem, 8vw, 8rem);
  padding-top: clamp(6rem, 10vw, 10rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
  border-bottom: 1px solid var(--line);
}

.about-section-heading h2 {
  max-width: 13ch;
  margin-bottom: 0;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  text-transform: uppercase;
}

.about-origin-copy,
.about-behind-copy {
  align-self: end;
  padding-left: clamp(1.5rem, 3vw, 3rem);
  border-left: 1px solid var(--accent);
}

.about-origin-copy p,
.about-behind-copy p {
  margin-bottom: 1.1rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.about-origin-copy p:last-child,
.about-behind-copy p:last-child {
  margin-bottom: 0;
  color: var(--text);
}

.about-behind-copy .builder-intro {
  margin-bottom: 2.75rem;
  color: var(--text);
  font-family: var(--display);
  line-height: 0.95;
}

.builder-intro > span,
.builder-intro > small {
  display: block;
  color: var(--dim);
  font-family: var(--body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.builder-intro > span {
  margin-bottom: 0.8rem;
}

.builder-intro > small {
  margin: 0.75rem 0 0.5rem;
}

.builder-intro > strong {
  display: block;
  font-size: clamp(2.1rem, 3.6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.builder-intro > .builder-alias {
  color: var(--accent-bright);
  font-size: clamp(2.4rem, 4.1vw, 3.75rem);
}

.about-reasons,
.about-approach {
  padding-top: clamp(6rem, 10vw, 10rem);
  padding-bottom: clamp(6rem, 10vw, 10rem);
}

.about-reasons {
  background: #0d0c0e;
  border-bottom: 1px solid var(--line);
}

.about-reasons .about-section-heading,
.about-approach .about-section-heading {
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.reason-grid,
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.reason-grid {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reason-card {
  min-height: 20rem;
  padding: 1.75rem 2.5rem 2rem 0;
  border-right: 1px solid var(--line);
}

.reason-card + .reason-card {
  padding-left: 2.5rem;
}

.reason-card:last-child {
  padding-right: 0;
  border-right: 0;
}

.reason-card > span,
.principle > span {
  display: block;
  margin-bottom: clamp(4rem, 7vw, 7rem);
  color: var(--accent-bright);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.reason-card h3,
.principle h3 {
  margin-bottom: 1.25rem;
  font-size: clamp(2rem, 3.2vw, 3.35rem);
  text-transform: uppercase;
}

.reason-card p,
.principle p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-approach {
  border-bottom: 1px solid var(--line);
}

.principle {
  min-height: 21rem;
  padding: 0 2.5rem 2rem 0;
  border-right: 1px solid var(--line);
}

.principle + .principle {
  padding-left: 2.5rem;
}

.principle:last-child {
  padding-right: 0;
  border-right: 0;
}

.about-behind {
  background:
    radial-gradient(circle at 18% 65%, rgba(157, 46, 66, 0.1), transparent 24rem),
    var(--bg);
}

.about-contact {
  padding-top: 7rem;
  padding-bottom: 7rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.about-contact h2 {
  margin-bottom: 1.75rem;
}

.about-contact > p:not(.eyebrow) {
  max-width: 38rem;
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

/* 404 */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.not-found h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(4rem, 10vw, 9rem);
  text-transform: uppercase;
}

.not-found > p:not(.eyebrow) {
  margin-bottom: 2.5rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 4rem;
  padding: 4rem var(--page-gutter);
  background: #070708;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 1.5rem;
}

.site-footer > div:first-child > p {
  margin: 0;
  color: var(--dim);
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a,
.footer-meta {
  color: var(--dim);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.footer-meta {
  margin: 0;
  text-align: right;
}

/* Responsive */
@media (max-width: 980px) {
  .header-status {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-navigation {
    justify-self: end;
  }

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

  .hero h1 {
    font-size: clamp(4.2rem, 10vw, 6.5rem);
  }

  .hero-visual {
    width: 23rem;
    transform: translateX(20%);
  }

  .purpose-intro {
    grid-template-columns: 1fr 0.8fr;
  }

  .project-grid-index .project-card,
  .project-grid-index .project-card:nth-child(3) {
    grid-column: span 6;
  }

  .project-grid-index .project-card:nth-child(3) {
    grid-column: span 12;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-nav {
    display: none;
  }

  .about-origin,
  .about-behind {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-origin-copy,
  .about-behind-copy {
    max-width: 44rem;
  }

  .reason-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .reason-card,
  .reason-card + .reason-card,
  .principle,
  .principle + .principle {
    min-height: auto;
    padding: 3rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .reason-card:last-child,
  .principle:last-child {
    border-bottom: 0;
  }

  .reason-card > span,
  .principle > span {
    margin-bottom: 2rem;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 4.5rem;
  }

  .site-header {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.3rem;
    width: 2.75rem;
    height: 2.75rem;
    cursor: pointer;
    touch-action: manipulation;
  }

  .menu-toggle:focus-visible {
    outline: 1px solid var(--accent-bright);
    outline-offset: 3px;
  }

  .menu-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .menu-toggle i {
    display: block;
    width: 1.6rem;
    height: 1px;
    background: var(--text);
    transition: transform 180ms ease;
  }

  .menu-toggle i:last-child {
    width: 1rem;
  }

  .menu-toggle[aria-expanded="true"] i:first-of-type {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] i:last-child {
    width: 1.6rem;
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-navigation {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(1.25rem, 4svh, 2rem);
    width: 100%;
    height: calc(100vh - var(--header-height) + 1px);
    height: calc(100svh - var(--header-height) + 1px);
    padding: clamp(2rem, 8svh, 5rem) 1.25rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(circle at 100% 0, rgba(157, 46, 66, 0.16), transparent 20rem),
      rgba(9, 9, 10, 0.99);
    border-top: 1px solid var(--line);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .site-navigation.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-navigation a {
    font-family: var(--display);
    font-size: clamp(2.25rem, 12vw, 3rem);
    line-height: 1;
    letter-spacing: -0.04em;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 18vw, 5.4rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.2rem;
  }

  .hero-visual {
    width: min(100%, 23rem);
    margin: 5rem auto 0;
    transform: none;
  }

  .section-heading,
  .purpose-header,
  .purpose-intro,
  .behind-section > div,
  .page-hero-copy,
  .project-hero-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .project-card,
  .project-card:nth-child(3),
  .project-grid-index .project-card,
  .project-grid-index .project-card:nth-child(3) {
    grid-column: span 12;
  }

  .card-visual,
  .project-card:nth-child(3) .card-visual,
  .project-grid-index .card-visual,
  .project-grid-index .project-card:nth-child(3) .card-visual {
    min-height: 15rem;
  }

  .purpose-header {
    gap: 0;
  }

  .purpose-label {
    justify-self: start;
  }

  .purpose-intro {
    gap: 2rem;
  }

  .purpose-types {
    grid-template-columns: 1fr;
  }

  .purpose-types article,
  .purpose-types article + article {
    min-height: auto;
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .purpose-types article:last-child {
    border-bottom: 0;
  }

  .purpose-types article > span {
    margin-bottom: 1.75rem;
  }

  .behind-section > div {
    gap: 2rem;
  }

  .page-hero h1 {
    margin-bottom: 2rem;
    font-size: clamp(4rem, 19vw, 6.5rem);
  }

  .page-hero-copy {
    align-items: start;
    gap: 2rem;
  }

  .project-hero-grid {
    gap: 3rem;
  }

  .project-hero h1 {
    font-size: clamp(3.6rem, 18vw, 6.5rem);
  }

  .project-signal {
    justify-self: center;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .project-meta > div,
  .project-meta > div:not(:first-child) {
    padding: 1rem 0;
    border-right: 0;
  }

  .project-meta > div + div {
    border-top: 1px solid var(--line);
  }

  .story-section {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.75rem;
  }

  .capability-grid,
  .build-highlights,
  .status-panel,
  .project-focus-grid,
  .architecture-level-2,
  .architecture-level-3,
  .architecture-level-4 {
    grid-template-columns: 1fr;
  }

  .capability-item {
    min-height: auto;
  }

  .capability-item > span {
    margin-bottom: 1.5rem;
  }

  .capability-item p {
    max-width: 34ch;
  }

  .architecture-diagram {
    padding: 1.25rem;
  }

  .architecture-node,
  .architecture-node-align-end {
    width: 100%;
    min-height: auto;
  }

  .architecture-connector::after {
    display: none;
  }

  .architecture-connector::before,
  .architecture-connector-to-end::before {
    left: 50%;
  }

  .build-highlights article,
  .build-highlights article + article {
    min-height: auto;
    padding: 1.5rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .build-highlights article:last-child {
    border-bottom: 0;
  }

  .build-highlights span {
    margin-bottom: 1.5rem;
  }

  .project-focus-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-focus-grid {
    gap: 2rem;
    margin-top: 3rem;
  }

  .project-focus-meta a {
    margin-top: 1.5rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-meta {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .brand::after {
    opacity: 0.52;
    background-position: center;
    animation: none;
  }
}

/* Homepage scrollytelling prototype */
.home-page {
  background:
    radial-gradient(circle at 72% 4%, rgba(157, 46, 66, 0.14), transparent 28rem),
    var(--bg);
}

.home-page .site-header,
.home-page .site-footer {
  position: relative;
  z-index: 20;
}

.home-page .site-header {
  position: sticky;
}

.scroll-story {
  --story-progress: 0;
  position: relative;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.scroll-story-scene {
  position: sticky;
  top: var(--header-height);
  z-index: 0;
  height: calc(100svh - var(--header-height));
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 9, 10, 0.4), transparent 38%, rgba(9, 9, 10, 0.18)),
    #09090a;
}

.scene-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scene-grid,
.scene-glow,
.scene-orbit,
.scene-axis,
.scene-connection,
.scene-core,
.scene-node,
.scene-coordinate,
.scene-readout,
.scene-progress {
  position: absolute;
}

.scene-grid {
  inset: -8%;
  opacity: 0.52;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-position: center calc(var(--story-progress) * -3rem);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 66% 50%, black 0, rgba(0, 0, 0, 0.8) 42%, transparent 76%);
}

.scene-glow {
  top: 50%;
  left: 66%;
  width: min(68vw, 62rem);
  aspect-ratio: 1;
  opacity: 0.76;
  background:
    radial-gradient(circle at 50% 50%, rgba(207, 64, 89, 0.105), rgba(157, 46, 66, 0.035) 25%, transparent 58%),
    radial-gradient(ellipse at 62% 38%, rgba(157, 46, 66, 0.06), transparent 47%);
  filter: blur(12px);
  transform: translate(-50%, -50%) scale(0.88);
  transition: transform 1.2s ease, opacity 1.2s ease;
}

.scene-architecture {
  position: absolute;
  top: 50%;
  left: 66%;
  z-index: 1;
  width: min(78vw, 70rem);
  height: auto;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.scene-architecture * {
  vector-effect: non-scaling-stroke;
}

.architecture-halo {
  opacity: 0.72;
  transition: opacity 900ms ease, transform 1.1s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.architecture-layer,
.architecture-ticks,
.architecture-core-geometry,
.architecture-microcopy {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 750ms ease, transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.architecture-outer {
  opacity: 0.28;
}

.architecture-mid {
  opacity: 0.58;
}

.architecture-inner {
  opacity: 0.9;
}

.architecture-ring,
.architecture-frame,
.architecture-arc,
.architecture-crosshair,
.architecture-brackets,
.architecture-inner-rails,
.architecture-ticks path,
.branch-base,
.branch-signal,
.architecture-detail path,
.architecture-detail circle,
.core-geometry-ring,
.core-geometry-frame,
.core-geometry-corners,
.core-geometry-point {
  fill: none;
  stroke: rgba(238, 233, 232, 0.22);
}

.ring-outer-ghost {
  stroke-width: 0.7;
  stroke-dasharray: 1 7;
}

.ring-oblique {
  stroke: rgba(207, 64, 89, 0.16);
  stroke-width: 0.8;
  stroke-dasharray: 10 5 1 6;
}

.frame-outer {
  stroke: rgba(238, 233, 232, 0.09);
  stroke-width: 0.7;
  stroke-dasharray: 2 10;
}

.architecture-arc {
  stroke: rgba(238, 233, 232, 0.35);
  stroke-linecap: square;
  transition: opacity 650ms ease, stroke 650ms ease, stroke-dashoffset 1s ease;
}

.arc-outer-a {
  stroke-width: 1.2;
  stroke-dasharray: 33 8 7 52;
}

.arc-outer-b {
  stroke: rgba(207, 64, 89, 0.3);
  stroke-width: 1.6;
  stroke-dasharray: 18 4 42 36;
}

.arc-outer-c {
  stroke-width: 0.7;
  stroke-dasharray: 11 6 24 59;
}

.ring-mid-segmented {
  stroke: rgba(238, 233, 232, 0.2);
  stroke-width: 1;
  stroke-dasharray: 21 3 1 5;
}

.ring-mid-fine {
  stroke: rgba(207, 64, 89, 0.27);
  stroke-width: 0.8;
  stroke-dasharray: 0.6 2.6;
}

.arc-mid-a {
  stroke: rgba(238, 233, 232, 0.5);
  stroke-width: 1.4;
  stroke-dasharray: 42 4 9 45;
}

.arc-mid-b {
  stroke: rgba(207, 64, 89, 0.42);
  stroke-width: 1.1;
  stroke-dasharray: 27 5 13 55;
}

.architecture-crosshair {
  stroke: rgba(238, 233, 232, 0.09);
  stroke-width: 0.65;
  stroke-dasharray: 1 6;
}

.architecture-crosshair-short {
  opacity: 0.42;
  stroke-dasharray: 16 22;
}

.architecture-ticks {
  opacity: 0.6;
}

.architecture-ticks path {
  stroke: rgba(238, 233, 232, 0.32);
  stroke-width: 1;
}

.architecture-ticks .tick-minor {
  opacity: 0.55;
  stroke-width: 0.7;
}

.ring-inner-ghost {
  stroke: rgba(238, 233, 232, 0.18);
  stroke-width: 0.8;
  stroke-dasharray: 1 4;
}

.arc-inner-a,
.arc-inner-b {
  stroke: rgba(207, 64, 89, 0.62);
  stroke-width: 1.6;
}

.arc-inner-a {
  stroke-dasharray: 43 6 8 43;
}

.arc-inner-b {
  stroke-dasharray: 29 5 17 49;
}

.frame-inner {
  stroke: rgba(238, 233, 232, 0.24);
  stroke-width: 0.8;
  stroke-dasharray: 38 7 3 52;
}

.architecture-brackets {
  stroke: rgba(238, 233, 232, 0.48);
  stroke-width: 1.2;
}

.architecture-inner-rails {
  stroke: rgba(207, 64, 89, 0.52);
  stroke-width: 1;
}

.architecture-branches {
  opacity: 0.9;
}

.architecture-branch {
  --branch-color: var(--accent-bright);
}

.branch-finance { --branch-color: #9b8650; }
.branch-flow { --branch-color: #4989a8; }
.branch-quest { --branch-color: #ba5c3e; }

.branch-base {
  stroke: rgba(238, 233, 232, 0.1);
  stroke-width: 0.75;
  stroke-dasharray: 2 5;
}

.branch-signal {
  opacity: 0.08;
  stroke: var(--branch-color);
  stroke-width: 1.35;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: opacity 550ms ease, stroke-dashoffset 950ms cubic-bezier(0.22, 1, 0.36, 1), stroke-width 550ms ease;
}

.branch-junction,
.branch-terminal {
  fill: #09090a;
  stroke: var(--branch-color);
  stroke-width: 1;
  opacity: 0.18;
  transition: opacity 550ms ease, fill 550ms ease;
}

.architecture-detail {
  opacity: 0;
  transition: opacity 650ms ease;
}

.architecture-detail path {
  stroke: rgba(238, 233, 232, 0.31);
  stroke-width: 0.75;
  stroke-dasharray: 3 3;
}

.architecture-detail circle {
  fill: #09090a;
  stroke: var(--accent-bright);
  stroke-width: 1;
}

.architecture-core-geometry {
  opacity: 0.95;
}

.core-geometry-halo {
  fill: rgba(157, 46, 66, 0.055);
  stroke: none;
}

.core-geometry-ring {
  stroke: rgba(207, 64, 89, 0.5);
  stroke-width: 1;
  stroke-dasharray: 16 3 1 5;
}

.core-geometry-frame {
  stroke: rgba(238, 233, 232, 0.42);
  stroke-width: 1;
  stroke-dasharray: 26 5 4 65;
}

.core-geometry-corners {
  stroke: rgba(207, 64, 89, 0.7);
  stroke-width: 1.35;
}

.core-geometry-point {
  fill: var(--accent-bright);
  stroke: none;
}

.architecture-microcopy {
  opacity: 0.5;
}

.architecture-microcopy text {
  fill: rgba(155, 150, 151, 0.78);
  font-family: var(--body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.scene-orbit {
  top: 50%;
  left: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 700ms ease, border-color 700ms ease;
}

.scene-orbit::after {
  position: absolute;
  top: 50%;
  left: -3px;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--accent-bright);
  border-radius: 50%;
  box-shadow: 0 0 1.25rem rgba(207, 64, 89, 0.75);
}

.scene-orbit-outer {
  width: min(70vw, 60rem);
}

.scene-orbit-middle {
  width: min(49vw, 42rem);
  border-style: dashed;
}

.scene-orbit-inner {
  width: min(28vw, 23rem);
  border-color: rgba(207, 64, 89, 0.22);
}

.scene-axis {
  top: 50%;
  left: 66%;
  background: rgba(255, 255, 255, 0.075);
  transform: translate(-50%, -50%);
  transition: opacity 700ms ease, width 1s ease, height 1s ease;
}

.scene-axis-horizontal {
  width: min(75vw, 68rem);
  height: 1px;
}

.scene-axis-vertical {
  width: 1px;
  height: min(88vh, 54rem);
}

.scene-core {
  top: 50%;
  left: 66%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(8.25rem, 11vw, 10.5rem);
  aspect-ratio: 1;
  overflow: visible;
  background: linear-gradient(135deg, rgba(27, 15, 19, 0.84), rgba(9, 9, 10, 0.8) 56%);
  border: 1px solid rgba(207, 64, 89, 0.76);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    inset 0 0 2.5rem rgba(157, 46, 66, 0.09),
    0 0 4rem rgba(157, 46, 66, 0.13);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 1s ease, background 1s ease, border-color 700ms ease;
}

.scene-core::before,
.scene-core::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.scene-core::before {
  inset: -10%;
  border: 1px solid rgba(238, 233, 232, 0.16);
  clip-path: polygon(0 0, 34% 0, 34% 1px, 66% 1px, 66% 0, 100% 0, 100% 100%, 66% 100%, 66% calc(100% - 1px), 34% calc(100% - 1px), 34% 100%, 0 100%);
}

.scene-core::after {
  inset: 13%;
  background: radial-gradient(circle, rgba(207, 64, 89, 0.2), rgba(157, 46, 66, 0.08) 42%, transparent 74%);
  border: 1px solid rgba(207, 64, 89, 0.28);
  box-shadow: inset 0 0 1.4rem rgba(207, 64, 89, 0.12);
}

.scene-core > .scene-core-logo,
.scene-core > small,
.scene-core > strong {
  position: absolute;
  z-index: 1;
  transform: rotate(-45deg);
}

.scene-core > .scene-core-logo {
  width: 62%;
  height: auto;
  filter: brightness(1.06) drop-shadow(0 0 0.9rem rgba(207, 64, 89, 0.42));
}

.scene-core > small {
  top: 72%;
  color: var(--muted);
  font-size: 0.43rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.scene-core > small b {
  color: var(--accent-bright);
  font-weight: 700;
}

.scene-core > strong {
  top: 18%;
  color: var(--dim);
  font-size: 0.39rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.scene-core .core-port {
  position: absolute;
  width: 0.75rem;
  height: 1px;
  background: var(--accent-bright);
  box-shadow: 0 0 0.6rem rgba(207, 64, 89, 0.55);
}

.core-port-one { top: -1px; left: 18%; }
.core-port-two { top: 18%; right: -0.35rem; transform: rotate(90deg); }
.core-port-three { right: 18%; bottom: -1px; }
.core-port-four { bottom: 18%; left: -0.35rem; transform: rotate(90deg); }

.scene-core .core-port::after {
  position: absolute;
  top: -1px;
  width: 3px;
  height: 3px;
  content: "";
  background: var(--text);
  border-radius: 50%;
}

.scene-node {
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 13rem;
  color: var(--dim);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
  opacity: 0.25;
  transform: translateY(8px);
  transition: color 550ms ease, opacity 550ms ease, transform 700ms ease;
}

.scene-node i {
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.scene-node-code { top: 16%; left: 42%; }
.scene-node-infrastructure { top: 23%; right: 4%; }
.scene-node-fields { bottom: 18%; left: 33%; }
.scene-node-finance { top: 8%; left: 72%; }
.scene-node-flow { top: 54%; right: 2.5%; }
.scene-node-quest { right: 14%; bottom: 7%; }

.scene-node-project {
  --project-accent: var(--accent-bright);
}

.scene-node-finance { --project-accent: #9b8650; }
.scene-node-flow { --project-accent: #4989a8; }
.scene-node-quest { --project-accent: #ba5c3e; }

.scene-connection {
  top: 50%;
  left: 66%;
  z-index: 1;
  width: 27%;
  height: 1px;
  background: linear-gradient(90deg, rgba(207, 64, 89, 0.8), rgba(255, 255, 255, 0.14));
  opacity: 0.12;
  transform: rotate(var(--connection-angle)) scaleX(0.12);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), opacity 650ms ease, background 650ms ease;
}

.connection-code { --connection-angle: 222deg; width: 34%; }
.connection-infrastructure { --connection-angle: -34deg; width: 29%; }
.connection-fields { --connection-angle: 155deg; width: 39%; }
.connection-finance { --connection-angle: -72deg; width: 27%; }
.connection-flow { --connection-angle: 7deg; width: 31%; }
.connection-quest { --connection-angle: 62deg; width: 30%; }

.scene-coordinate,
.scene-readout {
  z-index: 4;
  margin: 0;
  color: var(--dim);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.scene-coordinate-top {
  top: 2rem;
  right: var(--page-gutter);
}

.scene-coordinate-side {
  top: 50%;
  right: 1rem;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.scene-readout {
  right: var(--page-gutter);
  bottom: 2rem;
  color: var(--muted);
}

.scene-readout > span:first-child {
  color: var(--accent-bright);
}

.scene-progress {
  top: 2rem;
  bottom: 2rem;
  left: 1rem;
  width: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.09);
}

.scene-progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent-bright);
  transform: scaleY(var(--story-progress));
  transform-origin: top;
}

.story-chapters {
  position: relative;
  z-index: 5;
  margin-top: calc(-100svh + var(--header-height));
}

.story-chapter {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-height));
  padding: clamp(5rem, 11vh, 9rem) var(--page-gutter);
  pointer-events: none;
}

.story-chapter-right {
  justify-content: flex-end;
}

.story-panel,
.story-project-panel {
  width: min(43rem, 52%);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  pointer-events: auto;
  background: linear-gradient(135deg, rgba(13, 12, 14, 0.94), rgba(13, 12, 14, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.story-panel-wide {
  width: min(48rem, 58%);
}

.story-panel h2,
.story-project-panel h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 5.7vw, 6.1rem);
  text-transform: uppercase;
}

.story-chapter[data-story-chapter="origin"] .story-panel h2,
.story-chapter[data-story-chapter="purpose"] .story-panel h2,
.story-chapter[data-story-chapter="projects"] .story-panel h2 {
  font-size: clamp(2.75rem, 4.8vw, 5.2rem);
}

.story-chapter[data-story-chapter="fields"] .story-panel h2 {
  font-size: clamp(2.55rem, 4.15vw, 4.5rem);
}

.story-chapter[data-story-chapter="infrastructure"] .story-panel h2 {
  font-size: clamp(2.5rem, 4vw, 4.25rem);
}

.story-panel > p:not(.eyebrow):not(.scroll-cue):not(.final-kicker),
.story-project-panel > p {
  max-width: 39rem;
  color: #aaa5a6;
  font-size: clamp(0.95rem, 1.35vw, 1.1rem);
  line-height: 1.75;
}

.scroll-story.is-enhanced .story-panel,
.scroll-story.is-enhanced .story-project-panel {
  opacity: 0.16;
  filter: blur(2px);
  transform: translateY(3rem) scale(0.975);
  transition: opacity 550ms ease, filter 550ms ease, transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-story.is-enhanced .story-chapter.is-active .story-panel,
.scroll-story.is-enhanced .story-chapter.is-active .story-project-panel {
  opacity: 1;
  filter: none;
  transform: translateY(0) scale(1);
}

.story-chapter-hero {
  align-items: center;
}

.story-panel-hero {
  width: min(56rem, 68%);
  padding-left: 0;
  background: linear-gradient(90deg, rgba(9, 9, 10, 0.96) 15%, rgba(9, 9, 10, 0.68) 75%, transparent);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.story-panel-hero h1 {
  max-width: 12ch;
  margin-bottom: 2rem;
  font-size: clamp(4.6rem, 8.6vw, 8.8rem);
  text-transform: uppercase;
}

.story-panel-hero h1 em,
.story-panel-final h2 em {
  color: var(--accent-bright);
  font-style: normal;
  font-weight: 300;
}

.story-lead {
  max-width: 39rem;
  margin-bottom: 2.4rem;
  color: #bab5b5;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

.scroll-cue {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: clamp(3.5rem, 8vh, 6rem) 0 0;
  color: var(--dim);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue i {
  width: 2.5rem;
  height: 1px;
  background: var(--accent-bright);
}

.story-discipline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.story-discipline-list li {
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  border: 1px solid var(--line);
}

.story-purpose-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-purpose-list > div {
  padding: 1.25rem 1rem 1.25rem 0;
}

.story-purpose-list > div + div {
  padding-left: 1rem;
  border-left: 1px solid var(--line);
}

.story-purpose-list span,
.story-purpose-list strong,
.story-purpose-list small {
  display: block;
}

.story-purpose-list span {
  margin-bottom: 1.5rem;
  color: var(--accent-bright);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.story-purpose-list strong {
  margin-bottom: 0.65rem;
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
}

.story-purpose-list small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.story-emphasis {
  margin: 1.4rem 0 0;
  color: var(--text) !important;
  font-weight: 700;
}

.story-chapter-project-intro .text-link {
  margin-top: 1rem;
}

.story-chapter-project {
  --project-accent: var(--accent-bright);
}

.story-chapter-finance { --project-accent: #9b8650; }
.story-chapter-flow { --project-accent: #4989a8; }
.story-chapter-quest { --project-accent: #ba5c3e; }

.story-project-panel {
  display: block;
  border-left: 2px solid var(--project-accent);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.story-project-panel:hover,
.story-project-panel:focus-visible {
  background: linear-gradient(135deg, color-mix(in srgb, var(--project-accent) 13%, #0d0c0e), rgba(13, 12, 14, 0.9));
  border-color: var(--project-accent);
}

.project-chapter-topline,
.project-chapter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.project-chapter-topline {
  margin-bottom: clamp(3rem, 7vh, 5.5rem);
}

.project-chapter-topline .eyebrow {
  margin: 0;
}

.project-chapter-topline .status-badge {
  color: var(--muted);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.story-project-panel h2 {
  color: var(--text);
}

.project-chapter-child {
  margin-top: 1.5rem;
  color: var(--project-accent) !important;
  font-size: 0.7rem !important;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-chapter-child span {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--dim);
  font-size: 0.5rem;
}

.project-chapter-meta {
  margin-top: 2.5rem;
  padding-top: 1.1rem;
  color: var(--dim);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

.project-chapter-meta strong {
  color: var(--text);
}

.project-chapter-meta i {
  margin-left: 1rem;
  color: var(--project-accent);
  font-style: normal;
}

.story-chapter-final {
  min-height: 120svh;
  justify-content: center;
  text-align: center;
}

.story-panel-final {
  width: min(64rem, 88%);
  padding: clamp(2rem, 5vw, 4.5rem);
  background: radial-gradient(circle at 50% 45%, rgba(157, 46, 66, 0.18), rgba(9, 9, 10, 0.94) 58%);
  border-color: rgba(207, 64, 89, 0.22);
}

.story-panel-final .eyebrow,
.story-panel-final > p {
  margin-right: auto;
  margin-left: auto;
}

.story-panel-final h2 {
  margin-bottom: 2rem;
  font-size: clamp(3.6rem, 7.4vw, 8rem);
}

.final-kicker {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

/* Scene state changes */
.scroll-story[data-active-chapter="origin"] .scene-node-code,
.scroll-story[data-active-chapter="infrastructure"] .scene-node-infrastructure,
.scroll-story[data-active-chapter="fields"] .scene-node-fields,
.scroll-story[data-active-chapter="kurofinance"] .scene-node-finance,
.scroll-story[data-active-chapter="kuroflow"] .scene-node-flow,
.scroll-story[data-active-chapter="city-quest"] .scene-node-quest {
  color: var(--project-accent, var(--accent-bright));
  opacity: 1;
  transform: translateY(0) scale(1.05);
}

.scroll-story[data-active-chapter="origin"] .connection-code,
.scroll-story[data-active-chapter="infrastructure"] .connection-infrastructure,
.scroll-story[data-active-chapter="fields"] .connection-fields,
.scroll-story[data-active-chapter="kurofinance"] .connection-finance,
.scroll-story[data-active-chapter="kuroflow"] .connection-flow,
.scroll-story[data-active-chapter="city-quest"] .connection-quest {
  opacity: 0.8;
  transform: rotate(var(--connection-angle)) scaleX(1);
}

.scroll-story[data-active-chapter="purpose"] .scene-node-code,
.scroll-story[data-active-chapter="purpose"] .scene-node-infrastructure,
.scroll-story[data-active-chapter="purpose"] .scene-node-fields,
.scroll-story[data-active-chapter="projects"] .scene-node-project,
.scroll-story[data-active-chapter="convergence"] .scene-node {
  color: var(--project-accent, var(--text));
  opacity: 0.82;
  transform: translateY(0);
}

.scroll-story[data-active-chapter="purpose"] .connection-code,
.scroll-story[data-active-chapter="purpose"] .connection-infrastructure,
.scroll-story[data-active-chapter="purpose"] .connection-fields,
.scroll-story[data-active-chapter="projects"] .connection-finance,
.scroll-story[data-active-chapter="projects"] .connection-flow,
.scroll-story[data-active-chapter="projects"] .connection-quest,
.scroll-story[data-active-chapter="convergence"] .scene-connection {
  opacity: 0.52;
  transform: rotate(var(--connection-angle)) scaleX(1);
}

.scroll-story[data-active-chapter="kurofinance"] .connection-finance {
  background: linear-gradient(90deg, #9b8650, rgba(155, 134, 80, 0.2));
}

.scroll-story[data-active-chapter="kuroflow"] .connection-flow {
  background: linear-gradient(90deg, #4989a8, rgba(73, 137, 168, 0.2));
}

.scroll-story[data-active-chapter="city-quest"] .connection-quest {
  background: linear-gradient(90deg, #ba5c3e, rgba(186, 92, 62, 0.2));
}

.scroll-story[data-active-chapter="convergence"] .scene-glow {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

.scroll-story[data-active-chapter="convergence"] .scene-core {
  background: rgba(31, 12, 17, 0.82);
  box-shadow: 0 0 8rem rgba(157, 46, 66, 0.38);
  transform: translate(-50%, -50%) rotate(45deg) scale(1.18);
}

.scroll-story[data-active-chapter="convergence"] .scene-orbit-outer {
  width: min(78vw, 69rem);
  border-color: rgba(207, 64, 89, 0.26);
}

.scroll-story[data-active-chapter="convergence"] .scene-orbit-inner {
  width: min(33vw, 28rem);
}

.scroll-story[data-active-chapter="origin"] .branch-code .branch-signal,
.scroll-story[data-active-chapter="infrastructure"] .branch-infrastructure .branch-signal,
.scroll-story[data-active-chapter="fields"] .branch-fields .branch-signal,
.scroll-story[data-active-chapter="kurofinance"] .branch-finance .branch-signal,
.scroll-story[data-active-chapter="kuroflow"] .branch-flow .branch-signal,
.scroll-story[data-active-chapter="city-quest"] .branch-quest .branch-signal {
  opacity: 0.92;
  stroke-dashoffset: 0;
  stroke-width: 1.6;
}

.scroll-story[data-active-chapter="origin"] .branch-code :is(.branch-junction, .branch-terminal),
.scroll-story[data-active-chapter="infrastructure"] .branch-infrastructure :is(.branch-junction, .branch-terminal),
.scroll-story[data-active-chapter="fields"] .branch-fields :is(.branch-junction, .branch-terminal),
.scroll-story[data-active-chapter="kurofinance"] .branch-finance :is(.branch-junction, .branch-terminal),
.scroll-story[data-active-chapter="kuroflow"] .branch-flow :is(.branch-junction, .branch-terminal),
.scroll-story[data-active-chapter="city-quest"] .branch-quest :is(.branch-junction, .branch-terminal) {
  fill: rgba(207, 64, 89, 0.2);
  opacity: 1;
}

.scroll-story[data-active-chapter="origin"] .detail-origin,
.scroll-story[data-active-chapter="infrastructure"] .detail-infrastructure,
.scroll-story[data-active-chapter="fields"] .detail-fields,
.scroll-story[data-active-chapter="kurofinance"] .detail-finance,
.scroll-story[data-active-chapter="kuroflow"] .detail-flow,
.scroll-story[data-active-chapter="city-quest"] .detail-quest {
  opacity: 0.9;
}

.scroll-story[data-active-chapter="purpose"] :is(.branch-code, .branch-infrastructure, .branch-fields) .branch-signal,
.scroll-story[data-active-chapter="projects"] :is(.branch-finance, .branch-flow, .branch-quest) .branch-signal {
  opacity: 0.5;
  stroke-dashoffset: 0;
}

.scroll-story[data-active-chapter="purpose"] :is(.detail-origin, .detail-infrastructure, .detail-fields),
.scroll-story[data-active-chapter="projects"] :is(.detail-finance, .detail-flow, .detail-quest) {
  opacity: 0.5;
}

.scroll-story[data-active-chapter="convergence"] .branch-signal {
  opacity: 0.72;
  stroke-dashoffset: 0;
}

.scroll-story[data-active-chapter="convergence"] :is(.branch-junction, .branch-terminal),
.scroll-story[data-active-chapter="convergence"] .architecture-detail {
  opacity: 0.78;
}

.scroll-story[data-active-chapter="origin"] .architecture-mid {
  opacity: 0.72;
  transform: rotate(-2deg) scale(0.99);
}

.scroll-story[data-active-chapter="infrastructure"] .architecture-outer {
  opacity: 0.5;
  transform: rotate(2.5deg) scale(1.025);
}

.scroll-story[data-active-chapter="infrastructure"] .architecture-crosshair {
  stroke: rgba(207, 64, 89, 0.2);
}

.scroll-story[data-active-chapter="fields"] .architecture-outer {
  opacity: 0.58;
  transform: rotate(-3deg) scale(1.035);
}

.scroll-story[data-active-chapter="fields"] .ring-oblique {
  stroke: rgba(207, 64, 89, 0.38);
}

.scroll-story[data-active-chapter="purpose"] .architecture-mid {
  opacity: 0.82;
  transform: rotate(3deg) scale(1.015);
}

.scroll-story[data-active-chapter="projects"] .architecture-outer {
  opacity: 0.64;
}

.scroll-story[data-active-chapter="projects"] .architecture-mid {
  opacity: 0.86;
  transform: rotate(-4deg);
}

.scroll-story[data-active-chapter="kurofinance"] .scene-core {
  border-color: rgba(155, 134, 80, 0.82);
  box-shadow: inset 0 0 2.5rem rgba(155, 134, 80, 0.08), 0 0 4.5rem rgba(155, 134, 80, 0.14);
}

.scroll-story[data-active-chapter="kuroflow"] .scene-core {
  border-color: rgba(73, 137, 168, 0.82);
  box-shadow: inset 0 0 2.5rem rgba(73, 137, 168, 0.08), 0 0 4.5rem rgba(73, 137, 168, 0.14);
}

.scroll-story[data-active-chapter="city-quest"] .scene-core {
  border-color: rgba(186, 92, 62, 0.82);
  box-shadow: inset 0 0 2.5rem rgba(186, 92, 62, 0.08), 0 0 4.5rem rgba(186, 92, 62, 0.14);
}

.scroll-story[data-active-chapter="kurofinance"] .architecture-mid {
  transform: rotate(-2deg) scale(1.018);
}

.scroll-story[data-active-chapter="kuroflow"] .architecture-mid {
  transform: rotate(2deg) scale(1.025);
}

.scroll-story[data-active-chapter="city-quest"] .architecture-outer {
  transform: rotate(-2deg) scale(1.035);
}

.scroll-story[data-active-chapter="convergence"] .architecture-halo {
  opacity: 1;
  transform: scale(1.16);
}

.scroll-story[data-active-chapter="convergence"] .architecture-outer {
  opacity: 0.72;
  transform: rotate(1.5deg) scale(1.04);
}

.scroll-story[data-active-chapter="convergence"] .architecture-mid {
  opacity: 0.95;
  transform: rotate(-2deg) scale(1.025);
}

.scroll-story[data-active-chapter="convergence"] .architecture-inner,
.scroll-story[data-active-chapter="convergence"] .architecture-core-geometry {
  opacity: 1;
  transform: scale(1.04);
}

@media (max-width: 980px) {
  .story-panel,
  .story-project-panel {
    width: min(39rem, 61%);
  }

  .story-panel-hero {
    width: min(48rem, 76%);
  }

  .scene-orbit,
  .scene-core,
  .scene-axis,
  .scene-glow,
  .scene-connection,
  .scene-architecture {
    left: 70%;
  }

  .scene-node-fields {
    left: 27%;
  }

  .scene-node-infrastructure {
    right: 2%;
    max-width: 9rem;
  }
}

@media (max-width: 760px) {
  .scroll-story-scene {
    position: absolute;
    top: 0;
    width: 100%;
    height: min(43rem, 86svh);
    opacity: 0.74;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  }

  .story-chapters {
    margin-top: 0;
  }

  .story-chapter,
  .story-chapter-final {
    display: block;
    min-height: auto;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
    border-top: 1px solid var(--line);
  }

  .story-chapter-hero {
    display: flex;
    min-height: calc(100svh - var(--header-height));
    padding-top: 4rem;
    border-top: 0;
  }

  .story-panel,
  .story-project-panel,
  .story-panel-wide,
  .story-panel-hero,
  .story-panel-final {
    width: 100%;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .story-panel-hero {
    padding: 2rem 0;
    background: linear-gradient(90deg, rgba(9, 9, 10, 0.96) 0%, rgba(9, 9, 10, 0.72) 76%, transparent);
  }

  .story-panel-hero h1 {
    font-size: clamp(3.4rem, 17vw, 5.2rem);
  }

  .story-panel h2,
  .story-project-panel h2,
  .story-panel-final h2 {
    font-size: clamp(2.8rem, 13vw, 4.8rem);
  }

  .scroll-cue {
    margin-top: 3rem;
  }

  .scene-grid {
    mask-image: linear-gradient(to bottom, black, transparent);
  }

  .scene-glow,
  .scene-orbit,
  .scene-core,
  .scene-axis,
  .scene-architecture {
    left: 76%;
  }

  .scene-architecture {
    width: 40rem;
  }

  .architecture-outer,
  .architecture-branches,
  .architecture-detail,
  .architecture-microcopy {
    display: none;
  }

  .architecture-mid {
    opacity: 0.44;
  }

  .architecture-halo {
    filter: none;
  }

  .scene-orbit-outer { width: 33rem; }
  .scene-orbit-middle { width: 23rem; }
  .scene-orbit-inner { width: 13rem; }
  .scene-axis-horizontal { width: 34rem; }
  .scene-axis-vertical { height: 32rem; }

  .scene-node,
  .scene-connection,
  .scene-coordinate,
  .scene-readout,
  .scene-progress {
    display: none;
  }

  .story-purpose-list {
    grid-template-columns: 1fr;
  }

  .story-purpose-list > div,
  .story-purpose-list > div + div {
    padding: 1.2rem 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-purpose-list > div:last-child {
    border-bottom: 0;
  }

  .story-purpose-list span {
    margin-bottom: 0.75rem;
  }

  .story-purpose-list small {
    max-width: 28rem;
  }

  .story-project-panel {
    padding-left: 1rem;
    border-left: 2px solid var(--project-accent);
  }

  .project-chapter-topline {
    align-items: flex-start;
    margin-bottom: 3rem;
  }

  .project-chapter-topline .status-badge {
    max-width: 8rem;
    text-align: right;
  }

  .story-panel-final {
    text-align: left;
  }

  .story-panel-final .eyebrow,
  .story-panel-final > p {
    margin-left: 0;
  }

  .final-actions {
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-story-scene {
    position: relative;
    top: auto;
    height: min(46rem, 76svh);
  }

  .story-chapters {
    margin-top: 0;
  }

  .story-chapter,
  .story-chapter-final {
    min-height: auto;
    padding-top: clamp(4rem, 8vw, 7rem);
    padding-bottom: clamp(4rem, 8vw, 7rem);
    border-top: 1px solid var(--line);
  }

  .story-panel,
  .story-project-panel,
  .story-panel-wide,
  .story-panel-hero,
  .story-panel-final {
    width: min(56rem, 100%);
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .story-chapter-right {
    justify-content: flex-start;
  }

  .scene-node,
  .scene-connection {
    opacity: 0.6;
  }

  .branch-signal {
    opacity: 0.28;
    stroke-dashoffset: 0;
  }

  .architecture-detail {
    opacity: 0.38;
  }

  .architecture-layer,
  .architecture-halo,
  .architecture-core-geometry {
    transform: none !important;
  }
}
