: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) 72px 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); }
.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, .language-switch {
  position: absolute;
  top: env(safe-area-inset-top);
  bottom: 0;
  display: grid;
  place-items: center;
  padding-inline: 12px;
  color: var(--gold);
  font-size: 12px;
  white-space: nowrap;
}
.nav-estimate { left: 0; }
.language-switch { right: 0; min-width: 48px; }
.nav-estimate: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; }
.stage-clients { margin-top: calc(24 * var(--rpx)); color: var(--quiet); font-size: max(10px, calc(17 * 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; }
  .stage-clients { margin-top: 6px; }
}

.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, .check-header {
  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;
  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; }
.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))); }
.section-count { color: var(--gold); font-size: max(13px, calc(26 * 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, .category, .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, .category-cover, .case-cover, .detail-cover { position: relative; overflow: hidden; background: var(--card); }
.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, .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))); }
.rail-hint { margin-top: 5px; color: var(--quiet); font-size: 11px; text-align: right; }
.category-section { margin-top: calc(34 * var(--rpx)); }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(22 * var(--rpx)); }
.category-cover { height: calc(176 * var(--rpx)); }
.category-body { padding: calc(20 * var(--rpx)); }
.category-body h3 { margin-bottom: 3px; font-size: max(13px, calc(26 * var(--rpx))); font-weight: 600; }
.category-body p { color: var(--muted); font-size: max(11px, calc(20 * var(--rpx))); line-height: 1.4; }
.category-body span { display: block; margin-top: 4px; color: var(--gold); font-size: max(10px, calc(18 * var(--rpx))); }
.feature-card:hover, .category: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)); }
.company-video { position: relative; margin-bottom: 12px; border: 1px solid var(--border); background: #000; }
.company-video video { display: block; width: 100%; aspect-ratio: 720 / 406; }
.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: 14px 0 8px; padding-top: 11px; border-top: 1px solid var(--border); font-size: 13px; }
.chain, .domain-services { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.chain-step, .domain-services span { padding: 4px 6px; border: 1px solid #3a3530; background: #1c1a18; color: var(--gold); font-size: 11px; }
.chain-arrow { color: var(--quiet); font-size: 11px; }
.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 { border: 0; border-left: 1px solid var(--gold); color: #c9c6c2; }
.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; }
.sign p { margin-top: 4px; color: #746d66; }

.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); }
.check-label { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--muted); font-size: 12px; cursor: pointer; }
.check-label input { width: 15px; height: 15px; margin: 0; accent-color: var(--gold); }
.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); }
.check-fields { padding: calc(26 * var(--rpx)); border-top: 1px solid var(--border); background: var(--panel); }
.check-header { margin-bottom: 9px; color: var(--quiet); font-size: 11px; }
.check-header span:first-child { 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; }
.field-row .missing { padding-inline: 3px; border: 1px dashed rgb(232 194 104 / 60%); background: rgb(232 194 104 / 12%); color: var(--gold); }
.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 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; }
