:root {
  --ink: #11100e;
  --ink-2: #1b1814;
  --ink-3: #272119;
  --surface: rgba(39, 33, 25, 0.88);
  --surface-2: rgba(17, 16, 14, 0.64);
  --band: rgba(198, 70, 50, 0.045);
  --band-2: rgba(122, 160, 168, 0.055);
  --paper: #f3ead8;
  --paper-2: #d8c8a7;
  --muted: #aa9b80;
  --cinnabar: #c64632;
  --cinnabar-2: #e07155;
  --gold: #d2aa61;
  --clay: #8a4a2f;
  --ramie: #c7d0aa;
  --bamboo: #627650;
  --porcelain: #7aa0a8;
  --line: rgba(243, 234, 216, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --section-y: clamp(3rem, 6vw, 5.6rem);
  color-scheme: dark;
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(198, 70, 50, 0.16), transparent 30rem),
    radial-gradient(circle at 82% 20%, rgba(210, 170, 97, 0.1), transparent 32rem),
    linear-gradient(180deg, #100f0e 0%, #18140f 48%, #0f0e0d 100%);
  color: var(--paper);
  min-width: 320px;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.32;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(243, 234, 216, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 234, 216, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  transition: background 220ms ease, border-color 220ms ease, padding 220ms ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  padding-block: 0.72rem;
  background: rgba(17, 16, 14, 0.86);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-seal {
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--cinnabar);
  border: 1px solid rgba(243, 234, 216, 0.32);
  box-shadow: inset 0 0 0 2px rgba(17, 16, 14, 0.28);
  font-family: "SimSun", "Noto Serif SC", serif;
  font-size: 1.45rem;
  font-weight: 900;
}

.brand strong,
.section-heading h2,
.hero h1,
.gallery-copy h3,
.quiz-panel h3,
.modal h2 {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.8vw, 1.5rem);
  color: var(--paper-2);
  font-size: 0.9rem;
}

.desktop-nav a {
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--paper);
  border-color: var(--cinnabar);
}

.icon-button {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(17, 16, 14, 0.5);
  color: var(--paper);
  border-radius: 999px;
}

.icon-button:hover {
  border-color: rgba(210, 170, 97, 0.7);
  color: var(--gold);
}

.menu-toggle {
  display: none;
}

.mobile-nav {
  position: fixed;
  top: 4.7rem;
  left: 1rem;
  right: 1rem;
  z-index: 45;
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.8rem;
  background: rgba(17, 16, 14, 0.94);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  max-width: calc(100vw - 2rem);
  overflow-x: hidden;
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  padding: 0.75rem;
  border: 1px solid rgba(243, 234, 216, 0.12);
  color: var(--paper-2);
  text-align: center;
}

.mobile-nav a.is-active {
  color: var(--paper);
  border-color: rgba(198, 70, 50, 0.72);
  background: rgba(198, 70, 50, 0.18);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 7.5rem clamp(1rem, 5vw, 4rem) 2rem;
  overflow: hidden;
}

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

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 16, 14, 0.92) 0%, rgba(17, 16, 14, 0.68) 38%, rgba(17, 16, 14, 0.18) 75%),
    linear-gradient(0deg, rgba(17, 16, 14, 0.98) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  animation: hero-rise 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  margin: 0 0 0.8rem;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 8ch;
  font-size: clamp(3.6rem, 8vw, 7.2rem);
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--paper-2);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.9;
}

.hero-actions,
.gallery-copy .primary-action {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 2rem;
}

.primary-action,
.secondary-action {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.25rem;
  border: 1px solid rgba(210, 170, 97, 0.7);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(198, 70, 50, 0.88);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.secondary-action {
  background: rgba(17, 16, 14, 0.48);
  color: var(--paper-2);
  border-color: rgba(243, 234, 216, 0.24);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.full-width {
  width: 100%;
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 760px);
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
  animation: hero-rise 760ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-source {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.65rem 1rem;
  color: var(--muted);
  background: rgba(17, 16, 14, 0.72);
  font-size: 0.78rem;
}

.hero-panel div {
  padding: 1rem;
  background: rgba(17, 16, 14, 0.68);
  backdrop-filter: blur(10px);
}

.hero-panel strong,
.dashboard-grid strong {
  display: block;
  color: var(--gold);
  font-size: clamp(1.7rem, 4vw, 3rem);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

.hero-panel span,
.dashboard-grid span,
.dashboard-grid small {
  color: var(--muted);
  font-size: 0.78rem;
}

.section {
  padding: var(--section-y) clamp(1rem, 5vw, 4rem);
  scroll-margin-top: 5.8rem;
}

.archive-section,
.split-section,
.dashboard-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 22%),
    linear-gradient(90deg, var(--band), transparent 58%);
  border-block: 1px solid rgba(243, 234, 216, 0.06);
}

.gallery-section,
.shop-section,
.proof-section {
  background:
    linear-gradient(180deg, rgba(122, 160, 168, 0.035), transparent 30%),
    linear-gradient(90deg, transparent, var(--band-2));
}

.section-heading {
  max-width: 820px;
  margin: 0 0 1.5rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 1.05;
}

.section-heading p:last-child {
  max-width: 42rem;
  margin: 0.8rem 0 0;
  color: var(--paper-2);
  line-height: 1.85;
}

.compact-heading {
  max-width: 980px;
}

.intro-band {
  position: relative;
  z-index: 3;
  margin-top: -3.5rem;
  padding-top: 0;
  padding-bottom: var(--space-5);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 16, 14, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.feature-strip article {
  min-height: 10.5rem;
  padding: 1.45rem;
  border-right: 1px solid var(--line);
}

.feature-strip article:last-child {
  border-right: 0;
}

.feature-strip i,
.learning-cards i,
.admin-panel h3::before,
.ai-panel h3::before {
  color: var(--gold);
}

.feature-strip h2,
.learning-cards h3,
.product-card h3,
.archive-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
}

.feature-strip p,
.learning-cards p,
.product-card p,
.archive-card p,
.treasure-card p {
  color: var(--paper-2);
  line-height: 1.75;
  margin: 0;
}

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

.treasure-card {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.treasure-card img {
  width: 100%;
  height: 17.5rem;
  object-fit: cover;
  transition: transform 700ms ease;
}

.treasure-card:hover img {
  transform: scale(1.04);
}

.treasure-content {
  padding: 1.3rem;
}

.treasure-card h3 {
  margin: 0 0 0.75rem;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.55rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.status-pill,
.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid rgba(210, 170, 97, 0.36);
  color: var(--gold);
  border-radius: 999px;
  font-size: 0.76rem;
}

.archive-tools {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.search-field,
.booking-form label,
.ai-panel label {
  display: grid;
  gap: 0.45rem;
  color: var(--paper-2);
  font-size: 0.86rem;
}

.search-field {
  position: relative;
}

.search-field i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 16, 14, 0.72);
  color: var(--paper);
  padding: 0.9rem 1rem;
}

.search-field input {
  padding-left: 2.8rem;
}

textarea {
  resize: vertical;
}

.filter-chips {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  max-width: 100%;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.result-count {
  margin: -0.35rem 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.filter-chips button,
.admin-list button,
.quiz-options button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--paper-2);
  background: rgba(243, 234, 216, 0.04);
  padding: 0.75rem 1rem;
}

.filter-chips button.is-active,
.admin-list button.is-active,
.quiz-options button.is-selected {
  color: var(--paper);
  background: rgba(198, 70, 50, 0.25);
  border-color: rgba(198, 70, 50, 0.82);
}

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

.archive-card,
.product-card,
.quiz-panel,
.learning-cards article,
.cart-panel,
.admin-panel,
.ai-panel,
.dashboard-grid article,
.proof-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(39, 33, 25, 0.88), rgba(27, 24, 20, 0.88));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.archive-card {
  padding: 1.25rem;
}

.archive-card h3 {
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.archive-card footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.archive-meta {
  display: grid;
  gap: 0.65rem;
  margin: 1.1rem 0 0;
}

.archive-meta div {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.archive-meta dt {
  color: var(--gold);
  font-size: 0.78rem;
}

.archive-meta dd {
  margin: 0;
  color: var(--paper-2);
  font-size: 0.88rem;
  line-height: 1.6;
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 1rem;
  align-items: stretch;
}

.gallery-stage {
  position: relative;
  min-height: 31rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 78%, rgba(198, 70, 50, 0.2), transparent 24%),
    radial-gradient(circle at 50% 46%, #272018 0%, #100d09 52%, #070605 100%);
}

.gallery-stage img,
.gallery-stage model-viewer {
  width: 100%;
  height: 100%;
  min-height: 31rem;
}

.gallery-stage img {
  object-fit: cover;
}

.gallery-stage model-viewer {
  display: block;
  position: relative;
  z-index: 1;
  background: transparent;
  --poster-color: transparent;
}

.gallery-stage model-viewer[hidden],
.gallery-stage img[hidden],
.model-viewer-tools[hidden],
.gallery-object-badge[hidden] {
  display: none;
}

.gallery-object-badge {
  position: absolute;
  z-index: 4;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.72rem;
  border: 1px solid rgba(210, 170, 97, 0.42);
  border-radius: 999px;
  color: #f6dfb5;
  background: rgba(17, 16, 14, 0.78);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.gallery-object-badge svg,
.model-viewer-tools svg {
  width: 1rem;
  height: 1rem;
}

.model-viewer-tools {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: max-content;
  max-width: calc(100% - 7.5rem);
  padding: 0.42rem 0.48rem 0.42rem 0.78rem;
  border: 1px solid rgba(243, 234, 216, 0.16);
  border-radius: 999px;
  color: var(--paper-2);
  background: rgba(9, 8, 6, 0.78);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
  font-size: 0.78rem;
}

.model-viewer-tools span,
.model-viewer-tools button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.model-viewer-tools button {
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(210, 170, 97, 0.34);
  border-radius: 999px;
  color: var(--paper);
  background: rgba(198, 70, 50, 0.2);
  cursor: pointer;
}

.model-viewer-tools button:hover,
.model-viewer-tools button:focus-visible {
  border-color: var(--gold);
  background: rgba(198, 70, 50, 0.34);
}

.gallery-stage img.is-swapping-next {
  animation: gallery-slide-next 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gallery-stage img.is-swapping-prev {
  animation: gallery-slide-prev 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gallery-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(circle at 50% 48%, transparent 38%, rgba(0, 0, 0, 0.52) 100%);
  pointer-events: none;
}

.gallery-control {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

[data-gallery-prev] {
  left: 1rem;
}

[data-gallery-next] {
  right: 1rem;
}

.gallery-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 16, 14, 0.64);
}

.gallery-copy h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.gallery-copy p:not(.eyebrow) {
  color: var(--paper-2);
  line-height: 1.9;
}

.gallery-meta {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  color: var(--muted);
}

.experience-layout,
.shop-layout,
.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.quiz-panel {
  padding: clamp(1.2rem, 3vw, 2.2rem);
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.score {
  color: var(--gold);
  font-weight: 700;
}

.quiz-bar {
  height: 0.45rem;
  margin-top: 1rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(243, 234, 216, 0.08);
}

.quiz-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
  transition: width 220ms ease;
}

.quiz-panel h3,
.quiz-fieldset legend {
  margin: 1.6rem 0;
  font-size: clamp(1.5rem, 3.6vw, 3rem);
  line-height: 1.2;
  font-family: "Noto Serif SC", "Songti SC", serif;
  color: var(--paper);
}

.quiz-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

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

.quiz-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper-2);
  background: rgba(243, 234, 216, 0.04);
  cursor: pointer;
}

.quiz-option input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0 0 0 1rem;
  accent-color: var(--cinnabar);
}

.quiz-option span {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem 0.85rem 0.7rem;
  line-height: 1.55;
}

.quiz-option:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.quiz-option.is-selected {
  color: var(--paper);
  background: rgba(198, 70, 50, 0.25);
  border-color: rgba(198, 70, 50, 0.82);
}

.quiz-option.is-correct {
  border-color: rgba(199, 208, 170, 0.78);
}

.quiz-result {
  grid-column: 1 / -1;
  padding: 1.2rem;
  border: 1px solid rgba(210, 170, 97, 0.42);
  border-radius: var(--radius);
  background: rgba(210, 170, 97, 0.08);
}

.quiz-result strong {
  display: block;
  color: var(--gold);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

.quiz-result span {
  display: block;
  margin-top: 0.55rem;
  color: var(--paper-2);
}

.quiz-feedback {
  min-height: 3rem;
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  color: var(--paper-2);
}

.quiz-feedback.is-correct {
  border-color: rgba(199, 208, 170, 0.62);
  background: rgba(98, 118, 80, 0.18);
  color: var(--ramie);
}

.quiz-feedback.is-wrong {
  border-color: rgba(224, 113, 85, 0.58);
  background: rgba(198, 70, 50, 0.12);
  color: #ffd1c8;
}

.learning-cards {
  display: grid;
  gap: 1rem;
  position: static !important;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.learning-cards.is-outside {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.learning-cards article,
.cart-panel,
.admin-panel,
.ai-panel {
  padding: 1.25rem;
}

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

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
}

.product-body {
  padding: 1rem;
}

.product-card h3 {
  margin-top: 0;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
}

.price {
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 800;
}

.small-action {
  min-width: 2.4rem;
  min-height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(210, 170, 97, 0.55);
  color: var(--paper);
  background: transparent;
  border-radius: 999px;
  padding: 0 0.75rem;
  white-space: nowrap;
}

.small-action .add-label {
  font-size: 0.82rem;
}

.small-action.is-added {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.cart-panel {
  position: sticky;
  top: 6rem;
}

.cart-panel.is-updated {
  animation: cart-pulse 720ms ease;
}

.cart-panel h3,
.admin-panel h3,
.ai-panel h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.cart-items {
  display: grid;
  gap: 0.8rem;
  min-height: 8rem;
}

.cart-empty {
  min-height: 8rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.55rem;
  border: 1px dashed rgba(243, 234, 216, 0.14);
  border-radius: var(--radius);
  color: var(--muted);
}

.cart-empty i {
  color: var(--gold);
}

.cart-line {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.7rem;
}

.cart-line img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius);
  object-fit: cover;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1.2rem 0;
  color: var(--muted);
}

.cart-total strong {
  color: var(--gold);
  font-size: 1.45rem;
}

.contact-hints {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--paper-2);
  font-size: 0.85rem;
}

.contact-hints span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.reply-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

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

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 16, 14, 0.48);
}

.booking-form .wide {
  grid-column: span 2;
}

.form-result {
  align-self: center;
  margin: 0;
  color: var(--ramie);
}

.field-error {
  min-height: 1rem;
  color: #ffad9d;
  font-size: 0.78rem;
}

.booking-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
}

.booking-note button,
.footer-links button {
  border: 0;
  padding: 0;
  color: var(--gold);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.booking-success {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  margin-top: 1rem;
  padding: 1.4rem;
  border: 1px solid rgba(199, 208, 170, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(98, 118, 80, 0.2), rgba(17, 16, 14, 0.72));
}

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

.success-steps div {
  display: grid;
  gap: 0.4rem;
  padding: 0.8rem;
  border: 1px solid rgba(199, 208, 170, 0.28);
  border-radius: var(--radius);
  background: rgba(199, 208, 170, 0.07);
}

.success-steps dt {
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(199, 208, 170, 0.18);
  color: var(--ramie);
  font-weight: 800;
}

.success-steps dd {
  margin: 0;
  color: var(--paper-2);
  font-size: 0.86rem;
  line-height: 1.55;
}

.booking-success[hidden] {
  display: none;
}

.success-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(199, 208, 170, 0.18);
  color: var(--ramie);
  border: 1px solid rgba(199, 208, 170, 0.42);
}

.booking-success h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.booking-success p:not(.eyebrow) {
  color: var(--paper-2);
  line-height: 1.8;
  margin: 0;
}

.success-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.1rem;
}

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

.demo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  margin-right: 0.55rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid rgba(210, 170, 97, 0.38);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(210, 170, 97, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
}

.dashboard-grid article {
  padding: 1.3rem;
}

.dashboard-grid strong {
  margin: 0.8rem 0;
  font-variant-numeric: tabular-nums;
}

.admin-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-preview {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper-2);
  min-height: 12rem;
  line-height: 1.75;
}

.ai-panel {
  display: grid;
  gap: 0.9rem;
}

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

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

.proof-grid article {
  overflow: hidden;
  min-height: 12rem;
  padding: 0;
}

.proof-grid img {
  width: 100%;
  height: 10.5rem;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.proof-grid span {
  display: block;
  margin: 1.2rem 1.25rem 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
}

.proof-grid strong {
  display: block;
  margin: 0.8rem 1.25rem;
  color: var(--paper);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.proof-grid p {
  margin: 0 1.25rem 1.25rem;
  color: var(--paper-2);
  line-height: 1.75;
}

.service-grid article {
  min-height: 13rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(39, 33, 25, 0.82), rgba(17, 16, 14, 0.72));
}

.service-grid i {
  color: var(--gold);
}

.service-grid h3 {
  margin: 1rem 0 0.6rem;
  font-size: 1.2rem;
}

.service-grid p {
  color: var(--paper-2);
  line-height: 1.8;
  margin: 0;
}

.ai-output {
  white-space: pre-wrap;
  overflow: auto;
  min-height: 11rem;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.28);
  color: var(--paper-2);
  line-height: 1.7;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 1.1fr) auto;
  align-items: start;
  gap: 1.5rem;
  padding: 2.2rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--paper-2);
}

.site-footer p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.site-footer a {
  color: var(--gold);
}

.footer-info a {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.footer-info,
.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-info span,
.copyright {
  color: var(--muted);
  font-size: 0.84rem;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
}

.modal {
  width: min(720px, calc(100% - 2rem));
  border: 1px solid rgba(210, 170, 97, 0.42);
  border-radius: var(--radius);
  padding: 0;
  background: var(--ink-2);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.modal-body {
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.modal-body img {
  width: 100%;
  max-height: 20rem;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.modal-body h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.modal-body p,
.modal-body li {
  color: var(--paper-2);
  line-height: 1.85;
}

.modal-body h3 {
  margin: 1.15rem 0 0.5rem;
}

.checkout-list {
  display: grid;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.checkout-list div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--paper-2);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 80;
  transform: translate(-50%, 120%);
  max-width: min(92vw, 520px);
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(210, 170, 97, 0.45);
  border-radius: 999px;
  background: rgba(17, 16, 14, 0.92);
  color: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.mobile-bottom-bar {
  display: none;
}

.mobile-bottom-bar.is-hidden {
  pointer-events: none;
  transform: translateY(calc(100% + 1rem));
  opacity: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    background 180ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translate3d(0, 34px, 0);
}

[data-reveal="right"] {
  transform: translate3d(0, 34px, 0);
}

[data-reveal="up"] {
  transform: translate3d(0, 34px, 0);
}

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

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translate3d(-24px, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes gallery-slide-next {
  from {
    opacity: 0.28;
    transform: translate3d(34px, 0, 0) scale(1.015);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes gallery-slide-prev {
  from {
    opacity: 0.28;
    transform: translate3d(-34px, 0, 0) scale(1.015);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes cart-pulse {
  0% {
    border-color: rgba(210, 170, 97, 0.38);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  }
  42% {
    border-color: rgba(210, 170, 97, 0.86);
    box-shadow: 0 0 0 4px rgba(210, 170, 97, 0.12), 0 22px 58px rgba(0, 0, 0, 0.28);
  }
  100% {
    border-color: var(--line);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  }
}

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

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

@media (max-width: 1120px) {
  .treasure-grid,
  .archive-list,
  .product-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-layout,
  .experience-layout,
  .shop-layout,
  .ops-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: static;
  }
}

@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: calc(4.7rem + 1rem) 1rem 5.8rem;
  }

  .section {
    padding-block: clamp(2.7rem, 12vw, 4.4rem);
  }

  .intro-band {
    margin-top: -2.2rem;
    padding-inline: 1rem;
  }

  .hero-media {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(17, 16, 14, 0.82) 0%, rgba(17, 16, 14, 0.5) 42%, rgba(17, 16, 14, 0.94) 100%),
      linear-gradient(90deg, rgba(17, 16, 14, 0.72), rgba(17, 16, 14, 0.35));
  }

  .hero-content {
    width: 100%;
    max-width: none;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(3rem, 16vw, 4.6rem);
    line-height: 1.02;
  }

  .hero-copy {
    max-width: none;
    font-size: 1rem;
    line-height: 1.75;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action {
    width: 100%;
  }

  .hero-panel,
  .feature-strip,
  .archive-tools,
  .dashboard-grid,
  .booking-form,
  .quiz-options,
  .service-grid,
  .proof-grid,
  .success-steps {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-panel div {
    padding: 0.85rem;
  }

  .treasure-grid,
  .archive-list,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    padding-bottom: 5.75rem;
  }

  .feature-strip article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .archive-tools {
    gap: 0.75rem;
  }

  .filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.35rem;
    scroll-snap-type: x proximity;
  }

  .filter-chips button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .feature-strip article:last-child {
    border-bottom: 0;
  }

  .treasure-card {
    min-height: auto;
  }

  .gallery-stage,
  .gallery-stage img,
  .gallery-stage model-viewer {
    min-height: 24rem;
  }

  .model-viewer-tools {
    max-width: calc(100% - 5.5rem);
  }

  .model-viewer-tools > span {
    display: none;
  }

  .booking-form .wide {
    grid-column: auto;
  }

  .booking-success {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding-bottom: 6.5rem;
  }

  input,
  select,
  textarea {
    font-size: 1rem;
  }

  .mobile-nav {
    grid-template-columns: 1fr;
    left: max(0.75rem, env(safe-area-inset-left));
    right: max(0.75rem, env(safe-area-inset-right));
    max-width: calc(100vw - 1.5rem);
    max-height: calc(100svh - 6rem);
    overflow-y: auto;
    overflow-x: hidden;
  }

  .mobile-bottom-bar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    z-index: 44;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(17, 16, 14, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-bottom-bar .primary-action,
  .mobile-bottom-bar .secondary-action {
    min-height: 2.75rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.9rem;
  }

  .booking-form {
    padding-bottom: 2rem;
  }
}
