:root {
  color-scheme: dark;
  --width: 480px;
  --rpx: min(.133333vw, .64px);
  --gutter: calc(32 * var(--rpx));
  --block-space: calc(28 * var(--rpx));
  --nav-height: calc(44px + env(safe-area-inset-top));
  --background: #0f0e0e;
  --panel: #161412;
  --card: #1a1817;
  --border: #2a2724;
  --gold: #e8c268;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --quiet: #8c867e;
  background: #090808;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  scroll-padding-top: calc(var(--nav-height) + 8px);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a, button, summary, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
.mono { font-family: "SF Mono", Menlo, Consolas, "Courier New", monospace; }

.shell {
  position: relative;
  max-width: var(--width);
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  background: var(--background);
}
.nav {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  height: var(--nav-height);
  padding: env(safe-area-inset-top) 92px 0;
  background: var(--background);
  font-size: 16px;
  font-weight: 600;
}
.nav-title { overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
html[lang="en"] .nav-title { font-size: clamp(14px, 4.25vw, 16px); }
@media (max-width: 360px) {
  .nav { padding-left: 66px; }
  html[lang="en"] .nav-title { font-size: 13px; }
}
.nav-back {
  position: absolute;
  inset: env(safe-area-inset-top) auto 0 0;
  display: grid;
  place-items: center;
  width: 48px;
}
.nav-back span { width: 10px; height: 10px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.nav-estimate, .nav-actions {
  position: absolute;
  top: env(safe-area-inset-top);
  bottom: 0;
}
.nav-actions { right: 0; display: flex; }
.nav-estimate, .nav-phone, .language-switch {
  display: grid;
  place-items: center;
  padding-inline: 12px;
  color: var(--gold);
  font-size: 12px;
  white-space: nowrap;
}
.nav-estimate { left: 0; }
html[lang="en"] .nav:has(.nav-estimate) { padding-left: 120px; }
@media (max-width: 420px) {
  html[lang="en"] .nav:has(.nav-estimate) { padding-left: 76px; }
  html[lang="en"] .nav-estimate {
    width: 72px;
    padding-inline: 8px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
}
@media (max-width: 360px) {
  html[lang="en"] .nav:has(.nav-estimate) .nav-title {
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }
}
.language-switch { min-width: 48px; }
.nav-phone { width: 44px; padding-inline: 0; }
.phone-icon {
  position: relative;
  width: 9px;
  height: 18px;
  border-left: 2px solid currentColor;
  border-radius: 85% 0 0 85%;
  transform: rotate(-43deg);
}
.phone-icon::before, .phone-icon::after {
  position: absolute;
  left: 0;
  width: 6px;
  height: 5px;
  border-radius: 2px;
  background: currentColor;
  content: '';
}
.phone-icon::before { top: 0; }
.phone-icon::after { bottom: 0; }
.nav-estimate:focus-visible, .nav-phone:focus-visible, .language-switch:focus-visible { outline-offset: -3px; }

.page { padding: var(--block-space) var(--gutter) calc(56 * var(--rpx)); }
.block { margin-bottom: var(--block-space); }
.noscript { padding: var(--gutter); }
.cover-image, .cover-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-image { object-fit: cover; display: block; }
.cover-shade { background: linear-gradient(180deg, transparent, rgb(15 14 14 / 28%)); pointer-events: none; }
.duration, .feature-duration {
  position: absolute;
  right: calc(20 * var(--rpx));
  bottom: calc(20 * var(--rpx));
  padding: 3px 7px;
  background: rgb(15 14 14 / 82%);
  font-size: 11px;
}

.stage {
  position: relative;
  height: max(320px, calc(100vh - var(--nav-height) - 44px));
  height: max(320px, calc(100dvh - var(--nav-height) - 44px));
  margin: calc(-1 * var(--block-space)) calc(-1 * var(--gutter)) 0;
  overflow: hidden;
}
.stage-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(15 14 14 / 58%), rgb(15 14 14 / 4%) 26%, rgb(15 14 14 / 16%) 46%, rgb(15 14 14 / 72%) 74%, rgb(15 14 14 / 95%));
}
.stage-top {
  position: absolute;
  top: calc(30 * var(--rpx));
  inset-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: max(13px, calc(28 * var(--rpx)));
  font-weight: 700;
}
.stage-top .mono { color: var(--gold); font-size: max(10px, calc(19 * var(--rpx))); font-weight: 400; letter-spacing: .5px; text-align: right; }
.stage-top > :first-child { flex-shrink: 0; }
.stage-body { position: absolute; inset-inline: calc(44 * var(--rpx)); bottom: var(--gutter); }
.stage-kicker {
  margin-bottom: calc(28 * var(--rpx));
  color: var(--gold);
  font-size: max(10px, calc(18 * var(--rpx)));
  letter-spacing: 1px;
}
.stage h1 { font-size: max(18px, calc(44 * var(--rpx))); line-height: 1.5; white-space: pre-line; }
.stage-rule { width: calc(76 * var(--rpx)); height: 1px; margin: calc(36 * var(--rpx)) 0 calc(24 * var(--rpx)); background: var(--gold); }
.stage-description { color: #b9b4ad; font-size: max(12px, calc(21 * var(--rpx))); line-height: 1.6; }
@media (max-height: 630px) {
  .stage-kicker { margin-bottom: 8px; }
  .stage h1 { font-size: max(17px, calc(36 * var(--rpx))); line-height: 1.4; }
  .stage-rule { margin-block: 11px 7px; }
}

.clients, .section-summary, .filter-panel, .meta, .fold summary, .fold-body {
  padding: calc(26 * var(--rpx));
  border: 1px solid var(--border);
  background: var(--panel);
}
.clients-head, .section-head, .section-top, .fold summary, .price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.clients-head { align-items: baseline; margin-bottom: calc(20 * var(--rpx)); }
.clients-head h2 { font-size: max(13px, calc(24 * var(--rpx))); font-weight: 600; }
.clients-head .mono { color: var(--gold); font-size: max(10px, calc(18 * var(--rpx))); letter-spacing: .5px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(12 * var(--rpx)); }
.logo-cell {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  height: calc(104 * var(--rpx));
  overflow: hidden;
  border-radius: calc(8 * var(--rpx));
  background: #fff;
  color: var(--border);
  font-size: 11px;
  text-align: center;
}
.logo-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-crop { display: block; position: relative; width: 85%; overflow: hidden; }
/* The oval occupies pixels (352, 144) through (600, 314) of the original advert. */
.logo-crop-chenliji { aspect-ratio: 248 / 170; clip-path: ellipse(49% 49% at 50% 50%); }
.logo-crop-chenliji .logo-image { position: absolute; left: -141.94%; top: -84.71%; width: 273.79%; height: auto; }
.section-head { padding: calc(12 * var(--rpx)) 2px calc(20 * var(--rpx)); }
.section-head h2 { font-size: max(16px, calc(32 * var(--rpx))); font-weight: 600; }
.section-head p { margin-top: 4px; color: var(--quiet); font-size: max(11px, calc(20 * var(--rpx))); }
.rail { display: flex; align-items: flex-start; gap: calc(20 * var(--rpx)); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.rail::-webkit-scrollbar { display: none; }
.feature-card, .case-card { display: block; overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.feature-card { flex: 0 0 calc(560 * var(--rpx)); scroll-snap-align: start; }
.feature-card:focus-visible { outline-offset: -3px; }
.feature-cover, .case-cover, .detail-cover { position: relative; overflow: hidden; background: var(--card); }
.cover-contain .cover-image { object-fit: contain; }
.feature-cover { height: calc(300 * var(--rpx)); }
.feature-duration { inset: auto 8px 8px auto; }
.feature-body, .case-body { padding: calc(26 * var(--rpx)); }
.feature-scene, .case-scene, .detail-scene { margin-bottom: calc(14 * var(--rpx)); color: var(--gold); font-size: max(11px, calc(19 * var(--rpx))); }
.feature-body h3, .feature-body h4, .case-body h2 { margin-bottom: calc(14 * var(--rpx)); font-size: max(15px, calc(30 * var(--rpx))); font-weight: 600; line-height: 1.4; }
.feature-story, .case-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: max(12px, calc(22 * var(--rpx)));
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.feature-story { min-height: 3.3em; }
.feature-more, .case-more { display: block; margin-top: calc(18 * var(--rpx)); color: var(--gold); font-size: max(11px, calc(20 * var(--rpx))); }
.portrait-ads { margin-top: calc(34 * var(--rpx)); }
.portrait-rail { align-items: stretch; padding-bottom: 9px; scrollbar-color: var(--gold) var(--border); scrollbar-width: thin; }
.portrait-rail::-webkit-scrollbar { display: block; height: 3px; }
.portrait-rail::-webkit-scrollbar-track { background: var(--border); }
.portrait-rail::-webkit-scrollbar-thumb { background: var(--gold); }
.portrait-card { flex-basis: 76%; border-color: #685232; border-radius: 12px; }
.portrait-card .feature-cover { height: auto; aspect-ratio: 3 / 4; }
.portrait-card .play-icon { width: 52px; height: 52px; background: var(--gold); }
.portrait-card .play-icon::after { border-left-color: var(--background); }
.rail-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 9px; color: var(--gold); font-size: 12px; }
.rail-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}
.rail-controls button:disabled { color: var(--quiet); opacity: .55; cursor: default; }
.category-section { margin-top: calc(34 * var(--rpx)); }
.category-showcase + .category-showcase { margin-top: 24px; }
.showcase-heading {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 86px;
  margin-bottom: 10px;
  padding: 11px 13px;
  overflow: hidden;
  border: 1px solid #453725;
  border-radius: 10px;
  background: #191510;
}
.showcase-heading .cover-image { z-index: -2; }
.showcase-heading::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #110e0bf7 5%, #110e0bd9 40%, #110e0ba8 100%);
  content: '';
}
.showcase-heading-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 8px; }
.showcase-heading h2, .showcase-heading h3 { color: #fcf1e0; font-size: clamp(17px, 4.4vw, 22px); line-height: 1.25; }
.showcase-count { color: var(--gold); font-size: 12px; }
.showcase-heading p { margin-top: 4px; color: #d3c8b9; font-size: 12px; line-height: 1.4; }
.category-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid #ae8b48;
  border-radius: 999px;
  background: #1c160fd9;
  color: var(--gold);
  font-size: 12px;
  white-space: nowrap;
}
.category-all:hover { border-color: var(--gold); }
.category-all:focus-visible { outline-offset: 1px; }
.category-rail { align-items: stretch; }
.category-rail .feature-card { display: flex; flex-direction: column; border-radius: 9px; }
.category-rail .feature-cover { flex: none; }
.category-rail .feature-body { display: flex; flex: 1; flex-direction: column; }
.category-rail .feature-more { margin-top: auto; padding-top: 8px; }
.feature-card:hover, .fold summary:hover { border-color: var(--gold); }

.fold summary { list-style: none; cursor: pointer; font-size: max(13px, calc(24 * var(--rpx))); }
.fold summary::-webkit-details-marker { display: none; }
.fold-state { color: var(--gold); font-size: max(11px, calc(20 * var(--rpx))); white-space: nowrap; }
.fold .when-open, .fold[open] .when-closed { display: none; }
.fold[open] .when-open { display: inline; }
.fold-body { border-top: 0; background: var(--card); }
.cooperation-item { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.cooperation-item strong, .pricing-title { display: block; color: var(--gold); font-size: max(13px, calc(24 * var(--rpx))); font-weight: 500; }
.cooperation-item p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.pricing-title { padding: 3px 0 4px; font-size: 12px; letter-spacing: .5px; }
.price-row { padding-block: 9px; border-bottom: 1px solid var(--border); }
.price-top { align-items: baseline; font-size: max(13px, calc(24 * var(--rpx))); }
.price-value { color: var(--gold); font-size: 11px; white-space: nowrap; }
.price-value strong { font-size: max(16px, calc(32 * var(--rpx))); }
.price-row p, .price-note, .price-footer { margin-top: 4px; color: var(--quiet); font-size: 12px; line-height: 1.6; }
.price-note { margin-top: 10px; }
.price-footer { margin-top: 6px; color: #c9c6c2; }
.company-intro { padding-top: calc(12 * var(--rpx)); }
.video-frame { position: relative; border: 1px solid var(--border); background: #000; }
.video-frame video { display: block; width: 100%; aspect-ratio: 720 / 406; }
.home-section { padding-top: 8px; }
.home-section h2 { margin-bottom: 11px; font-size: max(16px, calc(32 * var(--rpx))); font-weight: 600; }
.home-section-kicker { margin-bottom: 5px; color: var(--gold); font-size: 11px; letter-spacing: .5px; }
.philosophy { padding-top: 16px; }
.philosophy > h2 { margin-bottom: 14px; font-size: clamp(24px, 6.3vw, 31px); line-height: 1.2; }
.philosophy > .home-section-kicker { display: flex; align-items: center; gap: 8px; letter-spacing: .14em; }
.philosophy > .home-section-kicker::before { width: 15px; height: 1px; background: currentColor; content: ''; }
.philosophy-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.philosophy-list li {
  --philosophy-band: top;
  overflow: hidden;
  border: 1px solid #413427;
  border-radius: 12px;
  background: var(--panel);
}
.philosophy-list li:nth-child(2) { --philosophy-band: center; }
.philosophy-list li:nth-child(3) { --philosophy-band: bottom; }
.philosophy-banner {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 104px;
  aspect-ratio: 3 / 1;
  padding: 12px 17px;
  border-bottom: 1px solid #413427;
  background-color: #12100e;
  background-image: linear-gradient(90deg, #100e0ef0, #100e0ec2 31%, #100e0e42 65%, transparent 88%), var(--philosophy-image, url('./images/philosophy-triptych.webp'));
  background-repeat: no-repeat;
  background-position: center, center var(--philosophy-band);
  background-size: 100% 100%, 100% 300%;
}
.philosophy-number { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12px; letter-spacing: .12em; }
.philosophy-number::after { width: 19px; height: 1px; background: currentColor; opacity: .65; content: ''; }
.philosophy-banner h3 { max-width: 75%; color: #f6eee2; font-size: clamp(19px, 5vw, 25px); line-height: 1.2; text-wrap: balance; }
.philosophy-list p { padding: 12px 17px 14px; color: #d8d4ce; font-size: 14px; line-height: 1.75; }
.company-intro .fold { margin: 12px 0 0; }
.about-intro, .about-mission { color: #d8d4ce; font-size: 13px; line-height: 1.8; }
.about-mission { margin-top: 7px; color: var(--muted); }
.about-subtitle { margin-bottom: 3px; font-size: 14px; }
.domain-services { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.domain { padding: 9px 0; border-bottom: 1px solid var(--border); }
.domain h4 { font-size: 13px; font-weight: 600; }
.domain-number { margin-right: 8px; color: var(--gold); }
.domain p, .about-slogan { color: var(--quiet); font-size: 12px; }
.domain p { margin: 4px 0 6px; }
.domain-services span { padding: 4px 6px; border-left: 1px solid var(--gold); background: #1c1a18; color: #c9c6c2; font-size: 11px; }
.delivery-title { margin-bottom: 9px; font-size: 14px; }
.delivery-chain {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 11px;
  list-style: none;
  border: 1px solid var(--border);
  background: radial-gradient(circle at center, #e8c26812 1px, transparent 1.5px) 0 0 / 13px 13px, #131210;
}
.delivery-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px clamp(8px, 3vw, 15px);
  border: 1px solid #3a3530;
  border-radius: 999px;
  color: #d8d4ce;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}
.delivery-step .mono { flex: none; color: var(--gold); }
.delivery-step span:last-child { min-width: 0; overflow-wrap: anywhere; }
.about-slogan { margin-top: 12px; }
.sign { padding: 16px 2px 5px; border-top: 1px solid var(--border); color: var(--quiet); font-size: 11px; letter-spacing: .5px; }
.contact-footer {
  padding: clamp(16px, 5vw, 24px);
  border: 1px solid #4c3b29;
  border-radius: 14px;
  background: radial-gradient(ellipse at top right, #3e2c1c, transparent 55%), #171411;
}
.contact-heading { margin-bottom: 16px; }
.contact-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--gold); font-size: 12px; letter-spacing: .08em; }
.contact-kicker::before { width: 16px; height: 1px; background: currentColor; content: ''; }
.contact-footer h2 { color: #fcf3e5; font-size: clamp(18px, 4.6vw, 23px); line-height: 1.35; text-wrap: balance; }
.contact-tagline { margin-top: 6px; color: #d6c7ae; font-size: 13px; line-height: 1.55; }
.contact-content { display: grid; gap: 10px; font-style: normal; }
.contact-call {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid #f0ce7f;
  border-radius: 10px;
  background: linear-gradient(105deg, #e6bd67, #f6d78d);
  color: #241909;
}
.contact-call:hover { background: #f5d58e; }
.contact-call-icon { display: grid; width: 35px; height: 35px; place-items: center; border: 1px solid #3a260b3d; border-radius: 50%; }
.contact-call-details { display: grid; gap: 3px; font-size: 12px; }
.contact-call-details strong { font-size: clamp(16px, 5vw, 22px); font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.contact-call-action { font-size: 12px; font-weight: 650; white-space: nowrap; }
.contact-channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.contact-channel { display: grid; gap: 5px; min-height: 64px; padding: 10px; border: 1px solid #463727; border-radius: 9px; background: #211b15; }
.contact-channel:hover { border-color: var(--gold); }
.contact-channel-label { display: flex; justify-content: space-between; gap: 3px; color: #c7b79f; font-size: 12px; }
.contact-channel-label span { color: var(--gold); }
.contact-channel strong { color: #f2e8d8; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.contact-details { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 14px; padding: 12px 0 0; border-top: 1px solid #463727; line-height: 1.5; }
.contact-details dt { margin-bottom: 3px; color: #b8a98f; font-size: 12px; }
.contact-details dd { color: #e1d7c8; font-size: 13px; overflow-wrap: anywhere; }
.contact-details div + div { padding-left: 12px; border-left: 1px solid #463727; }
@media (max-width: 360px) {
  .contact-channel { padding-inline: 7px; }
  .contact-channel strong { font-size: 12px; }
  .contact-details { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .contact-details div + div { padding-left: 0; border-left: 0; }
}
@media (max-width: 340px) {
  .contact-channels { grid-template-columns: minmax(0, 1fr); }
  .contact-channel { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; }
  .contact-channel-label span { display: none; }
  .contact-channel strong { text-align: right; }
}
.contact-note { margin-top: 12px; color: var(--quiet); font-size: 11px; }

.quote {
  padding: clamp(14px, 4.3vw, 20px);
  border: 1px solid var(--border);
  background: var(--panel);
}
.quote h2 { font-size: clamp(17px, 4.5vw, 21px); font-weight: 600; }
.quote-intro { margin-top: 5px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.quote-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  margin-top: 16px;
}
html[lang="en"] .quote-fields { grid-template-columns: minmax(0, 1fr); }
.quote-fields label { display: grid; gap: 6px; color: #d8d4ce; font-size: 13px; }
.quote-fields select, .quote-fields input {
  width: 100%;
  height: 44px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid #3a3530;
  border-radius: 0;
  background-color: #241f1b;
  font-family: inherit;
  font-size: 16px;
}
.quote-fields select {
  appearance: none;
  padding-right: 25px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 51%), linear-gradient(135deg, var(--gold) 50%, transparent 51%);
  background-position: right 14px center, right 9px center;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  color: var(--text);
  text-overflow: ellipsis;
}
.quote-fields input::placeholder { color: var(--quiet); font-size: 13px; }
.quote-fields input[aria-invalid="true"] { border-color: #df9273; }
.quote-rate, .quote-result-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.quote-rate { margin: 12px 0; color: var(--muted); font-size: 13px; }
.quote-rate strong { color: var(--gold); font-weight: 600; text-align: right; }
.quote-result { padding: 12px; border: 1px solid rgb(232 194 104 / 32%); background: #211b14; }
.quote-result-row { flex-wrap: wrap; gap: 4px 10px; }
.quote-result-row > span { color: #d8d4ce; font-size: 13px; }
.quote-result output {
  max-width: 100%;
  margin-inline-start: auto;
  color: var(--gold);
  font-size: clamp(20px, 6.1vw, 28px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  text-align: right;
}
#quote-equation { margin-top: 5px; color: var(--muted); font-size: 12px; text-align: right; overflow-wrap: anywhere; }
.quote-error, .quote-note { margin-top: 8px; font-size: 12px; line-height: 1.5; }
.quote-error { color: #df9273; }
.quote-error:empty { display: none; }
.quote-note { color: var(--quiet); }

.section-summary, .meta { background: var(--card); }
.section-top h1 { font-size: max(18px, calc(36 * var(--rpx))); font-weight: 600; }
.outline-button { display: inline-block; padding: 7px 13px; border: 1px solid var(--gold); color: var(--gold); font-size: 12px; }
.section-summary p, .section-summary output { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.section-summary output { margin-top: 8px; color: var(--gold); }
.search { width: 100%; height: max(40px, calc(76 * var(--rpx))); padding: 0 10px; border: 1px solid #3a3530; border-radius: 0; background: #241f1b; font-size: 16px; }
.search::placeholder { color: var(--quiet); font-size: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips button { padding: 6px 9px; border: 1px solid #3a3530; background: var(--card); color: var(--muted); font-size: 12px; }
.chips button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold); color: var(--background); }
.case-card > a { display: block; }
.case-card > a:focus-visible { outline-offset: -3px; }
.case-card a:hover .cover-image { opacity: .88; }
.case-cover { height: calc(340 * var(--rpx)); }
.case-body h2 { font-size: max(16px, calc(32 * var(--rpx))); }
.video-flag { position: absolute; top: 10px; right: 10px; padding: 4px 7px; background: var(--gold); color: var(--background); font-size: 10px; }
.play-icon { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; transform: translate(-50%, -50%); border: 1px solid var(--gold); border-radius: 50%; background: #0f0e0e8c; }
.play-icon::after { content: ""; margin-left: 3px; border: solid transparent; border-width: 8px 0 8px 13px; border-left-color: var(--gold); }
.field-row { display: flex; align-items: flex-start; margin-bottom: 7px; font-size: 12px; line-height: 1.5; }
.field-row:last-child { margin-bottom: 0; }
.field-row dt { width: calc(150 * var(--rpx)); flex: none; color: var(--quiet); }
.field-row dd { flex: 1; min-width: 0; color: #d8d4ce; overflow-wrap: anywhere; }
.empty, .home-link { padding: calc(26 * var(--rpx)); border: 1px solid var(--border); background: var(--card); text-align: center; }
.empty { padding-block: 28px; }
.empty h2 { font-size: 15px; }
.empty p { margin: 6px 0 14px; color: var(--muted); font-size: 12px; }
.home-link { display: block; color: var(--gold); font-size: 12px; font-weight: 600; }

.detail-page { --block-space: calc(24 * var(--rpx)); padding-top: calc(28 * var(--rpx)); padding-bottom: calc(180 * var(--rpx) + env(safe-area-inset-bottom)); }
.detail-cover { height: calc(390 * var(--rpx)); margin-bottom: calc(28 * var(--rpx)); border: 1px solid var(--border); }
.detail-cover-portrait { width: min(100%, 320px, 40svh); height: auto; aspect-ratio: 9 / 16; margin-inline: auto; }
.detail-cover video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.detail-lead { padding: 0 2px calc(26 * var(--rpx)); border-bottom: 1px solid var(--border); }
.detail-scene { letter-spacing: 1px; }
.detail-lead h1 { margin-bottom: calc(18 * var(--rpx)); font-size: max(22px, calc(44 * var(--rpx))); line-height: 1.35; }
.detail-story { color: #d8d4ce; font-size: max(14px, calc(26 * var(--rpx))); line-height: 1.75; }
.detail-story.dim { color: var(--muted); }
.action-bar {
  position: fixed;
  z-index: 3;
  inset: auto 0 0;
  display: flex;
  gap: 8px;
  max-width: var(--width);
  margin-inline: auto;
  padding: calc(16 * var(--rpx)) var(--gutter) calc(16 * var(--rpx) + env(safe-area-inset-bottom));
  border-top: 1px solid #3a3530;
  background: #141211;
}
.action-bar a {
  display: grid;
  flex: 1;
  min-height: max(40px, calc(80 * var(--rpx)));
  place-items: center;
  padding: 4px 6px;
  border: 1px solid #3a3530;
  background: #1f1c1a;
  color: #d8d4ce;
  font-size: max(13px, calc(24 * var(--rpx)));
  font-weight: 600;
  text-align: center;
}
.action-bar .action-estimate { border-color: var(--gold); background: var(--gold); color: var(--background); }

.missing-page { padding: 60px var(--gutter); text-align: center; }
.missing-page h1 { margin-bottom: 20px; color: var(--muted); font-size: 16px; }
.player-page { position: relative; background: #000; }
.player-page video { display: block; width: 100%; height: calc(100dvh - var(--nav-height)); }
.video-error { position: absolute; inset: 40% 0 auto; padding: 8px; background: #0f0e0ed9; font-size: 13px; text-align: center; pointer-events: none; }
.player-fallback { display: grid; min-height: calc(100dvh - var(--nav-height)); padding: 24px; place-items: center; }
.player-fallback div { width: 100%; padding: 28px 22px; border: 1px solid var(--border); background: var(--panel); text-align: center; }
.player-fallback h1 { margin-bottom: 20px; font-size: 17px; }
.player-fallback a { display: block; padding: 13px; background: var(--gold); color: var(--background); font-size: 14px; font-weight: 600; }
.player-fallback p { margin-top: 16px; color: var(--quiet); font-size: 12px; overflow-wrap: anywhere; }
