:root {
  color-scheme: light;
  --ink: #171513;
  --muted: #625c55;
  --paper: #f7f2ea;
  --paper-2: #eee7dc;
  --line: rgba(35, 28, 22, 0.16);
  --amber: #c98235;
  --rose: #a94745;
  --teal: #26756d;
  --blue: #355f8e;
  --plum: #654b70;
  --dark: #171b22;
  --dark-soft: #242933;
  --white: #fffaf4;
  --shadow: 0 20px 70px rgba(26, 22, 18, 0.18);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

body::selection {
  background: #f0c48f;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px clamp(18px, 5vw, 64px);
  color: var(--white);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.site-header.is-solid {
  color: var(--ink);
  background: rgba(247, 242, 234, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
nav,
.hero-actions,
.hero-signals,
.phone-status,
.contact-row,
.persona-tabs,
.signal-board > div,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

nav {
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  font-size: 14px;
}

.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid currentColor;
  font-weight: 700;
  cursor: pointer;
}

.header-action {
  font-size: 14px;
}

.primary-action {
  color: #fffaf6;
  background: var(--ink);
  border-color: var(--ink);
}

.secondary-action {
  background: rgba(255, 250, 244, 0.14);
  color: var(--white);
  border-color: rgba(255, 250, 244, 0.55);
}

.secondary-action.dark {
  color: var(--ink);
  border-color: var(--line);
  background: #fffaf6;
}

.hero {
  position: relative;
  min-height: 96vh;
  overflow: hidden;
  display: grid;
  align-items: end;
  color: var(--white);
  background: #16181d;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(0.9) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.86), rgba(12, 12, 12, 0.42) 48%, rgba(12, 12, 12, 0.26)),
    linear-gradient(0deg, rgba(12, 12, 12, 0.9), rgba(12, 12, 12, 0) 46%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 60px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(54px, 9vw, 126px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 250, 244, 0.88);
  font-size: 21px;
  line-height: 1.65;
}

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

.hero .primary-action {
  background: #fffaf4;
  color: var(--ink);
  border-color: #fffaf4;
}

.hero-signals {
  gap: 16px;
  flex-wrap: wrap;
  margin: 54px 0 0;
}

.hero-signals div {
  min-width: 180px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 250, 244, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 244, 0.08);
  backdrop-filter: blur(16px);
}

.hero-signals dt {
  margin: 0;
  font-weight: 900;
  font-size: 24px;
}

.hero-signals dd {
  margin: 4px 0 0;
  color: rgba(255, 250, 244, 0.72);
}

.section-band {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 72px);
}

.section-copy {
  max-width: 760px;
}

.section-copy h2,
.film-text h2,
.guardian-copy h2,
.start h2 {
  margin: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.film-text p,
.guardian-copy p,
.start p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.origin {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(28px, 7vw, 96px);
  background: var(--paper);
}

.origin-quote {
  border-left: 4px solid var(--amber);
  padding-left: clamp(20px, 4vw, 42px);
}

blockquote {
  margin: 0;
  font-size: clamp(25px, 4vw, 43px);
  line-height: 1.35;
  font-weight: 850;
}

.origin-quote p {
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.film {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(26px, 6vw, 84px);
  align-items: center;
  background: var(--dark);
  color: var(--white);
}

.film-text p {
  color: rgba(255, 250, 244, 0.72);
}

.film-player {
  width: min(390px, 100%);
  margin-left: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  background: #090a0d;
}

.film-player video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.story-arc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.story-arc article {
  min-height: 320px;
  padding: clamp(28px, 5vw, 56px);
  background: var(--paper-2);
}

.story-arc span,
.steps span,
.timeline span {
  color: var(--rose);
  font-weight: 900;
}

.story-arc h3,
.steps h3,
.trust-grid strong,
.timeline h3,
.mascot-grid h3 {
  margin: 16px 0 10px;
  font-size: 24px;
}

.story-arc p,
.steps p,
.trust-grid p,
.timeline p,
.mascot-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.experience {
  background: #fffaf4;
}

.experience-grid {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  margin-top: 50px;
}

.phone-shell,
.presence-console,
.guardian-panel,
.starter,
.letter-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.phone-shell {
  padding: 14px;
}

.phone-status {
  justify-content: space-between;
  min-height: 34px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.contact-row {
  gap: 12px;
  padding: 12px 8px 16px;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--rose);
  font-weight: 900;
}

.contact-row p {
  margin: 2px 0 0;
  color: var(--teal);
  font-size: 13px;
}

.icon-button,
.chat-form button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.icon-button {
  margin-left: auto;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--teal);
  font-size: 18px;
}

.chat-window {
  height: 400px;
  overflow: auto;
  padding: 20px 6px 12px;
}

.bubble {
  width: fit-content;
  max-width: 82%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 18px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.bubble.them {
  color: var(--ink);
  background: var(--paper-2);
  border-bottom-left-radius: 6px;
}

.bubble.me {
  margin-left: auto;
  color: #fff;
  background: var(--amber);
  border-bottom-right-radius: 6px;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 10px;
  padding: 12px 4px 2px;
  border-top: 1px solid var(--line);
}

.chat-form input,
.starter input,
.starter textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: #fffaf4;
  color: var(--ink);
  outline-color: var(--amber);
}

.chat-form button {
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--ink);
  font-size: 20px;
}

.presence-console {
  padding: clamp(20px, 4vw, 34px);
}

.persona-tabs {
  gap: 8px;
  flex-wrap: wrap;
}

.persona-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.persona-tabs .is-active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.signal-board > div {
  min-height: 110px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
}

.signal-board div:nth-child(1) {
  background: var(--blue);
}

.signal-board div:nth-child(2) {
  background: var(--rose);
}

.signal-board div:nth-child(3) {
  background: var(--teal);
}

.signal-board span {
  font-size: 28px;
  font-weight: 900;
}

.memory-feed {
  display: grid;
  gap: 12px;
}

.memory-feed p {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.vault {
  background: var(--paper);
}

.steps,
.trust-grid,
.timeline,
.mascot-grid {
  display: grid;
  gap: 16px;
  margin-top: 44px;
}

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

.steps article,
.trust-grid article,
.timeline article,
.mascot-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 250, 244, 0.64);
}

.guardian {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 1fr);
  gap: clamp(26px, 6vw, 90px);
  background: #e7eef1;
}

.guardian-panel {
  padding: clamp(20px, 4vw, 36px);
}

.heartbeat {
  height: 120px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: end;
  padding: 18px;
  border-radius: 8px;
  background: var(--dark);
}

.heartbeat span {
  display: block;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(#f2c27f, #3ba498);
  animation: pulse 1.8s ease-in-out infinite;
}

.heartbeat span:nth-child(1) {
  height: 48px;
}

.heartbeat span:nth-child(2) {
  height: 82px;
  animation-delay: 0.2s;
}

.heartbeat span:nth-child(3) {
  height: 60px;
  animation-delay: 0.4s;
}

@keyframes pulse {
  50% {
    transform: scaleY(0.58);
    opacity: 0.72;
  }
}

.guardian-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 26px 0;
  list-style: none;
}

.guardian-list li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf6;
}

.guardian-list li.is-current {
  border-color: rgba(38, 117, 109, 0.5);
  background: #e5f2ee;
}

.guardian-list p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.mascots {
  background: #fbf6ee;
}

.mascot-grid {
  grid-template-columns: repeat(6, 1fr);
}

.mascot-grid article {
  min-height: 220px;
}

.mascot-grid span {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.42);
}

.lampie span {
  background: #e0a143;
}

.echo span {
  background: #b9c7d6;
}

.memo span {
  background: #9b6b4d;
}

.forever span {
  background: #654b70;
}

.guardian-m span {
  background: #355f8e;
}

.homing span {
  background: #26756d;
}

.trust {
  background: var(--dark);
  color: var(--white);
}

.trust .section-copy p,
.trust-grid p {
  color: rgba(255, 250, 244, 0.72);
}

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

.trust-grid article {
  background: var(--dark-soft);
  border-color: rgba(255, 250, 244, 0.14);
}

.roadmap {
  background: var(--paper);
}

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

.start {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(300px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  background: #fffaf4;
}

.starter {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 4vw, 34px);
}

.starter label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.starter textarea {
  resize: vertical;
}

.letter-preview {
  grid-column: 2;
  padding: 24px;
  min-height: 140px;
  color: var(--muted);
  line-height: 1.8;
}

.letter-preview strong {
  color: var(--ink);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px clamp(18px, 5vw, 72px);
  color: rgba(255, 250, 244, 0.72);
  background: #111318;
}

.site-footer strong {
  color: var(--white);
}

.site-footer a {
  color: #f0c48f;
}

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

@media (max-width: 1120px) {
  .mascot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 92vh;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .origin,
  .film,
  .experience-grid,
  .guardian,
  .start {
    grid-template-columns: 1fr;
  }

  .film-player {
    margin: 0;
  }

  .story-arc,
  .steps,
  .trust-grid,
  .timeline,
  .mascot-grid,
  .signal-board {
    grid-template-columns: 1fr;
  }

  .story-arc article {
    min-height: auto;
  }

  .letter-preview {
    grid-column: auto;
  }
}

@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;
  }
}
