@font-face {
  font-family: 'Noto Serif SC';
  src: local('Noto Serif SC');
  font-display: swap;
}

/* Editorial Gallery Design System — modeled on luxury-hotel-concierge */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --paper: #f5f2eb;
  --paper-soft: #eee9df;
  --paper-card: #f7f4ee;
  --obsidian: #110e0a;
  --obsidian-rail: #100d09;
  --obsidian-footer: #1b1915;
  --ink: #29251e;
  --ink-mid: #625b50;
  --ink-muted: #766a58;
  --ink-faint: #72624c;
  --brass-text: #80613d;
  --gutter: max(4.5%, calc((100% - 1392px) / 2));
  --brass: #b58b57;
  --rule: #d5cdbf;
  --rule-strong: #cfc5b5;
  --ivory: #fff6e5;
  --ivory-soft: #e2d7c4;
  --serif: 'Noto Serif SC', 'Songti SC', 'STSong', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --eyebrow-font: Georgia, 'Times New Roman', serif;
}

html[lang="en"] {
  --serif: Georgia, 'Times New Roman', 'Noto Serif SC', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html[lang="en"] h1 {
  letter-spacing: 0.015em;
}

html[lang="en"] h2 {
  letter-spacing: 0.01em;
}

html[lang="en"] .hero-subtitle {
  letter-spacing: 0.02em;
}

html[lang="en"] .brand-mark {
  letter-spacing: 0.025em;
}

.ui-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.ui-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ui-symbols symbol > * {
  vector-effect: non-scaling-stroke;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  cursor: pointer;
  color: inherit;
  border-radius: 0;
}

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

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.footer-title,
.main-nav,
.outline-button,
.solid-button,
.index-tile span,
.hero-subtitle,
.text-link,
.brand-mark {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.25;
  letter-spacing: 0.05em;
}

h2 {
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1.45;
  letter-spacing: 0.035em;
}

h3 {
  font-size: 24px;
  line-height: 1.5;
}

p {
  margin-bottom: 18px;
}

.eyebrow {
  font-family: var(--eyebrow-font);
  font-size: 12px;
  letter-spacing: 0.21em;
  line-height: 1.6;
  margin-bottom: 18px;
  text-transform: uppercase;
}

[hidden] {
  display: none !important;
}

.page-width {
  width: calc(100% - var(--gutter) * 2);
  margin-inline: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font-size: 18px;
  line-height: 1.65;
  transition: opacity 0.2s;
}

.text-link:hover {
  opacity: 0.78;
}

.dark-link {
  color: #3e372c;
}

.solid-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 24px;
  line-height: 1.5;
  min-height: 46px;
  font-size: 16px;
  border: 1px solid #302c25;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.solid-button {
  color: #faf6ec;
  background: #302c25;
}

.solid-button:hover {
  background: #514431;
}

.outline-button {
  color: inherit;
  background: transparent;
  border-color: currentColor;
}

.outline-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-button,
.menu-button {
  background: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 5px;
}

/* Header */
.site-header {
  height: 80px;
  border-bottom: 1px solid #d8d1c5;
  color: #363027;
  position: relative;
  z-index: 20;
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 38px);
  height: 100%;
  margin-inline: var(--gutter);
}

.brand-space {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  font-size: 20px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--eyebrow-font);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #e4d9c7;
  white-space: nowrap;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.6vw, 56px);
  font-size: 19px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 16px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

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

.header-cta {
  font-size: 17px;
  padding: 6px 24px;
  min-height: 42px;
  white-space: nowrap;
}

.over-photo {
  background: rgba(15, 11, 7, 0.57);
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  color: #fff8eb;
  border-color: rgba(255, 248, 235, 0.32);
}

.menu-button {
  display: none;
}

/* Home Full-Viewport Gallery Hero */
.home-gallery {
  height: 100svh;
  min-height: 740px;
  max-height: 1120px;
  background: var(--obsidian);
  color: var(--ivory);
  display: flex;
  flex-direction: column;
}

.hero-stage {
  flex: 1 1 auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 470px;
}

.hero-photo {
  object-position: var(--hero-position, center);
  height: 100%;
  width: 100%;
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: opacity 0.45s ease-out;
  animation: reveal-photo 0.55s ease-out;
}

@keyframes reveal-photo {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 10, 6, 0.66) 0%, rgba(15, 10, 6, 0.08) 60%, rgba(15, 10, 6, 0.14) 100%),
    linear-gradient(0deg, rgba(15, 10, 6, 0.72) 0%, transparent 48%);
}

.hero-copy {
  position: absolute;
  left: var(--gutter);
  bottom: 32px;
  max-width: 680px;
}

.hero-copy .eyebrow {
  font-size: 12px;
  letter-spacing: 0.13em;
  line-height: 1.55;
  margin-bottom: 12px;
  color: #e9ddc5;
}

.hero-copy h1 {
  font-size: clamp(42px, 3.9vw, 60px);
  line-height: 1.18;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 22px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: #f1e7d6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-copy .text-link {
  font-size: 20px;
}

.hero-badge {
  display: inline-block;
  color: #f4dfb8;
  border-left: 1px solid #d7b686;
  padding-left: 10px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.10em;
  margin-bottom: 8px;
}

.gallery-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 246, 229, 0.44);
  border-radius: 50%;
  background: rgba(17, 14, 10, 0.22);
  color: inherit;
  position: absolute;
  top: clamp(112px, 31%, 38%);
  display: grid;
  place-items: center;
  transition: background 0.2s, border-color 0.2s;
  z-index: 5;
}

.gallery-arrow:hover {
  background: rgba(255, 248, 235, 0.18);
  border-color: rgba(255, 246, 229, 0.85);
}

.previous {
  left: max(10px, calc((var(--gutter) - 44px) / 2));
}

.next {
  right: max(10px, calc((var(--gutter) - 44px) / 2));
}

.hero-current {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-current-name {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #f8f1dc;
}

.hero-current-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #e6d9c2;
}

.hero-current-count {
  font-family: var(--eyebrow-font);
  font-size: 24px;
  letter-spacing: 0.06em;
}

/* Bottom Dark Gallery Rail */
.gallery-rail {
  height: 256px;
  padding: 22px var(--gutter) 14px;
  border-top: 1px solid rgba(255, 246, 229, 0.12);
  background: var(--obsidian-rail);
  flex-shrink: 0;
}

.train-index {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #6b5a42 transparent;
  padding-bottom: 8px;
}

.index-tile {
  flex: 0 0 calc((100% - 120px) / 6);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0 0 10px;
  text-align: left;
  position: relative;
  color: #f7eddb;
  background: none;
  border: 0;
  scroll-snap-align: center;
}

.index-tile-frame {
  position: relative;
  overflow: hidden;
  background: #1c1813;
}

.index-tile img {
  height: clamp(96px, 7.8vw, 120px);
  filter: brightness(0.72);
  transition: filter 0.25s, transform 0.45s;
}

.index-tile.active img,
.index-tile:hover img {
  filter: brightness(1);
}

.index-tile:hover img {
  transform: scale(1.03);
}

.index-tile span.tile-title {
  display: block;
  font-size: 19px;
  letter-spacing: 0.04em;
  line-height: 1.45;
  padding-top: 8px;
}

.index-tile small {
  display: block;
  font-family: var(--eyebrow-font);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #a99b84;
  line-height: 1.5;
}

.index-tile::after {
  content: '';
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  background: #e9ddc5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.index-tile.active::after {
  transform: scaleX(1);
}

.photo-credit {
  text-align: center;
  margin: 10px 0 0;
  font-family: var(--serif);
  color: #b9ad99;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.photo-credit a {
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.intro-section {
  padding-block: 92px 80px;
}

.intro-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  align-items: start;
}

.intro-columns h2 {
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.4;
}

.intro-position {
  color: var(--ink-mid);
  font-size: 16px;
  margin: 0;
  text-wrap: pretty;
}

.intro-anchors {
  display: flex;
  align-items: baseline;
  list-style: none;
  margin: 21px 0 13px;
  padding: 0;
}

.intro-anchors li {
  display: flex;
  align-items: baseline;
  column-gap: 7px;
  white-space: nowrap;
}

.intro-anchors li + li {
  border-left: 1px solid var(--rule);
  padding-left: clamp(14px, 1.65vw, 27px);
  margin-left: clamp(14px, 1.65vw, 27px);
}

.intro-anchors strong {
  font: 400 clamp(25px, 2.1vw, 34px)/1 var(--eyebrow-font);
  font-variant-numeric: lining-nums tabular-nums;
}

.intro-anchors small { font-size: .65em; }
.intro-anchors span { color: var(--ink-mid); font-size: 12px; }
.intro-facts .text-link { min-height: 44px; }

.geo-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 46px);
  margin-top: 40px;
  padding-top: 23px;
  border-top: 1px solid var(--rule-strong);
}

.verdict-title, .critique-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 400 20px/1.45 var(--serif);
}

.geo-summary .verdict-title { margin: 0; }
.geo-summary .verdict-line { margin-bottom: 0; }
.verdict-title .ui-icon { color: var(--brass-text); }
.verdict-line {
  display: block;
  margin-top: 9px;
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* Section 3: Side-by-Side Promo Comparison Studio */
.compare-section {
  padding: 84px 0 96px;
  border-top: 1px solid var(--rule);
}

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

.intro-columns h2,
.section-heading h2,
.quiet-cta h2,
.footer-title {
  text-wrap: balance;
}

.section-heading h2 {
  margin: 0;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
  color: var(--ink-faint);
}

.mode-switch {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  background: var(--paper-card);
}

.mode-switch button {
  border: 0;
  background: transparent;
  padding: 10px 20px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-muted);
  transition: background 0.2s, color 0.2s;
}

#compare-studio .mode-switch button, .scene-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mode-switch button.active {
  background: #302c25;
  color: #faf6ec;
}

.compare-controls {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.benchmark-picker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-block: 1px solid var(--rule);
}

.benchmark-picker .filter-row {
  border: 0;
  gap: clamp(14px, 1.3vw, 21px);
}

.control-label {
  color: var(--ink-mid);
  font-size: 13px;
  white-space: nowrap;
}

.compare-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.filter-row {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid #d7cfc1;
  overflow-x: auto;
  scrollbar-width: thin;
}

.filter-row button {
  background: none;
  border: 0;
  min-height: 44px;
  padding: 9px 2px;
  position: relative;
  font-size: 15px;
  color: var(--ink-muted);
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--serif);
}

.filter-row button.selected {
  color: #28231c;
}

.filter-row button.selected::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 2px;
  background: #473b2a;
}

.scene-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.scene-pill {
  background: transparent;
  border: 1px solid var(--rule-strong);
  min-height: 44px;
  padding: 7px 16px;
  font-size: 13px;
  color: var(--ink-mid);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.scene-pill:hover {
  border-color: #302c25;
  color: var(--ink);
}

.scene-pill.active {
  background: #302c25;
  border-color: #302c25;
  color: #faf6ec;
}

.own-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}

.own-switch button {
  background: none;
  border: 1px solid var(--rule-strong);
  min-height: 44px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--ink-mid);
}

.own-switch button.active {
  border-color: var(--brass);
  background: #efeae0;
  color: var(--ink);
}

/* Side-by-Side Plates */
.side-by-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.plate-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
}

.plate-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 22px;
  border-bottom: 1px solid var(--rule);
  gap: 12px;
}

.plate-header > .plate-role {
  flex: none;
  letter-spacing: 0.04em;
}

.plate-role {
  font-family: var(--eyebrow-font);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.plate-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
}

.plate-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1713;
}

.plate-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.plate-frame:hover img {
  transform: scale(1.02);
}

.plate-tag {
  position: absolute;
  bottom: 14px;
  left: 16px;
  padding: 4px 12px;
  background: rgba(20, 16, 11, 0.8);
  color: #fff5e0;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.plate-caption {
  margin: 0;
  padding: 16px 22px 20px;
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.75;
  flex: 1;
}

.plate-caption strong {
  color: var(--ink);
  font-weight: 500;
}

/* Curtain Split Compare */
.curtain-wrapper {
  position: relative;
  margin-top: 24px;
  border: 1px solid var(--rule);
  background: var(--obsidian);
}

.curtain-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 680px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
}

.curtain-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.curtain-left-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}

.curtain-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fff6e5;
  z-index: 4;
  transform: translateX(-50%);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.65);
}

.curtain-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(17, 14, 10, 0.82);
  border: 1px solid #fff6e5;
  color: #fff6e5;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.curtain-labels {
  position: absolute;
  inset: 18px 18px auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 3;
  pointer-events: none;
}

.curtain-label {
  padding: 6px 14px;
  background: rgba(17, 14, 10, 0.78);
  color: #fff6e5;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.06em;
  z-index: 3;
}

.curtain-label.left {
  border-left: 2px solid var(--brass);
}

.curtain-label.right {
  border-right: 2px solid #e9ddc5;
}

.curtain-caption {
  padding: 8px 16px;
  color: #d5c8b1;
  font-size: 12px;
}

.curtain-handle .ui-icon { width: 25px; height: 25px; }
.curtain-divider { pointer-events: none; }


.observation-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.observation-header h3 { margin: 0; font-size: 21px; }
#observation-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 12px; color: var(--ink-mid); }
#observation-key span { display: inline-flex; align-items: center; gap: 6px; }
.observation-left::before, .observation-right::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  flex: none;
  border: 1px solid var(--brass-text);
  background: var(--brass-text);
}
.observation-right::before { background: transparent; border-color: var(--ink-mid); border-radius: 50%; }
.critique-item .critique-heading { margin: 0 0 12px; }
.observation-pair { margin: 0; font-size: 14px; line-height: 1.75; color: var(--ink-mid); }
.observation-pair div { position: relative; padding-left: 15px; }
.observation-pair div + div { margin-top: 8px; }
.observation-pair div::before { position: absolute; top: .65em; left: 0; }
.observation-pair dd { margin: 0; }
.observation-pair dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.critique-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 20px 28px;
  margin-top: 12px;
}

.critique-item {
  padding-top: 14px;
  border-top: 1px solid var(--rule-strong);
}

.critique-num {
  font: 400 12px/1.4 var(--eyebrow-font);
  font-variant-numeric: tabular-nums;
  letter-spacing: .1em;
  color: var(--brass-text);
}

/* Section 4: Collection Grid */
.listing-page {
  padding: 84px 0 92px;
  border-top: 1px solid var(--rule);
}

.page-intro {
  font-size: 16px;
  color: #72695c;
  max-width: 680px;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 40px;
  margin-top: 36px;
}

.train-card {
  display: flex;
  flex-direction: column;
}

.card-image {
  display: block;
  position: relative;
  overflow: hidden;
  background: #1a1713;
  cursor: pointer;
  border: 0;
  padding: 0;
  text-align: left;
}

.card-image > img {
  height: 360px;
  transition: transform 0.55s ease;
}

.card-image:hover > img {
  transform: scale(1.028);
}

.card-image > span {
  position: absolute;
  bottom: 16px;
  left: 20px;
  padding: 4px 12px;
  background: rgba(32, 25, 14, 0.82);
  color: #fff5e0;
  font-size: 12px;
  letter-spacing: 0.1em;
}

.card-image > span.is-own {
  border-left: 2px solid var(--brass);
}

.card-body {
  padding: 20px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .eyebrow {
  font-size: 11px;
  margin-bottom: 10px;
  color: var(--ink-faint);
}

.card-body h3 {
  font-size: 29px;
  margin-bottom: 3px;
}

.english-name {
  font-family: var(--eyebrow-font);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.card-summary {
  color: #6b6253;
  max-width: 600px;
  margin-bottom: 20px;
  font-size: 15px;
}

.card-metrics {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin: auto 0 16px;
  padding-top: 14px;
  border-top: 1px solid #e1d9cb;
  font-size: 13px;
  color: #7c6f5c;
}

.card-metrics strong {
  color: var(--ink);
  font-weight: 500;
}

.card-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

/* Section 5: Horizontal Matrix Table */
.matrix-section {
  padding: 84px 0 92px;
  border-top: 1px solid var(--rule);
}

.table-scroll {
  container-type: inline-size;
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 14px;
}

.benchmark-table th,
.benchmark-table td {
  text-align: left;
  padding: 18px 18px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.7;
}

.benchmark-table th {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  color: #554b3e;
  background: #eee9df;
  white-space: nowrap;
}

.benchmark-table tr.is-own-row {
  background: #efeae0;
}

.benchmark-table tr.is-own-row td:first-child {
  border-left: 3px solid var(--brass);
}

.table-train-name {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  display: block;
}

.table-train-en {
  font-family: var(--eyebrow-font);
  font-size: 11px;
  color: var(--ink-faint);
}

/* Quiet CTA & Sources */
.quiet-cta {
  text-align: center;
  padding: 72px 20px 84px;
  background: var(--paper-soft);
  border-top: 1px solid var(--rule);
}

.quiet-cta h2 {
  font-size: clamp(26px, 2.5vw, 34px);
  margin-bottom: 14px;
}

.quiet-cta .review-actions { margin-top: 22px; }






/* Footer */
.site-footer {
  background: var(--obsidian-footer);
  color: var(--ivory-soft);
  padding: 62px 4.5% 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-title {
  font-size: 28px;
  margin: 0;
}

.site-footer .eyebrow {
  font-size: 10px;
  color: #aa9c84;
  margin-bottom: 10px;
}

.site-footer nav {
  display: flex;
  align-content: start;
  align-items: start;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 13px;
}

.footer-note {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 20px;
  grid-column: 1 / -1;
  font-size: 11px;
  color: #b2a58f;
  margin: 0;
}

/* Train Detail Dossier Modal (modeled after detail-top) */
.detail-dialog {
  color: var(--ink);
  background: var(--paper);
  border: 0;
  max-width: 1220px;
  width: calc(100% - 32px);
  max-height: 92svh;
  padding: 0;
  box-shadow: 0 24px 96px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.detail-dialog::backdrop {
  background: rgba(12, 10, 8, 0.84);
  backdrop-filter: blur(4px);
}

.detail-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  grid-template-rows: minmax(0, 1fr);
  height: min(820px, 92svh);
  max-height: 92svh;
}

.detail-gallery {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 44px 5% 18px;
  isolation: isolate;
  overflow: hidden;
  background: #1b1813;
  color: #fff3df;
}

.detail-main-photo {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: -2;
}

.detail-image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(14 9 6 / 88%), rgb(14 9 6 / 62%) 32%, transparent 70%);
  z-index: -1;
}

.detail-title {
  margin-bottom: 24px;
}

.detail-title .eyebrow {
  font-size: 11px;
  margin-bottom: 8px;
  color: #f4e7d0;
}

.detail-title h2 {
  font-size: clamp(28px, 2.8vw, 42px);
  margin-bottom: 4px;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.detail-thumbs button {
  background: none;
  border: 1px solid transparent;
  padding: 2px;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
}

.detail-thumbs button.active,
.detail-thumbs button:hover {
  opacity: 1;
  border-color: #e5d1ad;
}

.detail-thumbs img {
  height: 80px;
}

.detail-credit {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #e4d8c0;
}

.detail-dossier {
  padding: 34px 32px 28px;
  min-height: 0;
  overscroll-behavior: contain;
  background: var(--paper-card);
  overflow-y: auto;
  position: relative;
}

.dossier-label {
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.dialog-close {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: 50%;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 10;
  color: var(--ink);
}

.dossier-facts {
  margin: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 16px 0;
}

.dossier-facts > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  margin-bottom: 10px;
  font-size: 13.5px;
}

.dossier-facts > div:last-child {
  margin-bottom: 0;
}

.dossier-facts dt {
  color: var(--ink-faint);
}

.dossier-facts dd {
  margin: 0;
  color: #3f372c;
}

.dossier-list {
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink-mid);
  margin-bottom: 24px;
}

.dossier-list li {
  margin: 6px 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .intro-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .critique-grid {
    grid-template-columns: 1fr 1fr;
  }
  .detail-modal-layout {
    display: block;
    height: auto;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .detail-dossier {
    overflow: visible;
  }
  .detail-gallery {
    min-height: 440px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 5.4%;
  }
  .site-header {
    height: 68px;
  }
  .brand-sub {
    display: none;
  }
  .menu-button {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(26, 23, 17, 0.96);
    padding: 20px 6%;
    color: #f7ebd2;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .main-nav.is-open {
    display: flex;
  }
  .main-nav a {
    width: 100%;
    padding: 12px 0;
  }
  .header-cta {
    display: none;
  }
  .hero-copy {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 24px;
    max-width: none;
  }
  .hero-copy h1 {
    font-size: clamp(32px, 8.2vw, 42px);
    line-height: 1.22;
    letter-spacing: 0.025em;
    text-wrap: balance;
    margin-bottom: 10px;
  }
  .hero-badge {
    margin-bottom: 10px;
    font-size: 11px;
  }
  .hero-subtitle {
    font-size: 15px;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    white-space: normal;
  }
  .hero-actions {
    gap: 2px 16px;
  }
  .hero-copy .text-link {
    font-size: 15px;
    gap: 6px;
    min-height: 44px;
  }
  .hero-current {
    display: none;
  }
  .gallery-arrow {
    top: 86px;
    width: 44px;
    height: 44px;
  }
  .previous {
    left: var(--gutter);
  }
  .next {
    right: var(--gutter);
  }
  .gallery-rail {
    height: auto;
    padding: 16px var(--gutter) 12px;
  }
  .photo-credit {
    font-size: 11px;
    line-height: 1.55;
    padding: 0;
  }
  .index-tile {
    flex: 0 0 150px;
    min-width: 150px;
  }
  .index-tile img {
    height: 86px;
  }
  .index-tile span.tile-title {
    font-size: 15px;
  }
  .side-by-side-grid,
  .collection-grid,
  .critique-grid {
    grid-template-columns: 1fr;
  }
  .card-image > img {
    height: 260px;
  }
  .site-footer {
    grid-template-columns: 1fr;
  }
  .site-footer nav {
    justify-content: flex-start;
  }
}

/* ===== Ground itinerary · Services · Reference price ===== */
.services-section {
  padding: 84px 0 96px;
  border-top: 1px solid var(--rule);
}
.section-note {
  max-width: 420px;
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.75;
}
.sub-eyebrow {
  font-family: var(--eyebrow-font);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--brass-text);
  margin: 0 0 16px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.model-card {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
}
.model-card h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 8px;
}
.model-trains {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.model-card p:not(.model-trains) {
  font-size: 13.5px;
  color: var(--ink-mid);
  line-height: 1.8;
  flex: 1;
}
.model-ratio {
  border-top: 1px solid var(--rule);
  padding-top: 10px;
  font-size: 12px;
  color: #5a4f40;
}

/* Price chart */
.price-panel {
  background: #fbf9f4;
  border: 1px solid var(--rule);
  padding: 30px 32px 22px;
  margin-bottom: 64px;
}
.price-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.price-panel-head h3 {
  margin: 0;
  font-size: 23px;
}
.price-axis,
.price-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: center;
}
.price-axis {
  height: 24px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: 4px;
}
.axis-track {
  position: relative;
  height: 100%;
}
.axis-track span {
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  font-family: var(--eyebrow-font);
  font-size: 11px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.axis-track span:first-child {
  transform: none;
}
.axis-track span:last-child {
  transform: translateX(-100%);
}
.price-row {
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid #ebe4d7;
  padding: 10px 0;
  text-align: left;
  transition: background 0.2s;
}
.price-row:hover {
  background: #f2ede3;
}
.price-row.selected {
  background: #efe8da;
}
.price-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  padding-left: 10px;
  line-height: 1.4;
}
.price-name small {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-faint);
}
.price-track {
  position: relative;
  height: 14px;
  background: repeating-linear-gradient(90deg, #ddd4c4 0 1px, transparent 1px 20%);
}
.price-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e2dacb;
}
.price-bar {
  position: absolute;
  top: 1px;
  bottom: 1px;
  background: #5b4e3b;
  border-radius: 1px;
}
.price-row.is-own .price-bar {
  background: var(--brass);
}
.price-row.is-own .price-name::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 0 6px 3px 0;
  background: var(--brass);
}
.price-row.selected .price-bar {
  box-shadow: 0 0 0 2px #fbf9f4, 0 0 0 3px #302c25;
}
.price-value {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #4c4337;
  line-height: 1.5;
  padding-right: 10px;
}
.price-foot {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 16px 0 0;
  line-height: 1.7;
}

/* Detail explorer */
#svc-tabs {
  margin-bottom: 28px;
}
.svc-detail {
  background: var(--paper-card);
  border: 1px solid var(--rule);
  padding: 32px;
}
.svc-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}
.svc-head-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1a1713;
}
.svc-head-media img {
  height: 100%;
}
.svc-head-info .eyebrow {
  font-size: 11px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.svc-head-info h3 {
  font-size: 30px;
  margin-bottom: 2px;
}
.svc-head-info .dossier-facts {
  margin: 14px 0 18px;
}
.svc-head-info .dossier-facts > div {
  grid-template-columns: 76px 1fr;
}
.svc-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-left: 2px solid var(--brass);
  background: #efeae0;
  margin-bottom: 12px;
}
.svc-price-total {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
}
.svc-price-night {
  font-size: 13.5px;
  color: #5a4f40;
}
.svc-ratio {
  font-size: 12.5px;
  color: #8a5a2b;
  margin-top: 4px;
}
.fine-note {
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.7;
  margin: 0;
}
.svc-block-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.rhythm-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.rhythm-step {
  position: relative;
}
.rhythm-step img {
  height: 130px;
  margin-bottom: 12px;
}
.rhythm-time {
  display: block;
  font-family: var(--eyebrow-font);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--brass-text);
  margin-bottom: 4px;
}
.rhythm-step h5 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.5;
  margin: 0 0 6px;
}
.rhythm-step p {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.75;
  margin: 0;
}
.svc-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 40px;
}
.svc-list {
  margin: 0;
}
.svc-list > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #e6dfd2;
  font-size: 13.5px;
  line-height: 1.8;
}
.svc-list dt {
  color: var(--ink-faint);
}
.svc-list dd {
  margin: 0;
  color: #3f372c;
}
.incl-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: #3f372c;
  line-height: 1.85;
}
.incl-box li::marker {
  color: var(--brass-text);
}
.incl-box.is-excl li::marker {
  color: #a08f75;
}
.incl-box.is-excl ul {
  color: var(--ink-mid);
}
.service-table {
  min-width: 1100px;
  font-size: 13px;
}

/* Nav tightening for mid widths */
@media (max-width: 1439px) {
  .brand-sub {
    display: none;
  }
  .main-nav {
    font-size: 17px;
    gap: 26px;
  }
}
@media (max-width: 1100px) {
  .model-grid {
    grid-template-columns: 1fr 1fr;
  }
  .svc-head {
    grid-template-columns: 1fr;
  }
  .rhythm-grid {
    grid-template-columns: 1fr 1fr;
  }
  .header-cta {
    display: none;
  }
}
@media (max-width: 760px) {
  .model-grid,
  .rhythm-grid,
  .svc-columns {
    grid-template-columns: 1fr;
  }
  .price-panel,
  .svc-detail {
    padding: 22px 16px;
  }
  .price-axis,
  .price-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .price-axis .axis-spacer {
    display: none;
  }
  .price-name,
  .price-value {
    padding: 0 8px;
  }
  .axis-track,
  .price-track {
    margin: 0 8px;
  }
  .rhythm-step img {
    height: 170px;
  }
}

/* ===== Minimal tables (v3) ===== */
.price-panel {
  background: none;
  border: 0;
  border-top: 1px solid var(--ink);
  padding: 22px 0 0;
}
.price-row:hover,
.price-row.selected {
  background: #efeae0;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  min-width: 900px;
}
.table-scroll {
  border: 0;
}
.spec-table thead th {
  text-align: left;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  padding: 0 14px 6px;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
  background: none;
}
.spec-table th.sortable button {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  min-width: 44px;
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.spec-table th.sortable button:hover,
.spec-table th.active button {
  color: var(--ink);
}
.spec-table .arrow { display: inline-flex; color: var(--ink-muted); }
.spec-table .arrow .ui-icon { width: 14px; height: 14px; }
.spec-table .active .arrow { color: var(--brass-text); }
.spec-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #e6dfd2;
  vertical-align: middle;
  color: #3f372c;
  white-space: nowrap;
}
.spec-row {
  cursor: pointer;
  transition: background 0.15s;
}
.spec-row:hover,
.spec-row.open,
.spec-row:focus-visible {
  background: #f0ebe1;
  outline: none;
}
.spec-name {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}
.spec-sub {
  display: block;
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 1px;
}
tr.is-own .spec-name {
  color: #8a5a2b;
}
tr.is-own td:first-child {
  box-shadow: inset 2px 0 0 var(--brass);
}
.spec-table .na {
  color: var(--ink-faint);
}
.spec-table td.c-dress {
  white-space: normal;
  min-width: 120px;
  font-size: 13px;
  color: var(--ink-mid);
}
.mini {
  display: block;
  position: relative;
  width: 84px;
  height: 3px;
  background: #e6dfd2;
  margin-top: 7px;
}
.mini i {
  position: absolute;
  top: 0;
  bottom: 0;
  background: #6b5d48;
}
tr.is-own .mini i {
  background: var(--brass);
}
.toggle-col {
  width: 36px;
  text-align: center;
}
.plus {
  color: var(--ink-faint);
  font-size: 16px;
}
.spec-detail td {
  white-space: normal;
  background: #f0ebe1;
  padding: 14px 12px 22px;
}
.spec-detail dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 28px;
}
.spec-detail dl .wide {
  grid-column: 1 / -1;
}
.spec-detail dt {
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.spec-detail dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #3f372c;
}

/* Dot matrix */
.level-table {
  min-width: 760px;
}
.level-table td {
  padding: 13px 14px;
}
.level-table .c-dot {
  text-align: center;
  width: 9%;
}
.level-table td.c-special {
  white-space: normal;
  font-size: 13px;
  color: var(--ink-mid);
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #5b4e3b;
  vertical-align: middle;
  cursor: help;
}
.dot.l2 {
  background: #5b4e3b;
}
.dot.l1 {
  background: linear-gradient(90deg, #5b4e3b 50%, transparent 50%);
}
.dot.l0 {
  background: transparent;
  border-color: #847761;
}
tr.is-own .dot.l2 {
  background: var(--brass);
  border-color: var(--brass);
}
tr.is-own .dot.l1 {
  border-color: var(--brass);
  background: linear-gradient(90deg, var(--brass) 50%, transparent 50%);
}
.level-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  color: var(--ink-muted);
  font-size: 12px;
  margin: 0 0 14px;
}
.level-legend .dot {
  cursor: default;
}
.level-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.matrix-label {
  margin-top: 64px;
}

.level-table td.c-dot {
  padding: 0 8px;
}

.level-trigger {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
}

.level-trigger .dot {
  pointer-events: none;
}

#level-note {
  position: fixed;
  inset: auto;
  margin: 0;
  width: max-content;
  max-width: min(290px, calc(100vw - 24px));
  padding: 10px 14px;
  background: var(--obsidian-footer);
  color: var(--ivory);
  border: 1px solid #7a6c55;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .spec-detail dl {
    position: sticky;
    left: 12px;
    width: calc(100cqi - 24px);
    grid-template-columns: 1fr;
  }
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}


.site-footer {
  padding-inline: var(--gutter);
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.curtain-stage:focus-visible {
  outline: 2px solid var(--ivory);
  outline-offset: -4px;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .main-nav {
    gap: clamp(15px, 2.2vw, 24px);
  }

  .index-tile {
    flex-basis: calc((100% - 72px) / 4);
  }
}

@media (max-width: 760px) {
  .home-gallery {
    height: 100svh;
    min-height: 740px;
    max-height: none;
  }

  .hero-stage {
    flex: 1;
    min-height: 0;
  }

  .hero-photo[data-train="jinxiu-tianfu"] {
    object-position: 87% center;
  }



  .hero-copy .eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
  }

  .hero-subtitle {
    line-height: 1.55;
    text-wrap: balance;
    margin-bottom: 12px;
  }

  .gallery-arrow {
    top: 84px;
  }

  .train-index {
    gap: 14px;
    padding-bottom: 5px;
  }

  .index-tile {
    flex-basis: clamp(126px, 36vw, 174px);
    min-width: 0;
    padding-bottom: 6px;
  }

  .index-tile small {
    font-family: var(--sans);
    letter-spacing: 0.02em;
    font-size: 11px;
    line-height: 1.45;
  }

  .photo-credit {
    margin-top: 8px;
  }

  .intro-section,
  .compare-section,
  .services-section,
  .listing-page,
  .matrix-section {
    padding-block: 48px 54px;
  }

  .intro-columns {
    gap: 16px;
  }

  .intro-columns h2 {
    margin-bottom: 0;
  }

  .intro-position { font-size: 15px; }
  .intro-anchors { margin-top: 18px; margin-bottom: 8px; }
  .intro-anchors li + li { padding-left: 12px; margin-left: 12px; }
  .intro-anchors li { column-gap: 5px; }
  .geo-summary { margin-top: 22px; padding-top: 17px; gap: 12px; }
  .verdict-title { font-size: 16px; gap: 5px; }
  .verdict-title .ui-icon { width: 17px; height: 17px; }
  .verdict-line { font-size: 13px; margin-top: 7px; }
  .critique-grid { gap: 20px 16px; }
  .critique-item .critique-heading { font-size: 18px; }
  .spec-row .spec-name::before { content: '+'; color: var(--brass-text); margin-right: 5px; }
  .spec-row.open .spec-name::before { content: '−'; }


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

  .section-heading .eyebrow,
  .listing-page > .eyebrow {
    letter-spacing: 0.13em;
  }

  .mode-switch {
    width: 100%;
  }

  .mode-switch button {
    flex: 1;
    min-height: 44px;
    padding: 7px 10px;
  }

  .compare-controls {
    gap: 12px;
    margin-bottom: 18px;
  }

  .benchmark-picker {
    gap: 12px;
  }

  .filter-row {
    gap: 18px;
  }

  .compare-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

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

  .scene-pill {
    padding: 4px 2px;
    line-height: 1.4;
  }

  .side-by-side-grid {
    gap: 16px;
    margin-top: 18px;
  }

  .plate-header {
    padding: 12px 14px;
    align-items: flex-end;
    gap: 8px;
  }

  .plate-role {
    letter-spacing: 0.06em;
    line-height: 1.45;
  }

  .plate-title {
    line-height: 1.45;
    margin-top: 3px;
  }

  .plate-caption {
    padding: 12px 14px 15px;
  }

  .curtain-labels {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
    background: var(--obsidian-footer);
  }

  .curtain-label {
    font-size: 13px;
    letter-spacing: 0.02em;
    padding: 2px 7px;
    line-height: 1.45;
    background: none;
  }

  .curtain-label.right {
    text-align: right;
  }

  .curtain-stage {
    aspect-ratio: 4 / 3;
  }

  .curtain-caption { padding: 8px 12px; line-height: 1.6; }
  #compare-studio .scene-pill { gap: 5px; }
  .scene-pill .ui-icon { width: 17px; height: 17px; }

  .model-grid {
    gap: 14px;
    margin-bottom: 40px;
  }

  .price-panel {
    margin-bottom: 42px;
  }

  .price-panel-head {
    gap: 12px;
  }

  .price-panel-head .sub-eyebrow {
    margin-bottom: 6px;
  }

  .price-axis {
    margin-top: 4px;
  }

  .svc-head {
    gap: 16px;
    margin-bottom: 28px;
  }

  .svc-head-info h3 {
    font-size: 26px;
  }

  .svc-columns {
    gap: 22px;
    margin-top: 28px;
  }

  .matrix-label {
    margin-top: 40px;
  }

  .spec-table thead th:first-child,
  .spec-table tbody tr:not(.spec-detail) td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    width: 134px;
    min-width: 134px;
    max-width: 134px;
    padding-inline: 9px;
    white-space: normal;
    background: var(--paper);
    border-right: 1px solid var(--rule);
  }

  .spec-table .spec-row.open td:first-child,
  .spec-table .spec-row:focus-visible td:first-child {
    background: #f0ebe1;
  }

  .spec-name {
    font-size: 15px;
    line-height: 1.5;
  }

  .spec-sub {
    line-height: 1.4;
  }

  .collection-grid {
    row-gap: 36px;
  }

  .card-image > img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .card-body {
    padding-top: 16px;
  }

  .card-body h3 {
    font-size: 25px;
  }

  .card-actions {
    gap: 4px 16px;
  }

  .card-actions .text-link {
    font-size: 15px;
    gap: 6px;
    min-height: 44px;
  }

  .card-metrics {
    gap: 4px 16px;
    margin-bottom: 10px;
  }

  .quiet-cta {
    padding-block: 48px 54px;
  }


  .phrase {
    display: inline-block;
  }

  .site-footer nav {
    gap: 0 18px;
  }

  .detail-image-shade {
    background: linear-gradient(0deg, rgb(14 9 6 / 92%), rgb(14 9 6 / 70%) 48%, transparent 87%);
  }

  .detail-gallery {
    min-height: clamp(325px, 48svh, 445px);
    padding: 56px 16px 14px;
  }

  .detail-title {
    position: relative;
    isolation: isolate;
    margin-bottom: 16px;
  }

  .detail-title::before {
    content: '';
    position: absolute;
    inset: -14px -16px;
    z-index: -1;
    background: linear-gradient(0deg, transparent, rgb(20 15 10 / 48%) 14px, rgb(20 15 10 / 48%) calc(100% - 14px), transparent);
  }

  .detail-title h2 {
    text-wrap: balance;
    font-size: 26px;
    letter-spacing: 0.015em;
  }

  .detail-thumbs {
    gap: 6px;
  }

  .detail-thumbs img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .detail-dossier {
    padding: 24px 18px;
  }

  .dialog-close {
    top: 8px;
    right: 8px;
  }
}

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

/* Review tools share the gallery's margins, type and hairline rules. */
.review-section,
.matcher-section {
  padding: 82px 0 88px;
  border-top: 1px solid var(--rule);
}

.matcher-filters {
  border-top: 1px solid var(--ink-mid);
}

.matcher-field {
  min-width: 0;
  margin: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
}

.matcher-field legend {
  float: left;
  width: 136px;
  padding: 9px 12px 9px 0;
  font: 17px/1.6 var(--serif);
}

.matcher-options,
.review-actions,
.match-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.matcher-options {
  gap: 6px;
}

.matcher-options { margin-left: 136px; }

.matcher-chip {
  display: inline-flex;
  position: relative;
}

.matcher-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.matcher-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 15px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.5;
}

.matcher-chip:hover span {
  border-color: var(--ink-muted);
}

.matcher-chip input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.matcher-chip input:focus-visible + span {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

.matcher-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.matcher-toolbar { margin: 18px 0 16px; }

#matcher-status,
.copy-status {
  margin: 0;
  color: var(--ink-mid);
  font-size: 14px;
}

.matcher-toolbar .text-link,
.matcher-empty .text-link,
.match-actions .text-link {
  min-height: 44px;
  font-size: 15px;
}

.matcher-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(18px, 2.1vw, 32px);
}

.match-card,
.match-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.match-image {
  aspect-ratio: 2.12 / 1;
  height: auto;
  object-fit: cover;
}

.match-body {
  flex: 1;
  padding-top: 14px;
}

.match-tag {
  margin: 0 0 6px;
  color: var(--brass-text);
  font: 12px/1.5 var(--sans);
  letter-spacing: .07em;
}

.match-card h3 {
  margin: 0 0 12px;
  font-size: clamp(21px, 1.55vw, 25px);
  line-height: 1.5;
  text-wrap: pretty;
}

.match-facts { margin: 0; font-size: 14px; line-height: 1.7; }

.match-facts > div {
  display: grid;
  grid-template-columns: 5em minmax(0, 1fr);
  margin-bottom: 5px;
}

.match-facts dt { color: var(--ink-muted); }

.match-facts dd { margin: 0; }

.match-reasons {
  padding-left: 1.2em;
  margin: 8px 0 16px;
  color: var(--ink-mid);
  font-size: 14px;
  line-height: 1.65;
}

.match-reasons li::marker { color: var(--brass-text); }

.match-actions {
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--rule);
  gap: 0 18px;
}

.match-actions .text-link { gap: 5px; }

.matcher-empty {
  grid-column: 1 / -1;
  padding: 26px 24px;
  background: var(--paper-soft);
}

.matcher-empty p { margin: 0 0 5px; }

.faq-section {
  display: grid;
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.35fr);
  column-gap: 6%;
  align-items: start;
}

.faq-list { border-top: 1px solid var(--ink-mid); }
.faq-list details { border-bottom: 1px solid var(--rule); }

.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  cursor: pointer;
  padding: 19px 0;
  font: 400 20px/1.6 var(--serif);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: '';
  width: 9px;
  height: 9px;
  flex: none;
  margin: -4px 5px 0 0;
  border: solid var(--brass-text);
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  transition: transform .2s;
}

.faq-list details[open] summary::after { transform: rotate(225deg); }
.faq-list details p { margin: 0; padding: 0 35px 20px 0; line-height: 1.85; color: var(--ink-mid); }
.faq-list a { color: var(--ink); text-decoration: underline; text-underline-offset: .24em; }

.review-actions { gap: 12px; justify-content: center; }
.review-actions .outline-button { border-color: var(--ink-muted); }
.review-actions .outline-button:hover { background: var(--paper); }
.quiet-cta .copy-status:not(:empty) { margin-top: 12px; }

.clipboard-field { position: fixed; left: -9999px; top: 0; }
.manual-copy-field { display: block; width: min(100%, 600px); height: 9em; margin: 10px auto; font: 14px/1.5 var(--sans); }
#print-brief { display: none; }

@media (min-width: 761px) and (max-width: 1024px) {
  .matcher-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matcher-field legend { width: 108px; }
  .matcher-options { margin-left: 108px; }
  .faq-section { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .review-section, .matcher-section { padding-block: 48px 54px; }
  .matcher-field { padding: 10px 0 14px; }
  .matcher-field legend { float: left; width: 100%; padding: 0 0 6px; font-size: 16px; }
  .matcher-options { clear: both; margin: 0; gap: 5px; }
  .matcher-chip span { padding-inline: 10px; font-size: 13px; }
  .matcher-toolbar { gap: 3px 12px; margin-block: 10px 14px; }
  #matcher-status { font-size: 13px; }
  .matcher-results { grid-template-columns: 1fr; gap: 30px; }
  .match-image { aspect-ratio: 1.9 / 1; }
  .match-body { padding-top: 11px; }
  .match-facts > div { grid-template-columns: 4.8em 1fr; }
  .faq-section { display: block; }
  .faq-list summary { padding: 16px 0; font-size: 18px; }
  .faq-list details p { padding-right: 12px; }
  .review-actions { display: grid; width: fit-content; max-width: 100%; margin-inline: auto; gap: 8px; }
}

/* Gallery captions and progressive disclosure */
.collection-price-note {
  margin: 8px 0 20px;
  color: var(--ink-muted);
  font-size: 13px;
}

.card-region {
  margin: 0 0 4px;
  color: var(--ink-muted);
  font-size: 13px;
}

.card-body h3 { margin-bottom: 7px; }
.card-summary { margin: 0 0 15px; color: var(--ink-mid); line-height: 1.65; }
.card-metrics {
  margin: auto 0 5px;
  gap: 5px 22px;
  padding-top: 10px;
  border-color: var(--rule);
  font-variant-numeric: tabular-nums;
}
.card-metrics > div,
.card-metrics dt {
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-metrics dt { gap: 5px; color: var(--ink-muted); }
.card-metrics .ui-icon { width: 16px; height: 16px; color: var(--brass-text); }
.card-metrics dd { margin: 0; color: var(--ink); }
.card-actions { gap: 0 22px; }

.dossier-metrics { margin: 4px 0 18px; }
.dossier-metrics summary,
.match-evidence summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
}
.dossier-metrics summary::-webkit-details-marker,
.match-evidence summary::-webkit-details-marker { display: none; }
.dossier-metrics summary::after,
.match-evidence summary::after {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-1.5px) rotate(45deg);
}
.dossier-metrics[open] summary::after,
.match-evidence[open] summary::after { transform: translateY(1.5px) rotate(225deg); }
.dossier-metrics summary { font-size: 14px; color: var(--ink-mid); }
.dossier-metrics .dossier-facts { margin: 0; }

.matcher-field legend {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 154px;
}
.matcher-field legend .ui-icon { width: 18px; height: 18px; flex: none; color: var(--brass-text); }
.matcher-options { margin-left: 154px; }
.match-facts {
  display: grid;
  grid-template-columns: minmax(75px, .75fr) minmax(0, 1.35fr);
  gap: 8px;
}
.match-facts > div { display: block; margin: 0; }
.match-facts > div + div { border-left: 1px solid var(--rule); padding-left: 13px; }
.match-facts dt { font-size: 12px; }
.match-facts dd { color: var(--ink); font-size: 15px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.match-evidence { margin: 7px 0 4px; }
.match-evidence summary { gap: 0; width: fit-content; max-width: 100%; }
.match-evidence summary::after { margin: 0 4px 0 9px; color: var(--brass-text); }
.match-evidence .match-tag { margin: 0; color: var(--ink-mid); letter-spacing: 0; font-size: 13px; }
.match-evidence .match-tag + .match-tag {
  border-left: 1px solid var(--rule-strong);
  padding-left: 8px;
  margin-left: 8px;
}
.match-reasons { margin: 0 0 12px; }

@media (max-width: 760px) {
  .matcher-field legend { width: 100%; }
  .matcher-options { margin-left: 0; }
  .card-metrics { gap: 6px 16px; }
  .card-actions { gap: 0 16px; }
  .collection-price-note { font-size: 12px; }
}

/* Operating models and service dossiers */
.model-heading,
.model-legend,
.model-legend span,
.model-top,
.price-meta,
.ceiling-key,
.svc-highlights .svc-block-title {
  display: flex;
  align-items: center;
}
.model-heading,
.model-top { justify-content: space-between; }
.model-heading { gap: 12px; margin-bottom: 13px; }
.model-heading .sub-eyebrow,
.model-legend { margin: 0; }
.model-legend { gap: 14px; color: var(--ink-mid); font-size: 12px; }
.model-legend span { gap: 6px; }
.model-legend span::before {
  content: '';
  width: 15px;
  height: 3px;
  background: #584c3d;
}
.model-legend span:last-child::before { background: var(--brass); }
.model-grid { gap: 0; border-block: 1px solid var(--rule-strong); align-items: start; }
.model-card {
  display: block;
  padding: 0;
  min-width: 0;
  border: 0;
  background: transparent;
}
.model-card > summary {
  display: grid;
  padding: 22px clamp(14px, 1.8vw, 28px) 24px;
  cursor: pointer;
  list-style: none;
}
.model-card summary::-webkit-details-marker,
.svc-disclosure summary::-webkit-details-marker { display: none; }
.model-card + .model-card { border-left: 1px solid var(--rule); }
.model-top { margin-bottom: 16px; color: var(--brass-text); }
.model-top .ui-icon { width: 22px; height: 22px; }
.model-card h4 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.4;
}
.model-meter {
  display: block;
  position: relative;
  height: 3px;
  background: linear-gradient(to right, #584c3d 0 var(--rail-share), var(--brass) var(--rail-share));
}
.model-meter::after {
  content: '';
  position: absolute;
  inset: 0 calc(100% - var(--rail-max)) 0 var(--rail-share);
  background: repeating-linear-gradient(110deg, #584c3d 0 2px, var(--paper) 2px 3px);
}
.model-ratio {
  padding: 5px 0 0;
  border: 0;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}
.model-feature {
  display: block;
  margin: 13px 0 12px;
  font-size: 13.5px;
  min-height: 3.2em;
  line-height: 1.6;
  color: var(--ink);
}
.model-trains {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin: 0;
}
.model-trains span { border-bottom: 1px solid var(--rule); }
.model-card summary:hover .disclosure-plus,
.svc-disclosure summary:hover { color: var(--brass-text); }
.disclosure-plus,
.svc-disclosure > summary::after {
  width: 11px;
  height: 11px;
  flex: none;
  color: var(--ink-muted);
  background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
}
.model-card[open] .disclosure-plus,
.svc-disclosure[open] > summary::after { background-size: 100% 1px, 1px 0; }
.model-record { padding: 0 clamp(14px, 1.8vw, 28px) 20px; color: var(--ink-mid); font-size: 13px; }
.model-record strong { font-weight: 500; color: var(--ink); }
.model-card .model-record p { margin: 6px 0 0; font-size: 13px; line-height: 1.7; }

.price-meta {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 16px;
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.55;
}
.ceiling-key { gap: 6px; color: var(--brass-text); font-variant-numeric: tabular-nums; }
.ceiling-key[hidden] { display: none; }
.ceiling-key::before { content: ''; width: 22px; border-top: 1px dashed currentColor; }
.price-chart { position: relative; }
.price-guide {
  display: grid;
  position: absolute;
  inset: 0;
  grid-template-columns: 200px minmax(0, 1fr) 240px;
  column-gap: 20px;
  pointer-events: none;
}
.price-guide-track { position: relative; }
.price-guide-track::after,
.price-chart[data-ceiling] .price-track::after {
  content: '';
  position: absolute;
  inset-block: 0;
  left: var(--ceiling-position);
  border-left: 1px dashed var(--brass-text);
}
.price-chart[data-ceiling] .price-track::after { display: none; }
.price-bar { top: 4px; bottom: 4px; border-radius: 0; }
.price-chart .price-row.selected .price-bar { box-shadow: none; }
.price-chart .price-row.selected { box-shadow: inset 2px 0 0 var(--brass); }
.svc-disclosure { color: var(--ink-mid); font-size: 13px; }
.svc-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  list-style: none;
}
.svc-disclosure > summary::after { content: ''; }
.svc-disclosure p { margin: 0 0 8px; color: var(--ink-mid); line-height: 1.7; }
.price-foot,
.price-source { margin: 2px 0 0; font-size: 12px; }
.price-source > summary { min-height: 44px; }
.svc-price { margin-bottom: 0; }
.svc-detail {
  border: 0;
  border-block: 1px solid var(--rule-strong);
  padding: 28px 0;
  background: none;
}
.svc-head { align-items: start; }
.svc-head-media { aspect-ratio: 16 / 10; }
.svc-block-title { padding-bottom: 8px; }
.timeline-heading { border: 0; padding: 0; margin-bottom: 12px; }
.rhythm-grid {
  --rhythm-gap: clamp(16px, 2vw, 32px);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--rhythm-gap);
  margin: 0 0 10px;
}
.rhythm-grid:focus-visible { outline: 1px solid var(--brass); outline-offset: 4px; }
.rhythm-time {
  display: flex;
  align-items: center;
  position: relative;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--brass-text);
  font-size: 15px;
  letter-spacing: .035em;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.rhythm-time::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--paper);
}
.rhythm-time::after {
  content: '';
  height: 1px;
  flex: 1;
  background: var(--rule-strong);
  margin-right: calc(-1 * var(--rhythm-gap));
}
.rhythm-step:last-child .rhythm-time::after { content: none; }
.rhythm-step img {
  height: auto;
  aspect-ratio: 2.2;
  margin: 0 0 12px;
}
.rhythm-step h5 { margin: 0 0 3px; color: var(--ink); }
.rhythm-step p { line-height: 1.6; }
.svc-highlights .svc-block-title { gap: 9px; }
.svc-highlights .ui-icon { width: 19px; height: 19px; color: var(--brass-text); }
.svc-highlights .svc-list > div { grid-template-columns: 76px 1fr; padding: 9px 0; }
.service-record { border-bottom: 1px solid var(--rule); }
.service-record > summary { width: 100%; justify-content: space-between; }
.svc-record-rhythm { padding-left: 20px; }
.svc-record-rhythm li { margin-bottom: 10px; }
.svc-record-rhythm strong { font-weight: 500; }
.service-record .svc-columns { margin: 16px 0; }
.service-record .svc-columns h4 { margin-bottom: 4px; }
.service-record .svc-list > div:last-child { border: 0; }

@media (min-width: 761px) and (max-width: 1100px) {
  .model-card:nth-child(3) { border-left: 0; }
  .model-card:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
  .model-card > summary { padding: 16px 11px 16px; }
  .model-card:nth-child(odd) { border-left: 0; }
  .model-card:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .model-top { margin-bottom: 12px; }
  .model-card h4 { margin-bottom: 12px; font-size: 18px; }
  .model-ratio { font-size: 11px; line-height: 1.5; }
  .model-feature { margin-block: 9px; font-size: 13px; }
  .model-record { padding: 0 11px 16px; }
  .price-panel .price-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    grid-template-areas: 'name value' 'track track';
    padding: 7px 8px;
    gap: 2px 8px;
  }
  .price-row .price-name { grid-area: name; padding: 0; font-size: 14px; }
  .price-row .price-name small { font-size: 10px; line-height: 1.4; }
  .price-row .price-value { grid-area: value; padding: 0; font-size: 12px; text-align: right; }
  .price-row .price-track { grid-area: track; margin: 0; }
  .price-guide { display: none; }
  .price-chart[data-ceiling] .price-track::after { display: block; }
  .price-meta { display: grid; margin-bottom: 10px; }
  .price-axis { grid-template-rows: 1fr; }
  .price-axis .axis-track { align-self: stretch; }
  .svc-detail { padding: 18px 0 22px; }
  .rhythm-grid {
    --rhythm-gap: 14px;
    grid-template-columns: repeat(4, 44%);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--rule-strong) transparent;
    padding-bottom: 6px;
  }
  .rhythm-step { scroll-snap-align: start; }
  .rhythm-step img { aspect-ratio: 1.6; margin-bottom: 8px; }
  .rhythm-step h5 { font-size: 16px; }
  .rhythm-step p { font-size: 12.5px; }
  .svc-highlights .svc-list > div { grid-template-columns: 72px 1fr; }
}

@page { size: A4 portrait; margin: 15mm 16mm; }

@media print {
  html, body { margin: 0; padding: 0; background: white; color: #29251e; }
  body > :not(#print-brief), #level-note, dialog::backdrop, .clipboard-field { display: none !important; }
  #print-brief { display: block; font-size: 10pt; line-height: 1.6; }
  .brief-page { break-after: page; }
  .brief-page:last-child { break-after: auto; }
  .brief-page h1, .brief-page .brief-title { margin: 6mm 0 3mm; font: 400 24pt/1.35 var(--serif); letter-spacing: .02em; }
  .brief-page h2 { margin: 7mm 0 3mm; font-size: 15pt; letter-spacing: .02em; }
  .brief-page h3 { margin: 0 0 2mm; font-size: 12pt; line-height: 1.45; }
  .brief-kicker { display: flex; justify-content: space-between; margin: 0; padding-bottom: 3mm; border-bottom: 1pt solid #8d7758; font: 9pt/1.5 var(--eyebrow-font); letter-spacing: .12em; }
  .brief-lead { margin: 0 0 5mm; color: #534c43; font-size: 10pt; }
  .brief-plates, .brief-critiques { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4mm 6mm; }
  .brief-plates figure { margin: 0; }
  .brief-plates img { width: 100%; height: 52mm; object-fit: cover; }
  .brief-plates figcaption { margin-top: 2mm; font-size: 9pt; color: #534c43; }
  .brief-critiques > div { padding-top: 3mm; border-top: .5pt solid #c5bcac; }
  .brief-critiques p { margin: 0; }
  .brief-note { margin: 7mm 0 0; padding-top: 3mm; border-top: .5pt solid #c5bcac; color: #625b50; font-size: 9pt; }
  .brief-prices { width: 100%; border-collapse: collapse; font-size: 9.5pt; font-variant-numeric: tabular-nums; }
  .brief-prices thead { display: table-header-group; }
  .brief-prices th, .brief-prices td { padding: 1.8mm 2mm; border-bottom: .5pt solid #d5cdbf; text-align: left; vertical-align: middle; }
  .brief-prices thead th { border-block: .7pt solid #817661; font-weight: 500; }
  .brief-prices th:first-child { width: 28%; }
  .brief-prices th:nth-child(2) { width: 30%; }
  .brief-prices tbody th { font-family: var(--serif); font-weight: 500; }
  .brief-prices tr, .brief-plates figure { break-inside: avoid; }
  .brief-observations { width: 100%; table-layout: fixed; border-collapse: collapse; }
  .brief-observations th, .brief-observations td { text-align: left; vertical-align: top; padding: 2.5mm 2mm; border-bottom: .5pt solid #d5cdbf; }
  .brief-observations th:first-child { width: 15mm; }
  .brief-atlas figure { margin: 5mm 0; }
  .brief-atlas img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block; border: .5pt solid #c5bcac; }
  .brief-atlas figcaption { font-size: 8pt; text-align: right; margin-top: 1mm; }
  .brief-atlas dl { display: grid; gap: 3mm; margin: 4mm 0 6mm; }
  .brief-atlas .atlas-facts { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .brief-atlas .brief-legend { grid-template-columns: repeat(3, 1fr); }
  .brief-atlas dl div { border-top: .5pt solid #c5bcac; padding: 2mm 0; }
  .brief-atlas dt { font-size: 9pt; }
  .brief-atlas dd { margin: 1mm 0 0; font-family: var(--serif); }

}

@media screen {
  .atlas-section { padding-block: clamp(48px, 6vw, 88px); }
  .atlas-tabs { display: flex; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
  .atlas-tabs button { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: transparent; padding: 12px clamp(14px, 2vw, 32px); color: var(--ink-muted); font: 500 15px var(--serif); cursor: pointer; }
  .atlas-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--brass); }
  .atlas-tabs small { font: italic 12px var(--eyebrow-font); color: var(--brass-text); margin-right: 8px; }
  .atlas-panel[hidden] { display: none; }
  .atlas-panel figure { margin: 0; }
  .atlas-panel img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; background: var(--paper); border: 1px solid var(--rule); }
  .atlas-panel figcaption { text-align: right; margin: 6px 0 12px; font-size: 11px; color: var(--ink-muted); }
  .atlas-facts { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0; border-block: 1px solid var(--rule); }
  .atlas-facts > div { padding: 14px clamp(10px, 1.6vw, 24px); }
  .atlas-facts > div + div { border-left: 1px solid var(--rule); }
  .atlas-facts dt, .atlas-key dd { font-size: 12px; color: var(--ink-muted); }
  .atlas-facts dd { margin: 5px 0 0; font: 500 clamp(17px, 2vw, 28px) var(--serif); }
  #atlas-panel-2 .atlas-facts div:nth-child(2) dd { color: var(--brass-text); }
  .atlas-key summary { width: fit-content; padding: 15px 0; cursor: pointer; font: 500 14px var(--serif); }
  .atlas-key summary small { color: var(--brass-text); margin-left: .5em; }
  .atlas-key dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 18px; margin: 0; }
  .atlas-key dl div { border-left: 1px solid var(--rule-strong); padding-left: 10px; }
  .atlas-key dl div:first-child { border-color: var(--brass); }
  .atlas-key dt { font-size: 13px; }
  .atlas-key dd { margin: 3px 0 0; }
}
@media screen and (max-width: 700px) {
  .atlas-tabs button { flex: 1; padding: 10px 2px; font-size: 13px; }
  .atlas-tabs small { display: block; margin: 0 0 4px; }
  .atlas-key dl, .atlas-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-facts { grid-auto-flow: row; }
  .atlas-facts > div:nth-child(odd) { border-left: 0; }
  .atlas-facts > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
  #atlas-panel-1 .atlas-facts { grid-template-columns: 1fr 1fr 1.6fr; }
  #atlas-panel-1 .atlas-facts > div:last-child { border-top: 0; border-left: 1px solid var(--rule); }
  .atlas-facts > div { padding: 10px 7px; }
}

@media screen {
  #atlas-map { position: relative; isolation: isolate; }
  .atlas-leaders, #atlas-pins { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
  .atlas-leaders g { color: #776d5a; }
  .atlas-leaders line, .atlas-leaders circle { vector-effect: non-scaling-stroke; }
  .atlas-leaders line { stroke: currentColor; stroke-width: 1; }
  .atlas-compact-line, .atlas-pin-number, #atlas-chips { display: none; }
  .atlas-dot { fill: #483d2f; stroke: var(--paper-card); stroke-width: 1; }
  .atlas-leaders .active { color: var(--ink); }
  .atlas-leaders [data-atlas-anchor="jinxiu-tianfu"] { color: #946422; }
  [data-atlas-anchor="jinxiu-tianfu"] .atlas-dot { fill: #ad762d; stroke: #ad762d; }
  .atlas-halo { stroke: currentColor; stroke-width: 1; fill: none; }
  .atlas-halo.outer { stroke-opacity: .72; }
  .atlas-hit { fill: transparent; pointer-events: all; cursor: pointer; }
  .atlas-pin {
    position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    background: #faf7f0; color: #40392f; border: 1px solid #a99e8b; border-radius: 3px;
    padding: 4px 8px; font: 500 13px/1.25 var(--sans); white-space: nowrap;
    pointer-events: auto; cursor: pointer;
  }
  .atlas-pin .ui-icon { width: 17px; height: 17px; flex: none; stroke-width: 1; }
  .atlas-pin:hover { border-color: var(--ink); }
  .atlas-pin[aria-pressed="true"] { color: var(--paper-card); background: #4e4333; border-color: #4e4333; }
  .atlas-pin[data-atlas-pin="jinxiu-tianfu"] { color: #684311; border-color: #9a6d30; background: #f7ead2; font-weight: 700; }
  .atlas-pin[data-atlas-pin="jinxiu-tianfu"][aria-pressed="true"] { background: #785320; color: #fff9e9; }
  .atlas-pin:focus-visible, #atlas-chips button:focus-visible { outline-color: #4c371c; outline-offset: 2px; z-index: 2; }
  #atlas-profile {
    display: grid; grid-template-columns: clamp(102px, 11vw, 168px) minmax(200px, 1.35fr) minmax(240px, 1fr) auto;
    align-items: center; gap: clamp(16px, 2.25vw, 35px); padding: 17px 0;
    border-block: 1px solid var(--rule); scroll-margin-top: 80px;
  }
  .atlas-portrait { position: relative; }
  #atlas-profile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 0; }
  .atlas-portrait small { position: absolute; bottom: 5px; left: 5px; padding: 2px 5px; font-size: 10px; background: #f9f5eb; color: #453b30; }
  .atlas-identity > p:first-child, .atlas-rates dt { color: var(--ink-muted); font-size: 12px; }
  .atlas-identity p, .atlas-rates, .atlas-rates dd { margin: 0; }
  #atlas-profile h3 { font: 500 clamp(22px, 2vw, 31px)/1.35 var(--serif); margin: 3px 0; }
  #atlas-profile[data-train-id="jinxiu-tianfu"] h3 { font-weight: 700; }
  .atlas-route, .atlas-feature { font-size: 13px; line-height: 1.6; }
  .atlas-feature { color: var(--ink-muted); }
  .atlas-rates { display: grid; row-gap: 5px; border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(12px, 2vw, 28px); }
  .atlas-rates > div { display: grid; grid-template-columns: max-content 1fr; gap: 12px; align-items: baseline; }
  .atlas-rates dd { color: var(--ink); font-size: 13px; font-variant-numeric: tabular-nums; line-height: 1.45; }
  .atlas-links { display: grid; row-gap: 3px; }
  .atlas-links a, .atlas-links button {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0;
    font: 500 13px/1.5 var(--sans); color: var(--ink-mid); background: none; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap;
  }
  .atlas-links svg { width: 14px; height: 14px; color: var(--brass-text); }
  .atlas-links :is(a,button):hover { color: var(--brass-text); text-decoration: underline; text-underline-offset: 3px; }
  #atlas .atlas-facts > div { position: relative; }
  #atlas .atlas-facts a { color: inherit; text-decoration: none; display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
  #atlas .atlas-facts a::after { content: ''; position: absolute; inset: 0; }
  #atlas .atlas-facts a span { color: var(--brass-text); font: 14px/1 var(--sans); }
  #atlas .atlas-facts > div:has(a:hover), #atlas .atlas-facts > div:has(a:focus-visible) { background: var(--paper-soft); }
}
@media screen and (max-width: 1050px) {
  .atlas-desktop-line, .atlas-pin-name { display: none; }
  .atlas-compact-line, .atlas-pin-number { display: block; }
  .atlas-pin { left: var(--mx); top: var(--my); padding: 3px; gap: 2px; font-size: 10px; font-variant-numeric: tabular-nums; }
  .atlas-pin .ui-icon { width: 13px; height: 13px; stroke-width: 1; }
  .atlas-leaders .atlas-dot { r: 6px; }
  .atlas-leaders .atlas-halo { r: 14px; }
  .atlas-leaders .atlas-halo.outer { r: 21px; }
  #atlas-chips { display: flex; gap: 6px; overflow-x: auto; margin-top: 6px; scrollbar-width: thin; padding: 4px 0; }
  #atlas-chips button {
    flex: none; display: flex; align-items: center; gap: 6px; padding: 0 11px; min-height: 42px;
    font: 500 12px/1.4 var(--sans); color: var(--ink-mid); background: transparent; border: 1px solid var(--rule-strong); cursor: pointer;
  }
  #atlas-chips small { color: var(--ink-muted); font: italic 11px var(--eyebrow-font); }
  #atlas-chips [aria-pressed="true"] { background: var(--paper-soft); border-color: var(--ink-muted); color: var(--ink); }
  #atlas-chips [data-atlas-chip="jinxiu-tianfu"] { font-weight: 700; }
  #atlas-chips [data-atlas-chip="jinxiu-tianfu"] small { color: var(--brass-text); }
  #atlas-profile { grid-template-columns: 102px minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px 18px; }
  .atlas-links { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 24px; }
}
@media screen and (max-width: 700px) {
  #atlas-profile { grid-template-columns: 82px minmax(0, 1fr); gap: 11px 12px; padding: 12px 0 0; }
  #atlas-profile img { aspect-ratio: 1; }
  #atlas-profile h3 { margin: 1px 0 3px; }
  .atlas-route, .atlas-feature { font-size: 12px; line-height: 1.5; }
  .atlas-rates { grid-column: 1 / -1; border: 0; border-top: 1px solid var(--rule); padding: 9px 0 0; gap: 4px; }
  .atlas-rates > div { grid-template-columns: minmax(80px, .6fr) 1.5fr; }
  .atlas-links { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-top: 1px solid var(--rule); }
  .atlas-links a, .atlas-links button { justify-content: center; gap: 3px; min-height: 43px; font-size: 12px; }
}

.index-tile.is-own .tile-title, .price-row.is-own .price-name, tr.is-own .spec-name {
  font-weight: 700;
}
.index-tile.is-own .tile-title::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin: 0 6px 3px 0;
  background: #c7a46c;
}
.price-row.is-own .price-name small { font-weight: 400; }
.index-tile-frame, .match-card, .rhythm-photo { position: relative; }
.image-kind, .match-rendering {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: max-content;
  padding: 2px 6px;
  background: #29251de8;
  color: #fff8ea;
  font: 11px/1.6 var(--sans);
  letter-spacing: .04em;
  pointer-events: none;
}
.match-rendering { bottom: auto; top: 8px; }
.detail-image-kind { inset: 16px auto auto 16px; }
.rhythm-photo .image-kind { bottom: 12px; }
@media (max-width: 480px) {
  .own-switch { gap: 6px; flex-wrap: wrap; }
  .own-switch button { padding-inline: 8px; }
}

@media print {
  .brief-illustration { position: relative; }
  .brief-map-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
  .brief-map-markers line { stroke: #655d4e; stroke-width: 2; }
  .brief-map-markers circle { fill: #584b36; }
  .brief-map-markers .number-disc { fill: #faf7ef; stroke: #655d4e; stroke-width: 2; }
  .brief-map-markers text { fill: #302b24; text-anchor: middle; font: 600 25px var(--sans); }
  .brief-map-markers .flagship-mark .number-disc { fill: #775222; stroke: #775222; }
  .brief-map-markers .flagship-mark text { fill: white; }
  .brief-legend dt b { margin-right: 1mm; font: 600 8pt var(--sans); color: #795627; }
}

.matrix-home {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  white-space: nowrap;
  color: #e6dbcb;
  font: 500 13px var(--eyebrow-font);
}
.matrix-home:hover { color: white; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 6px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #e6dbcb;
  font: 500 13px var(--eyebrow-font);
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(230, 219, 203, 0.45);
  transition: color 0.2s, border-color 0.2s;
}
.lang-switch:hover {
  color: white;
  border-bottom-color: white;
}
.matrix-home + .brand-mark { padding-inline-start: 13px; position: relative; }
.matrix-home + .brand-mark::before {
  content: ''; position: absolute; inset-inline-start: 0; height: 16px;
  width: 1px; background: #a89c89;
}
.matrix-actions { display: flex; flex-wrap: wrap; gap: 0 16px; }
.matrix-actions a { color: var(--brass-text); }
.matrix-actions a {
  display: inline-flex; gap: 4px; align-items: center;
  min-height: 44px; font-size: 14px; text-decoration: underline;
  text-decoration-color: var(--rule-strong); text-underline-offset: 5px;
}
.matrix-actions svg { width: 14px; height: 14px; }
#modal-matrix-links { border-block: 1px solid var(--rule); margin: 12px 0; }
.match-actions { flex-wrap: wrap; }
.match-actions .matrix-actions { flex-basis: 100%; }

@media (min-width: 761px) and (max-width: 1550px) {
  .brand-sub { display: none; }
  .header-inner { gap: clamp(10px, 1.4vw, 22px); }
  .main-nav { gap: clamp(10px, 1.65vw, 24px); }
}
@media (min-width: 761px) and (max-width: 960px) {
  .brand-mark { font-size: 16px; }
  .main-nav { font-size: 14px; }
}
@media (max-width: 760px) {
  .header-inner { gap: 8px; }
  .brand-space { gap: 8px; min-width: 0; }
  .matrix-home { font-size: 12px; flex-shrink: 0; }
  .matrix-home + .brand-mark { padding-inline-start: 9px; font-size: clamp(13px, 3.6vw, 18px); overflow: hidden; text-overflow: ellipsis; }
  .lang-switch { font-size: 12px; padding: 0 4px; }
  .scene-pills { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.matrix-origin { font-size: 10px; color: #e4d9c7; }
@media screen and (max-width: 700px) {
  .atlas-tabs button {
    padding-inline: 0;
    font-size: clamp(11px, 3.1vw, 13px);
    white-space: nowrap;
  }
}
