@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: light;
  --bg: #f4f5f2;
  --surface: #ffffff;
  --surface-soft: #f8f8f5;
  --ink: #20231f;
  --muted: #697066;
  --line: #dfe3da;
  --accent: #24745a;
  --accent-dark: #14533f;
  --accent-soft: #dceee6;
  --warn: #9a6a1d;
  --shadow: 0 18px 55px rgba(38, 46, 35, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: #1e2a24;
  color: #f5f7f3;
  padding: 24px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 8px;
  background: #335242;
  font-weight: 800;
}

.brand-title {
  font-size: 17px;
  font-weight: 760;
}

.brand-subtitle {
  margin-top: 3px;
  color: rgba(245, 247, 243, 0.66);
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 6px;
  margin-top: 34px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 12px;
  background: transparent;
  color: rgba(245, 247, 243, 0.72);
  text-align: left;
  cursor: pointer;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.workspace {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

.status-strip {
  min-width: 120px;
  min-height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.status-strip.ok {
  border-color: #b8dbc9;
  color: var(--accent-dark);
  background: #eff8f3;
}

.status-strip.bad {
  border-color: #e3c0b8;
  color: #8a2d1f;
  background: #fbefed;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  padding: 16px;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  align-items: start;
}

.panel {
  min-height: 560px;
}

.home-view,
.module-view {
  min-height: 560px;
}

.hero-panel,
.placeholder-panel {
  min-height: 560px;
  padding: 28px;
}

.hero-panel h2,
.placeholder-panel h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
}

.home-grid,
.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

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

.home-card,
.placeholder-card {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-soft);
}

.home-card span,
.placeholder-card span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.home-card strong,
.placeholder-card strong {
  display: block;
  margin-top: 14px;
  font-size: 24px;
}

.muted-line {
  margin: 10px 0 0;
  color: var(--muted);
}

.commerce-source-line {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.commerce-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.commerce-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.42fr);
  gap: 14px;
  margin-bottom: 18px;
}

.overview-panel {
  min-height: 320px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.overview-heading,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.overview-heading {
  align-items: flex-start;
  min-height: 58px;
  margin-bottom: 16px;
}

.overview-heading h3,
.detail-filter h3,
.section-heading h3 {
  margin: 3px 0 0;
  font-size: 19px;
  line-height: 1.25;
}

.section-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 760;
}

.overview-note {
  max-width: 190px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.month-picker {
  display: grid;
  grid-template-columns: 104px 126px;
  gap: 8px;
}

.month-picker select {
  height: 36px;
  padding: 0 9px;
}

.overview-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  margin-bottom: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  color: var(--muted);
  font-size: 13px;
}

.overview-total strong {
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
}

.detail-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #eef1f7;
}

.filter-cluster {
  display: flex;
  align-items: center;
  gap: 9px;
}

.filter-label {
  flex: 0 0 auto;
  color: #5f665f;
  font-size: 13px;
  font-weight: 700;
}

.segment-group {
  display: flex;
  align-items: center;
  gap: 3px;
  border-radius: 7px;
  padding: 3px;
  background: #e5e9f2;
}

.segment-group button {
  min-width: 48px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  background: transparent;
  color: #626962;
  cursor: pointer;
}

.segment-group button.active {
  background: #ffffff;
  color: var(--accent-dark);
  font-weight: 760;
  box-shadow: 0 1px 4px rgba(24, 37, 30, 0.10);
}

.date-filter-cluster {
  margin-left: auto;
}

.date-selects {
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-selects label {
  display: block;
}

.date-selects select,
.date-selects input {
  width: auto;
  min-width: 84px;
  height: 36px;
  padding: 0 9px;
  background: #ffffff;
}

.date-selects input {
  min-width: 138px;
}

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

.section-heading {
  margin: 2px 0 10px;
}

.monthly-list,
.latest-daily {
  display: grid;
  gap: 10px;
}

.monthly-row {
  display: grid;
  gap: 10px;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0 11px;
}

.latest-game {
  display: grid;
  gap: 10px;
  min-height: 205px;
  border: 1px solid #d8dfd6;
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.monthly-row:last-child {
  border-bottom: 0;
}

.monthly-row.is-empty,
.latest-game.is-empty {
  opacity: 0.48;
}

.monthly-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.monthly-meta strong,
.latest-game strong {
  font-size: 16px;
}

.monthly-meta em,
.latest-game-head em {
  color: var(--ink);
  font-style: normal;
  font-size: 23px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.monthly-meta span,
.latest-game span,
.share-line span {
  color: var(--muted);
  font-size: 12px;
}

.monthly-value,
.latest-total {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.monthly-value small,
.latest-total small {
  color: var(--muted);
  font-size: 11px;
}

.monthly-bottom {
  display: grid;
  gap: 7px;
}

.monthly-bottom > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.monthly-bottom span {
  color: var(--muted);
  font-size: 12px;
}

.monthly-bottom strong {
  color: var(--accent-dark);
  font-size: 13px;
}

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

.latest-game-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.latest-bars {
  display: grid;
  gap: 13px;
  align-content: start;
}

.share-line {
  display: grid;
  gap: 7px;
}

.share-line > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.share-line strong {
  font-size: 13px;
}

.commerce-kpi {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.commerce-kpi span,
.commerce-kpi small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.commerce-kpi strong {
  display: block;
  margin: 10px 0;
  font-size: 28px;
  line-height: 1;
}

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

.commerce-panel {
  min-height: 320px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.commerce-panel.wide {
  grid-column: 1 / -1;
}

.panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-title h3 {
  margin: 0;
  font-size: 18px;
}

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

.bar-list,
.rank-list {
  display: grid;
  gap: 12px;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.bar-meta strong {
  color: var(--ink);
}

.bar-track {
  height: 9px;
  border-radius: 999px;
  background: #edf0e9;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.rank-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.rank-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rank-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 760;
  line-height: 1;
  text-align: center;
}

.rank-row .rank-no {
  display: grid;
  place-items: center;
  margin-top: 0;
}

.rank-row strong,
.rank-row span {
  display: block;
}

.rank-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.rank-row em {
  color: var(--ink);
  font-style: normal;
  font-weight: 760;
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) repeat(3, minmax(78px, auto));
  gap: 12px;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-name {
  font-size: 15px;
}

.summary-name span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.summary-stat {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.summary-stat span {
  color: var(--muted);
  font-size: 11px;
}

.summary-stat em {
  color: var(--ink);
  font-style: normal;
  font-size: 15px;
  font-weight: 760;
}

.account-summary-row {
  grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(90px, auto));
}

.commerce-table {
  overflow: auto;
}

.commerce-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.commerce-table th,
.commerce-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 10px;
  text-align: right;
  vertical-align: top;
  font-size: 14px;
}

.commerce-table th:first-child,
.commerce-table td:first-child {
  text-align: left;
}

.commerce-table th {
  color: var(--muted);
  font-weight: 700;
}

.commerce-table td strong,
.commerce-table td span {
  display: block;
}

.commerce-table td strong {
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commerce-table td span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.search-box,
.select-box {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input,
select {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  background: var(--surface-soft);
  color: var(--ink);
}

input:focus,
select:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(36, 116, 90, 0.15);
}

option:disabled {
  color: #a6aaa1;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pager button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.pager button:disabled {
  color: #a6aaa1;
  cursor: not-allowed;
}

.knowledge-list {
  display: grid;
  max-height: calc(100vh - 280px);
  overflow: auto;
}

.knowledge-item {
  display: grid;
  gap: 8px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 16px;
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.knowledge-item:hover,
.knowledge-item.active {
  background: #f2f7f4;
}

.item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 760;
}

.badge {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
}

.item-summary {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.item-path {
  color: #899184;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.detail-panel {
  position: sticky;
  top: 24px;
  padding: 18px;
}

.detail-empty {
  min-height: 520px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none;
}

.detail-view h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.25;
}

.detail-meta {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.meta-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row strong {
  color: var(--ink);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef0ea;
  color: #4d554b;
  font-size: 12px;
}

.detail-summary {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: #454b43;
  line-height: 1.7;
}

.empty-state,
.error-state {
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
}

.error-state {
  color: #8a2d1f;
}

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

  .sidebar {
    position: static;
    padding: 16px;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 16px;
    overflow-x: auto;
  }

  .nav-item {
    min-width: 120px;
  }

  .content-grid,
  .metrics,
  .commerce-top-grid,
  .latest-daily,
  .commerce-kpis,
  .commerce-grid,
  .home-grid,
  .placeholder-grid {
    grid-template-columns: 1fr;
  }

  .commerce-panel.wide {
    grid-column: auto;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .workspace {
    padding: 16px;
  }

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

  h1 {
    font-size: 26px;
  }

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

  .detail-filter,
  .filter-cluster,
  .date-selects {
    align-items: stretch;
    flex-direction: column;
  }

  .date-filter-cluster {
    margin-left: 0;
  }

  .segment-group {
    overflow-x: auto;
  }

  .date-selects select,
  .date-selects input {
    width: 100%;
  }
}

/* Luding's Hermes external portal, quiet motion version. */
.hermes-home {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 246, 0.88) 48%, rgba(244, 238, 255, 0.72)),
    #f7f8f5;
  color: #151515;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-shell {
  position: relative;
  width: min(100% - 64px, 1480px);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  padding: 38px 0 28px;
  isolation: isolate;
}

.home-shell > *:not(.home-backdrop) {
  position: relative;
  z-index: 2;
}

.home-header {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: 18px;
  padding: 0 16px 0 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 22px 70px rgba(24, 28, 35, 0.08);
  backdrop-filter: blur(20px);
}

.home-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.home-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(116, 85, 200, 0.28);
  border-radius: 50%;
  color: #7455c8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  background: #fff;
}

.home-brand-name {
  color: #6e4137;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  font-weight: 700;
  white-space: nowrap;
}

.home-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a74231;
  border-radius: 12px;
  background: #a94735;
  color: #fff;
  font-weight: 820;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(122, 53, 36, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.home-entry:hover,
.home-entry:focus-visible {
  outline: 3px solid rgba(169, 71, 53, 0.18);
  outline-offset: 4px;
  background: #963d2d;
  box-shadow: 0 24px 52px rgba(122, 53, 36, 0.24);
  transform: translateY(-2px);
}

.home-entry-top {
  min-width: 154px;
  min-height: 52px;
  padding: 0 22px;
  font-size: 20px;
}

.home-hero {
  align-self: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 0 92px;
  text-align: center;
}

.home-kicker {
  margin: 0 0 24px;
  color: #7455c8;
  font-size: 14px;
  font-weight: 860;
  letter-spacing: 0.28em;
}

.home-hero h1 {
  margin: 0;
  color: #1f1c19;
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  font-size: clamp(76px, 8.8vw, 142px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
}

.home-lead {
  max-width: 760px;
  margin: 36px auto 0;
  color: rgba(31, 28, 25, 0.62);
  font-size: clamp(20px, 1.9vw, 27px);
  font-weight: 650;
  line-height: 1.68;
}

.home-actions {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

.home-entry-main {
  min-width: 190px;
  min-height: 58px;
  gap: 8px;
  padding: 0 28px;
  font-size: 22px;
}

.home-entry-main span {
  display: inline-block;
  transition: transform 180ms ease;
}

.home-entry-main:hover span,
.home-entry-main:focus-visible span {
  transform: translateX(6px);
}

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

.home-backdrop::before {
  content: "";
  position: absolute;
  inset: 11% 8% 10%;
  border: 1px solid rgba(116, 85, 200, 0.09);
  border-radius: 999px;
  transform: rotate(-8deg);
}

.home-halo,
.home-line,
.home-pulse,
.orbit-ring,
.orbit-core {
  position: absolute;
}

.home-halo {
  width: 42vw;
  height: 42vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.58;
  animation: homeHalo 14s ease-in-out infinite;
}

.home-halo-one {
  left: -14vw;
  bottom: -18vw;
  background: radial-gradient(circle, rgba(169, 71, 53, 0.1), transparent 64%);
}

.home-halo-two {
  right: -13vw;
  top: 12vh;
  background: radial-gradient(circle, rgba(116, 85, 200, 0.16), transparent 65%);
  animation-delay: -6s;
}

.home-line {
  width: 420px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(116, 85, 200, 0.22), transparent);
  animation: homeLine 12s ease-in-out infinite;
}

.home-line-one {
  right: 12%;
  top: 32%;
  transform: rotate(14deg);
}

.home-line-two {
  left: 7%;
  bottom: 26%;
  transform: rotate(-10deg);
  animation-delay: -5s;
}

.home-pulse {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(116, 85, 200, 0.3);
  box-shadow: 0 0 30px rgba(116, 85, 200, 0.24);
  animation: homePulse 8s ease-in-out infinite;
}

.home-pulse-one {
  right: 22%;
  top: 28%;
}

.home-pulse-two {
  left: 27%;
  bottom: 24%;
  animation-delay: -4s;
}

.home-orbit {
  position: absolute;
  right: max(0px, calc((100vw - 1480px) / -2));
  bottom: 54px;
  width: 300px;
  height: 300px;
  opacity: 0.32;
  pointer-events: none;
}

.orbit-ring {
  inset: 0;
  border: 1px solid rgba(116, 85, 200, 0.24);
  border-radius: 50%;
  animation: orbitTurn 26s linear infinite;
}

.orbit-ring-two {
  inset: 54px;
  border-color: rgba(169, 71, 53, 0.22);
  animation-duration: 18s;
  animation-direction: reverse;
}

.orbit-ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7455c8;
}

.orbit-core {
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a94735;
  transform: translate(-50%, -50%);
}

.home-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(33, 31, 28, 0.45);
  font-size: 13px;
}

.home-footer a {
  color: rgba(33, 31, 28, 0.5);
  text-decoration: none;
}

.home-footer a:hover,
.home-footer a:focus-visible {
  color: #a94735;
  outline: 0;
}

@keyframes homeHalo {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(28px, -20px, 0) scale(1.06);
  }
}

@keyframes homeLine {
  0%,
  100% {
    opacity: 0.18;
  }

  50% {
    opacity: 0.58;
  }
}

@keyframes homePulse {
  0%,
  100% {
    opacity: 0.32;
    transform: translate3d(0, 0, 0) scale(1);
  }

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

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

@media (max-width: 900px) {
  .home-shell {
    width: min(100% - 32px, 760px);
    padding-top: 24px;
  }

  .home-header {
    min-height: 68px;
    padding-left: 14px;
  }

  .home-brand-name {
    font-size: 22px;
  }

  .home-entry-top {
    min-width: 118px;
    min-height: 46px;
    font-size: 16px;
  }

  .home-hero {
    padding-bottom: 70px;
  }

  .home-hero h1 {
    font-size: clamp(58px, 12vw, 92px);
  }

  .home-orbit {
    display: none;
  }
}

@media (max-width: 560px) {
  .home-shell {
    width: min(100% - 24px, 460px);
  }

  .home-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .home-brand-name {
    font-size: 18px;
  }

  .home-entry-top {
    min-width: 98px;
    min-height: 42px;
    padding: 0 12px;
    font-size: 14px;
  }

  .home-hero {
    padding: 58px 0 56px;
  }

  .home-kicker {
    margin-bottom: 20px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .home-hero h1 {
    font-size: 50px;
    line-height: 1.08;
  }

  .home-lead {
    margin-top: 26px;
    font-size: 17px;
  }

  .home-entry-main {
    width: 100%;
    min-height: 54px;
    font-size: 18px;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-halo,
  .home-line,
  .home-pulse,
  .orbit-ring {
    animation: none;
  }

  .home-entry,
  .home-entry-main span {
    transition: none;
  }
}

/* 20260812b: Luding's Hermes liquid-glass landing page. */
.hermes-home {
  min-height: 100vh;
  overflow-x: hidden;
  background: #000;
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.home-page {
  min-height: 100vh;
  background: #000;
}

.liquid-glass {
  position: relative;
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, 0.035);
  background-blend-mode: luminosity;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.46) 0%,
    rgba(255, 255, 255, 0.16) 20%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0) 60%,
    rgba(255, 255, 255, 0.16) 80%,
    rgba(255, 255, 255, 0.46) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.glass-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #000;
}

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

.hero-video {
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
}

.hero-shade {
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.08) 44%, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.glass-nav {
  position: relative;
  z-index: 20;
  width: min(100% - 48px, 1024px);
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 24px auto 0;
  border-radius: 999px;
  padding: 11px 12px 11px 18px;
}

.glass-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.glass-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 22px;
  font-style: italic;
}

.glass-brand span:last-child {
  font-size: 18px;
  font-weight: 720;
  white-space: nowrap;
}

.glass-login {
  min-width: 118px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.glass-login:hover,
.glass-login:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.hero-center {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: min(100% - 40px, 1160px);
  margin: 0 auto;
  padding: 64px 0 78px;
  text-align: center;
  transform: translateY(-5vh);
}

.hero-kicker,
.section-label,
.video-copy p,
.split-copy p,
.services-head span,
.service-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero-center h1 {
  margin: 18px 0 0;
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(78px, 10vw, 150px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-center h1 em,
.glass-section h2 em {
  color: rgba(255, 255, 255, 0.62);
  font-style: italic;
  font-weight: 400;
}

.hero-entry {
  width: min(100%, 520px);
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 42px;
  border-radius: 999px;
  padding: 8px 8px 8px 24px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-entry span {
  flex: 1;
  text-align: left;
  font-size: 15px;
}

.hero-entry button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: transform 180ms ease;
}

.hero-entry button:hover,
.hero-entry button:focus-visible {
  outline: 0;
  transform: scale(1.05);
}

.hero-entry svg {
  width: 20px;
  height: 20px;
}

.hero-subtitle {
  max-width: 640px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.75;
}

.hero-social {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 24px 42px;
}

.hero-social span {
  min-width: 58px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.glass-section {
  position: relative;
  overflow: hidden;
  background: #000;
  padding: 112px 24px;
}

.glass-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.glass-section h2 {
  max-width: 1040px;
  margin: 22px 0 0;
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(44px, 6.8vw, 92px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.video-section {
  padding-top: 32px;
}

.featured-video {
  position: relative;
  width: min(100%, 1120px);
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 30px;
  background: #08080a;
}

.featured-video video,
.service-card video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.74));
}

.video-copy {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: min(440px, calc(100% - 56px));
  border-radius: 24px;
  padding: 24px;
}

.video-copy strong {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 640;
}

.video-copy span,
.split-copy span,
.service-card span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  line-height: 1.72;
}

.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: 72px;
  align-items: start;
}

.split-inner h2 {
  margin: 0;
}

.split-copy {
  display: grid;
  gap: 32px;
}

.split-copy article {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
}

.services-section {
  padding-top: 90px;
}

.services-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.services-head h2 {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 620;
}

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

.service-card {
  border-radius: 30px;
  color: #fff;
}

.service-card video {
  aspect-ratio: 16 / 10;
  transition: transform 700ms ease;
}

.service-card:hover video {
  transform: scale(1.045);
}

.service-card div {
  padding: 26px;
}

.service-card h3 {
  margin: 16px 0 0;
  color: #fff;
  font-size: 24px;
  font-weight: 640;
  letter-spacing: 0;
}

.glass-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px max(24px, calc((100vw - 1120px) / 2));
  background: #000;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.glass-footer a {
  color: rgba(255, 255, 255, 0.46);
  text-decoration: none;
}

.glass-footer a:hover,
.glass-footer a:focus-visible {
  color: #fff;
  outline: 0;
}

@media (max-width: 820px) {
  .glass-nav {
    width: min(100% - 28px, 680px);
    min-height: 58px;
  }

  .glass-brand span:last-child {
    font-size: 16px;
  }

  .glass-login {
    min-width: 104px;
    min-height: 40px;
    padding: 0 16px;
  }

  .hero-center {
    transform: none;
  }

  .hero-center h1 {
    font-size: clamp(58px, 14vw, 92px);
  }

  .hero-entry {
    margin-top: 34px;
  }

  .glass-section {
    padding: 86px 20px;
  }

  .split-inner,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .services-head span {
    display: none;
  }
}

@media (max-width: 560px) {
  .glass-mark {
    display: none;
  }

  .glass-brand span:last-child {
    white-space: normal;
  }

  .hero-center {
    width: min(100% - 28px, 460px);
    padding-top: 48px;
  }

  .hero-center h1 {
    line-height: 1;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-social {
    padding-bottom: 28px;
  }

  .featured-video {
    aspect-ratio: 4 / 5;
    border-radius: 24px;
  }

  .video-copy {
    left: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 18px;
  }

  .glass-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card video,
  .glass-login,
  .hero-entry button {
    transition: none;
  }
}
