:root[data-product="houston"] {
  --paper: #eef1f2;
  --surface: #fafcfc;
  --ink: #172d3f;
  --muted: #526371;
  --accent: #a74124;
  --line: #c5d0d5;
  --band: #e0e7ea;
  --picture: #dce5e9;
}
:root[data-product="houston"][data-theme="dark"] {
  --paper: #101c27;
  --surface: #172835;
  --ink: #f0ede3;
  --muted: #b0bdc5;
  --accent: #efa27d;
  --line: #354956;
  --band: #152530;
  --picture: #0c1720;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 0.3em;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: transparent;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(3.4rem, 5.4vw, 5.35rem);
}
h2 {
  font-size: clamp(2.5rem, 3.7vw, 3.75rem);
}
h3 {
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
h1 em,
h2 em {
  font-weight: 400;
  color: var(--accent);
}
p {
  text-wrap: pretty;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  width: min(100% - var(--gutter) * 2, 1280px);
  margin-inline: auto;
}
.micro,
.eyebrow {
  font: 500 0.7rem/1.6 var(--mono);
  letter-spacing: 0.1em;
}
.eyebrow {
  margin-bottom: 1.6rem;
}
.eyebrow .accent {
  color: var(--accent);
  margin-right: 0.6rem;
  font-size: 1.2rem;
  vertical-align: middle;
}
.skip {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 20;
  padding: 1rem;
  background: var(--surface);
}
.skip:focus {
  top: 0.5rem;
}
.masthead {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.055em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-dot {
  color: var(--accent);
}
.masthead nav {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  font-size: 0.875rem;
}
.masthead nav a {
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.masthead nav a:hover,
.footer a:hover {
  color: var(--accent);
}
.header-controls {
  display: flex;
  gap: 0.75rem;
}
.appearance {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.4rem;
}
.explore {
  display: none;
  border: 0;
  min-height: 44px;
  font-size: 0.875rem;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
}
.lead {
  font-size: 1.15rem;
  line-height: 1.5;
  margin-top: 1.8rem;
}
.deck {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 370px;
  margin-top: 1.15rem;
}
.text-link {
  display: inline-flex;
  gap: 1.7rem;
  align-items: center;
  min-height: 44px;
  margin-top: 1.5rem;
  padding-block: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.text-link span {
  font-size: 1.2rem;
}
.release {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 1.6rem;
}
.release > span {
  color: var(--accent);
  font-size: 0.6rem;
}
figcaption {
  color: var(--muted);
  font-size: 0.78rem;
}
.orbit-art > figcaption {
  display: flex;
  gap: 1rem;
  margin-top: 1.1rem;
}
.capabilities {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  border-block: 1px solid var(--line);
  padding-block: 1.5rem;
}
.capabilities .micro {
  color: var(--muted);
}
.capabilities p {
  font: 1.6rem/1.4 var(--serif);
}
.capabilities i {
  margin-inline: 0.7rem;
  color: var(--accent);
}
.section {
  padding-block: 6rem;
}
.section-deck {
  max-width: 440px;
  color: var(--muted);
  margin-top: 1.5rem;
}
.together,
.system-layout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 5rem;
  align-items: center;
}
.table-rules article {
  display: flex;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.table-rules article:last-child {
  border-bottom: 1px solid var(--line);
}
.table-rules .micro {
  color: var(--accent);
}
.table-rules p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.55rem;
  max-width: 420px;
}
.system-band {
  padding-block: 5rem;
  background: var(--band);
}
.small-note {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 370px;
  margin-top: 1.6rem;
}
.closing {
  padding-block: 5rem;
  text-align: center;
}
.flourish {
  display: block;
  color: var(--accent);
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}
.closing .eyebrow {
  font-size: 0.62rem;
}
.closing p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.5rem;
}
.closing .release {
  justify-content: center;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.7rem;
}
.footer .brand {
  font-size: 1rem;
}
.footer p {
  color: var(--muted);
}
.footer p a {
  display: block;
}
.footer > div {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.footer a {
  text-decoration: none;
}

[data-product="houston"] .hero {
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
}
[data-product="houston"] h1 {
  font-size: clamp(3rem, 4.6vw, 4.6rem);
}
.orbit-field {
  position: relative;
  color: #859da9;
}
.orbit-field svg {
  display: block;
  width: 100%;
  height: auto;
}
.orbit-lines {
  opacity: 0.45;
  stroke-width: 1;
}
.orbit-star {
  color: var(--accent);
}
.orbit-specks {
  opacity: 0.85;
}
.orbit-label {
  position: absolute;
  font: 0.6rem var(--mono);
  letter-spacing: 0.15em;
  color: var(--muted);
}
.label-a {
  top: 13%;
  left: 45%;
}
.label-b {
  bottom: 13%;
  left: 20%;
}
.illustration-note {
  margin-left: auto;
  font-size: 0.65rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.section-heading > p {
  color: var(--muted);
  font-size: 0.875rem;
  padding-bottom: 0.25rem;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.gallery-card {
  min-width: 0;
}
.gallery-open {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--picture);
}
.gallery-open:hover {
  border-color: var(--accent);
}
.thumb {
  height: 174px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px;
}
.thumb img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.thumb.phone img {
  width: auto;
  height: 100%;
}
.enlarge {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}
.gallery-card figcaption {
  padding: 1rem 0.3rem 0;
}
.gallery-card figcaption .micro {
  font-size: 0.6rem;
  color: var(--accent);
}
.gallery-card h3 {
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 0.45rem;
}
.gallery-card p {
  font-size: 0.78rem;
  margin-top: 0.3rem;
}
.gallery-foot {
  color: var(--muted);
  font-size: 0.6rem;
  margin-top: 2rem;
}
.system-layout {
  align-items: start;
}
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 1.5rem 2rem;
  background: #101923;
  color: #f0ede3;
  border: 0;
}
.lightbox[open] {
  display: flex;
  flex-direction: column;
}
.lightbox::backdrop {
  background: #101923;
}
.lightbox > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lightbox h2 {
  font: 1.2rem/1.3 var(--sans);
  letter-spacing: -0.02em;
  margin-top: 0.3rem;
}
.lightbox .micro {
  color: #b0bdc5;
}
.lightbox button {
  min-height: 44px;
  min-width: 44px;
  border: 1px solid #506576;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}
.viewer-image {
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}
.viewer-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}
.lightbox > footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
#viewer-caption {
  flex: 1;
  font-size: 0.85rem;
  text-align: center;
}
.viewer-hint {
  text-align: center;
  font-size: 0.6rem;
  margin-top: 1rem;
}
.works-with {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  padding-block: 3rem;
  border-bottom: 1px solid var(--line);
}
.works-with h2 {
  font-size: 2.5rem;
}
.works-with .eyebrow {
  margin-bottom: 1rem;
}
.works-with > div > p + p {
  margin-top: 1rem;
}
.works-with > div:last-child {
  color: var(--muted);
}
@media (max-width: 760px) {
  .works-with {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 1000px) and (min-width: 761px) {
  .masthead nav {
    gap: 1rem;
  }
  .hero,
  [data-product="houston"] .hero {
    gap: 1.5rem;
  }
  h1,
  [data-product="houston"] h1 {
    font-size: 3.2rem;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1rem;
  }
  .together,
  .system-layout {
    gap: 2rem;
  }
}
@media (max-width: 760px) {
  .masthead {
    min-height: 84px;
    gap: 0;
    flex-wrap: wrap;
    padding-block: 1rem;
  }
  .brand {
    font-size: 1.2rem;
    gap: 0.5rem;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .header-controls {
    margin-left: auto;
  }
  .explore {
    display: block;
  }
  .masthead nav {
    display: none;
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    margin: 0.75rem 0 0;
    gap: 0.3rem 1.5rem;
  }
  .masthead nav[data-open] {
    display: flex;
  }
  .hero,
  [data-product="houston"] .hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 0 2.5rem;
  }
  h1 {
    font-size: clamp(3.1rem, 12.5vw, 4.5rem);
  }
  [data-product="houston"] h1 {
    font-size: clamp(2.85rem, 11.5vw, 4.2rem);
  }
  .eyebrow {
    font-size: 0.62rem;
    margin-bottom: 1.3rem;
  }
  .lead {
    margin-top: 1.5rem;
    font-size: 1.05rem;
  }
  .deck {
    font-size: 0.9rem;
  }
  .orbit-art {
    max-width: 460px;
    margin: 0 auto;
  }
  .orbit-art > figcaption {
    gap: 0.7rem;
    font-size: 0.68rem;
  }
  .illustration-note {
    display: none;
  }
  .capabilities {
    display: block;
    padding-block: 1.25rem;
  }
  .capabilities p {
    margin-top: 0.65rem;
    font-size: 1.25rem;
  }
  .capabilities i {
    margin-inline: 0.3rem;
  }
  .together,
  .system-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .section,
  .system-band {
    padding-block: 3.5rem;
  }
  .section-heading {
    display: block;
    margin-bottom: 2rem;
  }
  .section-heading > p {
    margin-top: 1.25rem;
  }
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 0.75rem;
  }
  .thumb {
    height: 136px;
    padding: 8px;
  }
  .gallery-card h3 {
    font-size: 0.9rem;
  }
  .gallery-card p {
    font-size: 0.72rem;
  }
  .gallery-foot {
    letter-spacing: 0.04em;
    font-size: 0.55rem;
  }
  .closing {
    padding-block: 3.5rem;
  }
  .footer {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .footer p {
    text-align: right;
    margin-left: auto;
  }
  .footer > div {
    width: 100%;
    justify-content: space-between;
  }
  .lightbox {
    padding: 1rem;
  }
  .lightbox h2 {
    font-size: 0.95rem;
  }
  .lightbox > footer {
    gap: 0.7rem;
  }
  #viewer-caption {
    font-size: 0.75rem;
  }
  .viewer-hint {
    font-size: 0.5rem;
  }
}
@media (max-width: 359px) {
  .header-controls {
    gap: 0.25rem;
  }
  .appearance {
    width: 44px;
  }
  .brand {
    font-size: 1rem;
  }
  .explore {
    font-size: 0.75rem;
    padding: 0 0.2rem;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .thumb {
    height: 174px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Preserved Houston narrative, using the reference site's spacing and cards. */
.crew-strip {
  border-block: 1px solid var(--line);
  padding-block: 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.crew-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
}
.bridge-summary {
  padding-block: 2rem;
}
.bridge-summary h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.architecture-notes,
.input-methods,
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.agent-capabilities,
.channels-grid,
.spectrum-labels,
.base {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.architecture-notes p,
.capability p,
.channel-group p,
.input-story p,
.spectrum-labels p,
.pillar p,
.base p,
.flywheel-step p,
.coming-soon > p {
  color: var(--muted);
  margin-top: 1rem;
}
.agent-capabilities,
.input-story,
.spectrum,
.phone-intro {
  margin-top: 3rem;
}
.capability,
.channel-group,
.pillar,
.local-stack {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}
.pillar-top svg {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.pillar-foot,
.system-foot,
.loop-note,
.spectrum-note {
  color: var(--muted);
  margin-top: 2rem;
  font-size: 0.75rem;
}
.channel-row,
.stack-head,
.stack-row,
.base-recipe {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.channel-row .mono {
  color: var(--accent);
}
.stack-row > div {
  flex: 1;
}
.stack-row small {
  display: block;
  color: var(--muted);
}
.stack-head {
  justify-content: space-between;
}
.base {
  padding-block: 4rem;
  border-block: 1px solid var(--line);
}
.base-bottom {
  grid-column: 1/-1;
}
.flywheel-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.step-num {
  display: block;
  color: var(--accent);
  margin-bottom: 1rem;
}
.project-notes {
  max-width: 650px;
  margin-block: 2rem;
}
.project-notes summary {
  min-height: 44px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.project-notes summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.project-notes p {
  margin-top: 1rem;
  color: var(--muted);
}
.viewer-open {
  overflow: hidden;
}
.viewer-original {
  text-align: center;
  min-height: 44px;
  padding: 0.6rem;
  font-size: 0.8rem;
}
#viewer-status {
  text-align: center;
}
@media (max-width: 760px) {
  .architecture-notes,
  .input-methods,
  .pillars,
  .agent-capabilities,
  .channels-grid,
  .spectrum-labels,
  .base,
  .flywheel-path {
    grid-template-columns: 1fr;
  }
  .crew-strip {
    display: block;
  }
  .crew-list {
    margin-top: 1rem;
  }
}
/* Navigation remains usable without JavaScript. */
html:not([data-enhanced]) .masthead nav {
  display: flex;
}
.appearance[hidden],
.explore[hidden] {
  display: none;
}
:root[data-product] {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-product="houston"]:not([data-theme="light"]) {
    --paper: #101c27;
    --surface: #172835;
    --ink: #f0ede3;
    --muted: #b0bdc5;
    --accent: #efa27d;
    --line: #354956;
    --band: #152530;
    --picture: #0c1720;
    color-scheme: dark;
  }
}
