:root {
  color-scheme: light;
  --bg: #f5efe6;
  --bg-deep: #ead9c8;
  --panel: rgba(255, 250, 244, 0.74);
  --panel-strong: rgba(255, 255, 255, 0.56);
  --line: rgba(64, 38, 16, 0.14);
  --line-strong: rgba(196, 93, 45, 0.28);
  --text: #21140a;
  --muted: #65564a;
  --accent: #c45d2d;
  --accent-dark: #8f3c16;
  --accent-soft: #f0ae7d;
  --sage: #567365;
  --gold: #f0c977;
  --shadow: 0 24px 90px rgba(86, 49, 18, 0.15);
  --shadow-strong: 0 28px 68px rgba(86, 49, 18, 0.24);
  --radius-lg: 30px;
  --radius-md: 22px;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
  color: var(--text);
  font-family: "Trebuchet MS", "Aptos", "Microsoft YaHei", sans-serif;
  background:
    linear-gradient(180deg, #fdf9f4 0%, var(--bg) 52%, var(--bg-deep) 100%);
}

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

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

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.58;
  mix-blend-mode: multiply;
}

.ambient-orb-one {
  top: -120px;
  left: -100px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(196, 93, 45, 0.32), transparent 72%);
  animation: drift-orb-one 18s ease-in-out infinite;
}

.ambient-orb-two {
  top: 14%;
  right: -110px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(86, 115, 101, 0.34), transparent 74%);
  animation: drift-orb-two 22s ease-in-out infinite;
}

.ambient-orb-three {
  bottom: -180px;
  left: 28%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(240, 174, 125, 0.26), transparent 72%);
  animation: drift-orb-three 24s ease-in-out infinite;
}

.ambient-mesh {
  position: absolute;
  inset: 8% 5%;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(143, 60, 22, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 60, 22, 0.1) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 76%);
  animation: mesh-pan 20s linear infinite;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero,
.panel,
.footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero::before,
.panel::before,
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.34), transparent 28%),
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(255, 255, 255, 0.24), transparent 34%);
  pointer-events: none;
}

.hero::after,
.panel::after,
.footer::after {
  content: "";
  position: absolute;
  inset: auto -12% -44% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 93, 45, 0.16), transparent 70%);
  pointer-events: none;
}

.hero {
  min-height: 84vh;
  padding: 24px 28px 32px;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(84, 56, 32, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 56, 32, 0.14) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(circle at center, black 24%, transparent 76%);
  animation: grid-breathe 9s ease-in-out infinite;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 44px;
}

.brand {
  position: relative;
  letter-spacing: 0.2em;
  font-size: 0.92rem;
  font-weight: 800;
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  transition: color 0.28s ease, transform 0.28s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease;
}

.nav-links a:hover {
  color: var(--accent-dark);
  transform: translateY(-2px);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 32px;
  align-items: center;
  min-height: clamp(560px, 72vh, 740px);
}

.hero-content {
  max-width: 760px;
  padding: 14px 0 24px;
  animation: hero-enter 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow,
.section-tag,
.stage-label {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

h1 {
  max-width: 9ch;
  font-size: clamp(3.2rem, 7vw, 6.3rem);
  text-wrap: balance;
}

.hero-title-lock {
  display: inline-block;
}

h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.lead,
.panel-copy,
.section-note,
.feature-card p,
.message-card-content,
.roadmap-list,
.contact-card,
.stage-card p {
  font-size: 1rem;
  line-height: 1.78;
}

.lead {
  max-width: 56ch;
  margin: 24px 0 0;
  color: var(--muted);
}

.order-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-left: 10px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff8f2;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #de7b46);
  box-shadow: 0 12px 24px rgba(143, 60, 22, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.order-inline-button:hover,
.order-inline-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(143, 60, 22, 0.24);
}

.order-panel {
  width: min(100%, 680px);
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 12% 0%, rgba(240, 174, 125, 0.22), transparent 34%),
    rgba(255, 250, 244, 0.78);
  box-shadow: 0 22px 52px rgba(86, 49, 18, 0.14);
}

.order-panel[hidden] {
  display: none;
}

.order-panel-header,
.order-toolbar,
.cuisine-picker,
.order-result-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-panel-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.order-panel h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.order-kicker,
.order-result-label {
  display: block;
  margin: 0 0 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.order-result-title {
  display: block;
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.1rem;
}

.order-close,
.cuisine-button {
  border: 1px solid rgba(143, 60, 22, 0.16);
  color: var(--text);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.52);
  transition: transform 0.24s ease, border-color 0.24s ease, background-color 0.24s ease;
}

.order-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
}

.order-close:hover,
.cuisine-button:hover,
.cuisine-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
}

.order-toolbar {
  margin-bottom: 14px;
}

.order-toolbar .button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.cuisine-picker {
  margin-bottom: 16px;
}

.cuisine-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font: inherit;
}

.order-result {
  min-height: 92px;
  padding: 16px;
  border: 1px dashed rgba(143, 60, 22, 0.24);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
}

.order-dish-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(135deg, rgba(240, 201, 119, 0.34), rgba(240, 174, 125, 0.24));
}

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

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition:
    transform 0.28s ease,
    background-color 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.button::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -44%;
  width: 34%;
  height: 140%;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-24deg);
  transition: left 0.58s ease, opacity 0.28s ease;
}

.button:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(86, 49, 18, 0.14);
}

.button:hover::before {
  left: 114%;
  opacity: 1;
}

.button-primary {
  border-color: transparent;
  color: #fff8f2;
  background: linear-gradient(135deg, var(--accent), #de7b46);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.4);
}

.hero-marquee {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-marquee span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(143, 60, 22, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  color: var(--muted);
  animation: float-chip 6s ease-in-out infinite;
}

.hero-marquee span:nth-child(2) {
  animation-delay: -1.4s;
}

.hero-marquee span:nth-child(3) {
  animation-delay: -2.8s;
}

.hero-marquee span:nth-child(4) {
  animation-delay: -4.2s;
}

.hero-marquee span:nth-child(5) {
  animation-delay: -5.6s;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
}

.quick-stats li,
.feature-card,
.message-composer,
.message-card,
.message-state,
.contact-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.stage-card {
  position: absolute;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.quick-stats li,
.feature-card,
.message-card,
.contact-card,
.stage-card[data-tilt] {
  transform-style: preserve-3d;
  transform:
    perspective(1200px)
    rotateX(var(--rotate-x, 0deg))
    rotateY(var(--rotate-y, 0deg))
    translateY(0);
  transition:
    transform 0.25s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background-color 0.35s ease;
}

.quick-stats li::before,
.feature-card::before,
.message-card::before,
.contact-card::before,
.stage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(255, 255, 255, 0.54), transparent 40%);
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.quick-stats li:hover,
.feature-card:hover,
.message-card:hover,
.contact-card:hover,
.stage-card[data-tilt]:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-strong);
}

.quick-stats li:hover::before,
.feature-card:hover::before,
.message-card:hover::before,
.contact-card:hover::before,
.stage-card:hover::before {
  opacity: 1;
}

.quick-stats li {
  padding: 20px;
  animation: float-card 7s ease-in-out infinite;
}

.quick-stats li:nth-child(2) {
  animation-delay: -1.8s;
}

.quick-stats li:nth-child(3) {
  animation-delay: -3.6s;
}

.stat-value {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.stat-label {
  color: var(--muted);
}

.hero-stage {
  position: relative;
  min-height: 560px;
  animation: stage-enter 1.05s cubic-bezier(0.18, 0.8, 0.2, 1) both;
}

.avatar-showcase {
  position: absolute;
  top: 28px;
  right: 58px;
  left: auto;
  bottom: auto;
  z-index: 4;
  width: clamp(112px, 22%, 148px);
  padding: 8px;
  border: 1px solid rgba(143, 60, 22, 0.16);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 40px rgba(86, 49, 18, 0.14);
  backdrop-filter: blur(12px);
  animation: float-avatar 7.2s ease-in-out infinite;
}

.stage-card-main {
  top: 152px;
  right: 20px;
  z-index: 2;
  width: min(100%, 430px);
  min-height: 210px;
  padding: 30px;
  border-radius: 30px;
  animation: float-main 8s ease-in-out infinite;
}

.stage-card-main h3 {
  margin-bottom: 14px;
  font-size: 2.1rem;
}

.stage-card-note {
  padding: 14px 18px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.stage-card-note-top {
  top: 36px;
  left: 26px;
  z-index: 5;
  animation: float-note-top 7s ease-in-out infinite;
}

.stage-card-note-bottom {
  right: 44px;
  bottom: 86px;
  z-index: 5;
  animation: float-note-bottom 8.5s ease-in-out infinite;
}

.avatar-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(143, 60, 22, 0.14);
  border-radius: 18px;
  background-color: rgba(255, 250, 244, 0.9);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    url("./assets/avatar.jpg"),
    url("./assets/avatar-placeholder.svg");
  background-position: center center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

@keyframes float-avatar {
  0%,
  100% {
    transform:
      perspective(1200px)
      rotateX(var(--rotate-x, 0deg))
      rotateY(var(--rotate-y, 0deg))
      translateY(0);
  }

  50% {
    transform:
      perspective(1200px)
      rotateX(var(--rotate-x, 0deg))
      rotateY(var(--rotate-y, 0deg))
      translateY(-9px);
  }
}

.pulse-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.pulse-strip span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transform-origin: left center;
  animation: pulse-strip 1.8s ease-in-out infinite;
}

.pulse-strip span:nth-child(2) {
  animation-delay: -0.2s;
}

.pulse-strip span:nth-child(3) {
  animation-delay: -0.4s;
}

.pulse-strip span:nth-child(4) {
  animation-delay: -0.6s;
}

.orbit-ring {
  position: absolute;
  top: 48px;
  right: 6px;
  width: 430px;
  height: 430px;
  border: 1px dashed rgba(143, 60, 22, 0.28);
  border-radius: 50%;
  animation: spin-ring 26s linear infinite;
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 28px;
  border: 1px solid rgba(86, 115, 101, 0.12);
}

.orbit-ring::after {
  inset: 72px;
  border-color: rgba(196, 93, 45, 0.14);
}

.orbit-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(143, 60, 22, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 12px 28px rgba(86, 49, 18, 0.1);
  color: var(--muted);
  animation: spin-ring-reverse 26s linear infinite;
}

.orbit-pill-a {
  top: -4px;
  left: 48%;
}

.orbit-pill-b {
  top: 48%;
  right: -16px;
}

.orbit-pill-c {
  bottom: 18px;
  left: 12%;
}

.orbit-pill-d {
  top: 16%;
  left: -18px;
}

.scroll-indicator {
  position: absolute;
  left: 28px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: drift-down 2.7s ease-in-out infinite;
}

.scroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(196, 93, 45, 0.34);
  animation: scroll-pulse 2s ease-out infinite;
}

.panel,
.footer {
  margin-top: 22px;
  padding: 30px;
}

.two-column,
.split-panel,
.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr);
  gap: 24px;
  align-items: start;
}

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

.contact-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.contact-preference-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(143, 60, 22, 0.16);
  border-radius: 999px;
  color: var(--accent-dark);
  font-family: "Trebuchet MS", "Aptos", "Microsoft YaHei", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  background: rgba(255, 255, 255, 0.52);
}

.section-note {
  max-width: 24ch;
  margin: 0;
  color: var(--muted);
}

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

.feature-card {
  padding: 22px;
}

.feature-card {
  min-height: 220px;
}

.feature-card-offset {
  margin-top: 28px;
}

.card-index {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.84rem;
  letter-spacing: 0.18em;
}

.message-board {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 16px;
  align-items: stretch;
}

.message-composer {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.message-label {
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.message-composer textarea {
  width: 100%;
  min-height: 168px;
  padding: 16px;
  resize: vertical;
  border: 1px solid rgba(143, 60, 22, 0.16);
  border-radius: 20px;
  outline: none;
  color: var(--text);
  font: inherit;
  line-height: 1.72;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  overflow-wrap: anywhere;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.message-composer textarea:focus {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.54),
    0 0 0 4px rgba(196, 93, 45, 0.12);
}

.message-composer textarea:disabled {
  cursor: wait;
  opacity: 0.72;
}

.message-form-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
}

.message-feedback {
  min-height: 1.6em;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.message-feedback[data-state="error"],
.message-count[data-state="error"],
.message-state[data-state="error"] {
  color: #9b2c17;
}

.message-feedback[data-state="success"] {
  color: var(--sage);
}

.message-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(143, 60, 22, 0.14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.9rem;
  font-weight: 700;
}

.message-form-footer .button {
  min-height: 44px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
  box-shadow: none;
}

.message-list {
  position: relative;
  min-width: 0;
  height: clamp(440px, 54vh, 620px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(143, 60, 22, 0.18);
  border-radius: var(--radius-md);
  background:
    linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 250, 244, 0.22)),
    radial-gradient(circle at 50% 50%, rgba(240, 201, 119, 0.2), transparent 28%),
    linear-gradient(120deg, rgba(86, 115, 101, 0.1), transparent 48%),
    rgba(255, 250, 244, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 0 60px rgba(86, 49, 18, 0.08);
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: none;
}

.message-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.message-list.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.message-list.is-dragging .message-card {
  pointer-events: none;
}

.message-list::before {
  content: "";
  position: sticky;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin-bottom: -100%;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(143, 60, 22, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 60, 22, 0.1) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at center, black 24%, transparent 78%);
  pointer-events: none;
}

.message-cloud {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}

.message-card,
.message-state {
  padding: 20px;
}

.message-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  width: var(--message-card-width, 178px);
  min-height: var(--message-card-min-height, 132px);
  padding: 18px 16px 14px;
  overflow: hidden;
  border-color: var(--note-edge, rgba(143, 60, 22, 0.2));
  border-radius: 8px 7px 10px 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.3), transparent 42%),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 27px,
      rgba(143, 60, 22, 0.08) 28px
    ),
    var(--note-paper, #fff3bd);
  box-shadow:
    0 16px 26px rgba(86, 49, 18, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.36) inset;
  transform: translate(-50%, -50%) rotate(var(--note-rotate, 0deg));
  transform-origin: 50% 50%;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.message-card::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 54px;
  height: 15px;
  border-radius: 3px;
  opacity: 0.42;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 1px 4px rgba(86, 49, 18, 0.12);
  transform: translateX(-50%) rotate(var(--tape-rotate, 0deg));
  pointer-events: none;
}

.message-card::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 10px;
  left: 12px;
  height: 1px;
  opacity: 0.42;
  background: rgba(143, 60, 22, 0.16);
  pointer-events: none;
}

.message-card:hover,
.message-card:focus-within {
  border-color: var(--note-edge, var(--line-strong));
  box-shadow:
    0 22px 36px rgba(86, 49, 18, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.42) inset;
  transform: translate(-50%, -50%) rotate(var(--note-rotate, 0deg)) translateY(-4px) scale(1.02);
}

.message-card:hover::before,
.message-card:focus-within::before {
  opacity: 0.55;
}

.message-card-content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  margin: 0;
  max-height: 5.5em;
  overflow: hidden;
  color: #2b1a0c;
  font-size: 0.96rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-card-time {
  position: relative;
  z-index: 1;
  align-self: flex-end;
  color: rgba(54, 35, 18, 0.58);
  font-size: 0.76rem;
  line-height: 1.35;
}

.message-state {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  color: var(--muted);
  text-align: center;
}

.roadmap-list {
  margin: 0;
  padding-left: 22px;
}

.roadmap-list li + li {
  margin-top: 12px;
}

.contact-card {
  padding: 24px;
}

.contact-card p {
  margin: 0;
  line-height: 1.82;
}

.contact-card p + p {
  margin-top: 10px;
}

.admin-page {
  min-height: 100vh;
}

.admin-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1280px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.admin-panel {
  padding: 30px;
}

.admin-header,
.admin-toolbar,
.admin-token-row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.admin-header {
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-home-link {
  flex: 0 0 auto;
}

.admin-token-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.admin-token-row {
  align-items: stretch;
}

.admin-token-row input {
  flex: 1 1 280px;
  min-width: 0;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.7);
  outline: none;
  transition: border-color 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.admin-token-row input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(196, 93, 45, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.admin-token-row .button,
.admin-toolbar .button {
  flex: 0 0 auto;
  min-height: 50px;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.admin-toolbar {
  margin: 22px 0 18px;
}

.admin-status {
  margin: 0;
  min-height: 1.6em;
  color: var(--muted);
}

.admin-status[data-state="success"] {
  color: var(--sage);
}

.admin-status[data-state="error"] {
  color: var(--accent-dark);
}

.access-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.5);
}

.access-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: fixed;
}

.access-table th,
.access-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(64, 38, 16, 0.08);
  vertical-align: top;
  text-align: left;
  font-size: 0.94rem;
  line-height: 1.55;
}

.access-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  background: rgba(250, 242, 233, 0.96);
}

.access-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.36);
}

.access-method,
.access-status {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.access-path {
  overflow-wrap: anywhere;
}

.access-empty {
  padding: 28px 16px;
  color: var(--muted);
  text-align: center;
}

[data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 42px, 0) scale(0.985);
  transition:
    opacity 0.82s cubic-bezier(0.18, 0.8, 0.2, 1),
    transform 0.82s cubic-bezier(0.18, 0.8, 0.2, 1),
    filter 0.82s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stage-enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float-card {
  0%,
  100% {
    transform:
      perspective(1200px)
      rotateX(var(--rotate-x, 0deg))
      rotateY(var(--rotate-y, 0deg))
      translateY(0);
  }

  50% {
    transform:
      perspective(1200px)
      rotateX(var(--rotate-x, 0deg))
      rotateY(var(--rotate-y, 0deg))
      translateY(-8px);
  }
}

@keyframes float-chip {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes float-main {
  0%,
  100% {
    transform:
      perspective(1200px)
      rotateX(var(--rotate-x, 0deg))
      rotateY(var(--rotate-y, 0deg))
      translateY(0);
  }

  50% {
    transform:
      perspective(1200px)
      rotateX(var(--rotate-x, 0deg))
      rotateY(var(--rotate-y, 0deg))
      translateY(-14px);
  }
}

@keyframes float-note-top {
  0%,
  100% {
    transform:
      perspective(1200px)
      rotateX(var(--rotate-x, 0deg))
      rotateY(var(--rotate-y, 0deg))
      translateY(0);
  }

  50% {
    transform:
      perspective(1200px)
      rotateX(var(--rotate-x, 0deg))
      rotateY(var(--rotate-y, 0deg))
      translateY(-10px);
  }
}

@keyframes float-note-bottom {
  0%,
  100% {
    transform:
      perspective(1200px)
      rotateX(var(--rotate-x, 0deg))
      rotateY(var(--rotate-y, 0deg))
      translateY(0);
  }

  50% {
    transform:
      perspective(1200px)
      rotateX(var(--rotate-x, 0deg))
      rotateY(var(--rotate-y, 0deg))
      translateY(12px);
  }
}

@keyframes pulse-strip {
  0%,
  100% {
    transform: scaleX(0.55);
    opacity: 0.48;
  }

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

@keyframes spin-ring {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-ring-reverse {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

@keyframes drift-down {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@keyframes scroll-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 93, 45, 0.34);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(196, 93, 45, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(196, 93, 45, 0);
  }
}

@keyframes grid-breathe {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(1);
  }

  50% {
    opacity: 0.2;
    transform: scale(1.02);
  }
}

@keyframes mesh-pan {
  from {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(18px, -14px, 0);
  }

  to {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes drift-orb-one {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(34px, 26px, 0);
  }
}

@keyframes drift-orb-two {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-36px, 26px, 0);
  }
}

@keyframes drift-orb-three {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(22px, -38px, 0);
  }
}

@media (max-width: 1100px) {
  .hero-layout,
  .quick-stats,
  .feature-grid,
  .message-board,
  .two-column,
  .split-panel,
  .footer {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-stage {
    min-height: 460px;
    margin-top: 10px;
  }

  .avatar-showcase {
    top: 24px;
    right: 24px;
    width: 132px;
  }

  .stage-card-main {
    top: 142px;
    right: 0;
  }

  .orbit-ring {
    right: auto;
    left: 18px;
  }

  .feature-card-offset {
    margin-top: 0;
  }

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

  h1 {
    max-width: 10ch;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 16px), var(--page-width));
    padding: 16px 0 36px;
  }

  .hero,
  .panel,
  .footer {
    padding: 18px;
    border-radius: 24px;
  }

  .topbar {
    margin-bottom: 30px;
  }

  .brand {
    letter-spacing: 0.16em;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-stage {
    min-height: clamp(380px, 88vw, 460px);
    margin-top: 10px;
    padding-top: 0;
    overflow: visible;
  }

  .avatar-showcase {
    position: absolute;
    top: 20px;
    right: 18px;
    z-index: 5;
    width: clamp(94px, 27vw, 122px);
    padding: 7px;
    margin-left: 0;
  }

  .stage-card-main {
    position: absolute;
    top: clamp(120px, 22vw, 152px);
    right: 14px;
    left: 14px;
    z-index: 4;
    width: auto;
    min-height: 200px;
    margin: 0;
    padding: 24px;
  }

  .stage-card-main h3 {
    font-size: 1.8rem;
  }

  .stage-card-note {
    width: max-content;
    max-width: min(52vw, 190px);
    padding: 11px 14px;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
  }

  .stage-card-note-top {
    top: 56px;
    left: 4px;
    z-index: 6;
    justify-self: auto;
  }

  .stage-card-note-bottom {
    right: 14px;
    bottom: 34px;
    z-index: 6;
    justify-self: auto;
  }

  .orbit-ring {
    top: 34px;
    right: auto;
    left: 18px;
    width: min(calc(100% - 46px), 316px);
    height: auto;
    aspect-ratio: 1 / 1;
    margin: 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-layout,
  .two-column,
  .split-panel,
  .footer {
    gap: 20px;
  }

  .admin-shell {
    width: min(calc(100% - 16px), 1280px);
    padding: 16px 0 36px;
  }

  .admin-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .admin-header,
  .admin-toolbar,
  .admin-token-row {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar {
    gap: 12px;
  }

  .admin-token-row .button,
  .admin-toolbar .button {
    width: 100%;
  }

  .hero-content {
    padding: 8px 0 0;
  }

  .lead {
    margin-top: 18px;
  }

  .order-inline-button {
    margin: 10px 0 0;
  }

  .order-panel {
    padding: 16px;
  }

  .order-toolbar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .button {
    width: 100%;
  }

  .quick-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
    gap: 10px;
  }

  .quick-stats li {
    padding: 16px 12px;
  }

  .stat-value {
    font-size: 1.6rem;
  }

  .stat-label {
    font-size: 0.82rem;
    line-height: 1.45;
    word-break: break-word;
  }

  .section-heading {
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
  }

  .section-note {
    max-width: none;
  }

  .feature-card,
  .message-composer,
  .message-card,
  .message-state,
  .contact-card {
    min-height: 0;
    padding: 20px;
  }

  .feature-grid,
  .message-list {
    gap: 14px;
  }

  .message-list {
    height: min(60vh, 520px);
    min-height: 360px;
  }

  .message-card {
    min-height: var(--message-card-min-height, 128px);
    padding: 16px 14px 12px;
  }

  .message-state {
    min-height: 100%;
    padding: 20px;
  }

  .feature-grid .feature-card {
    width: calc(100% - 18px);
  }

  .feature-grid .feature-card:nth-child(odd) {
    justify-self: start;
  }

  .feature-grid .feature-card:nth-child(even) {
    justify-self: end;
  }

  .feature-card-offset {
    margin-top: 16px;
  }

  .message-form-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .message-count {
    justify-self: start;
  }

  .footer {
    gap: 16px;
  }

  .scroll-indicator {
    position: static;
    margin-top: 16px;
  }

  .hero-content h1 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 11vw, 4.1rem);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(1.85rem, 8vw, 2.7rem);
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(calc(100% - 12px), var(--page-width));
    padding: 12px 0 28px;
  }

  .hero,
  .panel,
  .footer {
    padding: 16px;
    border-radius: 20px;
  }

  .topbar {
    margin-bottom: 24px;
  }

  .brand {
    font-size: 0.84rem;
  }

  .nav-links {
    gap: 10px 14px;
    font-size: 0.95rem;
  }

  .hero-marquee {
    gap: 8px;
  }

  .hero-marquee span {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .hero-stage {
    min-height: clamp(336px, 102vw, 410px);
  }

  .stage-card-main {
    top: 102px;
    right: 10px;
    left: 10px;
    min-height: 184px;
    padding: 20px;
  }

  .stage-card-main h3 {
    font-size: 1.55rem;
  }

  .avatar-showcase {
    top: 12px;
    right: 12px;
    width: clamp(84px, 29vw, 102px);
    padding: 6px;
  }

  .stage-card-note {
    max-width: 46vw;
    padding: 10px 12px;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
  }

  .stage-card-note-top {
    top: 48px;
    left: 0;
  }

  .stage-card-note-bottom {
    right: 8px;
    bottom: 28px;
  }

  .quick-stats,
  .feature-grid,
  .message-list {
    gap: 12px;
  }

  .quick-stats li,
  .feature-card,
  .message-composer,
  .message-card,
  .message-state,
  .contact-card {
    padding: 16px;
  }

  .admin-shell {
    width: min(calc(100% - 12px), 1280px);
    padding: 12px 0 28px;
  }

  .admin-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .access-table th,
  .access-table td {
    padding: 12px 14px;
  }

  .message-list {
    height: min(58vh, 430px);
    min-height: 340px;
  }

  .message-card {
    min-height: var(--message-card-min-height, 126px);
    padding: 15px 13px 11px;
  }

  .message-state {
    min-height: 100%;
    padding: 16px;
  }

  .feature-grid .feature-card {
    width: calc(100% - 12px);
  }

  .feature-card-offset {
    margin-top: 12px;
  }

  .orbit-ring {
    top: 28px;
    left: 8px;
    width: min(calc(100% - 26px), 276px);
  }

  .orbit-pill {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .hero-content h1 {
    max-width: 11ch;
    font-size: clamp(2.18rem, 10.8vw, 3.5rem);
  }

  .scroll-indicator {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }
}

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

  [data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
  }
}
