@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #111a33;
  --ink-soft: #1c2850;
  --paper: #eef1fb;
  --paper-deep: #dfe5f5;
  --cream: #fffdf8;
  --muted: #667091;
  --line: #cfd6ec;
  --orange: #d14bb8;
  --orange-deep: #9f2f8b;
  --teal: #346fc7;
  --teal-soft: #5d88db;
  --panel: #182347;
  --panel-soft: #243365;
  --panel-line: #3a4c88;
  --shadow: 0 24px 70px rgba(17, 26, 51, 0.12);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', sans-serif;
  --mono: 'DM Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(209, 75, 184, 0.16), transparent 25%),
    radial-gradient(circle at bottom right, rgba(52, 111, 199, 0.18), transparent 22%),
    var(--paper);
  font-family: var(--sans);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.05em;
}

.site-shell {
  min-height: 100vh;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto 18px;
  padding: 18px 24px;
  max-width: 1500px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--cream);
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  font: 500 12px var(--mono);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-tag {
  color: var(--muted);
  font-size: 12px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ghost-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ghost-link:hover { color: var(--orange); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.button-dark {
  color: var(--cream);
  background: var(--ink);
}

.button-dark:hover { background: var(--orange); }

.button-light {
  color: var(--ink);
  background: var(--cream);
  border-color: rgba(20, 33, 38, 0.08);
}

.button-light:hover {
  color: var(--cream);
  background: var(--orange);
}

.button-full { width: 100%; }

.workspace {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
  align-items: start;
}

.rail {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.rail-block,
.stage,
.view-panel,
.subpanel,
.home-card,
.hero-card,
.proof-chip,
.timeline-card,
.note-card,
.feature-card,
.engineering-card,
.source-card,
.impact-tile,
.writing-feature,
.writing-note {
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: var(--shadow);
}

.rail-block {
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.76);
  backdrop-filter: blur(18px);
}

.rail-label,
.eyebrow,
.section-kicker,
.proof-title,
.timeline-tag,
.subnav-index,
.view-index {
  font: 500 10px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rail-label,
.section-kicker,
.view-index { color: var(--orange); }

.rail-proof {
  color: var(--cream);
  background:
    radial-gradient(circle at 85% 15%, rgba(209, 75, 184, 0.26), transparent 30%),
    linear-gradient(180deg, #1a2550, #121a38);
}

.rail-proof h2 {
  margin-bottom: 14px;
  font-size: 32px;
  line-height: 0.98;
}

.rail-proof p {
  margin-bottom: 18px;
  color: #b6c1be;
  font-size: 14px;
  line-height: 1.7;
}

.view-nav {
  display: grid;
  gap: 10px;
}

.view-link {
  display: flex;
  gap: 14px;
  width: 100%;
  padding: 16px 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s, border-color 0.18s;
}

.view-link:hover {
  transform: translateX(2px);
  color: var(--ink);
  background: rgba(230, 222, 206, 0.6);
}

.view-link.is-active {
  color: var(--cream);
  background: linear-gradient(135deg, var(--ink), var(--panel-soft));
  border-color: rgba(255, 255, 255, 0.08);
}

.view-copy {
  display: grid;
  gap: 4px;
}

.view-name {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.view-note {
  font-size: 12px;
  line-height: 1.45;
}

.stage {
  min-height: calc(100vh - 120px);
  padding: 18px;
  border-radius: 34px;
  background: rgba(255, 253, 248, 0.58);
  backdrop-filter: blur(20px);
}

.view-panel {
  display: none;
  min-height: calc(100vh - 160px);
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.88);
}

.view-panel.is-active { display: block; }

.panel-header,
.hero-stage,
.story-layout,
.app-tour,
.writing-layout,
.about-layout {
  display: grid;
  gap: 24px;
}

.panel-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 24px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.eyebrow {
  margin-bottom: 18px;
}

.signal {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.signal-orange { background: var(--orange); }

.hero-stage {
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
  align-items: center;
  gap: 28px;
  margin-bottom: 24px;
}

.hero-copy h1 {
  margin-bottom: 24px;
  font-size: clamp(58px, 8vw, 112px);
  line-height: 0.9;
}

.hero-copy h1 em,
.panel-header h2 em {
  color: var(--orange);
  font-style: normal;
}

.hero-text {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-card {
  padding: 28px;
  border-radius: 26px;
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 12%, rgba(209, 75, 184, 0.28), transparent 32%),
    linear-gradient(180deg, #182347, #111a33);
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  color: #a4b2af;
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-pill {
  color: #dceadb;
}

.live-pill::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: #8dc08d;
}

.vinyl {
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  margin: 32px auto 28px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle at center, #1a2444 0 2px, #25335d 3px 4px);
  box-shadow: 12px 18px 0 rgba(0, 0, 0, 0.18);
}

.vinyl-label {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--orange);
  font: 500 15px var(--mono);
}

.card-kicker {
  margin-bottom: 8px;
  color: #eab2a0;
  font: 500 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 0.98;
}

.hero-card p:not(.card-kicker) {
  color: #b7c4c0;
  font-size: 14px;
  line-height: 1.72;
}

.card-link {
  margin-top: 16px;
  padding: 0;
  border: none;
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}

.how-grid {
  margin-top: 24px;
}

.home-card {
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.82);
}

.home-card-large {
  background:
    radial-gradient(circle at 90% 10%, rgba(52, 111, 199, 0.18), transparent 26%),
    rgba(255, 253, 248, 0.9);
}

.home-card h3 {
  margin-bottom: 14px;
  font-size: 30px;
  line-height: 1;
}

.home-card p,
.writing-feature p,
.writing-note p,
.about-copy p,
.story-main p,
.note-card p,
.timeline-card p,
.feature-card p,
.tour-copy p,
.tour-list li,
.engineering-card p,
.source-card p,
.impact-tile p,
.proof-chip p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
}

.clean-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.clean-list li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.inline-nav {
  padding: 0;
  border: none;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-weight: 700;
}

.inline-nav:hover,
.clean-list a:hover {
  color: var(--orange);
}

.panel-header h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 0.96;
}

.proof-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.proof-chip {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.92), rgba(245, 239, 228, 0.96));
}

.proof-title {
  display: block;
  margin-bottom: 8px;
}

.story-reader {
  display: grid;
  gap: 18px;
}

.story-reader-lede {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.story-reader-lede-inline {
  max-width: 980px;
  margin-top: 18px;
}

.story-reader-controls {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.story-reader-controls-wide {
  max-width: 720px;
}

.story-reader-label {
  color: var(--orange);
  font: 500 10px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-reader-select-wrap {
  position: relative;
}

.story-reader-select {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  font: 700 14px var(--sans);
  box-shadow: var(--shadow);
}

.story-reader-stage {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.story-reader-panel {
  display: none;
  max-width: 920px;
}

.story-reader-panel.is-active { display: block; }

.story-reader-panel h3 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 0.98;
}

.story-reader-panel h4 {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1;
}

.story-reader-panel p,
.story-reader-panel li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.82;
}

.reader-list {
  margin: 14px 0 18px 0;
  padding-left: 22px;
}

.reader-list li + li {
  margin-top: 6px;
}

.reader-list-ordered {
  padding-left: 28px;
}

.reader-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.reader-card {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
}

.reader-quote {
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 18px 18px 0;
  color: var(--ink);
  background: linear-gradient(90deg, rgba(209, 75, 184, 0.09), rgba(52, 111, 199, 0.06));
  font-size: 18px;
  line-height: 1.75;
}

.subnav-shell {
  display: grid;
  gap: 16px;
}

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

.subnav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.88);
  color: var(--muted);
  cursor: pointer;
}

.subnav-link.is-active {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.subnav-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subpanel-wrap {
  min-width: 0;
}

.subpanel {
  display: none;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.92);
}

.subpanel.is-active { display: block; }

.story-layout,
.app-tour,
.about-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: start;
}

.story-main h3,
.tour-copy h3,
.engineering-card-wide h3,
.impact-tile-large h3,
.writing-feature h3 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.96;
}

.story-side {
  display: grid;
  gap: 14px;
}

.note-card,
.timeline-card,
.feature-card,
.engineering-card,
.source-card,
.impact-tile,
.writing-feature,
.writing-note {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.88);
}

.note-card h4,
.timeline-card h4,
.feature-card h4,
.engineering-card h4,
.source-card h4,
.impact-tile h4 {
  margin-bottom: 10px;
  font-size: 28px;
  line-height: 1;
}

.expand-card {
  overflow: hidden;
}

.expand-card-summary {
  display: block;
  cursor: pointer;
  list-style: none;
}

.expand-card-summary::-webkit-details-marker {
  display: none;
}

.expand-card-summary::marker {
  content: "";
}

.expand-card-preview {
  position: relative;
  margin-bottom: 0;
  padding-right: 28px;
  font-weight: 600;
}

.expand-card-preview::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--orange);
  font: 700 24px var(--sans);
  line-height: 1;
}

.expand-card[open] .expand-card-preview::after {
  content: "-";
}

.expand-card-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.expand-card-body p:last-child {
  margin-bottom: 0;
}

.timeline-grid,
.feature-grid,
.engineering-grid,
.source-grid,
.impact-board {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.feature-grid,
.source-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card-wide,
.engineering-card-wide,
.impact-tile-large {
  grid-column: span 2;
}

.feature-card-wide,
.impact-tile-large {
  background:
    radial-gradient(circle at 90% 12%, rgba(209, 75, 184, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(52, 111, 199, 0.12), rgba(255, 253, 248, 0.9));
}

.timeline-card {
  background:
    radial-gradient(circle at top right, rgba(52, 111, 199, 0.12), transparent 24%),
    rgba(255, 253, 248, 0.9);
}

.timeline-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--orange);
}

.app-frame-large {
  overflow: hidden;
  border-radius: 24px;
  background: #111936;
  border: 1px solid #32457c;
  box-shadow: 24px 24px 0 rgba(214, 205, 187, 0.88);
}

.app-frame-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #19224a;
  border-bottom: 1px solid #32457c;
}

.app-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5a6da1;
}

.app-dot-live { background: var(--orange); }

.app-frame-title {
  margin-left: 8px;
  color: #98a4b4;
  font: 11px var(--mono);
  letter-spacing: 0.08em;
}

.concept-toolbar {
  display: flex;
  gap: 10px;
  padding: 14px 16px 0;
  flex-wrap: wrap;
}

.concept-chip {
  padding: 10px 14px;
  border: 1px solid #32457c;
  border-radius: 999px;
  color: #d6defc;
  background: rgba(35, 49, 94, 0.64);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.concept-chip.is-active {
  color: #fff8ff;
  background: linear-gradient(135deg, rgba(111, 142, 240, 0.92), rgba(209, 75, 184, 0.92));
  border-color: transparent;
}

.graph-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 40px 28px 120px;
  min-height: 430px;
}

.graph-stage-concept {
  grid-template-columns: 250px 1fr 330px;
  align-items: stretch;
  padding-top: 22px;
  padding-bottom: 28px;
  min-height: 560px;
}

.graph-cluster,
.graph-bottom {
  display: grid;
  gap: 12px;
}

.cluster-label {
  color: #7e90a0;
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cluster-node,
.song-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #23315e;
  color: #f3f5fb;
  font-size: 13px;
}

.graph-center {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
}

.center-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px solid rgba(93, 136, 219, 0.36);
  box-shadow: 0 0 0 18px rgba(209, 75, 184, 0.08);
}

.center-node {
  position: relative;
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6f8ef0, #d14bb8);
  color: #f7f8ff;
  font: 800 18px var(--sans);
}

.graph-bottom {
  position: absolute;
  right: 28px;
  left: 28px;
  bottom: 26px;
}

.song-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.concept-side {
  padding: 20px;
  border: 1px solid rgba(125, 149, 214, 0.32);
  border-radius: 20px;
  color: #f2f4ff;
  background: rgba(20, 29, 59, 0.94);
  box-shadow: 0 24px 60px rgba(8, 12, 24, 0.38);
  display: none;
}

.concept-side.is-active {
  display: block;
}

.concept-side-left,
.concept-side-right {
  align-self: start;
}

.concept-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.concept-popup-kicker,
.concept-popup-tag {
  font: 500 10px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.concept-popup-kicker {
  color: #f0c3e6;
}

.concept-popup-tag {
  color: #95a8df;
}

.concept-side h4 {
  margin-bottom: 10px;
  color: #fff9ff;
  font-size: 28px;
  line-height: 1;
}

.concept-side p,
.concept-side li {
  color: #c7d1f2;
  font-size: 14px;
  line-height: 1.72;
}

.concept-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.concept-pill-list,
.concept-item-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.concept-pill,
.concept-item {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #dce3fb;
  background: rgba(35, 49, 94, 0.8);
  font-size: 13px;
}

.concept-pill.is-selected,
.concept-item:first-child {
  color: #fff9ff;
  background: linear-gradient(135deg, rgba(111, 142, 240, 0.92), rgba(209, 75, 184, 0.92));
}

.concept-item {
  border: 1px solid rgba(125, 149, 214, 0.22);
  cursor: pointer;
  text-align: left;
}

.concept-item:hover {
  border-color: rgba(209, 75, 184, 0.5);
}

.tour-list {
  margin: 20px 0 0;
  padding-left: 18px;
}

.tour-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.era-embed {
  display: grid;
  gap: 22px;
}

.era-embed-copy {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 253, 248, 0.72);
}

.era-embed-copy h3 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
}

.era-embed-copy p {
  max-width: 900px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.era-embed-frame {
  overflow: hidden;
  border-radius: 28px;
  background: #121824;
  min-height: 980px;
}

.era-embed-frame iframe {
  display: block;
  width: 100%;
  min-height: 980px;
  border: 0;
  background: #121824;
}

.engineering-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
}

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.pipeline-step {
  padding: 22px 18px;
  border-radius: 18px;
  color: var(--cream);
  background: linear-gradient(180deg, #1a2550, #111a33);
}

.pipeline-num {
  display: inline-block;
  margin-bottom: 14px;
  color: #f3c8bb;
  font: 500 10px var(--mono);
  letter-spacing: 0.14em;
}

.pipeline-step h4 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1;
}

.pipeline-step p {
  color: #b5c1be;
  font-size: 14px;
  line-height: 1.68;
}

.impact-board {
  grid-template-columns: 1.35fr 1fr 1fr;
}

.writing-layout {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.writing-feature {
  background:
    radial-gradient(circle at 92% 10%, rgba(52, 111, 199, 0.16), transparent 25%),
    rgba(255, 253, 248, 0.92);
}

.portrait-card {
  margin: 0;
  max-width: 360px;
  transform: rotate(-2deg);
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 10px solid var(--cream);
  object-fit: cover;
  box-shadow: 14px 18px 0 rgba(20, 33, 38, 0.16);
}

.portrait-card figcaption {
  margin-top: 16px;
  color: var(--muted);
  font: 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-actions {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

@media (max-width: 1200px) {
  .workspace { grid-template-columns: 1fr; }
  .rail { position: static; }
  .reader-grid { grid-template-columns: 1fr; }
  .proof-bar,
  .timeline-grid,
  .feature-grid,
  .source-grid,
  .pipeline-board,
  .engineering-grid,
  .impact-board,
  .home-grid { grid-template-columns: 1fr 1fr; }
  .story-layout,
  .app-tour,
  .about-layout,
  .writing-layout,
  .hero-stage { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .site-shell { padding: 14px; }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }
  .topbar-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .stage,
  .view-panel { padding: 16px; }
  .panel-header {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .proof-bar,
  .timeline-grid,
  .reader-grid,
  .feature-grid,
  .source-grid,
  .pipeline-board,
  .engineering-grid,
  .impact-board,
  .home-grid,
  .writing-layout { grid-template-columns: 1fr; }
  .feature-card-wide,
  .engineering-card-wide,
  .impact-tile-large { grid-column: span 1; }
  .subnav { flex-direction: column; }
  .subnav-link { width: 100%; justify-content: flex-start; }
  .hero-copy h1 { font-size: 58px; }
  .graph-stage {
    grid-template-columns: 1fr;
    padding-bottom: 160px;
  }
  .graph-stage-concept {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 28px;
  }
  .era-embed-frame,
  .era-embed-frame iframe {
    min-height: 760px;
  }
}

@media (max-width: 560px) {
  .brand-tag,
  .ghost-link { display: none; }
  .hero-actions,
  .panel-actions,
  .tour-actions,
  .about-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .hero-copy h1 { font-size: 48px; }
  .view-link { padding: 14px; }
  .view-name { font-size: 22px; }
}
