:root {
  color-scheme: dark;
  --bg: #050806;
  --ink: #e9e6dc;
  --muted: #8b938d;
  --line: rgba(226, 232, 224, .15);
  --accent: #9bdc67;
  --accent-rgb: 155, 220, 103;
  --rational: #9bdc67;
  --romantic: #d7ad60;
  --meter-color: #9bdc67;
  --meter-position: 50%;
  --serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  --sans: Arial, "Microsoft YaHei", sans-serif;
  --mono: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
}

body[data-theme="literature"] { --accent: #d3b274; --accent-rgb: 211, 178, 116; --meter-color: #d7ad60; --meter-position: 72%; }
body[data-theme="industry"] { --accent: #77c8c4; --accent-rgb: 119, 200, 196; --meter-color: #77c8c4; --meter-position: 50%; }
body[data-theme="ai"] { --accent: #9bdc78; --accent-rgb: 155, 220, 120; --meter-color: #9bdc78; --meter-position: 27%; }

button, a { color: inherit; }
button { font: inherit; }

.theme-backdrops,
.page-atmosphere,
.theme-surface,
.theme-flare {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.theme-backdrops { z-index: 0; overflow: hidden; background: #050806; }
.theme-backdrop {
  position: absolute;
  inset: -2%;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(0 0 0 100%);
  transition:
    opacity .9s cubic-bezier(.16, 1, .3, 1),
    clip-path 1.05s cubic-bezier(.16, 1, .3, 1);
}
.theme-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.48) contrast(1.08) brightness(.58); }
.backdrop-literature img { object-position: 58% center; }
.backdrop-industry img { object-position: 64% center; }
.backdrop-ai img { object-position: 62% center; }
.theme-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,6,4,.91) 0%, rgba(3,6,4,.68) 34%, rgba(3,6,4,.24) 78%, rgba(3,6,4,.48) 100%),
    linear-gradient(180deg, rgba(3,6,4,.32), rgba(3,6,4,.7));
}
body[data-theme="literature"] .backdrop-literature,
body[data-theme="industry"] .backdrop-industry,
body[data-theme="ai"] .backdrop-ai { opacity: .72; clip-path: inset(0); }

.page-atmosphere {
  z-index: 1;
  background:
    radial-gradient(circle at 80% 35%, rgba(var(--accent-rgb), .065), transparent 32%),
    linear-gradient(90deg, rgba(3,6,4,.22), rgba(3,6,4,.05)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.009) 0 1px, transparent 1px 4px);
  transition: background .7s ease;
}
body[data-theme="industry"] .page-atmosphere {
  background:
    linear-gradient(rgba(119,200,196,.027) 1px, transparent 1px),
    linear-gradient(90deg, rgba(119,200,196,.027) 1px, transparent 1px),
    radial-gradient(circle at 76% 38%, rgba(66,138,135,.12), transparent 37%);
  background-size: 48px 48px, 48px 48px, auto;
}
body[data-theme="ai"] .page-atmosphere {
  background:
    radial-gradient(circle at 78% 37%, rgba(102,154,89,.12), transparent 36%),
    repeating-linear-gradient(90deg, rgba(155,220,120,.018) 0 1px, transparent 1px 62px);
}

.theme-surface { z-index: 2; overflow: hidden; }
.paper-patina,
.market-glyphs,
.binary-field {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1);
}
.paper-patina {
  background:
    radial-gradient(ellipse at 18% 20%, rgba(222,188,119,.18), transparent 29%),
    radial-gradient(ellipse at 74% 12%, rgba(81,53,24,.17), transparent 21%),
    radial-gradient(ellipse at 56% 82%, rgba(205,164,96,.12), transparent 32%),
    repeating-linear-gradient(8deg, rgba(238,215,168,.032) 0 1px, transparent 1px 5px),
    linear-gradient(rgba(142,104,57,.08), rgba(42,30,17,.16));
  mix-blend-mode: soft-light;
  filter: sepia(.38) contrast(1.06);
}
body[data-theme="literature"] .paper-patina { opacity: .9; }

.market-glyphs {
  left: 39vw;
  top: 18vh;
  right: 2.5vw;
  bottom: 7vh;
  inset-block: 18vh 7vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 2.2vw;
  transform: translateY(22px);
  color: rgba(119,200,196,.36);
}
.market-glyphs i {
  position: relative;
  width: clamp(7px,.7vw,12px);
  height: 30%;
  border: 1px solid currentColor;
  background: rgba(119,200,196,.08);
  box-shadow: 0 0 22px rgba(119,200,196,.08);
}
.market-glyphs i::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -42%;
  bottom: -42%;
  width: 1px;
  background: currentColor;
}
.market-glyphs i:nth-child(1) { height: 18%; }
.market-glyphs i:nth-child(2) { height: 31%; }
.market-glyphs i:nth-child(3) { height: 24%; }
.market-glyphs i:nth-child(4) { height: 43%; }
.market-glyphs i:nth-child(5) { height: 38%; }
.market-glyphs i:nth-child(6) { height: 58%; }
.market-glyphs i:nth-child(7) { height: 51%; }
.market-glyphs i:nth-child(8) { height: 72%; }
.market-glyphs b { position: absolute; font: 400 clamp(34px,4vw,70px)/1 var(--serif); opacity: .17; }
.market-glyphs b:nth-of-type(1) { left: 4%; top: 59%; }
.market-glyphs b:nth-of-type(2) { left: 34%; top: 38%; }
.market-glyphs b:nth-of-type(3) { left: 56%; top: 48%; }
.market-glyphs b:nth-of-type(4) { right: 4%; top: 8%; }
body[data-theme="industry"] .market-glyphs { opacity: .85; transform: none; }

.binary-field {
  padding: 13vh 3vw 8vh 43vw;
  display: grid;
  align-content: space-around;
  overflow: hidden;
  color: rgba(155,220,120,.16);
  font: 400 clamp(9px,1vw,14px)/1.7 var(--mono);
  letter-spacing: .32em;
  transform: translateY(18px);
  mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 90%, transparent);
}
.binary-field span:nth-child(even) { transform: translateX(7vw); color: rgba(155,220,120,.1); }
body[data-theme="ai"] .binary-field { opacity: 1; transform: none; }

.theme-flare {
  z-index: 3;
  width: 34vw;
  left: -40vw;
  right: auto;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .16), rgba(236,238,226,.08), transparent);
  transform: skewX(-9deg);
}
body.theme-changing .theme-flare { animation: full-wipe .94s cubic-bezier(.2,.75,.2,1) both; }
@keyframes full-wipe {
  0% { left: -42vw; opacity: 0; }
  18% { opacity: .6; }
  78% { opacity: .24; }
  100% { left: 112vw; opacity: 0; }
}

.site-header,
.home,
.site-footer { position: relative; z-index: 4; }

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.8vw;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 5, .62);
  backdrop-filter: blur(15px);
}
.brand { display: grid; gap: 3px; text-decoration: none; }
.brand strong { font: 600 17px/1 var(--serif); }
.brand em { color: var(--accent); font-weight: 500; transition: color .7s ease; }
.brand small,
.site-header > span,
.ideology-axis,
.copy-kicker,
.copy-en,
.copy-tags,
.copy-field,
.selection-heading p,
.selection-heading small,
.portal-number,
.portal-title small,
.portal-title i,
.portal-meta,
.site-footer {
  font-family: var(--mono);
  letter-spacing: .11em;
}
.brand small { color: var(--muted); font-size: 9px; }
.site-header > span { color: var(--muted); font-size: 8px; }

.home {
  min-height: calc(100vh - 116px);
  display: grid;
  grid-template-columns: minmax(360px, 36vw) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}

.copy-panel {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 48px 4.2vw 42px;
  border-right: 1px solid var(--line);
  background: rgba(3, 7, 5, .57);
  backdrop-filter: blur(2px);
}
.copy-panel::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 10%;
  width: 1px;
  height: 80%;
  background: linear-gradient(transparent, var(--accent), transparent);
  opacity: .58;
  transition: background .7s ease;
}
.ideology-axis {
  min-height: 43px;
  display: grid;
  grid-template-columns: auto minmax(62px,1fr) auto;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
}
.ideology-axis > span { display: grid; gap: 3px; white-space: nowrap; transition: transform .82s cubic-bezier(.16,1,.3,1), opacity .5s ease, color .65s ease; }
.ideology-axis small { color: var(--muted); font-size: 7px; letter-spacing: .14em; }
.axis-rational { color: var(--rational); transform: translate(54px,74px) scale(1.14); opacity: 0; transform-origin: right center; }
.axis-romantic { color: var(--romantic); transform: translate(-54px,74px) scale(1.14); opacity: 0; text-align: right; transform-origin: left center; }
.ideology-meter { position: relative; height: 15px; }
.ideology-meter::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 1px;
  background: linear-gradient(90deg, rgba(155,220,103,.7), rgba(180,190,174,.22) 50%, rgba(215,173,96,.72));
}
.ideology-meter i { position: absolute; top: 6px; height: 3px; border-radius: 3px; background: var(--meter-color); box-shadow: 0 0 15px color-mix(in srgb, var(--meter-color) 60%, transparent); transform: scaleX(0); }
.ideology-meter b { position: absolute; top: 3px; left: var(--meter-position); width: 9px; height: 9px; border-radius: 50%; background: var(--meter-color); box-shadow: 0 0 16px color-mix(in srgb, var(--meter-color) 75%, transparent); transform: translateX(-50%) scale(0); }
body.has-field .ideology-axis { opacity: 1; }
body.has-field .axis-rational,
body.has-field .axis-romantic { transform: none; opacity: 1; }
body.has-field .ideology-meter b { transform: translateX(-50%) scale(1); transition: left .75s cubic-bezier(.16,1,.3,1), background .5s ease, transform .55s .28s cubic-bezier(.16,1,.3,1); }
body[data-theme="literature"] .ideology-meter i { left: var(--meter-position); right: 0; transform-origin: right; }
body[data-theme="industry"] .ideology-meter i { left: 24%; right: 24%; transform-origin: center; }
body[data-theme="ai"] .ideology-meter i { left: 0; right: calc(100% - var(--meter-position)); transform-origin: left; }
body.has-field .ideology-meter i { transform: scaleX(1); transition: transform .9s .08s cubic-bezier(.16,1,.3,1), background .5s ease; }

.copy-stage {
  position: relative;
  flex: 1;
  min-height: 470px;
  display: grid;
  align-items: center;
}
.copy-layer {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transform-origin: 0 50%;
  will-change: transform, opacity, filter;
}
.copy-layer > * { will-change: transform, opacity, filter; }
.copy-secondary { opacity: 0; visibility: hidden; }
.copy-kicker { margin: 0 0 25px; color: var(--accent); font-size: 9px; transition: color .7s ease; }
.copy-primary h1,
.copy-secondary h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.copy-primary h1 { font-size: clamp(39px, 4.35vw, 71px); line-height: 1.19; }
.copy-secondary h2 { font-size: clamp(36px, 3.8vw, 62px); line-height: 1.15; }
.copy-secondary:not(.is-field) h2 { font-size: clamp(39px, 4.35vw, 71px); line-height: 1.19; }
.copy-primary.is-field h1 { font-size: clamp(36px, 3.8vw, 62px); line-height: 1.15; }
.copy-summary { max-width: 580px; margin: 27px 0 0; font: 400 clamp(16px, 1.4vw, 22px)/1.75 var(--serif); }
.concord-rational { color: var(--rational); }
.concord-romantic { color: var(--romantic); }
.copy-question { max-width: 580px; margin: 23px 0 0; color: var(--accent); font: italic 400 clamp(17px,1.5vw,23px)/1.6 var(--serif); }
.copy-en { max-width: 550px; margin: 27px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.copy-question-en { max-width: 550px; margin: 8px 0 0; color: rgba(225,226,216,.48); font: italic 400 9px/1.55 var(--mono); letter-spacing: .08em; }
.copy-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 30px; color: var(--accent); font-size: 8px; }
.copy-tags span::before { content: "— "; }
.copy-summary:empty,
.copy-question:empty,
.copy-question-en:empty,
.copy-tags:empty { display: none; }

.copy-field {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  margin: auto 0 0;
  color: var(--muted);
  font-size: 8px;
}
.copy-field span { color: var(--accent); font-weight: 700; transition: color .7s ease; }
.copy-field b { font-weight: 400; }

.selection { min-width: 0; display: flex; flex-direction: column; background: rgba(3,7,5,.23); }
.selection-heading {
  min-height: 126px;
  display: grid;
  grid-template-columns: 135px 1fr;
  align-items: center;
  gap: 20px;
  padding: 24px 3vw;
  border-bottom: 1px solid var(--line);
  background: rgba(3,7,5,.48);
  backdrop-filter: blur(8px);
}
.selection-heading p { margin: 0; color: var(--accent); font-size: 9px; transition: color .7s ease; }
.selection-heading h2 { margin: 0 0 7px; font: 400 clamp(24px, 2.25vw, 38px)/1.1 var(--serif); }
.selection-heading small { color: var(--muted); font-size: 9px; }

.portal-grid { flex: 1; min-height: 574px; display: flex; overflow: hidden; }
.portal {
  --local: 155,220,103;
  position: relative;
  min-width: 0;
  min-height: 574px;
  flex: 1 1 33.333%;
  overflow: hidden;
  padding: 28px 24px;
  color: var(--ink);
  background: rgba(3,7,5,.62);
  border: 0;
  border-right: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition:
    flex-basis .76s cubic-bezier(.16,1,.3,1),
    background .62s ease,
    border-color .62s ease;
}
.portal:last-child { border-right: 0; }
.portal-literature { --local: 211,178,116; }
.portal-industry { --local: 119,200,196; }
.portal-ai { --local: 155,220,120; }
.portal-grid:has(.portal.is-active) .portal { flex-basis: 14%; }
.portal-grid:has(.portal.is-active) .portal.is-active { flex-basis: 72%; background: rgba(3,7,5,.3); }
.portal::before {
  content: "";
  position: absolute;
  z-index: 6;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color .55s ease, box-shadow .75s ease;
}
.portal::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, rgba(var(--local),.8), transparent);
  opacity: 0;
  transition: opacity .6s ease;
}
.portal.is-active::before,
.portal:focus-visible::before { border-color: rgba(var(--local), .52); box-shadow: inset 0 0 90px rgba(var(--local),.055); }
.portal.is-active::after { opacity: .8; }

.portal img,
.portal-wash { position: absolute; inset: 0; width: 100%; height: 100%; }
.portal img {
  z-index: -3;
  object-fit: cover;
  opacity: .15;
  filter: saturate(.47) contrast(1.08) brightness(.58);
  transition: opacity .72s cubic-bezier(.16,1,.3,1), filter .72s ease;
}
.portal-literature img { object-position: 68% center; }
.portal-industry img { object-position: 70% center; }
.portal-ai img { object-position: 69% center; }
.portal-wash {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(3,6,4,.3), rgba(3,6,4,.04) 44%, rgba(3,6,4,.9)),
    linear-gradient(90deg, rgba(3,6,4,.78), rgba(3,6,4,.08) 72%);
  opacity: 1;
  transition: opacity .68s ease;
}
.portal.is-active img { opacity: .87; filter: saturate(.55) contrast(1.08) brightness(.69); }
.portal.is-active .portal-wash { opacity: .67; }

.portal-number,
.portal-title,
.portal-meta,
.portal-arrow { position: absolute; z-index: 4; }
.portal-number { top: 28px; left: 24px; color: rgb(var(--local)); font-size: 10px; }
.portal-title { left: 24px; right: 22px; bottom: 87px; display: grid; gap: 8px; transition: transform .72s cubic-bezier(.16,1,.3,1); }
.portal-title small { color: rgb(var(--local)); font-size: 8px; }
.portal-title strong { font: 400 clamp(28px, 2.8vw, 48px)/1.05 var(--serif); white-space: nowrap; }
.portal-title i { color: rgba(232,229,220,.58); font-size: 8px; font-style: normal; white-space: nowrap; }
.portal-meta { left: 24px; bottom: 30px; color: rgba(232,229,220,.75); font-size: 8px; opacity: 0; transform: translateY(12px); transition: opacity .55s .24s ease, transform .72s .18s cubic-bezier(.16,1,.3,1); white-space: nowrap; }
.portal-arrow { right: 24px; bottom: 23px; color: rgb(var(--local)); font: 25px/1 var(--serif); opacity: .65; transition: transform .7s cubic-bezier(.16,1,.3,1), opacity .5s ease; }
.portal.is-active .portal-title { transform: translateY(-8px); }
.portal.is-active .portal-meta { opacity: 1; transform: none; }
.portal.is-active .portal-arrow { transform: translate(5px,-5px); opacity: 1; }

.site-footer {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.8vw;
  color: var(--muted);
  font-size: 8px;
  background: rgba(3,7,5,.83);
}

.intro {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  background: #040706;
  transition: opacity .3s ease, visibility 0s .3s;
}
.intro p { position: relative; z-index: 2; margin: 0; font: 500 clamp(44px,8vw,116px)/1 var(--serif); letter-spacing: .16em; animation: intro-name 1.65s cubic-bezier(.16,1,.3,1) both; }
.intro em { color: #9bdc67; font-weight: 400; }
.intro-rule { position: absolute; width: 0; height: 1px; background: #9bdc67; box-shadow: 0 0 20px rgba(155,220,103,.35); animation: intro-rule 1.65s cubic-bezier(.16,1,.3,1) both; }
@keyframes intro-rule { 0% { width: 0; opacity: 0; } 25%,57% { width: min(620px,66vw); opacity: 1; } 100% { width: 94vw; opacity: 0; } }
@keyframes intro-name { 0%,12% { opacity: 0; letter-spacing: .32em; clip-path: inset(0 50%); } 34%,65% { opacity: 1; letter-spacing: .06em; clip-path: inset(0); transform: none; } 100% { opacity: 0; transform: translate(-34vw,-42vh) scale(.18); } }
.intro-complete .intro { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-pending .site-header,
.intro-pending .home,
.intro-pending .site-footer { opacity: 0; }
.intro-complete .site-header,
.intro-complete .home,
.intro-complete .site-footer { opacity: 1; transition: opacity .62s ease; }

@media (max-width: 1120px) {
  .home { grid-template-columns: minmax(330px,34vw) minmax(0,1fr); }
  .selection-heading { grid-template-columns: 1fr; gap: 6px; }
  .selection-heading > p { display: none; }
  .portal { padding-inline: 18px; }
  .portal-number, .portal-title, .portal-meta { left: 18px; }
  .portal-title strong { font-size: clamp(25px,3vw,39px); }
}

@media (max-width: 840px) {
  .site-header { height: 68px; padding-inline: 20px; }
  .home { display: block; }
  .copy-panel { min-height: 505px; padding: 36px 24px 34px; border-right: 0; border-bottom: 1px solid var(--line); }
  .copy-panel::after { top: auto; right: 8%; bottom: -1px; width: 84%; height: 1px; background: linear-gradient(90deg,transparent,var(--accent),transparent); }
  .copy-stage { min-height: 370px; }
  .copy-primary h1 { font-size: clamp(42px,10vw,58px); }
  .copy-secondary h2 { font-size: 40px; }
  .copy-secondary:not(.is-field) h2 { font-size: clamp(42px,10vw,58px); }
  .copy-summary { font-size: 17px; line-height: 1.62; }
  .selection-heading { min-height: 132px; padding: 25px 24px; }
  .portal-grid { min-height: 0; display: block; overflow: visible; }
  .portal { width: 100%; min-height: 170px; height: 170px; border-right: 0; border-bottom: 1px solid var(--line); transition: height .86s cubic-bezier(.16,1,.3,1); }
  .portal-grid:has(.portal.is-active) .portal { min-height: 142px; height: 142px; }
  .portal-grid:has(.portal.is-active) .portal.is-active { min-height: 430px; height: 430px; }
  .portal-title { bottom: 48px; }
  .portal-meta { bottom: 25px; }
  .portal.is-active .portal-title { bottom: 78px; }
  .portal.is-active .portal-meta { bottom: 31px; }
  .portal-title strong { font-size: 34px; }
  .portal-arrow { bottom: 24px; }
  .portal.is-active .portal-arrow { bottom: 28px; }
  .theme-backdrop::after { background: linear-gradient(180deg, rgba(3,6,4,.72), rgba(3,6,4,.35) 45%, rgba(3,6,4,.76)); }
  .site-footer { min-height: 68px; padding: 15px 20px; }
}

@media (max-width: 520px) {
  .site-header { padding-inline: 16px; }
  .site-header > span { display: none; }
  .copy-panel { min-height: 620px; padding-inline: 20px; }
  .copy-stage { min-height: 455px; }
  .copy-primary h1 { font-size: 41px; }
  .copy-secondary h2 { font-size: 36px; }
  .copy-secondary:not(.is-field) h2 { font-size: 41px; }
  .copy-summary { font-size: 15.5px; }
  .copy-en { font-size: 8px; }
  .selection-heading { padding-inline: 20px; }
  .portal { padding-inline: 20px; }
  .portal-number, .portal-title, .portal-meta { left: 20px; }
  .portal-grid:has(.portal.is-active) .portal.is-active { min-height: 450px; height: 450px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .intro { display: none; }
  .intro-pending .site-header,
  .intro-pending .home,
  .intro-pending .site-footer { opacity: 1; }
}

.no-js .intro { display: none; }
.no-js .intro-pending .site-header,
.no-js .intro-pending .home,
.no-js .intro-pending .site-footer { opacity: 1; }
