:root {
  color-scheme: light;
  --ink: #121820;
  --ink-soft: #263544;
  --muted: #667684;
  --paper: #ffffff;
  --wash: #f5f8f8;
  --mist: #eef5f3;
  --line: #dce6e4;
  --teal: #0f766e;
  --teal-dark: #0b514d;
  --teal-soft: #e5f6f2;
  --amber: #f97316;
  --amber-soft: #fff2e5;
  --rose: #b4235f;
  --rose-soft: #fff0f6;
  --blue: #2563eb;
  --blue-soft: #edf4ff;
  --violet: #6d48c4;
  --violet-soft: #f2edff;
  --shadow: 0 24px 80px rgba(18, 24, 32, 0.15);
  --soft-shadow: 0 14px 38px rgba(18, 24, 32, 0.08);
}

/* DinoPilot live hardware workbench */
.dinopilot-live {
  padding-top: 28px;
  padding-bottom: 96px;
  background:
    linear-gradient(180deg, rgba(238, 245, 243, 0.72), rgba(255, 255, 255, 0) 420px),
    var(--paper);
}

.dinopilot-status {
  margin-bottom: 24px;
}

.dinopilot-status article {
  min-height: 108px;
  border-top: 3px solid var(--teal);
}

.dinopilot-status article:nth-child(2) {
  border-top-color: var(--blue);
}

.dinopilot-status article:nth-child(3) {
  border-top-color: var(--amber);
}

.dinopilot-status article:nth-child(4) {
  border-top-color: var(--violet);
}

.dinopilot-status strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.dinopilot-status small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.dinopilot-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.dinopilot-game-panel,
.dinopilot-console,
.key-panel,
.dinopilot-log-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
}

.dinopilot-game-panel {
  padding: 20px;
}

.dinopilot-console {
  position: sticky;
  top: 20px;
  padding: 20px;
}

.dinopilot-game-frame {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid #b8c9c8;
  border-radius: 6px;
  background: #f1f4f3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.dinopilot-game-frame iframe {
  display: block;
  width: 100%;
  height: clamp(280px, 36vw, 430px);
  min-height: 280px;
  border: 0;
  background: #f7f7f7;
}

.dinopilot-game-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.dinopilot-game-stats span {
  display: flex;
  min-height: 64px;
  flex-direction: column;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--wash);
}

.dinopilot-game-stats strong {
  color: var(--teal-dark);
  font-size: 22px;
  line-height: 1;
}

.dinopilot-game-stats small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.dinopilot-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0 20px;
}

.dinopilot-actions .button:first-child {
  grid-column: 1 / -1;
}

.dinopilot-config {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dinopilot-config label {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.dinopilot-config input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #bfcecc;
  border-radius: 5px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.dinopilot-config input:focus {
  outline: 3px solid rgba(37, 99, 235, 0.14);
  border-color: var(--blue);
}

.dinopilot-config p {
  margin: 2px 0 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.inline-field .button {
  white-space: nowrap;
}

.dinopilot-speed {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 18px;
}

.dinopilot-speed button {
  min-height: 38px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  background: var(--wash);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.dinopilot-speed button:hover,
.dinopilot-speed button.active {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.dinopilot-lower {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  margin-top: 20px;
}

.key-panel,
.dinopilot-log-panel {
  padding: 20px;
}

.dinopilot-key-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.dinopilot-key {
  display: flex;
  min-height: 96px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.dinopilot-key:hover,
.dinopilot-key:focus-visible {
  border-color: var(--teal);
  background: var(--teal-soft);
  transform: translateY(-2px);
}

.dinopilot-key strong {
  color: var(--teal-dark);
  font-size: 20px;
  line-height: 1;
}

.dinopilot-key span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.dinopilot-key small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.dinopilot-log-panel .log-list {
  min-height: 300px;
  max-height: 360px;
  margin-top: 14px;
  overflow: auto;
}

.dinopilot-log-panel .panel-head {
  align-items: center;
}

@media (max-width: 900px) {
  .dinopilot-shell,
  .dinopilot-lower {
    grid-template-columns: 1fr;
  }

  .dinopilot-console {
    position: static;
  }
}

@media (max-width: 560px) {
  .dinopilot-game-panel,
  .dinopilot-console,
  .key-panel,
  .dinopilot-log-panel {
    padding: 14px;
  }

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

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

  .dinopilot-actions {
    grid-template-columns: 1fr;
  }

  .dinopilot-actions .button:first-child {
    grid-column: auto;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

img,
video {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
  word-break: break-word;
}

h1 {
  max-width: 900px;
  margin: 12px 0 18px;
  font-size: clamp(44px, 7.6vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 14px 0 10px;
  font-size: 23px;
  line-height: 1.18;
  letter-spacing: 0;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  display: flex;
  width: min(1180px, calc(100% - 32px));
  min-height: 58px;
  transform: translateX(-50%);
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 48px rgba(18, 24, 32, 0.16);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-stats,
.crumbs,
.chip-row,
.quick-prompts,
.card-meta,
.project-actions,
.footer {
  display: flex;
  align-items: center;
}

/* Public resume page */
.resume-page {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(37, 99, 235, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

.resume-shell {
  display: grid;
  grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
  gap: 18px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 108px 0 32px;
}

.resume-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.resume-profile,
.resume-metrics,
.resume-floor-nav,
.resume-hero,
.resume-card,
.resume-education article,
.resume-contact-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.resume-profile {
  padding: 18px;
}

.resume-avatar-wrap {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.resume-avatar {
  width: 82px;
  height: 102px;
  border: 1px solid #cfd8d4;
  border-radius: 8px;
  object-fit: contain;
  object-position: top center;
  background: #e7eeec;
}

.resume-eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.resume-profile h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.resume-role {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.resume-contact {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.resume-contact-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 900;
}

.resume-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.resume-actions .button {
  min-width: 0;
  padding: 0 10px;
  text-align: center;
}

.resume-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.resume-metrics article {
  min-height: 88px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--wash);
}

.resume-metrics strong {
  display: block;
  color: var(--teal);
  font-size: 22px;
  line-height: 1;
}

.resume-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.resume-floor-nav {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.resume-floor-nav a {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.resume-floor-nav a:hover,
.resume-floor-nav a.active {
  border-color: rgba(15, 118, 110, 0.3);
  background: var(--teal-soft);
}

.resume-floor-nav a > span:first-child {
  display: grid;
  width: 35px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 6px;
  background: #edf2f0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.resume-floor-nav a > span:last-child {
  display: block;
  min-width: 0;
  width: auto;
}

.resume-floor-nav strong,
.resume-floor-nav small {
  display: block;
}

.resume-floor-nav strong {
  font-size: 13px;
  line-height: 1.2;
}

.resume-floor-nav small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.resume-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.resume-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.42fr);
  gap: 28px;
  min-height: 300px;
  align-items: end;
  overflow: hidden;
  padding: 34px;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), transparent 40%),
    linear-gradient(310deg, rgba(220, 103, 88, 0.11), transparent 44%),
    rgba(255, 255, 255, 0.94);
}

.resume-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.resume-hero h2 {
  max-width: 700px;
  margin-top: 8px;
  font-size: clamp(34px, 4vw, 58px);
}

.resume-hero-copy > p:last-child {
  max-width: 650px;
  margin: 15px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.resume-hero-note {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 5px;
  align-self: end;
  padding: 18px;
  border-left: 4px solid var(--amber);
  background: rgba(255, 255, 255, 0.64);
}

.resume-hero-note span,
.resume-hero-note small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.resume-hero-note strong {
  font-size: 20px;
}

.resume-section {
  padding: 38px;
}

.resume-section-tinted {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(238, 245, 243, 0.72);
}

.resume-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 44px;
  margin-bottom: 32px;
}

.resume-section-heading h2 {
  max-width: 670px;
  margin-top: 8px;
  font-size: clamp(28px, 3.5vw, 46px);
}

.resume-section-heading > p {
  max-width: 360px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.resume-skill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 36px;
  align-items: center;
}

.resume-skill-cloud,
.resume-cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.resume-skill-cloud span,
.resume-cert-tags span,
.resume-tags span {
  border: 1px solid #d9e2df;
  border-radius: 6px;
  padding: 9px 12px;
  background: #f7faf9;
  color: #3b514d;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.resume-radar {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1.1;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  overflow: hidden;
}

.resume-radar-ring,
.resume-radar-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(18deg);
  clip-path: polygon(50% 0, 100% 25%, 80% 100%, 20% 100%, 0 25%);
}

.resume-radar-ring {
  border: 1px solid #d7e0dc;
  background: transparent;
}

.ring-one { width: 78%; height: 78%; }
.ring-two { width: 48%; height: 48%; }

.resume-radar-shape {
  width: 72%;
  height: 72%;
  background: rgba(19, 130, 109, 0.22);
  border: 3px solid var(--teal);
}

.radar-label {
  position: absolute;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.label-top { top: 9px; left: 50%; transform: translateX(-50%); }
.label-right { top: 35%; right: 8px; }
.label-bottom-right { right: 20px; bottom: 12px; }
.label-bottom-left { bottom: 12px; left: 18px; }
.label-left { top: 35%; left: 8px; }

.resume-card-grid {
  display: grid;
  gap: 14px;
}

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

.resume-card {
  min-width: 0;
  padding: 19px;
}

.resume-card h3 {
  margin: 0;
  font-size: 18px;
}

.resume-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.resume-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.resume-tags span {
  padding: 4px 7px;
  font-size: 11px;
}

.resume-timeline {
  display: grid;
  gap: 11px;
}

.resume-timeline article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.resume-timeline article:last-child {
  border-bottom: 0;
}

.resume-timeline article > span {
  display: grid;
  width: 50px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 12px;
  font-weight: 900;
}

.resume-timeline h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.resume-timeline p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.resume-education {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.resume-education article {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.resume-education strong {
  font-size: 15px;
}

.resume-education span {
  color: var(--muted);
  font-size: 13px;
}

.resume-cert-tags {
  margin-bottom: 20px;
}

.resume-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.resume-cert-grid figure {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.resume-cert-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  object-fit: cover;
  background: #e8eeec;
}

.resume-cert-grid figcaption {
  display: grid;
  gap: 4px;
  padding: 11px;
}

.resume-cert-grid strong {
  font-size: 12px;
  line-height: 1.35;
}

.resume-cert-grid span {
  color: var(--muted);
  font-size: 11px;
}

.resume-contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 34px;
  background: var(--ink);
  color: #fff;
}

.resume-contact-band .section-kicker {
  color: #a7f3d0;
}

.resume-contact-band h2 {
  margin-top: 8px;
  font-size: clamp(26px, 3vw, 42px);
}

.resume-contact-band p:last-child {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.resume-contact-band a:not(.button) {
  color: #a7f3d0;
  font-weight: 900;
}

@media (max-width: 1040px) {
  .resume-shell {
    grid-template-columns: 1fr;
  }

  .resume-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .resume-profile {
    grid-row: span 2;
  }

  .resume-floor-nav {
    grid-column: 2;
  }

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

  .resume-skill-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
    gap: 26px;
  }
}

@media (max-width: 760px) {
  .resume-shell {
    width: calc(100% - 24px);
    padding-top: 182px;
  }

  .resume-sidebar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .resume-profile {
    grid-row: auto;
  }

  .resume-floor-nav {
    grid-column: auto;
  }

  .resume-hero,
  .resume-section {
    padding: 22px;
  }

  .resume-section-heading {
    margin-bottom: 22px;
  }

  .resume-hero,
  .resume-skill-layout,
  .resume-section-heading {
    grid-template-columns: 1fr;
  }

  .resume-skill-layout {
    gap: 28px;
  }

  .resume-section-heading {
    display: grid;
    gap: 12px;
  }

  .resume-hero {
    min-height: 0;
  }

  .resume-hero-note {
    align-self: start;
  }

  .resume-card-grid.three,
  .resume-education {
    grid-template-columns: 1fr;
  }

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

  .resume-contact-band {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 22px;
  }

  .resume-contact-band .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .resume-avatar-wrap,
  .resume-actions {
    grid-template-columns: 1fr;
  }

  .resume-avatar {
    width: 116px;
    height: 136px;
  }

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

  .resume-timeline article {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .resume-timeline article > span {
    width: 44px;
  }
}

.brand {
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.nav {
  gap: 2px;
}

.nav a {
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 10px;
  color: #33414e;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(15, 118, 110, 0.1);
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #08111a;
}

.hero picture,
.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero picture {
  display: block;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

.hero-shade {
  background:
    radial-gradient(circle at 72% 30%, rgba(15, 118, 110, 0.25), transparent 34%),
    linear-gradient(90deg, rgba(6, 13, 21, 0.97) 0%, rgba(6, 13, 21, 0.82) 36%, rgba(6, 13, 21, 0.28) 76%, rgba(6, 13, 21, 0.18) 100%),
    linear-gradient(0deg, rgba(6, 13, 21, 0.68) 0%, rgba(6, 13, 21, 0) 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 166px 0 122px;
  color: #fff;
}

.eyebrow,
.section-kicker,
.pill,
.crumbs,
.mini-label {
  margin: 0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: #a7f3d0;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.hero-actions,
.project-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.button.primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.26);
}

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

.button.ghost {
  border-color: rgba(255, 255, 255, 0.46);
  color: #fff;
}

.button.soft {
  background: var(--teal-soft);
  color: var(--teal);
}

.hero-stats {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: -60px auto 0;
  transform: translateY(50%);
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.hero-stats span {
  flex: 1 1 170px;
  min-height: 64px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--wash);
  color: #34414d;
  text-align: center;
}

.hero-stats strong,
.hero-stats small {
  display: block;
}

.hero-stats strong {
  font-size: 16px;
  font-weight: 900;
}

.hero-stats small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0;
}

.section-kicker {
  color: var(--teal);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
  padding-top: 142px;
}

.intro > p,
.section-heading > p,
.project-card p,
.directory-card p,
.detail-copy p,
.feature-panel p,
.contact p,
.ask-copy p,
.timeline-card p,
.resource-card p {
  color: var(--muted);
}

.intro > p,
.contact p,
.ask-copy p,
.detail-copy p {
  margin: 12px 0 0;
  font-size: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.section-heading > p {
  max-width: 380px;
  margin: 0;
}

.directory-grid,
.project-grid,
.resource-grid,
.timeline-grid,
.contact-grid {
  display: grid;
  gap: 16px;
}

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

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

.styledeck-card-visual {
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 28px;
  background:
    linear-gradient(0deg, rgba(16, 27, 24, .5), rgba(16, 27, 24, .08)),
    url("./assets/traveler.jpg") center / cover,
    radial-gradient(circle at 30% 35%, rgba(255, 152, 92, .32), transparent 24%),
    linear-gradient(135deg, #17211b, #2d3a31 58%, #101612);
  color: #f7f3e8;
}

.styledeck-card-mark {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: .08em;
}

.styledeck-card-lights {
  display: flex;
  gap: 12px;
}

.styledeck-card-lights i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 18px currentColor;
}

.styledeck-card-lights i:nth-child(1) { color: #ff8a65; background: #ff8a65; }
.styledeck-card-lights i:nth-child(2) { color: #ffd166; background: #ffd166; }
.styledeck-card-lights i:nth-child(3) { color: #9ad7c0; background: #9ad7c0; }
.styledeck-card-lights i:nth-child(4) { color: #9a8cff; background: #9a8cff; }
.styledeck-card-lights i:nth-child(5) { color: #f4f0dc; background: #f4f0dc; }

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

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

.directory-card,
.project-card,
.resource-card,
.contact-card,
.timeline-card,
.feature-panel,
.media-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.directory-card,
.project-card,
.resource-card,
.contact-card,
.timeline-card {
  display: grid;
  align-content: start;
  min-height: 258px;
  padding: 24px;
  overflow: hidden;
}

.directory-card.feature {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(229, 246, 242, 0.98), rgba(255, 255, 255, 0.96)),
    #fff;
}

.directory-card.dark-card {
  background:
    linear-gradient(135deg, rgba(17, 24, 32, 0.98), rgba(28, 39, 51, 0.96)),
    #111820;
  color: #fff;
}

.directory-card.dark-card p {
  color: rgba(255, 255, 255, 0.75);
}

.project-card {
  min-height: 312px;
  padding: 0;
}

.project-card img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
  background: #101820;
}

.project-card.contain img {
  object-fit: contain;
  background: #eef2f7;
}

.project-card > div {
  padding: 22px;
}

.project-card.feature {
  grid-column: span 2;
}

.project-card.feature img {
  height: 260px;
}

.card-meta {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.card-meta span {
  min-height: 30px;
  border-radius: 8px;
  padding: 5px 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  border-radius: 8px;
  padding: 0 10px;
}

.pill.teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.pill.amber {
  background: var(--amber-soft);
  color: #b45309;
}

.pill.rose {
  background: var(--rose-soft);
  color: var(--rose);
}

.pill.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.pill.violet {
  background: var(--violet-soft);
  color: var(--violet);
}

.pill.ink {
  background: #edf0f2;
  color: var(--ink);
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: #101820;
  color: #fff;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 26%, rgba(15, 118, 110, 0.28), transparent 32%),
    radial-gradient(circle at 20% 76%, rgba(249, 115, 22, 0.22), transparent 34%),
    linear-gradient(135deg, #09131c 0%, #152337 58%, #251829 100%);
}

.page-hero.video-hero::before {
  background:
    radial-gradient(circle at 74% 28%, rgba(180, 35, 95, 0.3), transparent 34%),
    radial-gradient(circle at 22% 76%, rgba(249, 115, 22, 0.2), transparent 32%),
    linear-gradient(135deg, #09131c 0%, #1d2436 56%, #2d1825 100%);
}

.page-hero.hardware-hero::before {
  background:
    radial-gradient(circle at 78% 30%, rgba(15, 118, 110, 0.32), transparent 34%),
    radial-gradient(circle at 22% 76%, rgba(37, 99, 235, 0.24), transparent 34%),
    linear-gradient(135deg, #08120f 0%, #17241f 56%, #151b2a 100%);
}

.page-hero.warm-hero::before {
  background:
    radial-gradient(circle at 72% 26%, rgba(249, 115, 22, 0.34), transparent 32%),
    linear-gradient(135deg, #121a25 0%, #253047 56%, #3a2330 100%);
}

.page-hero.game-hero::before {
  background:
    radial-gradient(circle at 76% 28%, rgba(109, 72, 196, 0.34), transparent 34%),
    radial-gradient(circle at 24% 78%, rgba(15, 118, 110, 0.22), transparent 36%),
    linear-gradient(135deg, #0c1020 0%, #20253e 56%, #1b2d2c 100%);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 176px;
  padding-bottom: 108px;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

.crumbs {
  gap: 8px;
  margin-bottom: 18px;
  color: #a7f3d0;
}

.crumbs a {
  color: #fff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 44px;
  align-items: start;
}

.detail-copy {
  position: sticky;
  top: 110px;
}

.chip-row {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip-row span {
  min-height: 36px;
  border-radius: 8px;
  padding: 7px 11px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.media-stack {
  display: grid;
  gap: 16px;
}

.media-card {
  overflow: hidden;
}

.media-card img,
.media-card video {
  width: 100%;
  display: block;
  background: #101820;
}

.media-card video {
  min-height: 420px;
  object-fit: contain;
}

.media-card.contain img {
  object-fit: contain;
  background: #eef2f7;
}

.media-card figcaption,
.media-caption {
  margin: 0;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
}

.feature-panel {
  padding: 28px;
}

.split-band {
  background: var(--wash);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 42px;
  align-items: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 178px;
  gap: 14px;
}

.gallery-tile {
  position: relative;
  margin: 0;
  border-radius: 8px;
  background: #101820;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.gallery-tile.tall {
  grid-row: span 2;
}

.gallery-tile.wide {
  grid-column: span 2;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-tile figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  min-height: 30px;
  border-radius: 8px;
  padding: 5px 10px;
  background: rgba(8, 15, 22, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.timeline-card {
  min-height: 228px;
}

.timeline-card.active {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(180deg, #fff 0%, #f3fbf8 100%);
}

.timeline-number {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.ask-band {
  background: #111923;
  color: #fff;
  border-top: 1px solid #263442;
  border-bottom: 1px solid #263442;
}

.ask-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 44px;
  align-items: center;
  padding: 88px 0;
}

.ask-copy .section-kicker {
  color: #a7f3d0;
}

.ask-copy p {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.74);
}

.ask-panel {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.ask-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.live-dot {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.12);
}

.ask-panel label {
  display: block;
  margin-bottom: 8px;
  color: #34414d;
  font-size: 14px;
  font-weight: 900;
}

.ask-panel textarea {
  width: 100%;
  min-height: 136px;
  resize: vertical;
  border: 1px solid #cbd8d5;
  border-radius: 8px;
  padding: 14px;
  color: var(--ink);
  font: inherit;
  line-height: 1.6;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(18, 24, 32, 0.04);
}

.ask-panel textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.quick-prompts {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.quick-prompts button {
  min-height: 34px;
  border: 1px solid #cbd8d5;
  border-radius: 8px;
  padding: 7px 10px;
  background: #f8fbfa;
  color: #34414d;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 900;
}

.quick-prompts button:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}

.ask-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.ask-toolbar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.ask-toolbar .button {
  min-width: 118px;
  cursor: pointer;
  font-family: inherit;
}

.ask-toolbar .button:disabled {
  background: #aab4bd;
  box-shadow: none;
  cursor: not-allowed;
}

.answer-box {
  min-height: 142px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #dbe4e2;
  border-radius: 8px;
  background: #f8fbfa;
  color: var(--muted);
}

.answer-box p {
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.answer-box.loading {
  border-color: #fed7aa;
  background: #fff7ed;
}

.answer-box.ready {
  border-color: #a7f3d0;
  background: #f0fdf7;
  color: #24423c;
}

.answer-box.error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.answer-label {
  display: inline-flex;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.contact {
  text-align: center;
}

.contact h2,
.contact p {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
}

.social-follow {
  max-width: 900px;
  margin: 42px auto 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  text-align: left;
}

.social-follow-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.social-follow-heading h3 {
  margin: 8px 0 0;
  font-size: 28px;
}

.social-follow-heading > p {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.social-follow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.social-qr-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.social-qr-copy {
  min-width: 0;
}

.social-qr-copy h3 {
  margin: 12px 0 8px;
  font-size: 20px;
}

.social-qr-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.social-qr-card img {
  display: block;
  width: 148px;
  height: 148px;
  justify-self: end;
  border: 1px solid #e4e9e7;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.social-qr-card small {
  grid-column: 1 / -1;
  margin-top: -4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.contact-grid {
  margin-top: 30px;
  text-align: left;
}

.contact-card {
  min-height: 148px;
  gap: 10px;
}

.contact-card strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}

.contact-card small {
  color: var(--muted);
  font-weight: 800;
}

.footer {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 30px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.live-dashboard {
  display: grid;
  gap: 22px;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.status-strip article,
.cockpit-panel,
.operations-panel,
.log-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.status-strip article {
  min-height: 132px;
  padding: 20px;
}

.status-strip strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
}

.status-strip small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 18px;
  align-items: stretch;
}

.demo-grid.lower {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.cockpit-panel,
.operations-panel,
.log-panel {
  padding: 24px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.panel-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
}

.cockpit-screen {
  position: relative;
  min-height: 430px;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(15, 118, 110, 0.35), transparent 28%),
    linear-gradient(180deg, rgba(8, 18, 15, 0.96), rgba(12, 19, 32, 0.98));
}

.scan-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(167, 243, 208, 0.18) 50%, transparent 100%);
  animation: scanMove 4.2s linear infinite;
}

.dino-avatar {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(42vw, 300px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(167, 243, 208, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle at 52% 38%, rgba(167, 243, 208, 0.32), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(15, 118, 110, 0.2), transparent 45%);
  box-shadow: 0 0 60px rgba(15, 118, 110, 0.36);
}

.dino-avatar span {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 42%;
  height: 30%;
  transform: translate(-50%, -50%);
  border-radius: 55% 60% 44% 50%;
  background: #a7f3d0;
  box-shadow:
    -66px 20px 0 -22px #a7f3d0,
    68px 14px 0 -24px #a7f3d0,
    32px -34px 0 -28px #a7f3d0;
}

.live-dashboard.is-connected .dino-avatar {
  animation: cockpitPulse 1.9s ease-in-out infinite;
}

.telemetry-card {
  position: absolute;
  min-width: 148px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(12px);
}

.telemetry-card small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.telemetry-card strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.telemetry-card.speed {
  left: 18px;
  top: 18px;
}

.telemetry-card.angle {
  right: 18px;
  bottom: 18px;
}

.track-lines {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  opacity: 0.42;
  perspective: 240px;
}

.track-lines i {
  border-left: 1px solid rgba(167, 243, 208, 0.32);
  transform: rotateX(58deg);
  transform-origin: bottom;
}

.control-pad,
.connect-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.control-pad {
  margin-top: 16px;
}

.control-pad button {
  flex: 1 1 120px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.control-pad button:hover {
  background: var(--teal-dark);
}

.connect-actions .button {
  cursor: pointer;
  font-family: inherit;
}

.wifi-card {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.wifi-card label {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 900;
}

.wifi-card input {
  min-height: 44px;
  border: 1px solid #cbd8d5;
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
}

.wifi-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.flow-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.flow-steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.flow-steps li::before {
  content: attr(data-step);
  display: grid;
  width: 34px;
  height: 34px;
  grid-row: span 2;
  place-items: center;
  border-radius: 8px;
  background: #edf0f2;
  color: var(--ink);
  font-weight: 900;
}

.flow-steps li.active {
  border-color: rgba(15, 118, 110, 0.3);
  background: var(--teal-soft);
}

.flow-steps li.active::before {
  background: var(--teal);
  color: #fff;
}

.flow-steps strong,
.flow-steps span {
  display: block;
}

.flow-steps span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.command-panel p:last-child {
  margin-bottom: 0;
}

.command-lane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr) 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 24px 0;
}

.command-lane span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.command-lane span.pulse {
  background: var(--teal);
  box-shadow: 0 0 0 8px rgba(15, 118, 110, 0.12);
}

.command-lane i {
  height: 2px;
  background: var(--teal);
}

.log-panel {
  background: #111923;
  color: #fff;
}

.log-panel .section-kicker {
  color: #a7f3d0;
}

.log-panel .button {
  min-height: 38px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.log-list {
  display: grid;
  gap: 8px;
}

.log-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.log-row span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 900;
}

.log-row strong {
  font-size: 14px;
}

.log-row.ok strong {
  color: #a7f3d0;
}

.log-row.warn strong {
  color: #fed7aa;
}

.pudding-stage-panel {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.pudding-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 44%, rgba(249, 115, 22, 0.34), transparent 22%),
    linear-gradient(145deg, #2d1f38, #151d36 52%, #0e433f);
  transition: background 300ms ease;
}

.pudding-stage[data-tone="happy"] {
  background:
    radial-gradient(circle at 50% 44%, rgba(251, 191, 36, 0.44), transparent 22%),
    linear-gradient(145deg, #44311d, #1d2c42 52%, #14534c);
}

.pudding-stage[data-tone="focus"] {
  background:
    radial-gradient(circle at 50% 44%, rgba(59, 130, 246, 0.42), transparent 22%),
    linear-gradient(145deg, #172b46, #111a32 52%, #102d38);
}

.pudding-stage[data-tone="romantic"] {
  background:
    radial-gradient(circle at 50% 44%, rgba(244, 114, 182, 0.42), transparent 22%),
    linear-gradient(145deg, #3f2035, #211b39 52%, #132f38);
}

.pudding-dashboard.is-playing .pudding-stage {
  animation: puddingGlow 2.1s ease-in-out infinite;
}

.pudding-orbit {
  position: absolute;
  left: 50%;
  top: 45%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(12deg);
}

.orbit-one {
  width: 330px;
  height: 190px;
}

.orbit-two {
  width: 390px;
  height: 250px;
  transform: translate(-50%, -50%) rotate(-22deg);
}

.pudding-face {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 220px;
  height: 174px;
  transform: translate(-50%, -50%);
  border-radius: 48% 52% 42% 44%;
  background: linear-gradient(150deg, #ffd49f, #e99a68 68%, #b75d54);
  box-shadow: 0 26px 52px rgba(5, 10, 24, 0.34);
}

.pudding-eye,
.pudding-cheek,
.pudding-mouth {
  position: absolute;
  display: block;
}

.pudding-eye {
  top: 58px;
  width: 18px;
  height: 24px;
  border-radius: 999px;
  background: #202537;
}

.pudding-eye.left {
  left: 66px;
}

.pudding-eye.right {
  right: 66px;
}

.pudding-cheek {
  top: 92px;
  width: 30px;
  height: 15px;
  border-radius: 999px;
  background: rgba(244, 114, 182, 0.36);
}

.pudding-cheek.left {
  left: 38px;
}

.pudding-cheek.right {
  right: 38px;
}

.pudding-mouth {
  left: 50%;
  bottom: 34px;
  width: 44px;
  height: 22px;
  border-bottom: 4px solid #612f43;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.pudding-wave {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  height: 70px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
}

.pudding-wave i {
  width: 8px;
  height: 26%;
  border-radius: 999px 999px 0 0;
  background: rgba(255, 255, 255, 0.72);
  transform-origin: bottom;
}

.pudding-dashboard.is-playing .pudding-wave i {
  animation: waveMove 850ms ease-in-out infinite alternate;
}

.pudding-wave i:nth-child(2) {
  animation-delay: 100ms;
}

.pudding-wave i:nth-child(3) {
  animation-delay: 180ms;
}

.pudding-wave i:nth-child(4) {
  animation-delay: 260ms;
}

.pudding-wave i:nth-child(5) {
  animation-delay: 340ms;
}

.pudding-wave i:nth-child(6) {
  animation-delay: 420ms;
}

.pudding-wave i:nth-child(7) {
  animation-delay: 500ms;
}

.pudding-stage-caption {
  position: absolute;
  left: 20px;
  top: 18px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(8, 15, 22, 0.36);
  color: #fff;
  backdrop-filter: blur(12px);
}

.pudding-stage-caption span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.pudding-stage-caption strong {
  font-size: 22px;
}

.pudding-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.player-copy {
  min-width: 0;
}

.player-copy strong,
.player-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.player-copy strong {
  margin-top: 5px;
  color: var(--ink);
  font-size: 18px;
}

.player-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.play-button {
  flex: 0 0 auto;
  min-width: 86px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--amber);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.mood-grid,
.light-switches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mood-choice,
.light-choice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.mood-choice {
  min-height: 84px;
  padding: 14px;
  text-align: left;
}

.mood-choice span,
.mood-choice small {
  display: block;
}

.mood-choice small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.mood-choice.active,
.light-choice.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.pudding-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.pudding-control-actions .button {
  cursor: pointer;
  font-family: inherit;
}

.light-control {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.light-control .panel-head {
  align-items: center;
  margin-bottom: 12px;
}

.light-control h3 {
  margin: 8px 0 0;
}

.light-control .panel-head > span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.light-choice {
  min-height: 42px;
  padding: 8px;
}

.pudding-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  margin: 24px 0;
}

.pudding-flow span {
  min-height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #edf0f2;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.pudding-flow span.active {
  background: var(--teal);
  color: #fff;
}

.pudding-flow i {
  height: 2px;
  background: var(--line);
}

@keyframes waveMove {
  from {
    height: 20%;
  }
  to {
    height: 88%;
  }
}

@keyframes puddingGlow {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.28) brightness(1.08);
  }
}

@keyframes scanMove {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(100%);
  }
}

@keyframes cockpitPulse {
  0%,
  100% {
    box-shadow: 0 0 60px rgba(15, 118, 110, 0.36);
  }
  50% {
    box-shadow: 0 0 86px rgba(167, 243, 208, 0.54);
  }
}

@media (max-width: 1040px) {
  .directory-grid,
  .project-grid,
  .resource-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .intro,
  .ask-inner,
  .split-inner,
  .detail-layout,
  .demo-grid,
  .demo-grid.lower {
    grid-template-columns: 1fr;
  }

  .detail-copy {
    position: static;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    transform: none;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 2px 4px;
  }

  .nav a {
    flex: 1 1 calc(33.333% - 4px);
    min-height: 32px;
    padding: 5px 6px;
    font-size: 12px;
    text-align: center;
  }

  .hero {
    min-height: 84vh;
  }

  .hero-image {
    object-position: 63% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(6, 13, 21, 0.98) 0%, rgba(6, 13, 21, 0.82) 62%, rgba(6, 13, 21, 0.5) 100%),
      linear-gradient(0deg, rgba(6, 13, 21, 0.66) 0%, rgba(6, 13, 21, 0) 50%);
  }

  .hero-content {
    width: calc(100% - 32px);
    max-width: 680px;
    padding: 154px 0 88px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(28px, 8.8vw, 38px);
  }

  .hero-copy,
  .intro > p,
  .contact p,
  .ask-copy p,
  .detail-copy p {
    font-size: 16px;
  }

  .hero-stats {
    width: calc(100% - 32px);
    max-width: 680px;
    margin-top: -78px;
  }

  .hero-stats span {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .section {
    width: calc(100% - 32px);
    max-width: 680px;
    padding: 64px 0;
  }

  .section > *,
  .hero-content > *,
  .directory-card,
  .project-card,
  .timeline-card,
  .resource-card,
  .contact-card {
    min-width: 0;
  }

  .hero-actions .button {
    flex: 1 1 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .intro {
    padding-top: 116px;
  }

  .directory-grid,
  .project-grid,
  .resource-grid,
  .timeline-grid,
  .contact-grid,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .directory-card.feature,
  .project-card.feature {
    grid-column: auto;
  }

  .project-card img,
  .project-card.feature img {
    height: 220px;
  }

  .page-hero-inner {
    padding-top: 168px;
    padding-bottom: 78px;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 154px;
  }

  .gallery-tile.tall,
  .gallery-tile.wide {
    grid-column: span 2;
  }

  .media-card video {
    min-height: 260px;
  }

  .ask-inner {
    gap: 28px;
    padding: 64px 0;
  }

  .ask-panel {
    padding: 18px;
  }

  .social-follow {
    padding: 18px;
  }

  .social-follow-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .social-follow-heading h3 {
    font-size: 24px;
  }

  .social-follow-grid {
    grid-template-columns: 1fr;
  }

  .social-qr-card {
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 14px;
  }

  .social-qr-card img {
    width: 128px;
    height: 128px;
  }

  .ask-panel-head,
  .ask-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ask-toolbar .button {
    width: 100%;
  }

  .cockpit-panel,
  .operations-panel,
  .log-panel,
  .pudding-stage-panel {
    padding: 18px;
  }

  .cockpit-screen {
    min-height: 330px;
  }

  .dino-avatar {
    width: 240px;
  }

  .telemetry-card {
    min-width: 122px;
  }

  .command-lane {
    grid-template-columns: 1fr;
  }

  .command-lane i {
    width: 2px;
    height: 28px;
    justify-self: center;
  }

  .pudding-stage {
    min-height: 330px;
  }

  .pudding-face {
    transform: translate(-50%, -50%) scale(0.82);
  }

  .pudding-player {
    align-items: stretch;
    flex-direction: column;
  }

  .play-button {
    width: 100%;
  }

  .pudding-flow {
    grid-template-columns: 1fr;
  }

  .pudding-flow i {
    width: 2px;
    height: 24px;
    justify-self: center;
  }

  .log-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer {
    padding: 24px;
  }
}
