@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;1,500&display=swap");

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Manrope", Arial, sans-serif;
}

button,
a {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.demo-nav {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  padding: 0 4vw;
}

.demo-brand {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
}

.demo-exit {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(20, 18, 24, 0.86);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.is-preview .demo-exit {
  display: none;
}

/* Neural systems */
.demo-neural {
  color: #d9fff2;
  background: #07100f;
}

.demo-neural::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(rgba(93, 255, 196, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 255, 196, 0.055) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.demo-neural .demo-nav {
  border-bottom: 1px solid rgba(141, 255, 216, 0.13);
}

.neural-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  min-height: 100svh;
  padding: 136px 4vw 56px;
}

.neural-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}

.neural-kicker,
.pulse-kicker,
.northstar-kicker {
  margin: 0 0 22px;
  color: #63e6b3;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.neural-copy h1 {
  margin: 0;
  font-size: clamp(4.8rem, 8.6vw, 9.4rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.neural-copy > p:not(.neural-kicker) {
  max-width: 520px;
  margin: 28px 0 0;
  color: rgba(218, 255, 242, 0.58);
  font-size: 1rem;
  line-height: 1.65;
}

.neural-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}

.neural-actions button,
.neural-actions a {
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid rgba(127, 255, 208, 0.34);
  border-radius: 4px;
  color: #d9fff2;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  background: rgba(93, 255, 196, 0.06);
}

.neural-actions button:hover {
  color: #07100f;
  background: #63e6b3;
}

.neural-visual {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(137, 255, 214, 0.14);
  border-radius: 50% 50% 20px 50%;
  background: #0b1615;
}

.neural-visual::before {
  position: absolute;
  inset: 10%;
  z-index: 2;
  border: 1px solid rgba(110, 248, 197, 0.32);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 80px rgba(71, 239, 177, 0.14), inset 0 0 70px rgba(71, 239, 177, 0.08);
  animation: neuralSpin 12s linear infinite;
}

.neural-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  filter: hue-rotate(64deg) saturate(0.8) contrast(1.12);
}

.neural-status {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
}

.neural-status span {
  padding: 10px 13px;
  border: 1px solid rgba(129, 255, 207, 0.2);
  border-radius: 999px;
  color: rgba(218, 255, 242, 0.72);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  background: rgba(4, 13, 12, 0.64);
}

.demo-neural[data-demo-mode="1"] {
  color: #d9f2ff;
  background: #071019;
}

.demo-neural[data-demo-mode="1"] .neural-visual img {
  filter: hue-rotate(180deg) saturate(0.92) contrast(1.12);
}

.demo-neural[data-demo-mode="2"] {
  color: #ffe8fb;
  background: #140a18;
}

.demo-neural[data-demo-mode="2"] .neural-visual img {
  filter: hue-rotate(292deg) saturate(1) contrast(1.14);
}

/* Vanta architecture */
.demo-vanta {
  color: #201f1b;
  background: #efeee8;
}

.demo-vanta .demo-nav {
  color: #201f1b;
}

.vanta-hero {
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(420px, 0.9fr);
  min-height: 100svh;
  padding: 104px 22px 22px;
}

.vanta-media {
  position: relative;
  min-height: 720px;
  margin: 0;
  overflow: hidden;
  border-radius: 2px;
  background: #ccc9bf;
}

.vanta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(0.88) brightness(1.18);
  transition: opacity 240ms ease, transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vanta-media img.is-changing {
  opacity: 0.28;
  transform: scale(1.025);
}

.vanta-number {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 9px 12px;
  color: #1f1e1a;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  background: rgba(244, 243, 237, 0.86);
}

.vanta-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px 4vw 30px;
}

.vanta-copy h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(4.8rem, 8vw, 9rem);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.055em;
}

.vanta-copy h1 em {
  display: block;
  font-weight: 500;
}

.vanta-project-panel {
  border-top: 1px solid rgba(31, 30, 26, 0.24);
}

.vanta-project-tabs {
  display: flex;
  gap: 6px;
  margin: 22px 0;
}

.vanta-project-tabs button {
  padding: 9px 12px;
  border: 1px solid rgba(31, 30, 26, 0.22);
  border-radius: 999px;
  color: #25231f;
  font-size: 0.68rem;
  background: transparent;
}

.vanta-project-tabs button.active {
  color: #efeee8;
  background: #25231f;
}

.vanta-project-panel h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.vanta-project-panel p {
  margin: 0;
  color: #6d6960;
  line-height: 1.58;
}

.demo-vanta.demo-alt {
  color: #efeee8;
  background: #25231f;
}

.demo-vanta.demo-alt .demo-nav,
.demo-vanta.demo-alt .vanta-project-tabs button {
  color: #efeee8;
}

.demo-vanta.demo-alt .vanta-project-panel {
  border-color: rgba(255, 255, 255, 0.22);
}

/* Pulse gaming */
.demo-pulse {
  color: #f5f3fb;
  background: #090811;
}

.demo-pulse .demo-nav {
  color: #f8f6fc;
}

.pulse-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.72fr) minmax(520px, 1.28fr);
  min-height: 100svh;
  overflow: hidden;
}

.pulse-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 126px 0 50px 5vw;
}

.pulse-kicker {
  color: #ff4fd8;
}

.pulse-copy h1 {
  margin: 0;
  font-size: clamp(5.4rem, 9vw, 10rem);
  font-style: italic;
  line-height: 0.79;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}

.pulse-copy h1 span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px #f7f4fb;
}

.pulse-copy > p:not(.pulse-kicker) {
  max-width: 470px;
  margin: 30px 0 0;
  color: rgba(245, 243, 251, 0.62);
  line-height: 1.62;
}

.pulse-mode {
  display: flex;
  gap: 9px;
  margin-top: 34px;
}

.pulse-mode button,
.pulse-mode span {
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f7f4fb;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
}

.pulse-mode button {
  background: linear-gradient(90deg, #ff3ac8, #7058ff);
}

.pulse-media {
  position: relative;
  min-height: 100svh;
  margin: 0;
}

.pulse-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #090811 0%, transparent 34%), linear-gradient(180deg, transparent 60%, #090811);
}

.pulse-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.05);
}

.demo-pulse[data-demo-mode="1"] .pulse-media img {
  filter: hue-rotate(62deg) saturate(1.3) contrast(1.08);
}

.demo-pulse[data-demo-mode="2"] .pulse-media img {
  filter: hue-rotate(180deg) saturate(1.28) contrast(1.08);
}

/* Still wellness */
.demo-still {
  color: #343037;
  background:
    radial-gradient(circle at 16% 78%, rgba(207, 128, 147, 0.48), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(98, 133, 190, 0.46), transparent 34%),
    #d9d5da;
}

.still-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 110px 24px 50px;
  text-align: center;
}

.still-hero h1 {
  position: relative;
  z-index: 2;
  max-width: 1060px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(5.2rem, 10vw, 11rem);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.065em;
}

.still-hero h1 em {
  display: block;
}

.still-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(42vw, 580px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.82), transparent 16%),
    radial-gradient(circle at 40% 40%, rgba(235, 165, 184, 0.88), rgba(123, 124, 178, 0.56) 62%, rgba(70, 69, 86, 0.18));
  box-shadow: inset -60px -60px 100px rgba(74, 64, 86, 0.18), 0 40px 100px rgba(70, 62, 84, 0.18);
  transform: translate(-50%, -50%);
  animation: stillBreathe var(--breath-duration, 7s) ease-in-out infinite;
}

.still-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 4vw;
  border-top: 1px solid rgba(52, 48, 55, 0.16);
}

.still-controls p {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 750;
}

.still-controls button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(52, 48, 55, 0.32);
  border-radius: 999px;
  color: #343037;
  font-weight: 760;
  background: rgba(255, 255, 255, 0.28);
}

.demo-still.demo-paused .still-orb {
  animation-play-state: paused;
}

/* Northstar data */
.demo-northstar {
  color: #112948;
  background: #edf4fb;
}

.demo-northstar .demo-nav {
  border-bottom: 1px solid rgba(17, 41, 72, 0.12);
}

.northstar-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 3vw;
  min-height: 100svh;
  padding: 134px 4vw 48px;
}

.northstar-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.northstar-kicker {
  color: #2b67f6;
}

.northstar-copy h1 {
  margin: 0;
  font-size: clamp(4.6rem, 8vw, 9rem);
  line-height: 0.84;
  letter-spacing: -0.08em;
}

.northstar-copy > p:not(.northstar-kicker) {
  max-width: 480px;
  margin: 28px 0 0;
  color: #5d7088;
  line-height: 1.62;
}

.northstar-ranges {
  display: flex;
  gap: 7px;
  margin-top: 30px;
}

.northstar-ranges button {
  width: 44px;
  height: 38px;
  border: 1px solid rgba(17, 41, 72, 0.16);
  border-radius: 999px;
  color: #39516e;
  font-size: 0.68rem;
  font-weight: 750;
  background: transparent;
}

.northstar-ranges button.active {
  color: #fff;
  background: #214ee8;
}

.northstar-dashboard {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr auto;
  min-height: 670px;
  padding: 26px;
  border: 1px solid rgba(17, 41, 72, 0.11);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(48, 81, 122, 0.12);
}

.northstar-dashboard-head,
.northstar-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.northstar-dashboard-head span,
.northstar-summary span {
  color: #708198;
  font-size: 0.66rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.northstar-dashboard-head strong {
  font-size: 2rem;
}

.northstar-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 440px;
  padding: 42px 6px 20px;
  border-bottom: 1px solid rgba(17, 41, 72, 0.11);
}

.northstar-chart i {
  flex: 1;
  height: var(--h);
  min-height: 14%;
  border-radius: 999px 999px 3px 3px;
  background: linear-gradient(180deg, #76a7ff, #244fea);
  transition: height 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.northstar-chart[data-range="quarter"] i:nth-child(2n) {
  height: calc(var(--h) * 0.68);
}

.northstar-chart[data-range="year"] i:nth-child(3n) {
  height: calc(var(--h) * 0.48);
}

.northstar-summary {
  padding-top: 20px;
}

.northstar-summary strong {
  font-size: 1rem;
}

/* Materia creative */
.demo-materia {
  color: #1f1b1b;
  background: #ef4638;
}

.demo-materia .demo-nav {
  color: #fff8ea;
}

.materia-hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.8fr) minmax(540px, 1.2fr);
  gap: 14px;
  min-height: 100svh;
  padding: 100px 14px 14px;
}

.materia-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 44px 3.5vw;
  border-radius: 18px;
  background: #fff8ea;
}

.materia-copy h1 {
  margin: 0;
  font-size: clamp(5rem, 8.6vw, 9.5rem);
  line-height: 0.78;
  letter-spacing: -0.095em;
  text-transform: uppercase;
}

.materia-copy h1 span {
  display: block;
  color: #ef4638;
}

.materia-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 34px;
}

.materia-filters button {
  padding: 10px 14px;
  border: 1px solid rgba(31, 27, 27, 0.2);
  border-radius: 999px;
  color: #272020;
  font-size: 0.68rem;
  font-weight: 760;
  background: transparent;
}

.materia-filters button.active {
  color: #fff8ea;
  background: #1f1b1b;
}

.materia-foot {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(31, 27, 27, 0.2);
  color: #675d57;
  font-size: 0.74rem;
}

.materia-media {
  position: relative;
  min-height: 760px;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #17151b;
}

.materia-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.06);
  transition: filter 360ms ease, transform 560ms ease;
}

.materia-media figcaption {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: #fff;
}

.materia-media figcaption strong {
  font-size: 2rem;
}

.materia-media figcaption span {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
}

.demo-materia[data-project="motion"] .materia-media img {
  filter: hue-rotate(72deg) saturate(1.05) contrast(1.08);
  transform: scale(1.04);
}

.demo-materia[data-project="identity"] .materia-media img {
  filter: hue-rotate(184deg) saturate(0.9) contrast(1.12);
  transform: scale(1.075);
}

/* Expanded case-study system */
::selection {
  color: #07100f;
  background: #8dffd8;
}

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

html {
  scrollbar-color: rgba(120, 120, 130, 0.68) transparent;
  scrollbar-width: thin;
}

.demo-page-long .demo-nav {
  position: fixed;
  min-height: 78px;
  backdrop-filter: blur(18px);
}

.demo-neural.demo-page-long .demo-nav,
.demo-pulse.demo-page-long .demo-nav {
  background: rgba(7, 10, 15, 0.72);
}

.demo-vanta.demo-page-long .demo-nav,
.demo-still.demo-page-long .demo-nav,
.demo-northstar.demo-page-long .demo-nav {
  background: rgba(241, 241, 238, 0.74);
}

.demo-vanta.demo-alt.demo-page-long .demo-nav {
  background: rgba(37, 35, 31, 0.78);
}

.demo-materia.demo-page-long .demo-nav {
  background: rgba(239, 70, 56, 0.82);
}

.demo-page-long main,
.demo-page-long section {
  scroll-margin-top: 78px;
}

.demo-page-long :is(.neural-copy, .vanta-copy, .pulse-copy, .still-hero, .northstar-copy, .materia-copy) h1 {
  font-size: clamp(4rem, 7vw, 6rem);
  letter-spacing: -0.04em;
}

[data-reveal] {
  transition: transform 760ms cubic-bezier(0.16, 1, 0.3, 1), filter 760ms cubic-bezier(0.16, 1, 0.3, 1), opacity 520ms ease-out;
}

.demo-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 4vw;
  border-top: 1px solid currentColor;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Neural systems expansion */
.neural-modules {
  padding: 120px 4vw;
  border-top: 1px solid rgba(141, 255, 216, 0.14);
  background: #081311;
}

.demo-section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 7vw;
  align-items: end;
  margin-bottom: 70px;
}

.demo-section-intro h2,
.neural-workflow h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.demo-section-intro p,
.neural-workflow > div > p {
  max-width: 620px;
  margin: 0;
  color: rgba(217, 255, 242, 0.6);
  line-height: 1.72;
}

.neural-module-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(560px, 1fr);
  gap: 24px;
}

.neural-module-list {
  border-top: 1px solid rgba(141, 255, 216, 0.2);
}

.neural-module-list button {
  display: grid;
  grid-template-columns: 1fr auto;
  width: 100%;
  padding: 24px 0;
  border: 0;
  border-bottom: 1px solid rgba(141, 255, 216, 0.2);
  color: rgba(217, 255, 242, 0.48);
  text-align: left;
  background: transparent;
  transition: color 240ms ease, padding 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.neural-module-list button:hover,
.neural-module-list button.active {
  padding-left: 18px;
  color: #8dffd8;
}

.neural-module-list span {
  font-size: 1.35rem;
  font-weight: 700;
}

.neural-module-list small {
  align-self: center;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
}

.neural-module-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.62fr);
  min-height: 560px;
  padding: clamp(34px, 5vw, 72px);
  overflow: hidden;
  border: 1px solid rgba(141, 255, 216, 0.2);
  background: #0b1917;
}

.neural-stage-copy {
  position: relative;
  z-index: 2;
}

.neural-stage-copy > span {
  color: #63e6b3;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
}

.neural-stage-copy h3 {
  max-width: 620px;
  margin: 42px 0 20px;
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.neural-stage-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(217, 255, 242, 0.62);
  line-height: 1.7;
}

.neural-signal-field {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 290px;
}

.neural-signal-field i {
  width: 2px;
  height: var(--signal-height, 42%);
  background: #63e6b3;
  box-shadow: 0 0 28px rgba(99, 230, 179, 0.46);
  animation: neuralSignal 2.8s ease-in-out infinite alternate;
}

.neural-signal-field i:nth-child(2) { --signal-height: 76%; animation-delay: -1.3s; }
.neural-signal-field i:nth-child(3) { --signal-height: 54%; animation-delay: -0.4s; }
.neural-signal-field i:nth-child(4) { --signal-height: 88%; animation-delay: -2.1s; }
.neural-signal-field i:nth-child(5) { --signal-height: 62%; animation-delay: -0.8s; }
.neural-signal-field i:nth-child(6) { --signal-height: 34%; animation-delay: -1.7s; }

.neural-stage-metrics {
  position: absolute;
  right: clamp(34px, 5vw, 72px);
  bottom: clamp(34px, 5vw, 72px);
  left: clamp(34px, 5vw, 72px);
  z-index: 2;
  display: flex;
  gap: 56px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(141, 255, 216, 0.2);
}

.neural-stage-metrics dt {
  color: rgba(217, 255, 242, 0.46);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.neural-stage-metrics dd {
  margin: 7px 0 0;
  font-size: 1.15rem;
}

.neural-workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
  gap: 8vw;
  padding: 130px 4vw;
  color: #07100f;
  background: #8dffd8;
}

.neural-workflow > div > p {
  margin-top: 28px;
  color: rgba(7, 16, 15, 0.66);
}

.neural-workflow ol {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(7, 16, 15, 0.3);
}

.neural-workflow li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(7, 16, 15, 0.3);
}

.neural-workflow li span {
  color: rgba(7, 16, 15, 0.68);
  line-height: 1.55;
}

/* Vanta expansion */
.vanta-project-index {
  padding: 130px 4vw;
  background: #dfddd5;
}

.vanta-index-heading,
.vanta-approach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
  gap: 8vw;
}

.vanta-index-heading {
  align-items: end;
  margin-bottom: 84px;
}

.vanta-index-heading h2,
.vanta-approach h2 {
  max-width: 780px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.2rem, 6vw, 6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.vanta-index-heading p,
.vanta-approach-copy p {
  color: #69655d;
  line-height: 1.7;
}

.vanta-project-rows {
  border-top: 1px solid rgba(31, 30, 26, 0.28);
}

.vanta-project-rows button {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(180px, 0.48fr) minmax(300px, 1fr);
  gap: 34px;
  align-items: center;
  width: 100%;
  padding: 34px 4px;
  border: 0;
  border-bottom: 1px solid rgba(31, 30, 26, 0.28);
  color: #747067;
  text-align: left;
  background: transparent;
  transition: color 220ms ease, padding 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vanta-project-rows button:hover,
.vanta-project-rows button.active {
  padding-right: 18px;
  padding-left: 18px;
  color: #201f1b;
}

.vanta-project-rows span {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 3.6rem);
}

.vanta-project-rows small {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.vanta-project-rows b {
  font-weight: 500;
  line-height: 1.55;
}

.vanta-approach {
  padding: 150px 4vw;
  background: #efeee8;
}

.vanta-approach-copy {
  padding-top: 12px;
}

.vanta-approach-copy p {
  margin: 0 0 24px;
}

.vanta-approach-copy a {
  display: inline-flex;
  gap: 12px;
  margin-top: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.demo-vanta.demo-alt .vanta-project-index,
.demo-vanta.demo-alt .vanta-approach {
  color: #efeee8;
  background: #25231f;
}

.demo-vanta.demo-alt :is(.vanta-index-heading p, .vanta-approach-copy p) {
  color: rgba(239, 238, 232, 0.62);
}

.demo-vanta.demo-alt .vanta-project-rows,
.demo-vanta.demo-alt .vanta-project-rows button {
  border-color: rgba(239, 238, 232, 0.2);
  color: rgba(239, 238, 232, 0.58);
}

.demo-vanta.demo-alt .vanta-project-rows button:hover,
.demo-vanta.demo-alt .vanta-project-rows button.active {
  color: #efeee8;
}

/* Pulse expansion */
.pulse-bench {
  padding: 130px 5vw;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  background: #0c0b15;
}

.pulse-bench-heading,
.pulse-architecture-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: 7vw;
  align-items: end;
}

.pulse-bench-heading h2,
.pulse-architecture-copy h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 6rem);
  font-style: italic;
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.pulse-bench-heading p,
.pulse-architecture-copy p {
  color: rgba(245, 243, 251, 0.62);
  line-height: 1.7;
}

.pulse-profile-controls {
  display: flex;
  gap: 8px;
  margin: 58px 0 18px;
}

.pulse-profile-controls button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(245, 243, 251, 0.68);
  background: transparent;
}

.pulse-profile-controls button.active {
  color: #fff;
  background: #7b50ff;
}

.demo-pulse[data-demo-mode="0"] .pulse-profile-controls button.active { background: #7b50ff; }
.demo-pulse[data-demo-mode="1"] .pulse-profile-controls button.active { background: #ff3ac8; }
.demo-pulse[data-demo-mode="2"] .pulse-profile-controls button.active { color: #090811; background: #8de5ff; }

.demo-pulse[data-demo-mode="2"] .pulse-readings i { background: #8de5ff; }

.pulse-bench-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr) minmax(0, 0.52fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  min-height: 480px;
  padding: clamp(34px, 5vw, 76px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(116, 79, 255, 0.2), rgba(255, 55, 199, 0.05) 58%, transparent);
}

.pulse-dial span {
  display: block;
  font-size: clamp(5rem, 10vw, 9rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.pulse-dial small {
  display: block;
  margin-top: 18px;
  color: rgba(245, 243, 251, 0.5);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.pulse-readings {
  margin: 0;
}

.pulse-readings div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.pulse-readings dt {
  color: rgba(245, 243, 251, 0.56);
}

.pulse-readings dd {
  margin: 0;
  font-family: "DM Mono", monospace;
}

.pulse-readings i {
  grid-column: 1 / -1;
  width: var(--level);
  height: 3px;
  background: #ff4fd8;
  transition: width 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.pulse-bench-stage > p {
  color: rgba(245, 243, 251, 0.72);
  line-height: 1.7;
}

.pulse-architecture {
  padding: 140px 5vw;
  background: #151320;
}

.pulse-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.pulse-spec-grid article {
  min-height: 260px;
  padding: 30px 32px 30px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.pulse-spec-grid article + article {
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.pulse-spec-grid strong {
  font-size: 1.4rem;
}

.pulse-spec-grid p {
  max-width: 34ch;
  color: rgba(245, 243, 251, 0.58);
  line-height: 1.65;
}

/* Still expansion */
.still-rituals {
  padding: 130px 6vw;
  background: #eeebe6;
}

.still-ritual-intro,
.still-journal {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: 8vw;
}

.still-ritual-intro {
  align-items: end;
  margin-bottom: 76px;
}

.still-ritual-intro h2,
.still-journal-copy h2 {
  max-width: 760px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.1rem, 5.8vw, 6rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.still-ritual-intro p,
.still-journal-copy p {
  color: #6d646a;
  line-height: 1.72;
}

.still-practice-list {
  border-top: 1px solid rgba(52, 48, 55, 0.24);
}

.still-practice-list button {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) 1fr auto;
  gap: 30px;
  align-items: center;
  width: 100%;
  padding: 30px 4px;
  border: 0;
  border-bottom: 1px solid rgba(52, 48, 55, 0.24);
  color: #6d646a;
  text-align: left;
  background: transparent;
}

.still-practice-list button:hover,
.still-practice-list button.active {
  color: #343037;
}

.still-practice-list span {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 4rem);
}

.still-practice-list small {
  font-size: 0.9rem;
  line-height: 1.55;
}

.still-practice-list b {
  font-size: 0.72rem;
}

.still-journal {
  padding: 140px 6vw;
  background: #d8d1d6;
}

.still-journal-panel {
  padding: clamp(34px, 5vw, 70px);
  border: 1px solid rgba(52, 48, 55, 0.22);
  background: rgba(255, 255, 255, 0.24);
}

.still-moods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.still-moods button {
  padding: 10px 14px;
  border: 1px solid rgba(52, 48, 55, 0.28);
  border-radius: 999px;
  color: #5d565d;
  background: transparent;
}

.still-moods button.active {
  color: #fff;
  background: #343037;
}

.still-journal-panel blockquote {
  min-height: 180px;
  margin: 54px 0 40px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.still-journal-panel > span {
  font-size: 0.68rem;
  font-weight: 700;
}

/* Northstar expansion */
.northstar-brief {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(560px, 1.1fr);
  gap: 8vw;
  padding: 130px 4vw;
  background: #dceaff;
}

.northstar-brief-copy h2,
.northstar-decisions-head h2 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.northstar-brief-copy p,
.northstar-decisions-head p {
  max-width: 640px;
  margin: 34px 0 0;
  color: #516982;
  line-height: 1.72;
}

.northstar-metric-strip {
  border-top: 1px solid rgba(17, 41, 72, 0.2);
}

.northstar-metric-strip div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(17, 41, 72, 0.2);
}

.northstar-metric-strip span {
  align-self: center;
  color: #5d7088;
}

.northstar-metric-strip strong {
  font-size: 1.7rem;
}

.northstar-metric-strip small {
  grid-column: 1 / -1;
  color: #778a9f;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.northstar-decisions {
  padding: 140px 4vw;
  background: #f6f9fd;
}

.northstar-decisions-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
  gap: 8vw;
  align-items: end;
  margin-bottom: 72px;
}

.northstar-decision-table {
  border-top: 1px solid rgba(17, 41, 72, 0.2);
}

.northstar-table-head,
.northstar-decision-table button {
  display: grid;
  grid-template-columns: 1fr 180px 140px;
  gap: 24px;
  width: 100%;
  padding: 22px 6px;
}

.northstar-table-head {
  color: #71849a;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
}

.northstar-decision-table button {
  border: 0;
  border-top: 1px solid rgba(17, 41, 72, 0.15);
  color: #112948;
  text-align: left;
  background: transparent;
}

.northstar-decision-table button:hover,
.northstar-decision-table button.active {
  background: #e7f0ff;
}

.northstar-decision-table button span,
.northstar-decision-table button b {
  color: #60758c;
  font-weight: 600;
}

.northstar-row-detail {
  max-width: 760px;
  min-height: 78px;
  margin: 34px 0 0;
  color: #516982;
  line-height: 1.7;
}

/* Materia expansion */
.materia-projects {
  padding: 130px 3vw;
  color: #1f1b1b;
  background: #fff8ea;
}

.materia-projects-head,
.materia-services {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(540px, 1.22fr);
  gap: 5vw;
}

.materia-projects-head {
  align-items: end;
  margin-bottom: 70px;
}

.materia-projects-head h2,
.materia-services h2 {
  margin: 0;
  font-size: clamp(3.4rem, 6vw, 6rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.materia-projects-head p {
  max-width: 560px;
  color: #6b5d57;
  line-height: 1.7;
}

.materia-project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.materia-project-grid article {
  grid-column: span 5;
  min-height: 300px;
  padding: 30px;
  border: 1px solid rgba(31, 27, 27, 0.18);
  background: #f3b7d0;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), background 260ms ease;
}

.materia-project-grid article:nth-child(2n) {
  grid-column: span 7;
  background: #bcdbe8;
}

.materia-project-grid article:hover {
  background: #f2df3d;
  transform: translateY(-8px) rotate(-0.5deg);
}

.materia-project-grid article[hidden] {
  display: none;
}

.materia-project-grid span {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.materia-project-grid h3 {
  max-width: 520px;
  margin: 62px 0 16px;
  font-size: clamp(2.2rem, 4vw, 4.8rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.materia-project-grid p {
  max-width: 45ch;
  color: #5f534f;
  line-height: 1.55;
}

.materia-services {
  padding: 140px 3vw;
  color: #fff8ea;
  background: #1f1b1b;
}

.materia-service-list {
  border-top: 1px solid rgba(255, 248, 234, 0.24);
}

.materia-service-list div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 248, 234, 0.24);
}

.materia-service-list span {
  font-size: 1.25rem;
  font-weight: 750;
}

.materia-service-list p {
  max-width: 52ch;
  margin: 0;
  color: rgba(255, 248, 234, 0.62);
  line-height: 1.6;
}

@keyframes neuralSignal {
  from { transform: scaleY(0.45); opacity: 0.36; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes neuralSpin {
  to { transform: rotate(360deg); }
}

@keyframes stillBreathe {
  0%, 100% { transform: translate(-50%, -50%) scale(0.86); filter: saturate(0.82); }
  50% { transform: translate(-50%, -50%) scale(1.08); filter: saturate(1.08); }
}

@media (min-width: 841px) and (max-width: 1100px) {
  .pulse-bench-stage {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  }

  .pulse-bench-stage > p {
    grid-column: 1 / -1;
    max-width: 62ch;
  }
}

@media (max-width: 840px) {
  .demo-nav-links a:not(.demo-pill) {
    display: none;
  }

  .neural-hero,
  .vanta-hero,
  .pulse-hero,
  .northstar-hero,
  .materia-hero {
    grid-template-columns: 1fr;
  }

  .neural-copy,
  .pulse-copy,
  .northstar-copy {
    min-height: 72svh;
    padding: 132px 24px 70px;
  }

  .neural-visual,
  .pulse-media,
  .northstar-dashboard,
  .vanta-media,
  .materia-media {
    min-height: 72svh;
  }

  .vanta-copy {
    min-height: 650px;
    order: -1;
    padding-top: 132px;
  }

  .still-orb {
    width: 70vw;
  }

  .materia-copy {
    min-height: 680px;
    padding-top: 120px;
  }

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

  .demo-section-intro,
  .neural-module-layout,
  .neural-module-stage,
  .neural-workflow,
  .vanta-index-heading,
  .vanta-approach,
  .pulse-bench-heading,
  .pulse-bench-stage,
  .pulse-architecture-copy,
  .still-ritual-intro,
  .still-journal,
  .northstar-brief,
  .northstar-decisions-head,
  .materia-projects-head,
  .materia-services {
    grid-template-columns: 1fr;
  }

  .neural-modules,
  .neural-workflow,
  .vanta-project-index,
  .vanta-approach,
  .pulse-bench,
  .pulse-architecture,
  .still-rituals,
  .still-journal,
  .northstar-brief,
  .northstar-decisions,
  .materia-projects,
  .materia-services {
    padding: 96px 24px;
  }

  .neural-module-stage {
    min-height: 680px;
  }

  .neural-signal-field {
    min-height: 210px;
  }

  .neural-stage-metrics {
    right: 34px;
    bottom: 34px;
    left: 34px;
  }

  .neural-workflow ol {
    margin-top: 38px;
  }

  .vanta-project-rows button {
    grid-template-columns: 1fr auto;
  }

  .vanta-project-rows button b {
    grid-column: 1 / -1;
  }

  .pulse-bench-stage {
    min-height: 720px;
  }

  .pulse-spec-grid {
    grid-template-columns: 1fr;
    margin-top: 54px;
  }

  .pulse-spec-grid article + article {
    padding-left: 0;
    border-left: 0;
  }

  .still-practice-list button {
    grid-template-columns: 1fr auto;
  }

  .still-practice-list small {
    grid-column: 1 / -1;
  }

  .still-journal-panel {
    margin-top: 36px;
  }

  .northstar-metric-strip {
    margin-top: 34px;
  }

  .northstar-table-head,
  .northstar-decision-table button {
    grid-template-columns: 1fr 92px;
  }

  .northstar-table-head span:nth-child(2),
  .northstar-decision-table button span {
    display: none;
  }

  .materia-project-grid article,
  .materia-project-grid article:nth-child(2n) {
    grid-column: 1 / -1;
  }

  .materia-service-list div {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .demo-nav {
    min-height: 70px;
    padding: 0 18px;
  }

  .demo-nav-links {
    gap: 8px;
  }

  .demo-nav-links .demo-pill {
    min-height: 38px;
    padding: 0 12px;
  }

  .demo-page-long :is(.neural-copy, .vanta-copy, .pulse-copy, .still-hero, .northstar-copy, .materia-copy) h1 {
    font-size: clamp(3.2rem, 17vw, 5rem);
  }

  .neural-copy,
  .pulse-copy,
  .northstar-copy {
    min-width: 0;
    padding-right: 18px;
    padding-left: 18px;
  }

  .demo-neural .neural-copy h1 {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .neural-actions,
  .pulse-mode,
  .pulse-profile-controls {
    flex-wrap: wrap;
  }

  .neural-status {
    right: 14px;
    bottom: 14px;
    left: 14px;
    grid-template-columns: repeat(3, 1fr);
  }

  .neural-status span {
    padding: 9px 6px;
    text-align: center;
  }

  .neural-stage-metrics {
    gap: 24px;
  }

  .neural-workflow li {
    grid-template-columns: 100px 1fr;
  }

  .vanta-project-rows button {
    grid-template-columns: 1fr;
  }

  .vanta-project-rows button b {
    grid-column: auto;
  }

  .still-controls {
    align-items: flex-start;
    gap: 14px;
    padding: 22px 18px;
  }

  .still-practice-list button {
    gap: 12px;
  }

  .still-journal-panel blockquote {
    min-height: 220px;
  }

  .northstar-chart {
    min-height: 320px;
  }

  .materia-project-grid article {
    min-height: 260px;
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
