:root {
  /* Research catalog: ink / paper — no neon brand accents */
  --ink: #0d0f14;
  --paper: #f7f7f5;
  --white: #ffffff;
  --mute: #6b7280;
  --rule: #e5e5e2;
  --hero-mute: #8b919a;
  --hero-lead: #a0a7b0;

  --bg: var(--paper);
  --bg-subtle: #f0f0ed;
  --surface: var(--white);
  --surface-2: #fafaf8;
  --surface-3: #f3f3f0;
  --text: var(--ink);
  --muted: var(--mute);
  --muted-2: #9ca3af;
  --primary: var(--ink);
  --primary-bright: var(--ink);
  --primary-soft: rgba(13, 15, 20, 0.06);
  --border: var(--rule);
  --border-strong: #d4d4d0;
  --success: #3f6f54;
  --warning: #8a6a2f;
  --danger: #8b3a3a;
  --shadow: 0 1px 0 rgba(13, 15, 20, 0.04);
  --shadow-hover: 0 8px 24px rgba(13, 15, 20, 0.08);
  --radius: 6px;
  --radius-sm: 4px;
  --radius-inner: 4px;
  --max: 1120px;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font: 400 16px/1.65 var(--font-body);
  letter-spacing: 0;
}

/* decoration removed: no body::after noise/scanlines */

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

img {
  display: block;
  max-width: 100%;
}

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

.hidden {
  display: none !important;
}

.shell {
  position: relative;
  overflow: clip;
}

/* decoration removed: no .background-grid overlay */

.container {
  width: min(calc(100% - 1.5rem), var(--max));
  margin: 0 auto;
}

.section-header {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.05rem;
}

.section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 24ch;
}

.section-header:not(.section-header--split):not(.section-header--overlay)::after {
  content: "";
  background: var(--rule);
  height: 1px;
  width: 3rem;
}

.section-header--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.88fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
  margin-bottom: 1.35rem;
}

.section-header--split .section-header-copy {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.section-header--split .section-header-copy .chip {
  justify-self: start;
}

.section-header-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: none;
  background: var(--bg-subtle);
}

.section-header-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-header--split-tall .section-header-visual img {
  aspect-ratio: 3 / 4;
  max-height: min(420px, 52dvh);
  object-fit: cover;
}

.section-header--overlay {
  margin-bottom: 1.35rem;
}

.section-header-visual--banner {
  position: relative;
  display: block;
  margin: 0;
  min-height: clamp(260px, 42vw, 460px);
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: none;
  background: var(--ink);
}

.section-header-visual--banner > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-header-visual--banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.88) 100%
  );
  pointer-events: none;
}

.section-header-overlay-inner {
  position: relative;
  z-index: 2;
  min-height: clamp(260px, 42vw, 460px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  padding: clamp(1.1rem, 3.5vw, 2.1rem);
  max-width: min(52rem, 100%);
}

.section-header-overlay-eyebrow {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
  letter-spacing: 0.12em;
  text-shadow: none;
}

.section-header-overlay-title {
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.85);
}

.section-header-overlay-body {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.85);
  line-height: 1.55;
}

.section-header-overlay-actions {
  margin-top: 0.15rem;
}

.section-header-overlay-actions .section-header-chip {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  backdrop-filter: blur(6px);
}

.proof-strip {
  position: relative;
  isolation: isolate;
  background-color: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.proof-strip::before {
  content: none;
  display: none;
}

.proof-strip .container {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  box-shadow: none;
}

/* Homepage: dark sticky chrome over ink hero */
body.home .topbar {
  background: rgba(13, 15, 20, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.home .nav-link {
  color: #a0a7b0;
}

body.home .nav-link[aria-current="page"],
body.home .nav-link:hover {
  color: #f4f5f7;
  background: transparent;
}

body.home .nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #f4f5f7;
}

body.home .brand-sub {
  color: #a0a7b0;
}

body.home .menu-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  color: #f4f5f7;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.35rem 0;
  min-width: 0;
}

.brand-logo {
  display: block;
  height: clamp(44px, 7vw, 58px);
  width: auto;
  max-width: min(300px, 62vw);
  object-fit: contain;
  object-position: left center;
  filter: grayscale(1) brightness(0.15) contrast(2);
}

body.home .brand-logo {
  filter: grayscale(1) brightness(5);
}

h1,
h2,
h3,
h4,
summary {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  font-weight: 600;
}

.brand-sub {
  color: var(--mute);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  border-radius: 999px;
  background: currentColor;
}

.nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link,
.button,
.ghost-button,
.chip,
.filter-button,
.card-link,
.tag,
.capability-bubble,
.proof-card,
.build-card,
.bento-card,
.update-card,
.project-library-card,
.future-card,
.hub-card {
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.5rem 0.8rem;
  border-radius: 0;
  color: var(--mute);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: transparent;
}

.nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--ink);
}

.menu-toggle:focus-visible,
.nav-link:focus-visible,
.button:focus-visible,
.ghost-button:focus-visible,
.chip:focus-visible,
.card-link:focus-visible,
.filter-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary-bright);
  outline-offset: 3px;
}

.page-hero {
  padding: 5rem 0 2.5rem;
}

.hero-shell,
.project-hero-grid,
.automation-showcase,
.about-founder-grid,
.about-route-grid,
.contact-page-grid,
.content-grid,
.problem-solution-grid,
.detail-accordion-grid {
  display: grid;
  gap: 1.1rem;
}

.hero-copy,
.feature-showcase-copy,
.automation-copy,
.founder-copy {
  min-width: 0;
}

.hero-shell {
  /* Copy + cutout art: give the visual column enough width to scale up; keep columns nearer. */
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 1fr);
  /* Top-align so tall hero art doesn’t leave a blank band above the eyebrow/headline. */
  align-items: start;
  column-gap: clamp(0.5rem, 1.2vw, 1.1rem);
  row-gap: 1.1rem;
}

.hero-shell--copy-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: min(920px, 100%);
}

.hero-shell--copy-only .hero-copy {
  max-width: none;
}

.hero-shell--copy-only h1 {
  max-width: min(100%, 18ch);
  font-size: clamp(2.85rem, 7vw, 5.75rem);
}

.hero-shell--copy-only .lead {
  max-width: min(100%, 46rem);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
}

.hero-shell--copy-only .hero-actions {
  margin-top: 0.35rem;
}

/* Homepage hero: full-bleed ink band with a hard edge into paper */
.hero {
  background: var(--ink);
  color: #f4f5f7;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid transparent; /* hard edge into paper — no blend theater */
}

.hero .eyebrow {
  color: var(--hero-mute);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: none; /* beat generic .eyebrow cyan glow */
}

.hero .lead {
  color: var(--hero-lead);
  max-width: 42ch;
}

.hero .button {
  background: #f4f5f7;
  color: var(--ink);
  box-shadow: none;
}

.hero .ghost-button {
  color: #f4f5f7;
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
}

.hero .button:hover {
  background: #f4f5f7;
  color: var(--ink);
  box-shadow: none;
  opacity: 1;
}

.hero .ghost-button:hover {
  color: #f4f5f7;
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

.hero-shell--copy-only {
  padding-bottom: 0.5rem;
}

/* decoration removed: hero PCB circuit art and neon keyframes deleted */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--mute);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: none;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

/* Hero only: drop the accent bar so nothing reads like a stray chip above the H1 */
.hero .eyebrow::before {
  display: none;
}

.hero .eyebrow {
  gap: 0;
}

.hero h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.75rem, 6.5vw, 5.25rem);
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f4f5f7;
  max-width: 18ch;
}

.page-hero h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  line-height: 1.08;
  max-width: 18ch;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Trail promoted to page h1 when the old h1 just repeated it */
.page-hero h1.trail {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.12em;
  max-width: none;
  overflow-wrap: normal;
  text-transform: none;
  color: var(--text);
  text-shadow: none;
}

.lead {
  margin: 1rem 0 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.68;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.section {
  padding: 1.55rem 0 2.65rem;
}

.section[id] {
  scroll-margin-top: 72px;
}

.hero-actions,
.cta-actions,
.card-actions,
.badge-row,
.filter-row,
.search-grid,
.tag-row,
.footer-nav,
.before-after-list,
.feature-pill-grid,
.mock-chip-row,
.project-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-actions,
.cta-actions {
  margin-top: 1.8rem;
}

.button,
.ghost-button,
.chip,
.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.82rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.button {
  color: #fff;
  background: var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.ghost-button,
.chip,
.filter-button {
  color: var(--ink);
  background: transparent;
  border-color: var(--border-strong);
  box-shadow: none;
}

.button:hover,
.ghost-button:hover,
.chip:hover,
.filter-button:hover,
.proof-card:hover,
.service-stage-card:hover,
.system-card:hover,
.build-list-card:hover,
.build-card:hover,
.bento-card:hover,
.update-card:hover,
.project-library-card:hover,
.future-card:hover,
.capability-bubble:hover,
.hub-card:hover {
  transform: translateY(-1px);
}

.button:hover {
  background: var(--ink);
  opacity: 0.92;
  box-shadow: none;
}

.ghost-button:hover,
.chip:hover,
.filter-button:hover {
  background: transparent;
  border-color: var(--ink);
  box-shadow: none;
}

.button:active,
.ghost-button:active,
.chip:active,
.filter-button:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 120ms;
}

.proof-card:hover,
.build-card:hover,
.bento-card:hover,
.update-card:hover,
.project-library-card:hover,
.future-card:hover,
.system-card:hover,
.build-list-card:hover,
.service-stage-card:hover,
.capability-bubble:hover,
.hub-card:hover {
  box-shadow: var(--shadow-hover);
}

.filter-button.is-active {
  background: var(--primary-soft);
  border-color: var(--border-strong);
}

.badge,
.tag,
.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 30px;
  padding: 0.42rem 0.72rem;
  border-radius: var(--radius-inner);
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 500;
}

.badge[class*="status-"] {
  border-color: var(--rule);
  background: transparent;
}

.status-live-v1-released,
.status-live-released {
  color: var(--success);
}

.status-in-development,
.status-prototype-in-development {
  color: var(--warning);
}

.status-research-prototype,
.status-design-prototype,
.status-concept-prototype,
.status-research-concept {
  color: var(--mute);
}

.proof-grid,
.build-grid,
.bento-grid,
.updates-grid,
.future-grid,
.hub-grid,
.services-grid,
.updates-route-grid,
.project-library-grid,
.build-list,
.systems-grid,
.capability-proof-grid,
.service-stage-grid {
  display: grid;
  gap: 1rem;
}

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

.hub-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.024));
  box-shadow: var(--shadow);
}

.hub-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hub-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hub-card:nth-child(3n + 1) {
  grid-column: span 5;
}

.hub-card:nth-child(3n + 2) {
  grid-column: span 4;
  margin-top: 0.6rem;
}

.hub-card:nth-child(3n) {
  grid-column: span 3;
  margin-top: 1.1rem;
}

.proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem 1.4rem;
}

@media (min-width: 1100px) {
  .proof-grid {
    grid-template-columns: 1.08fr 0.92fr;
  }

  .proof-card:nth-child(2),
  .proof-card:nth-child(4) {
    margin-top: 0.45rem;
  }
}

.about-metrics-strip {
  padding-top: 0.25rem;
}

.about-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.about-metric-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: none;
}

.about-metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 0.45rem;
}

.about-metric-card p {
  margin: 0;
  color: var(--mute);
  font-size: 0.95rem;
}

.enterprise-background-card {
  margin-top: 0.25rem;
}

.enterprise-background-card h3 {
  margin-top: 0.35rem;
  font-size: 1.05rem;
}

.enterprise-background-meta {
  margin: 0.35rem 0 0.85rem;
  color: var(--mute);
  font-size: 0.92rem;
}

.enterprise-background-card ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 900px) {
  .about-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

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

.bento-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(220px, auto);
}

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

/* Homepage teaser: three cards — do not leave empty 5-column tracks */
.updates-grid.updates-grid--teaser {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.future-grid,
.services-grid,
.updates-route-grid,
.project-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* /projects: one full-width row per project, spaced like a showcase rail */
.project-library-grid--stack {
  grid-template-columns: 1fr;
  gap: clamp(2rem, 3.5vw, 3rem);
  margin-top: 0.35rem;
}

.project-library-grid--stack .project-library-card:nth-child(1) {
  grid-column: auto;
}

.project-library-grid--stack .project-library-card {
  min-height: 0;
}

.project-library-grid--stack .project-library-visual .mock-visual {
  min-height: clamp(260px, 32vw, 380px);
}

/* Evidence-only: collapse empty visual wrappers when no project image exists */
.bento-visual:empty,
.project-library-visual:empty,
.project-hero-visual:empty,
.update-card-visual:empty,
.future-card-visual:empty,
.automation-visual:empty,
.capability-project-tile-visual:empty,
.system-card-visual:empty {
  display: none;
}

/* Evidence-only: decorative CSS mocks must not dominate when real imagery is absent */
.bento-visual .mock-visual,
.project-library-visual .mock-visual,
.future-card-visual .mock-visual,
.system-card-visual .mock-visual,
.update-card-visual .mock-visual,
.project-hero-visual .mock-visual,
.automation-visual .mock-visual,
.capability-project-tile-visual .mock-visual {
  display: none;
}

.project-library-grid--stack .project-library-card {
  padding: 1.3rem 1.45rem 1.5rem;
}

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

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

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

.proof-card,
.build-card,
.bento-card,
.update-card,
.future-card,
.project-library-card,
.build-list-card,
.system-card,
.capability-proof-card,
.service-stage-card,
.hub-card,
.card,
.cta-panel,
.search-panel {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: none;
  isolation: isolate;
}

.proof-card::after,
.service-stage-card::after,
.build-list-card::after,
.project-library-card::after,
.cta-panel::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  opacity: 0.35;
  pointer-events: none;
  box-shadow: none;
}

.proof-card,
.build-card,
.bento-card,
.update-card,
.future-card,
.project-library-card,
.build-list-card,
.system-card,
.capability-proof-card,
.service-stage-card,
.hub-card,
.card,
.cta-panel,
.search-panel {
  padding: 1.05rem;
}

.proof-card h2,
.build-card h3,
.bento-card h3,
.update-card h3,
.future-card h3,
.project-library-card h3,
.card h2,
.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.proof-card p,
.build-card p,
.bento-card p,
.update-card p,
.future-card p,
.project-library-card p,
.build-list-card p,
.system-card p,
.capability-proof-card p,
.service-stage-card p,
.card p,
.card li,
.feature-showcase-copy p,
.automation-copy p {
  color: var(--muted);
}

.proof-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-inner);
  background: var(--primary-soft);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.category-visual,
.mock-chip-row,
.rpg-grid,
.life-row,
.before-after-list ul {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.category-visual span,
.mock-chip-row span,
.rpg-grid span,
.life-row span {
  padding: 0.48rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.82rem;
}

.feature-showcase,
.automation-showcase {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
}

.feature-showcase {
  padding: 1.2rem;
  border: 1px solid rgba(13, 15, 20, 0.117);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(13, 15, 20, 0.07), transparent 34%),
    radial-gradient(circle at bottom left, rgba(13, 15, 20, 0.073), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.business-pack-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.95rem;
  margin: 0 0 1rem;
}

.business-pack-strip-compact {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(220px, 0.9fr);
  margin-top: 0.8rem;
}

.sheet-sprite {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background-color: var(--bg-subtle);
  box-shadow: none;
}

.sheet-sprite::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 20, 0.062), transparent 55%, rgba(13, 15, 20, 0.046));
  pointer-events: none;
}

.sheet-sprite-cta {
  aspect-ratio: 306 / 120;
  background-image: linear-gradient(105deg, rgba(13, 15, 20, 0.106) 0%, transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.sheet-sprite-controls {
  aspect-ratio: 388 / 120;
  background-image: linear-gradient(-95deg, rgba(13, 15, 20, 0.078) 0%, transparent 55%), linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
}

.sheet-sprite-badges {
  aspect-ratio: 346 / 96;
  background-image: radial-gradient(circle at 30% 50%, rgba(13, 15, 20, 0.11), transparent 45%), radial-gradient(circle at 70% 50%, rgba(13, 15, 20, 0.122), transparent 40%);
}

.sheet-sprite-frame {
  aspect-ratio: 376 / 229;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: none;
  background: var(--surface);
}

.feature-showcase::before,
.project-library-card::before,
.system-card::before,
.service-stage-card::before,
.build-list-card::before {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 1px;
  background: var(--ink);
  opacity: 0.65;
  pointer-events: none;
}

.feature-showcase-copy,
.automation-copy {
  display: grid;
  gap: 0.9rem;
}

.bento-card {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.featured-bento-grid {
  align-items: stretch;
}

.bento-visual {
  border-radius: 18px;
  overflow: hidden;
  min-height: 0;
}

.bento-visual .mock-visual {
  min-height: 200px;
}

.bento-visual--photo {
  aspect-ratio: 16 / 10;
  background: var(--surface);
}

.bento-visual--photo .bento-featured-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Mimir dashboard screenshot: anchor top so KPI header stays in frame */
.bento-mimir .bento-featured-image,
.project-library-card--mimir .project-library-image {
  object-position: center top;
}

.build-list-card,
.system-card,
.capability-proof-card,
.service-stage-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.build-list-card .tag-row,
.system-card .tag-row {
  gap: 0.5rem;
}

.build-list--visual {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.build-list-card--visual {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.build-list-card--visual::before {
  display: none;
}

.build-list-card-media {
  position: relative;
  overflow: hidden;
  min-height: clamp(220px, 36vw, 380px);
}

.build-list-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.9) 100%
  );
  pointer-events: none;
}

.build-list-card-thumb {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.build-list-card-overlay {
  position: relative;
  z-index: 2;
  min-height: clamp(220px, 36vw, 380px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.build-list-card-overlay-kicker {
  color: rgba(13, 15, 20, 0.18);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
}

.build-list-card-overlay-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
  line-height: 1.5;
}

.build-list-card-copy {
  padding: 1.05rem;
  display: grid;
  gap: 0.65rem;
}

.future-card-visual {
  border-radius: 18px;
  overflow: hidden;
}

.future-card-visual .mock-visual {
  min-height: 200px;
}

.updates-grid--teaser .update-card-visual .mock-visual,
.updates-grid--teaser .update-card-visual--photo {
  min-height: 220px;
}

.update-card-visual {
  border-radius: 18px;
  overflow: hidden;
}

.update-card-visual--photo {
  aspect-ratio: 16 / 10;
  min-height: clamp(160px, 22vw, 220px);
  background: var(--surface);
}

.update-card-visual--photo .update-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.update-card--mimir .update-card-image {
  object-position: center top;
}

.system-card-visual {
  border-radius: 18px;
  overflow: hidden;
}

.system-card-visual .mock-visual,
.update-card-visual .mock-visual {
  min-height: 160px;
  padding: 0.9rem;
}

.project-library-card .mock-visual,
.system-card:hover .mock-visual,
.update-card:hover .mock-visual {
  transform: scale(1.02);
}

.project-library-card {
  display: grid;
  gap: 0.95rem;
  align-content: start;
  overflow: hidden;
  min-height: 100%;
}

.project-library-grid:not(.project-library-grid--stack) .project-library-card:nth-child(1) {
  grid-column: span 2;
}

.project-library-grid:not(.project-library-grid--stack) .project-library-card:nth-child(1) .project-library-visual .mock-visual {
  min-height: 260px;
}

.project-library-grid:not(.project-library-grid--stack) .project-library-card:nth-child(1) .project-library-visual--photo {
  min-height: 260px;
}

.project-library-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.project-library-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 56px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(5, 3, 8, 0.75));
  pointer-events: none;
}

.project-library-visual--photo {
  aspect-ratio: 16 / 10;
  min-height: clamp(200px, 28vw, 320px);
  background: var(--surface);
}

.project-library-visual--photo .project-library-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-library-grid--stack .project-library-visual--photo {
  min-height: clamp(260px, 32vw, 380px);
}

.future-card-visual--photo {
  aspect-ratio: 16 / 10;
  min-height: 200px;
  background: var(--surface);
}

.future-card-visual--photo .project-library-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project detail hero: same photos as /projects tiles when libraryImage/featuredImage set */
.project-hero-visual {
  position: relative;
  min-width: 0;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.project-hero-visual--photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: clamp(260px, 36vw, 460px);
  background: var(--surface);
}

.project-hero-visual--photo .project-library-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.project-tile-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-tile-category {
  color: var(--muted-2);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-tile-copy {
  display: grid;
  gap: 0.55rem;
}

.project-tile-copy h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

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

.project-tile-status span {
  position: relative;
  padding-top: 0.7rem;
  color: var(--muted-2);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-tile-status span::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
}

.project-tile-footer {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.search-panel {
  position: relative;
  top: auto;
  z-index: 1;
  backdrop-filter: blur(18px);
}

.search-panel::before {
  content: "";
  display: block;
  width: min(200px, 48%);
  height: 1px;
  margin-bottom: 0.9rem;
  border-radius: 0;
  background: var(--rule);
  box-shadow: none;
  opacity: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-editor-stack {
  display: grid;
  gap: 1.5rem;
}

.admin-tab-host {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 0.75rem;
}

.admin-tab {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--mute);
  font-size: 0.82rem;
  cursor: pointer;
}

.admin-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.admin-tab.is-active {
  color: var(--text);
  border-color: var(--ink);
  background: var(--primary-soft);
  box-shadow: none;
}

.admin-panel-host {
  min-height: 12rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--surface);
}

.admin-panel-inner {
  max-width: 56rem;
}

.admin-panel-title {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.admin-panel-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-form-grid {
  display: grid;
  gap: 0.5rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  margin-bottom: 1.25rem;
}

.admin-subhead {
  grid-column: 1 / -1;
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  color: var(--muted-2);
}

.admin-check {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  color: var(--text);
}

.admin-check input {
  margin-right: 0.45rem;
  vertical-align: middle;
}

.admin-small {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.admin-faq-row,
.admin-card-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.admin-row-btn {
  margin-top: 0.65rem;
}

.admin-split {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  align-items: start;
}

.admin-proj-fields {
  min-width: 0;
}

.admin-input--tall {
  min-height: 5rem;
  resize: vertical;
  font-family: inherit;
}

.admin-list {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

select.admin-input {
  cursor: pointer;
}

.admin-card--wide {
  width: 100%;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0.75rem 0 0.5rem;
}

.admin-json-editor {
  width: 100%;
  min-height: 28rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(13, 15, 20, 0.139);
  background: var(--white);
  color: var(--text);
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  resize: vertical;
}

.admin-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.admin-card code {
  font-size: 0.88em;
  word-break: break-word;
}

.admin-label {
  display: block;
  margin-top: 1rem;
  font-size: 0.86rem;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-input {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.65rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(13, 15, 20, 0.15);
  background: var(--surface);
  color: var(--text);
}

.admin-actions {
  margin-top: 1rem;
}

.admin-output {
  margin: 1rem 0 0;
  min-height: 3.5rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-x: auto;
}

.system-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.capability-shipped-grid,
.capability-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.1rem;
}

.capability-categories {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.capability-category {
  display: grid;
  gap: 1rem;
}

.capability-deliverables {
  margin-top: -0.25rem;
}

.capability-project-tile {
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.028));
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.capability-project-tile:hover {
  border-color: rgba(13, 15, 20, 0.18);
  transform: translateY(-2px);
}

.capability-project-tile-visual {
  overflow: hidden;
  min-height: 168px;
  background: var(--bg-subtle);
}

.capability-project-tile-visual--photo .capability-project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 9;
}

.capability-project-tile-body {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.1rem 1.15rem;
}

.capability-project-tile-body h3 {
  margin: 0;
}

.capability-project-tile-body > p {
  margin: 0;
}

.capability-project-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.capability-project-kicker {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mute);
}

.capability-project-proves {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.capability-project-tile .card-link {
  margin-top: 0.25rem;
}

.capability-proof-list {
  display: grid;
  gap: 0.75rem;
}

.capability-proof-row {
  display: grid;
  gap: 0.3rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
}

.capability-proof-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.capability-proof-row span {
  color: var(--muted);
  font-size: 0.95rem;
}

.service-stage-card {
  min-height: 190px;
}

.bento-card p {
  margin: 0;
}

.bento-animus,
.bento-aether {
  grid-column: span 6;
}

.bento-anima,
.bento-dsl-router {
  grid-column: span 4;
}

.bento-google-workspace-team-hub,
.bento-system-app,
.bento-atlas-vehicle-assistant,
.bento-symbolic-human-life-simulator {
  grid-column: span 3;
}

/* Featured bento: zig-zag 7/5 spans on 12-col grid */
.featured-bento-grid .bento-card:nth-child(4n + 1) {
  grid-column: span 7;
}

.featured-bento-grid .bento-card:nth-child(4n + 2) {
  grid-column: span 5;
  margin-top: clamp(0.85rem, 2.2vw, 1.85rem);
}

.featured-bento-grid .bento-card:nth-child(4n + 3) {
  grid-column: span 5;
}

.featured-bento-grid .bento-card:nth-child(4n) {
  grid-column: span 7;
  margin-top: clamp(0.85rem, 2.2vw, 1.85rem);
}

.featured-bento-grid .bento-visual--photo {
  width: 100%;
}

.capability-map {
  border: 1px solid var(--rule);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

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


/* Homepage catalog: numbered research programs */
.program-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.program-index-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.85rem 1.25rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--rule);
}

.program-index-num {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mute);
  padding-top: 0.35rem;
}

.program-index-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.program-index-title a {
  color: var(--ink);
  text-decoration: none;
}

.program-index-title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.program-index-question {
  margin: 0.35rem 0 0;
  color: var(--mute);
  max-width: 62ch;
}

.program-index-link {
  align-self: center;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.program-index-link:hover {
  border-bottom-color: var(--ink);
}

/* Homepage: one featured system */
.featured-system {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
  padding: 0;
  border: 0;
  background: transparent;
}

.featured-system-visual {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.featured-system-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.featured-system-copy {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.featured-system-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.featured-system-copy p {
  margin: 0;
  color: var(--mute);
  max-width: 46ch;
}

/* Homepage: quiet lab notes list */
.lab-notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.lab-notes-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.lab-notes-title {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.lab-notes-title:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.lab-notes-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin-top: 0.35rem;
  color: var(--mute);
  font-size: 0.86rem;
}

.lab-notes-item p {
  margin: 0.4rem 0 0;
  color: var(--mute);
  max-width: 62ch;
}

.research-program-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.research-program {
  display: grid;
  gap: 1rem 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  box-shadow: none;
}

.research-program .section-header--overlay {
  margin: 0;
}

.research-program .section-header-visual--banner {
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.research-program .section-header-visual--banner > img,
.research-program .section-header-visual--banner::after {
  display: none;
}

.research-program .section-header-overlay-inner {
  position: static;
  min-height: 0;
  max-width: none;
  display: grid;
  justify-content: start;
  gap: 0.5rem;
  padding: 0;
}

.research-program .kicker,
.research-program .eyebrow {
  font-family: var(--font-body);
  color: var(--mute);
  letter-spacing: 0.12em;
  text-shadow: none;
}

.research-program .section-header-overlay-title {
  color: var(--ink);
  text-shadow: none;
}

.research-program .section-header-overlay-body {
  color: var(--mute);
  text-shadow: none;
}

.research-program .capability-project-tile {
  color: var(--ink);
  border-color: var(--rule);
  background: var(--white);
  box-shadow: none;
}

.research-program .capability-project-tile:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.research-program .capability-project-tile-visual {
  background: var(--bg-subtle);
}

.research-program .capability-project-kicker,
.research-program .capability-project-tile .card-link {
  color: var(--ink);
}

.research-program .badge[class*="status-"],
.publication-card .badge[class*="status-"] {
  color: var(--mute);
  border-color: var(--rule);
  background: transparent;
}

.research-question-card {
  margin-block: 0 18px;
}

.publication-card,
.publication-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
}

.publication-card h3 {
  margin-top: 16px;
  letter-spacing: -0.01em;
}

.capability-links {
  display: grid;
  gap: 0.75rem;
}

.capability-bubble {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--surface);
}

.capability-bubble span {
  color: var(--muted);
  font-size: 0.92rem;
}

.update-card,
.future-card,
.project-library-card {
  display: grid;
  gap: 0.8rem;
  align-content: start;
}

.update-meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.before-after-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.before-after-list ul {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.mini-heading,
.kicker,
.trail,
.workflow-title,
.mock-label,
.mock-topbar-label {
  color: var(--muted-2);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-founder-grid,
.about-route-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: start;
}

.founder-sidebar,
.founder-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.founder-visual {
  min-width: 0;
}

.founder-profile-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(13, 15, 20, 0.117);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(13, 15, 20, 0.078), transparent 36%),
    radial-gradient(circle at bottom left, rgba(13, 15, 20, 0.084), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.founder-profile-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.65;
  border-radius: 24px;
  border: 1px solid var(--rule);
  background: rgba(10, 8, 14, 0.92);
}

.founder-profile-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(8, 7, 13, 0), rgba(8, 7, 13, 0.22));
  pointer-events: none;
}

.founder-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.founder-profile-body {
  display: grid;
  gap: 0.75rem;
}

.founder-profile-body h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.founder-profile-body p {
  margin: 0;
  color: var(--muted);
}

.founder-badge {
  justify-self: start;
}

.tag-row {
  align-items: flex-start;
}

.tag {
  align-self: flex-start;
}

.project-hero-grid,
.contact-page-grid,
.content-grid,
.detail-accordion-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
  align-items: start;
}

.project-hero-grid > * {
  min-width: 0;
}

/* Keep every /projects/:slug hero non-overlapping by stacking visual + proof card. */
.project-hero-grid {
  grid-template-columns: 1fr;
}

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

.feature-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.feature-pill {
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
}

.rich-text,
.faq,
.project-hero-aside {
  display: grid;
  gap: 1rem;
}

.project-hero-aside {
  position: relative;
  z-index: 1;
}

.rich-text ul {
  margin: 0;
  padding-left: 1.2rem;
}

.rich-text li {
  margin: 0.35rem 0;
}

.faq details,
.rich-text details {
  padding: 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.02);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

.related-update {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.82rem 0.95rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.form-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.form-status--success {
  color: var(--success);
  background: rgba(63, 111, 84, 0.08);
  border: 1px solid rgba(63, 111, 84, 0.28);
}

.form-status--error {
  color: var(--danger);
  background: rgba(139, 58, 58, 0.08);
  border: 1px solid rgba(139, 58, 58, 0.28);
}

.contact-page-grid--assistant {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-inline: auto;
  align-items: stretch;
}

.contact-context-list {
  margin: 0.75rem 0 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.card.assistant-panel,
.assistant-panel {
  display: grid;
  grid-template-rows: auto 1fr auto auto auto auto;
  min-height: clamp(520px, 72vh, 720px);
  padding: 0;
  overflow: hidden;
}

.assistant-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--surface-2);
}

.assistant-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: none;
  border: 1px solid var(--rule);
}

.assistant-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assistant-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0;
}

.assistant-status {
  color: var(--mute);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assistant-thread {
  padding: 1rem 1.1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 280px;
  max-height: min(52vh, 480px);
}

.assistant-message {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  max-width: 92%;
}

.assistant-message--user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.assistant-message-avatar {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--rule);
}

.assistant-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assistant-message-bubble {
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  line-height: 1.55;
  font-size: 0.96rem;
  border: 1px solid var(--rule);
  background: var(--white);
  box-shadow: none;
  color: var(--ink);
}

.assistant-message--user .assistant-message-bubble {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.assistant-typing:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 1.1rem 0.35rem;
  color: var(--mute);
  font-size: 0.85rem;
}

.assistant-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mute);
  animation: assistantTyping 1.1s infinite ease-in-out;
}

.assistant-typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.assistant-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes assistantTyping {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0 1.1rem 0.65rem;
}

.assistant-chip {
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.84rem;
  cursor: pointer;
}

.assistant-chip:hover {
  background: var(--primary-soft);
  border-color: var(--ink);
}

.assistant-form {
  display: grid;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem 1rem;
  border-top: 1px solid var(--rule);
}

.assistant-form input,
.assistant-form textarea,
.assistant-handoff-fields input,
.assistant-handoff-fields textarea {
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

.assistant-form textarea {
  min-height: 72px;
  resize: vertical;
}

.assistant-form-actions {
  display: flex;
  justify-content: flex-end;
}

.assistant-handoff-fields:not([hidden]) {
  display: grid;
  gap: 0.65rem;
  padding: 0 1.1rem 1rem;
  border-top: 1px dashed var(--rule);
}

.assistant-handoff-note {
  margin: 0.75rem 0 0;
  color: var(--mute);
  font-size: 0.9rem;
}

.assistant-handoff-btn {
  justify-self: start;
}

.assistant-status-line {
  margin: 0;
  padding: 0.65rem 1.1rem 1rem;
  font-size: 0.92rem;
}

.assistant-status-line.assistant-status--error {
  color: #8b3a3a;
}

.assistant-status-line:not(.assistant-status--error):not([hidden]) {
  color: var(--success);
}

.callout,
.contact-note {
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--mute);
}

.footer {
  padding: 1rem 0 2rem;
  background: var(--bg-subtle);
  border-top: 1px solid var(--rule);
  color: var(--mute);
  box-shadow: none;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: none;
  color: var(--mute);
}

.mock-visual {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--bg-subtle);
}

.mock-visual::before {
  content: none;
  display: none;
}

.mock-hero,
.mock-feature {
  min-height: 520px;
}

.mock-command-board.mock-hero {
  min-height: clamp(460px, 52vh, 580px);
  padding: 1.15rem 1.15rem 1.25rem;
}

.mock-command-board.mock-hero .asset-command-shell {
  display: grid;
  gap: 0.9rem;
  min-height: 100%;
}

.mock-command-board.mock-hero .asset-command-shell .asset-shot-primary {
  min-height: clamp(280px, 38vh, 390px);
}

.mock-command-board.mock-hero .asset-command-shell .asset-shot-secondary {
  min-height: clamp(128px, 17vh, 178px);
}

.mock-command-board.mock-hero .asset-shot-wide {
  min-height: clamp(96px, 13vh, 132px);
}

.asset-command-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--surface);
  position: relative;
  z-index: 1;
}

.asset-command-chrome-traffic {
  display: inline-flex;
  gap: 0.35rem;
}

.asset-command-chrome-traffic i {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.asset-command-chrome-traffic i:nth-child(1) {
  background: var(--mute);
}

.asset-command-chrome-traffic i:nth-child(2) {
  background: var(--border-strong);
}

.asset-command-chrome-title {
  flex: 1;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.asset-command-chrome-pulse {
  color: var(--mute);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: none;
}

@keyframes hero-shot-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes hero-shot-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.012);
  }
}

@keyframes hero-chrome-pulse {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
}

.mock-command-board.mock-hero .asset-shot-primary {
  animation: hero-shot-breathe 14s ease-in-out infinite;
  transform-origin: center center;
}

.mock-command-board.mock-hero .asset-command-stack .asset-shot:nth-child(1) {
  animation: hero-shot-float 8s ease-in-out infinite;
}

.mock-command-board.mock-hero .asset-command-stack .asset-shot:nth-child(2) {
  animation: hero-shot-float 8s ease-in-out infinite 1.4s;
}

.mock-command-board.mock-hero .asset-shot-wide {
  animation: hero-shot-float 9s ease-in-out infinite 0.6s;
}

.mock-command-board.mock-hero .asset-shot {
  will-change: transform;
}

.hero-visual--aside {
  min-height: 0;
  padding: 0;
  display: flex;
  /* Match copy column: anchor art to the top so it doesn’t float in vertical dead space. */
  align-items: flex-start;
  justify-content: center;
}

/* Cutout hero art: no mock-window border, fill, or scanlines */
.mock-visual.hero-visual--aside {
  border: none;
  background: none;
  border-radius: 0;
  overflow: visible;
}

.mock-visual.hero-visual--aside::before {
  content: none;
}

.hero-visual--aside .hero-aside-image {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  /* Larger cap so the figure reads closer to the headline’s visual weight */
  max-height: min(820px, 78vh, 55vw);
  margin-inline: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  border-radius: 0;
}

.asset-image {
  width: 100%;
  height: auto;
}

.asset-shot-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.asset-shot {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: rgba(9, 8, 14, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.3);
}

.asset-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 62%, rgba(0, 0, 0, 0.16) 100%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.03), transparent 38%);
  pointer-events: none;
}

.asset-shot-primary {
  min-height: 0;
}

.asset-shot-secondary {
  min-height: 0;
}

.asset-command-shell,
.asset-product-shell,
.asset-command-intro,
.asset-command-grid,
.asset-command-stack,
.asset-command-copy,
.asset-product-grid {
  display: grid;
  gap: 0.85rem;
}

.asset-command-shell,
.asset-product-shell {
  position: relative;
  min-height: 100%;
}

.shell-frame {
  position: absolute;
  inset: auto 0 0 auto;
  width: clamp(210px, 42%, 376px);
  max-width: 100%;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.asset-command-intro {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  position: relative;
  z-index: 1;
}

.asset-logo-badge,
.asset-logo-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.asset-logo-badge {
  min-width: 120px;
  max-width: min(200px, 100%);
  min-height: 56px;
  padding: 0.35rem 0.65rem;
  border-radius: 16px;
  border: 1px solid rgba(13, 15, 20, 0.15);
  background:
    radial-gradient(circle at top, rgba(13, 15, 20, 0.102), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 0 20px rgba(13, 15, 20, 0.106),
    0 18px 40px rgba(0, 0, 0, 0.35);
}

.asset-command-copy strong,
.asset-logo-lockup span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-command-copy p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.asset-command-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(170px, 0.82fr);
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.asset-command-stack {
  align-content: stretch;
}

.asset-command-shell .asset-shot-primary {
  min-height: 290px;
}

.asset-command-shell .asset-shot-secondary {
  min-height: 140px;
}

.asset-command-rail,
.asset-product-chips {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.asset-command-rail span,
.asset-product-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.asset-product-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.asset-logo-lockup {
  gap: 0.7rem;
}

.asset-logo-mark {
  max-height: 48px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.asset-logo-icon {
  width: auto;
  height: 36px;
  max-width: 140px;
  object-fit: contain;
  filter: none;
}

.asset-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.mock-command-board.mock-card .asset-command-shell .asset-shot-primary,
.mock-command-board.mock-mini .asset-command-shell .asset-shot-primary,
.mock-animus.mock-card .asset-shot-primary,
.mock-animus.mock-mini .asset-shot-primary {
  min-height: 220px;
}

.mock-command-board.mock-card .asset-command-shell .asset-shot-secondary,
.mock-command-board.mock-mini .asset-command-shell .asset-shot-secondary,
.mock-animus.mock-card .asset-shot-secondary,
.mock-animus.mock-mini .asset-shot-secondary {
  min-height: 118px;
}

.mock-command-board.mock-card .asset-command-copy p,
.mock-command-board.mock-mini .asset-command-copy p,
.mock-animus.mock-card .asset-product-bar .mock-topbar-label,
.mock-animus.mock-mini .asset-product-bar .mock-topbar-label,
.mock-animus.mock-card .asset-product-chips,
.mock-animus.mock-mini .asset-product-chips {
  display: none;
}

.mock-command-board.mock-card .asset-command-grid,
.mock-command-board.mock-mini .asset-command-grid {
  grid-template-columns: 1fr;
}

.mock-command-board.mock-card .asset-command-stack,
.mock-command-board.mock-mini .asset-command-stack,
.mock-animus.mock-card .asset-product-grid,
.mock-animus.mock-mini .asset-product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mock-window-shell,
.mock-window-main,
.mock-window-feed,
.mock-window-grid,
.mock-window-row,
.mock-window-profile,
.mock-window-terminal {
  display: grid;
  gap: 0.8rem;
}

.mock-window-shell {
  grid-template-columns: 128px minmax(0, 1fr);
  min-height: 100%;
}

.mock-window-sidebar {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.2rem 0;
}

.mock-window-brand,
.mock-window-tab,
.mock-window-card,
.mock-window-feed-item,
.mock-window-stat,
.mock-window-command {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--surface);
}

.mock-window-brand,
.mock-window-tab {
  padding: 0.68rem 0.8rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.mock-window-brand {
  color: var(--text);
  background: rgba(13, 15, 20, 0.084);
  border-color: var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mock-window-tab.is-active {
  color: var(--text);
}

.mock-window-card,
.mock-window-feed-item,
.mock-window-stat,
.mock-window-command {
  padding: 0.85rem;
}

.mock-window-card strong,
.mock-window-feed-item strong,
.mock-window-stat strong,
.mock-window-profile strong {
  display: block;
  margin-top: 0.28rem;
  font-size: 1rem;
}

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

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

.mock-window-stat span {
  color: var(--muted-2);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mock-window-command {
  color: var(--muted);
  font-family: var(--font-body);
  line-height: 1.5;
}

.mock-mini {
  min-height: 140px;
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  margin-bottom: 0.9rem;
}

.mock-topbar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.mock-panel,
.mock-app-stage,
.metric-pill,
.hub-column,
.workflow-panel,
.route-node,
.stack-card {
  padding: 0.85rem;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.mock-panel-large {
  grid-column: span 2;
  min-height: 150px;
}

.mock-panel strong,
.mock-app-stage strong,
.vehicle-display strong,
.rpg-hero strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.1rem;
}

.mock-panel span,
.mock-app-stage p,
.metric-pill span,
.hub-column span,
.workflow-panel span,
.vehicle-display span,
.rpg-hero span {
  color: var(--muted);
}

.mock-app-shell {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 0.8rem;
}

.mock-app-sidebar {
  display: grid;
  gap: 0.55rem;
}

.mock-app-sidebar div {
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--rule);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.83rem;
}

.mock-app-main {
  display: grid;
  gap: 0.8rem;
}

.mock-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.metric-pill {
  display: grid;
  gap: 0.3rem;
}

.metric-pill strong {
  font-size: 0.94rem;
}

.mock-runtime {
  display: grid;
  gap: 0.65rem;
}

.stack-card {
  position: relative;
  padding-left: 1rem;
}

.stack-card::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.7rem;
  bottom: 0.7rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-bright), transparent);
}

.mock-orbit {
  align-content: start;
  min-height: 260px;
}

.mock-router {
  align-content: start;
}

.mock-atlas {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.voice-wave {
  display: flex;
  align-items: end;
  gap: 0.4rem;
  min-height: 72px;
}

.voice-wave span {
  width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary-bright), rgba(255, 255, 255, 0.18));
}

.voice-wave span:nth-child(1) {
  height: 24px;
}

.voice-wave span:nth-child(2) {
  height: 50px;
}

.voice-wave span:nth-child(3) {
  height: 68px;
}

.voice-wave span:nth-child(4) {
  height: 44px;
}

.voice-wave span:nth-child(5) {
  height: 28px;
}

.mock-command-line {
  padding: 0.95rem;
  border-radius: 16px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
}

.mock-teamhub {
  display: grid;
  gap: 0.8rem;
}

.mock-rpg,
.mock-life-grid,
.mock-vehicle,
.mock-founder-card {
  display: grid;
  gap: 0.8rem;
}

.rpg-hero,
.vehicle-display {
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--rule);
  background: var(--surface);
}

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

.mock-before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.workflow-panel {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.workflow-panel.before {
  background: var(--surface-2);
}

.workflow-panel.after {
  background: var(--primary-soft);
}

.mock-founder-card {
  min-height: 260px;
  align-content: start;
}

.founder-badge {
  display: inline-flex;
  padding: 0.55rem 0.72rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--mute);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.founder-roles {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.founder-roles span {
  padding: 0.58rem 0.78rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.84rem;
}

/* Scroll-entry reveals (transform + opacity only; disabled in reduced-motion) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  * {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1200px) {
  .build-grid,
  .updates-grid:not(.updates-grid--teaser),
  .systems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .future-grid,
  .hub-grid,
  .services-grid,
  .updates-route-grid,
  .project-library-grid:not(.project-library-grid--stack),
  .build-list,
  .capability-proof-grid,
  .service-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-library-grid:not(.project-library-grid--stack) .project-library-card:nth-child(1) {
    grid-column: span 2;
  }

  .business-pack-strip-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .section-header--split .section-header-visual {
    order: -1;
    max-width: min(100%, 520px);
  }

  .section-header--split-tall .section-header-visual img {
    max-height: 280px;
    aspect-ratio: 16 / 9;
  }

  .section-header-visual--banner,
  .section-header-overlay-inner {
    min-height: clamp(220px, 58vw, 360px);
  }

  .build-list-card-media,
  .build-list-card-overlay {
    min-height: clamp(200px, 52vw, 320px);
  }

  .hero-shell,
  .feature-showcase,
  .automation-showcase,
  .about-founder-grid,
  .about-route-grid,
  .project-hero-grid,
  .contact-page-grid,
  .content-grid,
  .problem-solution-grid,
  .detail-accordion-grid {
    grid-template-columns: 1fr;
  }

  .proof-grid,
  .build-grid,
  .capability-categories,
  .feature-pill-grid,
  .systems-grid,
  .build-list,
  .capability-proof-grid,
  .service-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .bento-animus,
  .bento-aether,
  .bento-anima,
  .bento-dsl-router,
  .bento-google-workspace-team-hub,
  .bento-system-app,
  .bento-atlas-vehicle-assistant,
  .bento-symbolic-human-life-simulator {
    grid-column: span 1;
  }

  .featured-bento-grid .bento-card {
    grid-column: span 1;
    margin-top: 0;
  }

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

  .hub-card {
    grid-column: auto;
    margin-top: 0;
  }

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

  .asset-command-grid,
  .asset-product-grid {
    grid-template-columns: 1fr;
  }

  .business-pack-strip,
  .business-pack-strip-compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .brand-sub {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0.75rem;
    right: 0.75rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: rgba(247, 247, 245, 0.98);
    box-shadow: var(--shadow);
  }

  .program-index-row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
  }

  .program-index-link {
    grid-column: 2;
    justify-self: start;
  }

  .featured-system {
    grid-template-columns: 1fr;
  }

  body.home .nav {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(13, 15, 20, 0.98);
  }

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

  .nav-link {
    min-height: 42px;
    justify-content: center;
  }

  .hero,
  .page-hero {
    padding-top: 3.35rem;
  }

  .hero h1,
  .page-hero h1 {
    max-width: 100%;
    font-size: clamp(1.95rem, 10.4vw, 3.1rem);
    line-height: 0.98;
  }

  .hero h1 {
    overflow-wrap: normal;
    text-wrap: balance;
  }

  .lead {
    font-size: 0.98rem;
  }

  .proof-grid,
  .build-grid,
  .updates-grid,
  .future-grid,
  .hub-grid,
  .services-grid,
  .updates-route-grid,
  .project-library-grid,
  .build-list,
  .systems-grid,
  .capability-proof-grid,
  .service-stage-grid,
  .capability-categories,
  .before-after-list,
  .feature-pill-grid,
  .mock-before-after,
  .mock-teamhub,
  .mock-stats-grid,
  .mock-window-grid,
  .mock-window-row {
    grid-template-columns: 1fr;
  }

  .project-library-grid:not(.project-library-grid--stack) .project-library-card:nth-child(1) {
    grid-column: span 1;
  }

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

  .mock-app-shell {
    grid-template-columns: 1fr;
  }

  .mock-window-shell {
    grid-template-columns: 1fr;
  }

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

  .asset-command-intro,
  .asset-command-grid,
  .asset-command-stack,
  .asset-product-grid {
    grid-template-columns: 1fr;
  }

  .asset-logo-badge {
    width: 60px;
    height: 60px;
    padding: 0.7rem;
  }

  .asset-command-shell .asset-shot-primary,
  .mock-command-board.mock-card .asset-command-shell .asset-shot-primary,
  .mock-command-board.mock-mini .asset-command-shell .asset-shot-primary,
  .mock-animus.mock-card .asset-shot-primary,
  .mock-animus.mock-mini .asset-shot-primary {
    min-height: 180px;
  }

  .asset-command-shell .asset-shot-secondary,
  .mock-command-board.mock-card .asset-command-shell .asset-shot-secondary,
  .mock-command-board.mock-mini .asset-command-shell .asset-shot-secondary,
  .mock-animus.mock-card .asset-shot-secondary,
  .mock-animus.mock-mini .asset-shot-secondary {
    min-height: 110px;
  }

  .shell-frame {
    width: min(72%, 300px);
    opacity: 0.42;
  }

  .proof-card,
  .build-card,
  .bento-card,
  .update-card,
  .future-card,
  .project-library-card,
  .card,
  .cta-panel,
  .search-panel {
    padding: 0.95rem;
  }

  .search-grid {
    flex-direction: column;
  }

  .container {
    width: min(calc(100% - 1rem), var(--max));
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .hero-actions .ghost-button,
  .cta-actions .button,
  .cta-actions .ghost-button {
    width: 100%;
  }

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

  .admin-split {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* Legal pages (/privacy, /terms) */
.legal-meta {
  color: var(--muted-2);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.legal-doc h2 {
  margin-top: 1.75rem;
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}
