:root {
  --bg: #f6f0e8;
  --bg-deep: #09131f;
  --surface: rgba(255, 255, 255, 0.58);
  --surface-strong: rgba(255, 255, 255, 0.74);
  --border: rgba(9, 19, 31, 0.08);
  --ink: #09131f;
  --muted: rgba(9, 19, 31, 0.68);
  --coral: #ff6748;
  --aqua: #09c5ff;
  --lime: #d5ff56;
  --cobalt: #214fff;
  --gold: #ffb703;
  --shadow: 0 30px 80px rgba(8, 19, 31, 0.12);
  --radius: 28px;
  --radius-sm: 18px;
  --content-width: 1400px;
  --header-height: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 103, 72, 0.22), transparent 34%),
    radial-gradient(circle at 82% 16%, rgba(9, 197, 255, 0.18), transparent 28%),
    radial-gradient(circle at 60% 66%, rgba(213, 255, 86, 0.14), transparent 24%),
    linear-gradient(180deg, #fff8ef 0%, var(--bg) 48%, #f1ece5 100%);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

main {
  overflow: clip;
}

section[id] {
  scroll-margin-top: 8rem;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    linear-gradient(rgba(9, 19, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(9, 19, 31, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 100%);
}

body::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 25%);
  z-index: -1;
}

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

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

body.has-cursor button,
body.has-cursor a,
body.has-cursor input,
body.has-cursor textarea,
body.has-cursor select {
  cursor: none;
}

.section {
  position: relative;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 7rem 2rem;
}

.section--tight {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.glass {
  background: linear-gradient(180deg, var(--surface-strong), rgba(255, 255, 255, 0.42));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.eyebrow {
  margin: 0 0 1rem;
  color: rgba(9, 19, 31, 0.64);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  gap: 0.8rem;
  max-width: 900px;
  margin-bottom: 3rem;
}

.section-heading h2,
.education__panel h2,
.contact__panel h2 {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.97;
}

.section-heading span {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--coral);
}

.page-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  z-index: 60;
  background: rgba(9, 19, 31, 0.08);
}

.page-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--aqua), var(--lime));
  transform-origin: left center;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 120;
  transition: opacity 0.3s ease;
}

.cursor--dot {
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: rgba(9, 19, 31, 0.88);
  box-shadow: 0 0 18px rgba(9, 19, 31, 0.12);
  transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.cursor--ring {
  width: 84px;
  height: 84px;
  margin-left: -42px;
  margin-top: -42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, rgba(255, 103, 72, 0.24), rgba(9, 197, 255, 0.26), rgba(213, 255, 86, 0.18));
  box-shadow: 0 20px 54px rgba(9, 19, 31, 0.14);
  filter: blur(2px);
  mix-blend-mode: multiply;
  transition: width 0.3s ease, height 0.3s ease, margin 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

body.has-cursor .cursor {
  opacity: 1;
}

body.has-hover-intent .cursor--dot {
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 8px rgba(9, 19, 31, 0.08);
}

body.has-hover-intent .cursor--ring {
  width: 112px;
  height: 112px;
  margin-left: -56px;
  margin-top: -56px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(255, 103, 72, 0.4), rgba(33, 79, 255, 0.24), rgba(9, 197, 255, 0.45));
  box-shadow: 0 26px 72px rgba(255, 103, 72, 0.22);
}

.app-intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.94), rgba(246, 240, 232, 0.98));
  z-index: 110;
}

.app-intro__inner {
  width: min(100% - 3rem, 560px);
  text-align: center;
}

.app-intro__eyebrow,
.app-intro__status {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.75rem;
  color: rgba(9, 19, 31, 0.6);
}

.app-intro__line {
  height: 2px;
  margin: 1.2rem 0;
  background: linear-gradient(90deg, transparent, var(--coral), var(--aqua), transparent);
  animation: intro-line 1.2s ease-in-out infinite;
}

@keyframes intro-line {
  0%,
  100% {
    transform: scaleX(0.2);
    opacity: 0.4;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  overflow: hidden;
}

.backdrop__grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent 38%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.44), transparent 62%);
}

.backdrop__orb,
.backdrop__beam {
  position: absolute;
  filter: blur(14px);
}

.backdrop__orb {
  border-radius: 999px;
  opacity: 0.75;
  animation: drift 18s ease-in-out infinite alternate;
}

.backdrop__orb--one {
  inset: 12% auto auto -8%;
  width: 26rem;
  height: 26rem;
  background: radial-gradient(circle at center, rgba(255, 103, 72, 0.68), transparent 72%);
}

.backdrop__orb--two {
  inset: auto 8% 18% auto;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle at center, rgba(9, 197, 255, 0.45), transparent 72%);
  animation-duration: 24s;
}

.backdrop__orb--three {
  inset: 46% auto auto 48%;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle at center, rgba(213, 255, 86, 0.5), transparent 70%);
  animation-duration: 20s;
}

.backdrop__beam {
  width: 42rem;
  height: 10rem;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.62), transparent);
  transform: rotate(-26deg);
}

.backdrop__beam--one {
  inset: 10% auto auto 38%;
}

.backdrop__beam--two {
  inset: 64% auto auto -8%;
  transform: rotate(16deg);
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(4rem, -3rem, 0) scale(1.1);
  }
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  padding: 1rem 1.4rem;
  min-height: var(--header-height);
  z-index: 50;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 40px rgba(8, 19, 31, 0.08);
  z-index: -1;
}

.topbar__brand,
.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.topbar__brand,
.topbar__nav a,
.topbar__cta,
.btn,
.contact__item,
.inline-link,
.project-card {
  position: relative;
  isolation: isolate;
}

.topbar__brand,
.topbar__nav a,
.topbar__cta,
.btn,
.contact__item,
.project-card {
  overflow: hidden;
}

.topbar__brand {
  padding: 0.35rem 0.45rem 0.35rem 0.35rem;
  margin: -0.35rem;
  border-radius: 999px;
}

.topbar__brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: white;
  font-family: "Unbounded", sans-serif;
  font-size: 0.82rem;
}

.topbar__brand-text,
.topbar__nav a,
.topbar__cta {
  font-size: 0.94rem;
  font-weight: 700;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.topbar__nav a {
  padding: 0.55rem 0.78rem;
  border-radius: 999px;
  color: rgba(9, 19, 31, 0.7);
  white-space: nowrap;
  transition: color 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
}

.topbar__brand::after,
.topbar__nav a::after,
.topbar__cta::after,
.btn::after,
.contact__item::after,
.project-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.54), transparent 42%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  z-index: -1;
}

.topbar__cta {
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  background: rgba(9, 19, 31, 0.94);
  color: white;
}

.topbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.topbar__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.topbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.topbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.topbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding-top: max(3rem, calc(100vh * 0.06));
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
}

.hero__title {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(3.6rem, 9vw, 8.2rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.08em;
  max-width: 9.5ch;
}

.hero__title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  will-change: transform, opacity;
}

.hero__title-line--accent {
  display: block;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(100deg, var(--coral), var(--cobalt), var(--aqua));
  background-clip: text;
  -webkit-background-clip: text;
}

.hero__lede {
  max-width: 38rem;
  margin: 1.6rem 0 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.72;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: white;
  box-shadow: 0 18px 38px rgba(255, 103, 72, 0.32);
}

.btn--ghost {
  border: 1px solid rgba(9, 19, 31, 0.12);
  background: rgba(255, 255, 255, 0.54);
}

.hero__facts {
  display: grid;
  gap: 0.7rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  color: rgba(9, 19, 31, 0.76);
}

.hero__facts li {
  position: relative;
  padding-left: 1.5rem;
}

.hero__facts li::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 0;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--coral));
}

.hero__visual {
  position: relative;
  min-height: 42rem;
}

.hero__portrait-shell {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
}

.hero__portrait-frame {
  position: relative;
  width: min(100%, 34rem);
  aspect-ratio: 0.82;
  border-radius: 40px;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.3)),
    linear-gradient(135deg, rgba(255, 103, 72, 0.2), rgba(9, 197, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 34px 86px rgba(9, 19, 31, 0.14);
  overflow: hidden;
}

.hero__portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 32px;
  pointer-events: none;
}

.hero__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
}

.hero__orbit {
  position: absolute;
  border: 1px solid rgba(9, 19, 31, 0.12);
  border-radius: 50%;
  opacity: 0.5;
}

.hero__orbit--one {
  width: 38rem;
  height: 38rem;
}

.hero__orbit--two {
  width: 46rem;
  height: 46rem;
}

.hero__card {
  position: absolute;
  display: grid;
  gap: 0.3rem;
  min-width: 13rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 46px rgba(9, 19, 31, 0.12);
  backdrop-filter: blur(18px);
}

.hero__card--top {
  top: 8%;
  left: -1rem;
}

.hero__card--bottom {
  right: -1rem;
  bottom: 10%;
}

.hero__card-label,
.timeline-card__range,
.project-card__eyebrow,
.community-card__eyebrow,
.contact__label,
.capability__index {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(9, 19, 31, 0.52);
}

.hero__card strong {
  font-size: 1rem;
}

.hero__cards-row {
  display: contents;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.metric {
  min-height: 13rem;
  padding: 1.4rem;
  border-radius: 24px;
}

.metric__value {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
}

.metric__label {
  margin: 1rem 0 0;
  line-height: 1.6;
  color: var(--muted);
}

.band {
  overflow: hidden;
}

.band__track,
.lab__marquee-track {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: max-content;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  animation: marquee 22s linear infinite;
}

.band__track span,
.lab__marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.band__track span::after,
.lab__marquee-track span::after {
  content: "•";
  color: var(--coral);
}

.band__track--alt,
.lab__marquee-track--alt {
  margin-top: 0.7rem;
  animation-direction: reverse;
  opacity: 0.55;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-40%);
  }
}

.story__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: 1.5rem;
  align-items: start;
}

.story {
  padding-bottom: 5rem;
}

.story__intro,
.timeline-card,
.capability,
.project-card,
.lab-card,
.community-card,
.education__panel,
.contact__panel {
  border-radius: var(--radius);
}

.story__intro {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  padding: 2rem;
  line-height: 1.78;
}

.story__timeline {
  display: grid;
  gap: 1rem;
}

.timeline-card {
  padding: 2rem;
}

.timeline-card h3,
.capability h3,
.project-card h3,
.lab-card h3,
.community-card h3 {
  margin: 0.4rem 0 0.8rem;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  letter-spacing: -0.04em;
}

.timeline-card__role {
  margin: 0 0 0.9rem;
  color: rgba(9, 19, 31, 0.58);
}

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

.capability {
  padding: 2rem;
}

.capability p,
.lab-card p,
.community-card p,
.project-card__body p,
.education__meta p,
.contact__panel p,
.story__intro p,
.timeline-card p {
  line-height: 1.7;
  color: var(--muted);
}

.capability ul,
.project-card__tags,
.contact__grid {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.capability ul {
  display: grid;
  gap: 0.7rem;
}

.capability li {
  padding-left: 1rem;
  position: relative;
}

.capability li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--cobalt);
}

.project-stack {
  display: grid;
  gap: 1.3rem;
}

.capabilities {
  padding-top: 5rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 1.4rem;
  padding: 1rem;
  overflow: hidden;
}

.project-card--reverse {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.project-card--reverse .project-card__media {
  order: 2;
}

.project-card__media {
  min-height: 24rem;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem 1.2rem 1.2rem 0.6rem;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.project-card__tags li {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
  font-weight: 700;
}

.project-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.3rem;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--ink);
}

.inline-link::after {
  content: "↗";
  font-size: 1rem;
}

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

.lab-card,
.community-card {
  min-height: 15rem;
  padding: 1.6rem;
}

.lab__marquee {
  overflow: hidden;
  margin-top: 2rem;
  padding: 1.3rem 0;
}

.education__panel,
.contact__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  padding: 2rem;
}

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

.contact__item {
  display: grid;
  gap: 0.5rem;
  padding: 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.contact__item strong {
  font-size: 1.05rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(9, 19, 31, 0.08);
  color: rgba(9, 19, 31, 0.58);
  font-size: 0.94rem;
}

.tilt-card {
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.js [data-reveal] {
  will-change: transform, opacity;
}

/* ── Lab demo shared ── */
.lab-card__demo {
  width: 100%;
  height: 140px;
  border-radius: 16px;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

/* ── Payment demo ── */
.lab-demo-payment {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
}

.demo-card {
  width: 100%;
  max-width: 200px;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  border-radius: 10px;
  padding: 12px 14px;
  color: white;
}

.demo-card__chip {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(135deg, #ffe08a, #c9a227);
  margin-bottom: 8px;
}

.demo-card__number {
  margin: 0;
  font-size: 0.7rem;
  font-family: "Space Grotesk", monospace;
  letter-spacing: 0.12em;
}

.demo-card__name {
  margin: 4px 0 0;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  opacity: 0.85;
}

.demo-card__status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-card__spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--aqua);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.demo-card__label {
  color: rgba(255,255,255,0.7);
  font-size: 0.68rem;
}

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

.lab-demo-payment .demo-card {
  animation: paymentPulse 3s ease-in-out infinite;
}

@keyframes paymentPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 20px rgba(255, 103, 72, 0.3); }
  50% { transform: scale(1.03); box-shadow: 0 8px 30px rgba(255, 103, 72, 0.5); }
}

/* ── Chat demo ── */
.lab-demo-chat {
  background: #0e1726;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}

.demo-chat__msg {
  max-width: 80%;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.65rem;
  line-height: 1.4;
  animation: chatSlideIn 0.5s ease both;
}

.demo-chat__msg--bot {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.demo-chat__msg--user {
  background: var(--cobalt);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
  animation-delay: 0.3s;
}

.demo-chat__msg:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-chat__typing {
  display: inline-flex;
  gap: 3px;
}

.demo-chat__typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.demo-chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.demo-chat__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ── 3D cube demo ── */
.lab-demo-3d {
  perspective: 400px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #1a1a2e, #0e0e1a);
}

.demo-cube {
  width: 60px;
  height: 60px;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeRotate 8s linear infinite;
}

.demo-cube__face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Unbounded", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  backface-visibility: visible;
}

.demo-cube__face--front  { background: rgba(255, 103, 72, 0.7); transform: translateZ(30px); }
.demo-cube__face--back   { background: rgba(33, 79, 255, 0.7); transform: rotateY(180deg) translateZ(30px); }
.demo-cube__face--left   { background: rgba(9, 197, 255, 0.7); transform: rotateY(-90deg) translateZ(30px); }
.demo-cube__face--right  { background: rgba(213, 255, 86, 0.7); color: #1a1a2e; transform: rotateY(90deg) translateZ(30px); }
.demo-cube__face--top    { background: rgba(255, 183, 3, 0.7); transform: rotateX(90deg) translateZ(30px); }
.demo-cube__face--bottom { background: rgba(255, 103, 72, 0.5); transform: rotateX(-90deg) translateZ(30px); }

@keyframes cubeRotate {
  0%   { transform: rotateX(0)    rotateY(0); }
  25%  { transform: rotateX(90deg)  rotateY(90deg); }
  50%  { transform: rotateX(180deg) rotateY(180deg); }
  75%  { transform: rotateX(270deg) rotateY(270deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* ── Audio visualizer demo ── */
.lab-demo-audio {
  background: linear-gradient(180deg, #0e1726, #162438);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 14px 16px;
}

.demo-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 80%;
}

.demo-bars span {
  width: 6px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--aqua), var(--cobalt));
  animation: barPulse 1s ease-in-out infinite alternate;
}

.demo-bars span:nth-child(1)  { height: 35%; animation-delay: 0.00s; }
.demo-bars span:nth-child(2)  { height: 55%; animation-delay: 0.08s; }
.demo-bars span:nth-child(3)  { height: 75%; animation-delay: 0.16s; }
.demo-bars span:nth-child(4)  { height: 45%; animation-delay: 0.24s; }
.demo-bars span:nth-child(5)  { height: 90%; animation-delay: 0.32s; }
.demo-bars span:nth-child(6)  { height: 60%; animation-delay: 0.40s; }
.demo-bars span:nth-child(7)  { height: 80%; animation-delay: 0.48s; }
.demo-bars span:nth-child(8)  { height: 40%; animation-delay: 0.56s; }
.demo-bars span:nth-child(9)  { height: 70%; animation-delay: 0.64s; }
.demo-bars span:nth-child(10) { height: 50%; animation-delay: 0.72s; }
.demo-bars span:nth-child(11) { height: 85%; animation-delay: 0.80s; }
.demo-bars span:nth-child(12) { height: 55%; animation-delay: 0.88s; }
.demo-bars span:nth-child(13) { height: 65%; animation-delay: 0.96s; }
.demo-bars span:nth-child(14) { height: 45%; animation-delay: 1.04s; }
.demo-bars span:nth-child(15) { height: 75%; animation-delay: 1.12s; }

@keyframes barPulse {
  0%   { height: 20%; opacity: 0.6; }
  100% { height: 100%; opacity: 1; }
}

/* ── Terminal demo ── */
.lab-demo-terminal {
  background: #1a1a2e;
  display: flex;
  flex-direction: column;
  font-family: "Space Grotesk", monospace;
}

.demo-term__bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.06);
}

.demo-term__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.demo-term__bar span:nth-child(1) { background: #ff5f56; }
.demo-term__bar span:nth-child(2) { background: #ffbd2e; }
.demo-term__bar span:nth-child(3) { background: #27c93f; }

.demo-term__body {
  padding: 8px 10px;
  flex: 1;
}

.demo-term__body p {
  margin: 0 0 3px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

.demo-term__prompt {
  color: var(--aqua);
  font-weight: 700;
}

.demo-term__cmd {
  color: rgba(255,255,255,0.9);
}

.demo-term__out {
  color: #27c93f !important;
}

.demo-term__cursor {
  color: var(--aqua);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Rebranding demo ── */
.lab-demo-rebrand {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 14px;
  background: #f6f0e8;
}

.demo-rebrand__swatch {
  border-radius: 10px;
  animation: swatchShift 6s ease-in-out infinite;
}

.demo-rebrand__swatch--a {
  background: var(--coral);
  animation-delay: 0s;
}

.demo-rebrand__swatch--b {
  background: var(--aqua);
  animation-delay: 1.5s;
}

.demo-rebrand__swatch--c {
  background: var(--cobalt);
  animation-delay: 3s;
}

.demo-rebrand__swatch--d {
  background: var(--gold);
  animation-delay: 4.5s;
}

@keyframes swatchShift {
  0%, 100% { border-radius: 10px; transform: scale(1); }
  25% { border-radius: 50%; transform: scale(0.85); }
  50% { border-radius: 16px; transform: scale(1.05); }
  75% { border-radius: 4px; transform: scale(0.92); }
}

@media (hover: hover) and (pointer: fine) {
  .topbar__brand:hover::after,
  .topbar__nav a:hover::after,
  .topbar__cta:hover::after,
  .btn:hover::after,
  .contact__item:hover::after,
  .project-card:hover::after {
    opacity: 1;
  }

  .topbar__nav a:hover,
  .btn:hover,
  .contact__item:hover,
  .topbar__cta:hover,
  .project-card:hover {
    box-shadow: 0 34px 84px rgba(9, 19, 31, 0.15);
  }

  .btn:hover,
  .contact__item:hover,
  .topbar__cta:hover {
    transform: translateY(-3px);
  }

  .inline-link:hover {
    color: var(--coral);
  }
}

@media (max-width: 1180px) {
  .education__panel,
  .contact__panel,
  .project-card,
  .project-card--reverse {
    grid-template-columns: 1fr;
  }

  .project-card--reverse .project-card__media {
    order: initial;
  }

  .metrics,
  .capabilities__grid,
  .lab__grid,
  .community__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__visual {
    min-height: 34rem;
  }

  .hero__card--top {
    left: 0;
  }

  .hero__card--bottom {
    right: 0;
  }
}

@media (max-width: 980px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    align-items: start;
    gap: 1.5rem;
  }

  .hero__title {
    font-size: clamp(3rem, 8vw, 5.2rem);
  }

  .hero__lede {
    max-width: 30rem;
  }

  .hero__visual {
    min-height: 28rem;
  }

  .hero__portrait-frame {
    width: min(100%, 26rem);
  }

  .hero__orbit--one {
    width: 28rem;
    height: 28rem;
  }

  .hero__orbit--two {
    width: 34rem;
    height: 34rem;
  }

  .hero__card {
    min-width: 10rem;
    padding: 0.9rem 1rem;
  }
}

@media (max-width: 940px) {
  .story__layout {
    grid-template-columns: 1fr;
  }

  .story__intro {
    position: relative;
    top: 0;
  }
}

@media (max-width: 860px) {
  button,
  a,
  input,
  textarea,
  select {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto;
    align-items: center;
    align-content: center;
    width: min(100% - 1rem, var(--content-width));
    gap: 0.6rem;
    padding: 0.85rem 0.9rem;
    min-height: auto;
    margin-top: 0.5rem;
  }

  .topbar__brand { grid-column: 1; grid-row: 1; }
  .topbar__toggle { grid-column: 2; grid-row: 1; }
  .topbar__cta { grid-column: 3; grid-row: 1; }

  .topbar__toggle {
    display: flex;
  }

  .topbar__nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    width: 100%;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(9,19,31,0.08);
  }

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

  .topbar__nav a {
    padding: 0.75rem 1rem;
    border-radius: 14px;
  }

  .topbar__brand-text {
    font-size: 0.88rem;
  }

  .topbar__cta {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 1.2rem;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    min-height: auto;
  }

  .hero__visual {
    min-height: auto;
  }

  .section {
    padding-top: 4.6rem;
    padding-bottom: 4.6rem;
  }

  .hero,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .capabilities__grid,
  .lab__grid,
  .community__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

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

  .metric {
    min-height: 11rem;
  }

  .hero__title {
    max-width: 100%;
    font-size: clamp(2.9rem, 14vw, 4.6rem);
  }

  .hero__lede {
    max-width: none;
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero__portrait-frame {
    width: 100%;
  }

  .hero__orbit--one,
  .hero__orbit--two {
    display: none;
  }

  .hero__cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .hero__card {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    min-width: 0;
  }

  .metrics {
    margin-top: 2rem;
  }

  .project-card {
    padding: 0.8rem;
  }

  .project-card__media {
    min-height: 16rem;
  }

  .project-card__body {
    padding: 1.1rem;
  }

  .project-card__links {
    gap: 0.8rem;
  }

  .band__track,
  .lab__marquee-track {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 3.4rem;
  }

  .topbar {
    grid-template-columns: 1fr auto auto;
    gap: 0.65rem;
    padding: 0.75rem 0.8rem;
    min-height: auto;
  }

  .topbar__brand-mark {
    width: 2.2rem;
    height: 2.2rem;
  }

  .topbar__brand-text {
    font-size: 0.82rem;
  }

  .topbar__cta {
    width: auto;
    justify-content: center;
    padding: 0.68rem 0.92rem;
    font-size: 0.82rem;
  }

  .topbar__nav {
    gap: 0.35rem;
  }

  .topbar__nav a {
    padding: 0.45rem 0.65rem;
    font-size: 0.86rem;
  }

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

  .hero__title {
    font-size: clamp(2.6rem, 15vw, 3.8rem);
  }

  .hero__facts {
    gap: 0.9rem;
  }
}

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

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

  .app-intro {
    display: none;
  }
}