:root {
  color-scheme: light;
  --ink: #132033;
  --muted: #5e6a7a;
  --line: #d7dee8;
  --paper: #f7f8f3;
  --paper-2: #edf3f1;
  --white: #ffffff;
  --navy: #071322;
  --navy-2: #0b2038;
  --navy-3: #102b4b;
  --cyan: #26d7e5;
  --cyan-soft: rgba(38, 215, 229, 0.16);
  --amber: #f2a51a;
  --amber-2: #ffc85a;
  --rust: #a45c3a;
  --green: #1d8f7a;
  --shadow: 0 28px 80px rgba(6, 18, 34, 0.18);
  --shadow-soft: 0 18px 50px rgba(17, 32, 51, 0.12);
  --radius: 8px;
  --max: 1760px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(38, 215, 229, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #f7f8f3 0%, #eef4f2 42%, #f7f8f3 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body.is-lightbox-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 12px 34px;
  color: var(--white);
  background: rgba(7, 19, 34, 0.88);
  border-bottom: 1px solid rgba(38, 215, 229, 0.14);
  box-shadow: 0 14px 38px rgba(6, 18, 34, 0.24);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 282px;
}

.brand-word {
  font-weight: 860;
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0;
}

.brand-word span {
  color: var(--amber-2);
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 15px;
  line-height: 1.18;
}

.brand-copy small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 7px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  opacity: 0.86;
}

.site-nav a:hover {
  border-color: var(--amber);
  opacity: 1;
}

.header-cta,
.select-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ffc85a 0%, var(--amber) 100%);
  color: var(--navy);
  font-weight: 760;
  box-shadow: 0 12px 30px rgba(242, 165, 26, 0.24);
}

.header-cta {
  padding: 0 16px;
  white-space: nowrap;
}

.header-cta svg,
.select-route svg,
.split-control svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

main {
  overflow: hidden;
}

.selector-hero {
  min-height: 100vh;
  padding: 96px 0 42px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(38, 215, 229, 0.07) 1px, transparent 1px) 0 0 / 70px 70px,
    radial-gradient(circle at 82% 18%, rgba(38, 215, 229, 0.16), transparent 30%),
    linear-gradient(145deg, #06111e 0%, #0b2038 48%, #081523 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 360px;
  gap: 22px;
  width: min(var(--max), calc(100vw - 64px));
  max-width: var(--max);
  margin: 0 auto;
}

.space-rail,
.decision-stage,
.insight-panel {
  border: 1px solid rgba(38, 215, 229, 0.18);
  background: rgba(7, 19, 34, 0.56);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.space-rail,
.insight-panel {
  border-radius: var(--radius);
  padding: 16px;
}

.decision-stage {
  border-radius: var(--radius);
  overflow: hidden;
}

.rail-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.rail-head span,
.system-label,
.insight-kicker,
.fit-block span,
.thumb-kind,
.score-label {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rail-head strong {
  font-size: 18px;
}

.space-list {
  display: grid;
  gap: 10px;
}

.space-option {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
}

.space-option:hover,
.space-option.is-active {
  color: var(--white);
  border-color: rgba(38, 215, 229, 0.44);
  background: rgba(38, 215, 229, 0.08);
}

.space-option img {
  width: 58px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.space-option strong,
.space-option span {
  display: block;
  min-width: 0;
}

.space-option strong {
  font-size: 14px;
}

.space-option span {
  margin-top: 3px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px;
  border-bottom: 1px solid rgba(38, 215, 229, 0.14);
}

.stage-head h1 {
  margin: 7px 0 8px;
  font-size: clamp(42px, 4vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}

.stage-lede {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.7;
}

.style-tabs {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.style-tab {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.style-tab:hover,
.style-tab.is-active {
  color: var(--navy);
  background: linear-gradient(135deg, #ffc85a 0%, var(--amber) 100%);
}

.objective-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 18px 0;
}

.objective-strip div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(38, 215, 229, 0.16);
  border-radius: var(--radius);
  background: rgba(38, 215, 229, 0.055);
}

.objective-strip strong {
  color: var(--white);
  font-size: 13px;
  line-height: 1.28;
}

.objective-strip span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  line-height: 1.5;
}

.comparison-shell {
  padding: 18px;
}

.comparison-grid {
  --left: 50%;
  display: grid;
  grid-template-columns: var(--left) minmax(0, 1fr);
  gap: 12px;
  transition: grid-template-columns 160ms ease;
}

.image-panel {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #050b13;
}

.comparison-grid[data-orientation="portrait"] .image-panel {
  aspect-ratio: 3 / 4;
}

.comparison-grid[data-orientation="landscape"] .image-panel {
  aspect-ratio: 4 / 3;
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #050b13;
  cursor: zoom-in;
  filter: contrast(1.03) saturate(1.02);
}

.image-label,
.image-panel figcaption {
  position: absolute;
  z-index: 2;
  left: 14px;
  border-radius: 6px;
  color: var(--white);
  background: rgba(7, 19, 34, 0.72);
  backdrop-filter: blur(8px);
}

.image-label {
  top: 14px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 760;
}

.image-label.is-accent {
  color: var(--navy);
  background: rgba(255, 200, 90, 0.94);
}

.image-panel figcaption {
  right: 14px;
  bottom: 14px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.55;
}

.split-control {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.split-control input {
  width: 100%;
  accent-color: var(--amber);
}

.insight-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.insight-panel h2 {
  margin: 0;
  font-size: 29px;
  line-height: 1.12;
  letter-spacing: 0;
}

.insight-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.72;
}

.score-list {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.score-row {
  display: grid;
  gap: 6px;
}

.score-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.score-value {
  color: var(--white);
  font-size: 13px;
  font-weight: 760;
}

.score-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.score-fill {
  width: var(--score);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber-2));
}

.decision-meta {
  display: grid;
  gap: 8px;
}

.decision-meta div {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.decision-meta span {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 760;
}

.decision-meta strong {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.56;
}

.fit-block {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(38, 215, 229, 0.18);
  border-radius: var(--radius);
  background: rgba(38, 215, 229, 0.06);
}

.fit-block strong {
  color: var(--white);
  font-size: 16px;
  line-height: 1.48;
}

.select-route {
  width: 100%;
  margin-top: auto;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 82px 28px;
}

.section-head {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.section-head.compact {
  max-width: 740px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.matrix-grid {
  display: grid;
  grid-template-columns: 156px repeat(8, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.outdoor-section {
  background: linear-gradient(180deg, rgba(237, 243, 241, 0.92), rgba(247, 248, 243, 0.98));
}

.facade-section {
  background:
    linear-gradient(90deg, rgba(19, 32, 51, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #f7f8f3 0%, #edf3f1 100%);
}

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

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

.outdoor-card,
.facade-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

.outdoor-card-head,
.facade-card-head {
  display: grid;
  gap: 6px;
}

.outdoor-card h3,
.facade-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
}

.outdoor-card p,
.facade-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

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

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

.outdoor-shot,
.facade-shot {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #050b13;
  text-align: left;
}

.outdoor-shot {
  aspect-ratio: 4 / 3;
}

.facade-shot {
  aspect-ratio: 4 / 3;
}

.outdoor-shot img,
.facade-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.facade-shot img {
  object-position: center;
}

.outdoor-shot:hover img,
.facade-shot:hover img {
  transform: scale(1.025);
}

.outdoor-shot span,
.facade-shot span {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--white);
  background: rgba(7, 19, 34, 0.72);
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(8px);
}

.outdoor-shot span.is-accent,
.facade-shot span.is-accent {
  color: var(--navy);
  background: rgba(255, 200, 90, 0.94);
}

.matrix-cell {
  position: relative;
  min-height: 154px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(17, 32, 51, 0.08);
}

.matrix-cell.is-heading {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--navy);
  color: var(--white);
  box-shadow: none;
}

.matrix-cell.is-empty {
  min-height: auto;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.matrix-cell.is-image {
  padding: 0;
}

.matrix-cell.is-image button {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.matrix-cell img {
  width: 100%;
  height: 154px;
  object-fit: cover;
  transition: transform 180ms ease;
}

.matrix-cell.is-image:hover img,
.matrix-cell.is-active img {
  transform: scale(1.035);
}

.matrix-cell.is-active {
  outline: 3px solid var(--amber);
  outline-offset: -3px;
}

.matrix-caption {
  position: absolute;
  inset: auto 8px 8px;
  padding: 8px 9px;
  border-radius: 6px;
  color: var(--white);
  background: rgba(7, 19, 34, 0.72);
  font-size: 12px;
  font-weight: 760;
  backdrop-filter: blur(8px);
}

.thumb-kind {
  color: var(--amber-2);
}

.matrix-cell.is-heading strong {
  font-size: 17px;
}

.matrix-cell.is-heading span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.45;
}

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

.route-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.route-card.is-active {
  border-color: rgba(242, 165, 26, 0.82);
  box-shadow: 0 20px 55px rgba(242, 165, 26, 0.17);
}

.route-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.route-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

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

.route-meta span {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--paper-2);
  font-size: 13px;
  line-height: 1.42;
}

.route-meta b,
.route-first strong {
  color: var(--navy);
  font-weight: 800;
}

.route-first {
  padding: 10px 11px;
  border-left: 3px solid var(--amber);
  background: rgba(242, 165, 26, 0.08);
}

.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.route-tags span {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--navy);
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 760;
}

.route-card button {
  justify-self: start;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(13, 37, 81, 0.18);
  border-radius: 6px;
  color: var(--navy);
  background: var(--white);
  font-weight: 760;
}

.route-card.is-active button {
  border-color: var(--amber);
  background: var(--amber-2);
}

@media (max-width: 1450px) {
  .hero-grid {
    grid-template-columns: 220px minmax(0, 1fr) 320px;
    gap: 18px;
    width: min(calc(100vw - 48px), var(--max));
  }
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 10, 18, 0.86);
  backdrop-filter: blur(14px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  width: min(96vw, 1500px);
  max-height: 92vh;
  margin: 0;
}

.lightbox-panel img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: #050b13;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.lightbox-panel figcaption {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  padding: 8px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.84);
  background: rgba(7, 19, 34, 0.72);
  font-size: 13px;
  font-weight: 760;
  backdrop-filter: blur(8px);
}

.lightbox-panel figcaption span + span {
  color: rgba(255, 255, 255, 0.58);
}

.lightbox-nav,
.lightbox-close {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(7, 19, 34, 0.76);
  backdrop-filter: blur(10px);
}

.lightbox-close {
  top: 12px;
  right: 12px;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 62px;
  transform: translateY(-50%);
}

.lightbox-nav.is-prev {
  left: 12px;
}

.lightbox-nav.is-next {
  right: 12px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  border-color: rgba(255, 200, 90, 0.72);
  background: rgba(7, 19, 34, 0.94);
}

.lightbox-nav svg,
.lightbox-close svg {
  width: 20px;
  height: 20px;
}

.lightbox-nav svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1180px) {
  .hero-grid {
    grid-template-columns: 1fr;
    width: min(calc(100vw - 32px), var(--max));
    gap: 16px;
  }

  .stage-head {
    grid-template-columns: 1fr;
  }

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

  .space-rail {
    order: 2;
  }

  .decision-stage {
    order: 1;
  }

  .insight-panel {
    order: 3;
  }

  .matrix-grid {
    grid-template-columns: 132px repeat(8, minmax(180px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }

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

  .objective-strip {
    grid-template-columns: 1fr;
  }

  .outdoor-grid,
  .facade-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand-copy,
  .site-nav {
    display: none;
  }

  .selector-hero {
    padding: 96px 0 28px;
  }

  .stage-head {
    grid-template-columns: 1fr;
  }

  .stage-head h1 {
    font-size: clamp(34px, 13vw, 48px);
    white-space: normal;
  }

  .style-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .comparison-grid {
    grid-template-columns: 1fr !important;
    min-height: auto;
  }

  .image-panel img {
    height: auto;
    min-height: 0;
  }

  .image-panel {
    aspect-ratio: auto;
  }

  .space-list {
    grid-template-columns: 1fr;
  }

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

  .outdoor-pair,
  .facade-pair {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-nav {
    width: 42px;
    height: 54px;
  }
}
